-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
114 lines (99 loc) · 1.75 KB
/
style.css
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
.container {
margin: auto;
max-width: 960px;
}
/* Standard table styling, change as desired */
table {
border-collapse: collapse;
border-spacing: 0;
}
caption {
font-size: 24px;
font-weight: 700;
text-align: left;
}
th {
border-bottom: 1px solid #bfc1c3;
font-size: 19px;
padding: 0.5em 1em 0.5em 0;
text-align: left;
}
td {
border-bottom: 1px solid #bfc1c3;
font-size: 19px;
padding: 0.5em 1em 0.5em 0;
}
/* Responsive table styling */
.responsive-table {
margin-bottom: 0;
width: 100%;
}
thead {
border: 0;
clip: rect(0 0 0 0);
-webkit-clip-path: inset(50%);
clip-path: inset(50%);
height: 1px;
margin: 0;
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
width: 1px;
}
tbody tr {
display: block;
margin-bottom: 1.5em;
padding: 0 0.5em;
}
tbody tr td {
display: block; /* browsers that don't support flex */
display: flex;
justify-content: space-between;
min-width: 1px;
text-align: right;
}
@media all and (-ms-high-contrast: none) { /* IE11 flex fix */
tbody tr td {
display: block;
}
}
.responsive-table__heading {
font-weight: 700;
padding-right: 1em;
text-align: left;
word-break: initial;
}
@media (max-width: 768px) {
tbody tr td {
padding-right: 0;
}
tbody tr td:last-child {
border-bottom: 0;
}
tbody tr {
border-bottom: 3px solid grey;
}
}
@media (min-width: 769px) {
thead {
clip: auto;
-webkit-clip-path: none;
clip-path: none;
display: table-header-group;
height: auto;
overflow: auto;
position: relative;
width: auto;
}
tbody tr {
display: table-row;
}
tbody tr td {
display: table-cell;
text-align: left;
}
.responsive-table__heading {
display: none;
}
}