Skip to content

Commit 3ad315b

Browse files
committed
Improve CSS layout of API reference
1 parent 54e08b7 commit 3ad315b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

doc/en/_themes/flask/static/flasky.css_t

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,56 @@ a:hover tt {
424424
background: #EEE;
425425
}
426426

427+
#reference div.section h2 {
428+
/* separate code elements in the reference section */
429+
border-top: 2px solid #ccc;
430+
padding-top: 0.5em;
431+
}
432+
427433
#reference div.section h3 {
428434
/* separate code elements in the reference section */
429435
border-top: 1px solid #ccc;
430436
padding-top: 0.5em;
431437
}
432438

439+
dl.class, dl.function {
440+
margin-top: 1em;
441+
margin-bottom: 1em;
442+
}
443+
444+
dl.class > dd {
445+
border-left: 3px solid #ccc;
446+
margin-left: 0px;
447+
padding-left: 30px;
448+
}
449+
450+
dl.field-list {
451+
flex-direction: column;
452+
}
453+
454+
dl.field-list dd {
455+
padding-left: 4em;
456+
border-left: 3px solid #ccc;
457+
margin-bottom: 0.5em;
458+
}
459+
460+
dl.field-list dd > ul {
461+
list-style: none;
462+
padding-left: 0px;
463+
}
464+
465+
dl.field-list dd > ul > li li :first-child {
466+
text-indent: 0;
467+
}
468+
469+
dl.field-list dd > ul > li :first-child {
470+
text-indent: -2em;
471+
padding-left: 0px;
472+
}
473+
474+
dl.field-list dd > p:first-child {
475+
text-indent: -2em;
476+
}
433477

434478
@media screen and (max-width: 870px) {
435479

0 commit comments

Comments
 (0)