-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
66 lines (58 loc) · 1.35 KB
/
styles.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
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
.table {
border-collapse: collapse;
width: 100%;
}
.table__heading,
.table__cell {
border: 1px solid #f4f4f4;
text-align: left;
padding: 0.5rem;
}
.table__row:nth-child(even) {
background-color: #eaeaea;
}
@media only screen and (max-width: 300px),
(min-device-width: 300px) and (max-device-width: 300px) {
/* Force table to not be like tables anymore */
.table,
.table * {
display: block;
}
/* Hide table headers (but not display: none;, for accessibility) */
.table__head {
position: absolute;
top: -9999px;
left: -9999px;
}
.table__cell {
display: block;
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
}
.table__cell::before {
content: attr(data-label);
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 50%;
left: 0.5rem;
transform: translateY(-50%);
width: 50%;
padding-right: 0.5rem;
white-space: nowrap;
}
}