-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
88 lines (73 loc) · 1.32 KB
/
main.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
.option {
text-align: center;
}
table,
td,
th {
border: 1px solid;
}
@media only screen and
(min-device-width: 1024px) {
table {
width: 50%;
border-collapse: collapse;
margin-left: auto;
margin-right: auto;
}
}
.dark-mode {
background-color: black;
color: white;
}
button {
float: right;
}
tr:nth-of-type(even) {
background: #eee;
}
/*Retrieved from https: //css-tricks.com/responsive-data-tables/*/
@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {
table,
thead,
tbody,
th,
td,
tr {
display: block;
}
.header{
display: none;
}
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
tr {
border: 1px solid #ccc;
}
td {
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
}
td:before {
position: absolute;
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
}
td:nth-of-type(1):before {
content: "Title";
}
td:nth-of-type(2):before {
content: "Address";
}
td:nth-of-type(3):before {
content: "Suggestion(s)";
}
}