forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.scss
64 lines (55 loc) · 1.22 KB
/
tables.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.markdown-body table {
border-collapse: collapse;
position: relative;
font-size: 90%;
/* We want to keep table-layout: auto so that column widths dynamically adjust;
otherwise entries get needlessly smushed into narrow columns. As a workaround,
we use javascripts/wrap-code-terms.js to prevent some reference table content
from expanding beyond the horizontal boundaries of the parent element. */
table-layout: auto;
code {
font-size: 100%;
background: none;
padding: 0;
font-weight: bold;
}
thead tr {
border: none;
}
th {
font-weight: normal;
text-align: left;
position: sticky;
vertical-align: top;
z-index: 1;
top: 0;
background: white;
box-shadow: 0 3px 0 0 $gray-400;
padding: 12px 8px;
border: 0px;
}
th:first-child,
td:first-child {
padding-left: 0;
}
td {
padding: 10px 8px;
border: 0px;
vertical-align: top;
}
// markdown that has been converted to HTML is often wrapped in <p> tags
// don't let it interfere with the spacing
td p {
padding: 0;
margin: 0;
}
tr:nth-child(2n) {
background: none;
}
td.has-nested-table {
width: 100%;
table.slim {
table-layout: auto;
}
}
}