Sfoglia il codice sorgente

Updated docs styling

Stan Janssen 4 anni fa
parent
commit
929f038c9e
4 ha cambiato i file con 28 aggiunte e 8 eliminazioni
  1. 24 4
      docs/_static/css/custom.css
  2. 2 2
      docs/conf.py
  3. 1 1
      docs/index.rst
  4. 1 1
      docs/roadmap.rst

+ 24 - 4
docs/_static/css/custom.css

@@ -26,8 +26,14 @@
     font-style: italic;
 }
 
+html{
+    border-top: 5px solid #785b9c;
+    border-bottom: 5px solid #785b9c;
+    min-height: 100vh;
+    box-sizing: border-box;
+}
+
 body {
-    font-size: 10.5pt;
     font-family: 'Charter', 'charter-webfont', 'Georgia', sans-serif;
 }
 
@@ -35,8 +41,8 @@ h1, h2, h3 {
     font-family: 'Charter', 'charter-webfont', 'Georgia', sans-serif;
 }
 
-.sphinxsidebarwrapper{
-    font-size: 9pt;
+div.body pre {
+    font-size: 80%;
 }
 
 div.sphinxsidebarwrapper p.logo{
@@ -46,4 +52,18 @@ div.sphinxsidebarwrapper p.logo{
 
 div.sphinxsidebarwrapper h1.logo{
     display: none;
-}
+}
+
+div.body a{
+    color: #785b9c;
+    text-decoration: none;
+    border-bottom: none;
+}
+
+div.body a:hover{
+    color: white;
+    background-color: #785b9c;
+    padding: 0px 2px;
+    margin: 0px -2px;
+    border-radius: 3px;
+}

+ 2 - 2
docs/conf.py

@@ -18,7 +18,7 @@ sys.path.insert(0, os.path.abspath('..'))
 # -- Project information -----------------------------------------------------
 
 project = 'OpenLEADR'
-copyright = '2020, Stan Janssen'
+copyright = '2020, OpenLEADR Contributors'
 author = 'Stan Janssen'
 
 # The full version, including alpha/beta/rc tags
@@ -63,4 +63,4 @@ html_static_path = ['_static']
 
 
 def setup(app):
-    app.add_stylesheet('css/custom.css')  # may also be an URL
+    app.add_stylesheet('css/custom.css')  # may also be an URL

+ 1 - 1
docs/index.rst

@@ -93,9 +93,9 @@ Table of Contents
    client
    server
    examples
-   roadmap
    representations
    message_signing
+   roadmap
    API Reference <api/modules>
 
 Representations of OpenADR payloads

+ 1 - 1
docs/roadmap.rst

@@ -1,7 +1,7 @@
 .. _roadmap:
 
 ==========================
-Project Status and Roadmap
+Project Roadmap
 ==========================
 
 OpenLEADR is under development. The current version is |release|.