File tree 3 files changed +38
-2
lines changed 3 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ def navbarify(node, navbar=None):
65
65
# no subrefs -> ignore
66
66
if not list_item .children [1 ].children :
67
67
continue
68
- # otherwise replace reference node by its own children
68
+ # otherwise replace reference node by an inline (so it can still be styled)
69
69
para = n .parent
70
70
para .remove (n )
71
- para .extend ( n .children )
71
+ para .append ( nodes . inline ( '' , '' , * n .children ) )
72
72
73
73
74
74
def resolve_content_toctree (
Original file line number Diff line number Diff line change @@ -9092,6 +9092,29 @@ main.index.animating .card {
9092
9092
width : 100% ;
9093
9093
height : 100% ;
9094
9094
}
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
+ }
9095
9118
hr .divider {
9096
9119
border-color : rgba (229 , 229 , 229 , 0.4 );
9097
9120
position : absolute;
Original file line number Diff line number Diff line change @@ -343,6 +343,19 @@ main.index {
343
343
.square (100% );
344
344
}
345
345
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
+
346
359
// Elements
347
360
// -----------------------------------------------
348
361
You can’t perform that action at this time.
0 commit comments