-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
118 lines (99 loc) · 1.76 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
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
115
116
117
118
/* display loading gif and hide webpage */
.modal {
display: none;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba(255, 255, 255, 0.8)
url("https://i.stack.imgur.com/FhHRx.gif") 50% 50% no-repeat;
}
/* prevent scrollbar from display during load */
body.loading {
overflow: hidden;
}
/* display the modal when loading class is added to body */
body.loading .modal {
display: block;
}
/* max size images */
.container {
display: flex;
flex-direction: column;
}
.container input,
.container img,
.container canvas {
margin: 1rem;
box-sizing: border-box;
max-width: 100%;
height: auto;
}
.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
margin-top: 1rem;
}
/* .table */
.table.table--hidden {
display: none;
}
.table {
width: 100%;
max-width: 480px;
margin-bottom: 0;
}
.table caption {
text-align: left;
}
.table th,
.table td {
padding: 8px;
line-height: 20px;
text-align: left;
vertical-align: top;
border-top: 1px solid #ddd;
}
.table th {
font-weight: bold;
}
.table thead th {
vertical-align: bottom;
}
.table thead:first-child tr:first-child th,
.table thead:first-child tr:first-child td {
border-top: 0;
}
.table tbody + tbody {
border-top: 2px solid #ddd;
}
.table th,
.table td {
padding: 4px 5px;
}
@media (max-width: 480px) {
tr {
display: flex;
flex-direction: column;
border-top: 1px solid #ddd;
margin: 8px auto 0;
padding: 8px 0 0;
}
thead tr {
border-top: none;
padding: 0;
}
th,
td {
box-sizing: border-box;
border-top: none;
padding: 2px 8px;
width: 100% !important;
}
}
.table tbody > tr:nth-child(odd) > td,
.table tbody > tr:nth-child(odd) > th {
background-color: #f9f9f9;
}