Skip to content

Commit aae124b

Browse files
committed
update CSS of tables
1 parent 3ca7206 commit aae124b

File tree

1 file changed

+62
-26
lines changed

1 file changed

+62
-26
lines changed

doc/_static/mpl.css

Lines changed: 62 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,6 @@ p {
290290
margin: 0.8em 0 0.8em 0;
291291
}
292292

293-
p.rubric {
294-
font-weight: bold;
295-
}
296-
297293
h1 {
298294
margin: 0.5em 0em;
299295
padding-top: 0.5em;
@@ -618,12 +614,51 @@ ul.keywordmatches li.goodmatch a {
618614
table.docutils {
619615
border-spacing: 2px;
620616
border-collapse: collapse;
621-
border-top-width: 1px;
622-
border-right-width: 0px;
623-
border-bottom-width: 1px;
624-
border-left-width: 0px;
617+
border: 0px;
618+
}
619+
620+
table.docutils th {
621+
border-width: 1px 0px;
622+
border-color: #888;
623+
background-color: #f0f0f0;
624+
width: 100px;
625+
}
626+
627+
table.docutils td {
628+
border-width: 1px 0px;
629+
border-color: #ccc;
625630
}
626631

632+
table.docutils tr:last-of-type td {
633+
border-bottom-color: #888;
634+
}
635+
636+
/* Section titles within classes */
637+
dl.class p.rubric {
638+
font-size: 16px;
639+
}
640+
641+
/* Attribute tables */
642+
dl.class p.rubric + table.docutils {
643+
margin-left: 0px;
644+
margin-right: 0px;
645+
margin-bottom: 1.5em;
646+
border-top: 1px solid #888;
647+
border-bottom: 1px solid #888;
648+
}
649+
650+
dl.class p.rubric + table.docutils td {
651+
padding-left: 0px;
652+
border-color: #ccc;
653+
}
654+
655+
dl.class p.rubric + table.docutils td:first-of-type > strong {
656+
font-family: monospace;
657+
font-size: 14px;
658+
font-weight: normal;
659+
}
660+
661+
627662
/* module summary table */
628663
.longtable.docutils {
629664
font-size: 12px;
@@ -640,17 +675,29 @@ table.docutils {
640675
/* tables inside parameter descriptions */
641676
td.field-body table.property-table {
642677
width: 100%;
678+
border-spacing: 2px;
679+
border-collapse: collapse;
680+
border: 0px;
643681
}
644682

645683
td.field-body table.property-table th {
646684
padding: 2px 10px;
647-
border: 0;
685+
border-width: 1px 0px;
686+
border-color: #888;
687+
background-color: #f0f0f0;
648688
}
649689

650690
td.field-body table.property-table td {
651691
padding: 2px 10px;
692+
border-width: 1px 0px;
693+
border-color: #ccc;
652694
}
653695

696+
td.field-body table.property-table tr:last-of-type td {
697+
border-bottom-color: #888;
698+
}
699+
700+
654701
/* function and class description */
655702
.descclassname {
656703
color: #aaa;
@@ -661,18 +708,6 @@ td.field-body table.property-table td {
661708
font-family: monospace;
662709
}
663710

664-
665-
table.docutils th {
666-
padding: 1px 8px 1px 5px;
667-
background-color: #eee;
668-
width: 100px;
669-
}
670-
671-
table.docutils td {
672-
border-width: 1px 0 1px 0;
673-
}
674-
675-
676711
/*** function and class description ***/
677712
/* top-level definitions */
678713
dl.class, dl.function {
@@ -728,29 +763,30 @@ dl.class > dd {
728763
font-size: 14px;
729764
}
730765

766+
/* parameter section table */
731767
table.docutils.field-list {
732768
width: 100%;
733769
}
734-
735-
.docutils.field-list th {
770+
.docutils.field-list th.field-name {
736771
background-color: #eee;
737772
padding: 10px;
738773
text-align: left;
739774
vertical-align: top;
740775
width: 125px;
741776
}
742-
.docutils.field-list td {
777+
.docutils.field-list td.field-body {
743778
padding: 10px 10px 10px 20px;
744779
text-align: left;
745780
vertical-align: top;
746781
}
747-
.docutils.field-list td blockquote p {
782+
.docutils.field-list td.field-body blockquote p {
748783
font-size: 13px;
749784
line-height: 18px;
750785
}
751-
.docutils.field-list td blockquote p ul li{
786+
.docutils.field-list td.field-body blockquote p ul li{
752787
font-size: 13px;
753788
}
789+
754790
p.rubric {
755791
font-weight: bold;
756792
font-size: 19px;

0 commit comments

Comments
 (0)