8000 [IMP] make application TOC toplevel look like subtitles · helpACS/documentation-user@0e58ae3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e58ae3

Browse files
committed
[IMP] make application TOC toplevel look like subtitles
1 parent 4a8bc01 commit 0e58ae3

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

_extensions/odoo/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def navbarify(node, navbar=None):
6565
# no subrefs -> ignore
6666
if not list_item.children[1].children:
6767
continue
68-
# otherwise replace reference node by its own children
68+
# otherwise replace reference node by an inline (so it can still be styled)
6969
para = n.parent
7070
para.remove(n)
71-
para.extend(n.children)
71+
para.append(nodes.inline('', '', *n.children))
7272

7373

7474
def resolve_content_toctree(

_extensions/odoo/static/style.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9092,6 +9092,29 @@ main.index.animating .card {
90929092
width: 100%;
90939093
height: 100%;
90949094
}
9095+
.toctree-wrapper > ul {
9096+
list-style: none;
9097+
padding: 0;
9098+
}
9099+
.toctree-wrapper > ul > li.toctree-l1 > span {
9100+
font-family: Lato, sans-serif;
9101+
font-weight: 300;
9102+
line-height: 1.1;
9103+
color: #393f4f;
9104+
margin-top: 22px;
9105+
margin-bottom: 11px;
9106+
font-size: 34px;
9107+
}
9108+
.toctree-wrapper > ul > li.toctree-l1 > span small,
9109+
.toctree-wrapper > ul > li.toctree-l1 > span .small {
9110+
font-weight: normal;
9111+
line-height: 1;
9112+
color: #777777;
9113+
}
9114+
.toctree-wrapper > ul > li.toctree-l1 > span small,
9115+
.toctree-wrapper > ul > li.toctree-l1 > span .small {
9116+
font-size: 65%;
9117+
}
90959118
hr.divider {
90969119
border-color: rgba(229, 229, 229, 0.4);
90979120
position: absolute;

_extensions/odoo/static/style.less

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,19 @@ main.index {
343343
.square(100%);
344344
}
345345

346+
// the first level of an application toctree should look more like sections
347+
348+
.toctree-wrapper > ul {
349+
list-style: none;
350+
padding: 0;
351+
352+
> li.toctree-l1 > span {
353+
font-family: @headings-font-family;
354+
// copy h2 content :/
355+
.h2()
356+
}
357+
}
358+
346359
// Elements
347360
// -----------------------------------------------
348361

0 commit comments

Comments
 (0)
0