Sfoglia il codice sorgente

Small tweaks to site and doc css.

Also, in Makefile, remove old HTML build first during "make html" step.
JC Brand 10 anni fa
parent
commit
9359c76c42
4 ha cambiato i file con 14 aggiunte e 5 eliminazioni
  1. 1 0
      Makefile
  2. 3 0
      css/theme.css
  3. 5 0
      docs/source/_static/style.css
  4. 5 5
      index.html

+ 1 - 0
Makefile

@@ -105,6 +105,7 @@ check:: stamp-npm
 ## Documentation
 
 html:
+	rm -rf $(BUILDDIR)/html
 	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
 	@echo
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

+ 3 - 0
css/theme.css

@@ -170,6 +170,9 @@ a:focus {
   color: #ffffff;
   background: rgba(255, 255, 255, 0.1);
 }
+.btn-text {
+  font-family: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
 .page-scroll .btn-circle i.animated {
   -webkit-transition-property: -webkit-transform;
   -webkit-transition-duration: 1s;

+ 5 - 0
docs/source/_static/style.css

@@ -1,3 +1,7 @@
+body {
+  font-family: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+
 h1 {
     font-size: 50px;
 }
@@ -5,3 +9,4 @@ h1 {
 .navbar-brand {
     padding-top: 7px;
 }
+

+ 5 - 5
index.html

@@ -56,12 +56,12 @@
                     <li class="page-scroll">
                         <a href="#contact">Contact</a>
                     </li>
-                    <li class="page-scroll">
-                        <a href="https://github.com/jcbrand/converse.js/releases" class="button" target="_blank">Download</a>
-                    </li>
-                    <li class="page-scroll">
+                    <li>
                         <a href="/docs/html/index.html">Documentation</a>
                     </li>
+                    <li>
+                        <a href="https://github.com/jcbrand/converse.js/releases" class="button" target="_blank">Download</a>
+                    </li>
                 </ul>
             </div>
             <!-- /.navbar-collapse -->
@@ -77,7 +77,7 @@
                         <h1 class="brand-heading"><i class="icon-conversejs"></i>Converse.js</h1>
                         <p class="intro-text">A free and open-source XMPP chat client for your website</p>
                         <div class="page-scroll">
-                            <a href="#about" class="btn btn-default btn-lg">Learn More</a>
+                            <a href="#about" class="btn btn-default btn-lg"><span class="btn-text">Learn More</span></a>
                         </div>
                     </div>
                 </div>