-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastrek.css
126 lines (111 loc) · 2.42 KB
/
astrek.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
119
120
121
122
123
124
125
126
:root {
color-scheme: light dark;
--color: #ccc;
}
@media screen and (prefers-color-scheme: light) {
:root {
--background-color: #006199;
--bg-color-transparent: rgba(0, 97, 153, 0.81);
}
}
@media screen and (prefers-color-scheme: dark) {
:root {
--background-color: #002D62;
--bg-color-transparent: rgba(0, 45, 98, 0.87);
}
}
@media (max-width: 999px) {
:root {
--width: 100%;
--font-size: 2.7rem;
}
}
@media only screen and (min-width: 999px) and (max-width: 1400px) {
:root {
--width: 69%;
--font-size: 1.8rem;
}
}
@media (min-width: 1400px) {
:root {
--width: 42%;
--font-size: 1.5rem;
}
}
* {
box-sizing: border-box;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
border-radius: 0.6rem;
}
body {
padding: 0;
background-color: var(--background-color);
color: var(--color);
font-size: var(--font-size);
font-family: verdana;
}
header, section {
-webkit-user-select: none;
-webkit-touch-callout: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: var(--width);
margin: 0 auto;
padding: 0.9rem;
}
header {overflow: auto;}
h1, h3, th {display: none;}
h2, #next, #forecast_img, #marquee ul, table { margin: 0 auto; }
.center_align, h2, footer, #marquee ul {text-align: center;}
.right_align { text-align: right; }
footer { padding: 0.9rem; }
#def, #lat { font-size: 0.9rem; }
#def li, #def table { margin-top: 0.9rem; }
h2 {
font-size: 1.8rem;
position: absolute;
left: 0;
right: 0;
top: 1.8rem;
}
a {
color: #BAD7FF;
text-decoration: none;
}
#keys { border: 0.09rem dashed var(--color); }
#forecast_img {
width: 99%;
display: block;
}
svg {
width: 2.7rem;
height: 2.7rem;
fill: var(--color);
vertical-align: middle;
}
#marquee {
width:96%;
margin: -5.4rem auto 0.9rem auto;
position: relative;
overflow-x: scroll;
overflow-y: hidden;
white-space: nowrap;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none;
}
#marquee::-webkit-scrollbar { display: none }
#marquee ul {
list-style-type: none;
padding-left: 0;
}
#marquee li {
background-color: var(--bg-color-transparent);
cursor: pointer;
display: inline-block;
*display: inline;
*zoom: 1;
padding: 0.3rem;
}
#next_days table { width: 100%; }