Skip to content

Commit c6a358f

Browse files
committed
Improve table formatting for docs.
1 parent 3043b22 commit c6a358f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

docs/layouts/partials/header.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,48 @@
7474
font-weight:bold;
7575
}
7676

77+
table {
78+
width: 100%;
79+
max-width: 100%;
80+
margin-bottom: 21px;
81+
}
82+
83+
table > thead > tr > th,
84+
table > tbody > tr > th,
85+
table > tfoot > tr > th,
86+
table > thead > tr > td,
87+
table > tbody > tr > td,
88+
table > tfoot > tr > td {
89+
padding: 8px;
90+
line-height: 1.42857143;
91+
vertical-align: top;
92+
border-top: 1px solid #dddddd;
93+
}
94+
table > thead > tr > th {
95+
vertical-align: bottom;
96+
border-bottom: 2px solid #dddddd;
97+
}
98+
table > caption + thead > tr:first-child > th,
99+
table > colgroup + thead > tr:first-child > th,
100+
table > thead:first-child > tr:first-child > th,
101+
table > caption + thead > tr:first-child > td,
102+
table > colgroup + thead > tr:first-child > td,
103+
table > thead:first-child > tr:first-child > td {
104+
border-top: 0;
105+
}
106+
table > tbody + tbody {
107+
border-top: 2px solid #ecf0f1;
108+
}
109+
table table {
110+
background-color: #ffffff;
111+
}
112+
table > tbody > tr:nth-of-type(odd) {
113+
background-color: #f9f9f9;
114+
}
115+
table > tbody > tr:hover {
116+
background-color: #f5f5f5;
117+
}
118+
77119
/* Format the right-side menu */
78120
#menu {
79121
margin-top:50px;

0 commit comments

Comments
 (0)