summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-11-17 15:10:34 +0100
committerXavier Morel <xmo@openerp.com>2014-11-17 15:10:34 +0100
commitc65ed4df76bd560cfd736c6401ae48fa43e30c60 (patch)
tree4da8c6b123cf80e374a5a0175cce8e52375718c6
parentf302c123ea8d0b989fe6aa6517e26783f69d62b1 (diff)
[IMP] doc: more indexy index
-rw-r--r--doc/_themes/odoodoc/static/style.css68
-rw-r--r--doc/_themes/odoodoc/static/style.less38
-rw-r--r--doc/index.rst1
3 files changed, 107 insertions, 0 deletions
diff --git a/doc/_themes/odoodoc/static/style.css b/doc/_themes/odoodoc/static/style.css
index 19f5270109e..2a1ffc31f84 100644
--- a/doc/_themes/odoodoc/static/style.css
+++ b/doc/_themes/odoodoc/static/style.css
@@ -6709,6 +6709,74 @@ td.field-body > ul {
.descclassname {
opacity: 0.5;
}
+.index-tree ul,
+.index-tree li {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+}
+.index-tree > ul > li {
+ margin-bottom: 0.5em;
+}
+.index-tree > ul > li > a {
+ font-family: Lato, Arial, sans-serif;
+ font-weight: 500;
+ line-height: 1.1;
+ color: inherit;
+ margin-top: 20px;
+ margin-bottom: 10px;
+ font-size: 24px;
+ text-align: center;
+}
+.index-tree > ul > li > a small,
+.index-tree > ul > li > a .small {
+ font-weight: normal;
+ line-height: 1;
+ color: #777777;
+}
+.index-tree > ul > li > a small,
+.index-tree > ul > li > a .small {
+ font-size: 65%;
+}
+.index-tree > ul > li > ul {
+ display: -webkit-flex;
+ display: flex;
+ -webkit-flex-wrap: wrap;
+ flex-wrap: wrap;
+}
+.index-tree > ul > li > ul > li {
+ width: 50%;
+}
+.index-tree > ul > li > ul > li a {
+ font-family: Lato, Arial, sans-serif;
+ font-weight: 500;
+ line-height: 1.1;
+ color: inherit;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ font-size: 18px;
+ padding-left: 10%;
+ padding-right: 10%;
+}
+.index-tree > ul > li > ul > li a small,
+.index-tree > ul > li > ul > li a .small {
+ font-weight: normal;
+ line-height: 1;
+ color: #777777;
+}
+.index-tree > ul > li > ul > li a small,
+.index-tree > ul > li > ul > li a .small {
+ font-size: 75%;
+}
+.index-tree > ul > li a {
+ display: block;
+ color: #a24689 !important;
+ padding: 0.3em 0;
+ margin: 3px !important;
+}
+.index-tree > ul > li a:hover {
+ background-color: #eeeeee;
+}
.stripe .section {
margin-bottom: 2em;
}
diff --git a/doc/_themes/odoodoc/static/style.less b/doc/_themes/odoodoc/static/style.less
index 719fa6f10e3..1b71b6aaebc 100644
--- a/doc/_themes/odoodoc/static/style.less
+++ b/doc/_themes/odoodoc/static/style.less
@@ -547,6 +547,44 @@ td.field-body {
opacity: 0.5;
}
+
+.index-tree {
+ ul, li {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ }
+ > ul > li {
+ margin-bottom: 0.5em;
+ > a {
+ .h3();
+ text-align: center;
+ }
+ > ul {
+ display: -webkit-flex;
+ display: flex;
+ -webkit-flex-wrap: wrap;
+ flex-wrap: wrap;
+ > li {
+ width: 50%;
+ a {
+ .h4();
+ padding-left: 10%;
+ padding-right: 10%;
+ }
+ }
+ }
+ a {
+ display: block;
+ color: @link-color !important;
+ padding: 0.3em 0;
+ margin: 3px !important;
+ &:hover {
+ background-color: @gray-lighter;
+ }
+ }
+ }
+}
// STRIPE-STYLE PAGES
.stripe {
.section {
diff --git a/doc/index.rst b/doc/index.rst
index 0cd25cdd904..2f26c3abaa5 100644
--- a/doc/index.rst
+++ b/doc/index.rst
@@ -6,6 +6,7 @@ Welcome to the Odoo developer documentation.
.. todo:: what's the documentation's license?
+.. rst-class:: index-tree
.. titlesonly breaks level 3 (~in-document) toc of left navbar, so use
maxdepth instead
.. toctree::