-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_stack.scss
93 lines (71 loc) · 1.03 KB
/
_stack.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
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
.stack {
margin: auto;
max-width: 100%;
border-spacing: 10px;
color: #282828;
font-size: 20px;
td {
background-color:#fff9a6;
// width: 80px;
padding: 4px;
outline: 1px solid rgba(0, 0, 0, .3);
}
th {
padding: 4px;
text-align: left;
font-weight: normal;
}
.empty {
background-color: inherit;
outline: inherit;
}
}
@media(max-width: 600px) {
.stack {
font-size: 16px;
display: inline-block;
border-spacing: 0;
tbody {
display: block;
}
tr {
display: block;
text-align: left;
vertical-align: top;
position: relative;
}
td {
margin: 30px 0 10px;
text-align: center;
padding: 4px;
display: inline-block;
width: 90px;
}
td[colspan="4"] {
width: 360px;
}
td[colspan="2"] {
width: 180px;
}
th {
position: absolute;
top: 0;
width: 100%;
}
}
}
@media(max-width: 320px) {
.stack {
font-size: 12px;
td {
margin: 20px 0 5px;
width: 80px;
}
td[colspan="4"] {
width: 320px;
}
td[colspan="2"] {
width: 160px;
}
}
}