diff options
Diffstat (limited to 'src/static/style.css')
-rw-r--r-- | src/static/style.css | 183 |
1 files changed, 183 insertions, 0 deletions
diff --git a/src/static/style.css b/src/static/style.css new file mode 100644 index 0000000..1ea44f5 --- /dev/null +++ b/src/static/style.css | |||
@@ -0,0 +1,183 @@ | |||
1 | @charset "UTF-8"; | ||
2 | |||
3 | :root { | ||
4 | /* Set sans-serif & mono fonts */ | ||
5 | --sans-font: Inter, Lato,Helvetica,"IBM Plex Sans","Roboto","Nimbus Sans L","Noto Sans", "Segoe UI",Arial,Helvetica,"Helvetica Neue",sans-serif; | ||
6 | --mono-font: "mononoki Nerd Font","IBM Plex Mono","Roboto Mono","Ubuntu Mono","Fira Code","Overpass Mono", Monaco,"Droid Sans Mono",monospace; | ||
7 | --bg: #242933; | ||
8 | --accent-bg: rgb(46, 52, 64); | ||
9 | --text: #eceff4; | ||
10 | --text-light: #d8dee9; | ||
11 | --border: #88c0d0; | ||
12 | --accent: #81a1c1; | ||
13 | --accent-light: #bf616a; | ||
14 | --code: #ebcb8b; | ||
15 | --alert: #a3be8c; | ||
16 | --alert-bg: #8fbcbb; | ||
17 | --code-bg: #2e3440; | ||
18 | } | ||
19 | |||
20 | |||
21 | html, body, .container { | ||
22 | background: var(--bg); | ||
23 | color: var(--text); | ||
24 | font-family: var(--sans-font); | ||
25 | box-sizing: border-box; | ||
26 | height: 100%; | ||
27 | width: 100%; | ||
28 | font-size: 12pt; | ||
29 | } | ||
30 | |||
31 | .index-title { | ||
32 | display: flex; | ||
33 | align-self: center; | ||
34 | justify-content: center; | ||
35 | width: 100%; | ||
36 | |||
37 | } | ||
38 | |||
39 | .content-noborder { | ||
40 | display: flex; | ||
41 | align-items: center; | ||
42 | align-content: flex-start; | ||
43 | flex-flow: row wrap; | ||
44 | margin: 2%; | ||
45 | height: auto; | ||
46 | justify-content: center; | ||
47 | } | ||
48 | |||
49 | .content { | ||
50 | display: flex; | ||
51 | align-items: center; | ||
52 | align-content: flex-start; | ||
53 | flex-flow: row wrap; | ||
54 | margin: 2%; | ||
55 | border-radius: 15px; | ||
56 | height: auto; | ||
57 | justify-content: center; | ||
58 | border: 3px solid var(--accent); | ||
59 | } | ||
60 | |||
61 | div.searchbar { | ||
62 | display: flex; | ||
63 | align-items: left; | ||
64 | justify-content: left; | ||
65 | margin-left: 5px; | ||
66 | width: 100%; | ||
67 | margin-top: 1%; | ||
68 | } | ||
69 | |||
70 | div.current { | ||
71 | display: flex; | ||
72 | flex-flow: row nowrap; | ||
73 | align-items: flex-start; | ||
74 | justify-content: center; | ||
75 | } | ||
76 | |||
77 | div.current-info { | ||
78 | display: flex; | ||
79 | flex-flow: column nowrap; | ||
80 | margin-right: 10%; | ||
81 | flex-shrink: 0; | ||
82 | } | ||
83 | |||
84 | div.current-icon { | ||
85 | display: flex; | ||
86 | margin-left: 10%; | ||
87 | flex-shrink: 0; | ||
88 | } | ||
89 | |||
90 | img.weather-icon { | ||
91 | display: flex; | ||
92 | filter: invert(97%) sepia(23%) saturate(6990%) hue-rotate(304deg) brightness(116%) contrast(84%); | ||
93 | } | ||
94 | |||
95 | img.wind-icon { | ||
96 | filter: invert(94%) sepia(11%) saturate(78%) hue-rotate(179deg) brightness(101%) contrast(93%); | ||
97 | } | ||
98 | |||
99 | div.current-temp { | ||
100 | display: inline-block; | ||
101 | font-size: 18pt; | ||
102 | text-align: left; | ||
103 | } | ||
104 | |||
105 | div.current-weather { | ||
106 | display: inline-block; | ||
107 | font-size: 16pt; | ||
108 | margin-bottom: 5px; | ||
109 | text-align: left; | ||
110 | } | ||
111 | |||
112 | div.current-wind { | ||
113 | display: inline-block; | ||
114 | font-size: 14pt; | ||
115 | text-align: left; | ||
116 | } | ||
117 | |||
118 | div.current-sunrise, div.current-sunset { | ||
119 | display: inline-block; | ||
120 | font-size: 14pt; | ||
121 | } | ||
122 | |||
123 | div.forecast-header { | ||
124 | width: 100%; | ||
125 | display: flex; | ||
126 | flex-grow: 0; | ||
127 | flex-shrink: 1; | ||
128 | max-height: 10%; | ||
129 | } | ||
130 | h2.forecast-header { | ||
131 | margin-left: 5px; | ||
132 | margin-right: 5px; | ||
133 | border-bottom: 1px solid; | ||
134 | width: 100% | ||
135 | } | ||
136 | |||
137 | div.daily, div.hourly { | ||
138 | display: flex; | ||
139 | flex-flow: row nowrap; | ||
140 | align-items: center; | ||
141 | overflow-x: scroll; | ||
142 | overflow-y: hidden; | ||
143 | white-space: nowrap; | ||
144 | width: 100%; | ||
145 | margin-left: 5px; | ||
146 | height: auto; | ||
147 | } | ||
148 | |||
149 | div.hourly-box, div.daily-box { | ||
150 | display: flex; | ||
151 | flex-flow: row wrap; | ||
152 | flex-shrink: 0; | ||
153 | align-items: flex-start; | ||
154 | overflow-wrap: normal; | ||
155 | min-width: 20%; | ||
156 | margin: 5px; | ||
157 | } | ||
158 | |||
159 | div.hourly-icon, div.daily-icon { | ||
160 | display: inline-block; | ||
161 | } | ||
162 | |||
163 | input, select, textarea { | ||
164 | margin: 5px; | ||
165 | padding: 5px; | ||
166 | color: var(--text); | ||
167 | border: 1px solid var(--border); | ||
168 | border-radius: 6px; | ||
169 | border-color: var(--border); | ||
170 | background-color: var(--bg); | ||
171 | min-height: 25px; | ||
172 | line-height: 25px; | ||
173 | vertical-align: middle; | ||
174 | } | ||
175 | |||
176 | input:disabled, select:disabled { | ||
177 | color: #aaa; | ||
178 | border-color: var(--border); | ||
179 | } | ||
180 | |||
181 | button { | ||
182 | font-family: var(--sans-font); | ||
183 | } | ||