]>
Commit | Line | Data |
---|---|---|
09763dbf BW |
1 | $primary-color: #3367d6; |
2 | $secondary-color: #4285f4; | |
3 | ||
5323df4a BW |
4 | |
5 | // /!\ Keep background colors sync with `theme-color` meta info | |
6 | $theme-light: ( | |
7 | background: #f5f5f5, | |
8 | card-background: #ffffff, | |
9 | text: #363636, | |
10 | text-title: #303030, | |
11 | text-subtitle: #424242, | |
ab3366ba | 12 | card-shadow: rgba(0, 0, 0, 0.1), |
13 | a-hover: #363636 | |
5323df4a BW |
14 | ); |
15 | $theme-dark: ( | |
16 | background: #131313, | |
17 | card-background: #2b2b2b, | |
18 | text: #eaeaea, | |
19 | text-title: #fafafa, | |
20 | text-subtitle: #f5f5f5, | |
ab3366ba | 21 | card-shadow: rgba(0, 0, 0, 0.4), |
22 | a-hover: #ffdd57 | |
5323df4a BW |
23 | ); |
24 | ||
25 | ||
26 | ||
27 | @mixin theme($theme) { | |
28 | background-color: map-get($theme, "background"); | |
29 | color: map-get($theme, "text"); | |
ab3366ba | 30 | a { |
31 | &:hover { | |
32 | color: map-get($theme, "a-hover"); | |
33 | } | |
34 | } | |
35 | ||
5323df4a BW |
36 | .title { |
37 | color: map-get($theme, "text-title"); | |
38 | } | |
39 | .subtitle { | |
40 | color: map-get($theme, "text-subtitle"); | |
41 | } | |
42 | ||
43 | .card { | |
44 | background-color: map-get($theme, "card-background"); | |
45 | box-shadow: 0 2px 15px 0 map-get($theme, "card-shadow"); | |
46 | &:hover { | |
47 | background-color: map-get($theme, "card-background"); | |
48 | } | |
49 | } | |
50 | ||
51 | .footer { | |
52 | background-color: map-get($theme, "card-background"); | |
53 | box-shadow: 0 2px 15px 0 map-get($theme, "card-shadow"); | |
54 | } | |
55 | } | |
56 | ||
57 | html { | |
58 | height: 100%; | |
59 | } | |
e41196e7 | 60 | |
09763dbf BW |
61 | body { |
62 | font-family: 'Raleway', sans-serif; | |
5323df4a BW |
63 | height: 100%; |
64 | ||
65 | #app { | |
66 | min-height: 100%; | |
67 | transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; | |
68 | ||
69 | // Default theme | |
70 | @include theme($theme-light); | |
71 | ||
72 | // System pref theme | |
73 | @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) { | |
74 | @include theme($theme-light); | |
75 | } | |
76 | @media (prefers-color-scheme: dark) { | |
77 | @include theme($theme-dark); | |
78 | } | |
79 | ||
80 | // User override theme | |
81 | &.is-light { | |
82 | @include theme($theme-light); | |
83 | } | |
84 | &.is-dark { | |
85 | @include theme($theme-dark); | |
86 | } | |
87 | } | |
09763dbf BW |
88 | |
89 | h1, h2, h3, h4, h5, h6 { | |
90 | font-family: 'Lato', sans-serif; | |
91 | } | |
92 | ||
93 | h1 { | |
94 | font-size: 2rem; | |
95 | } | |
96 | ||
97 | h2 { | |
98 | font-size: 1.7rem; | |
4877ec98 | 99 | margin-top: 2rem; |
09763dbf BW |
100 | margin-bottom: 1rem; |
101 | ||
e41196e7 | 102 | .fas, .fab, .far { |
09763dbf | 103 | margin-right: 10px; |
09763dbf BW |
104 | } |
105 | ||
106 | span { | |
107 | font-weight: bold; | |
108 | color: $secondary-color; | |
109 | } | |
110 | } | |
111 | ||
112 | [v-cloak] { | |
113 | display: none | |
114 | } | |
115 | ||
116 | #bighead { | |
117 | color: #ffffff; | |
118 | ||
119 | .dashboard-title { | |
120 | padding: 6px 0 0 80px; | |
121 | } | |
122 | ||
123 | .first-line { | |
124 | height: 100px; | |
125 | vertical-align: center; | |
126 | background-color: $primary-color; | |
127 | ||
128 | h1 { | |
129 | margin-top: -12px; | |
130 | font-size: 2rem; | |
131 | } | |
132 | ||
133 | .headline { | |
134 | margin-top: 5px; | |
135 | font-size: 0.9rem; | |
136 | } | |
137 | ||
138 | .container { | |
139 | height: 80px; | |
140 | padding: 10px 0; | |
141 | } | |
142 | ||
e41196e7 | 143 | .logo { |
09763dbf | 144 | float: left; |
e41196e7 BW |
145 | i { |
146 | vertical-align: top; | |
147 | padding: 8px 15px; | |
148 | font-size: 50px | |
149 | } | |
150 | ||
151 | img { | |
152 | padding: 10px; | |
153 | max-height: 70px; | |
154 | max-width: 70px; | |
155 | } | |
09763dbf BW |
156 | } |
157 | } | |
158 | .navbar { | |
159 | background-color: $secondary-color; | |
160 | ||
161 | a { | |
e41196e7 | 162 | color: #ffffff; |
56c69e0d | 163 | &:hover, &:focus { |
ab3366ba | 164 | color: #ffffff; |
09763dbf BW |
165 | background-color: lighten( $secondary-color, 5% ); |
166 | } | |
167 | } | |
168 | } | |
169 | } | |
170 | ||
171 | #main-section { | |
5323df4a | 172 | margin-bottom: 2rem; |
09763dbf BW |
173 | padding: 0; |
174 | ||
175 | h2 { | |
176 | border-bottom: 1px dashed #ccc; | |
177 | padding-bottom: 10px; | |
178 | } | |
179 | ||
180 | .title { | |
181 | font-size: 1.1em; | |
182 | } | |
183 | ||
184 | .subtitle { | |
185 | font-size: .9em; | |
e41196e7 BW |
186 | white-space: nowrap; |
187 | overflow: hidden; | |
188 | text-overflow: ellipsis; | |
09763dbf BW |
189 | } |
190 | ||
9baec9ae | 191 | .container { |
09763dbf BW |
192 | padding: 1.2rem .75rem; |
193 | } | |
194 | ||
195 | .message { | |
196 | margin-top: 45px; | |
197 | box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); | |
198 | ||
199 | .message-header { | |
200 | font-weight: bold; | |
201 | } | |
202 | ||
203 | .message-body { | |
204 | border: none; | |
205 | } | |
206 | } | |
207 | } | |
208 | ||
209 | .media-content { | |
210 | overflow: inherit; | |
211 | } | |
212 | ||
213 | .tag { | |
214 | color: $secondary-color; | |
215 | background-color: $secondary-color; | |
216 | position: absolute; | |
217 | top: 1rem; | |
9baec9ae | 218 | right: -0.2rem; |
09763dbf BW |
219 | width: 3px; |
220 | overflow: hidden; | |
221 | transition: all 0.2s ease-out; | |
222 | padding: 0; | |
a2fdb8a9 | 223 | |
224 | .tag-text { | |
225 | display: none; | |
226 | } | |
09763dbf BW |
227 | } |
228 | ||
229 | .card { | |
230 | border-radius: 5px; | |
231 | border: none; | |
232 | box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); | |
4877ec98 BW |
233 | transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; |
234 | ||
235 | a { | |
236 | outline: none; | |
237 | } | |
09763dbf BW |
238 | } |
239 | ||
240 | .card:hover { | |
09763dbf BW |
241 | transform: translate(0, -3px); |
242 | ||
243 | .tag { | |
244 | width: auto; | |
245 | color: #ffffff; | |
246 | padding: 0 0.75em; | |
a2fdb8a9 | 247 | |
248 | .tag-text { | |
249 | display: block; | |
250 | } | |
09763dbf BW |
251 | } |
252 | } | |
253 | ||
254 | .card-content { | |
e41196e7 BW |
255 | height: 85px; |
256 | padding: 1.3rem; | |
09763dbf BW |
257 | } |
258 | ||
4877ec98 BW |
259 | .layout-vertical { |
260 | .card { | |
261 | border-radius: 0; | |
262 | } | |
263 | ||
264 | .column div:first-of-type .card { | |
265 | border-radius: 5px 5px 0 0; | |
266 | } | |
267 | ||
268 | .column div:last-child .card { | |
269 | border-radius: 0 0 5px 5px; | |
270 | } | |
271 | } | |
272 | ||
09763dbf BW |
273 | .footer { |
274 | position: fixed; | |
275 | left: 0; | |
276 | right: 0; | |
277 | bottom: 0; | |
4877ec98 | 278 | padding: 0.5rem; |
09763dbf | 279 | text-align: left; |
4877ec98 BW |
280 | color: #676767; |
281 | font-size: 0.85rem; | |
5323df4a | 282 | transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; |
09763dbf BW |
283 | } |
284 | ||
285 | .search-bar { | |
286 | position: relative; | |
4877ec98 | 287 | display: inline-block; |
09763dbf BW |
288 | #search { |
289 | border: none; | |
290 | background-color: lighten( $secondary-color, 6% ); | |
291 | border-radius: 5px; | |
292 | padding: 2px 12px 2px 30px; | |
293 | margin: 10px 0; | |
294 | transition: all 100ms linear; | |
295 | color: #ffffff; | |
296 | height: 30px; | |
297 | width: 100px; | |
298 | ||
299 | ||
300 | &:focus { | |
301 | color: #000000; | |
302 | width: 250px; | |
303 | background-color: #ffffff; | |
304 | } | |
305 | } | |
306 | ||
307 | .search-label::before { | |
a0e2769a | 308 | font-family: 'Font Awesome 5 Free'; |
09763dbf BW |
309 | position: absolute; |
310 | top: 12px; | |
311 | left: 8px; | |
312 | content: "\f002"; | |
a0e2769a | 313 | font-weight: 900; |
09763dbf BW |
314 | width: 20px; |
315 | height: 20px; | |
316 | } | |
317 | ||
318 | &:focus-within .search-label::before { | |
319 | color: #4a4a4a; | |
320 | } | |
321 | } | |
322 | ||
4877ec98 BW |
323 | .icon-button { |
324 | display: inline-block; | |
325 | } | |
326 | ||
9baec9ae BW |
327 | .offline-message { |
328 | text-align: center; | |
329 | margin: 35px 0; | |
330 | ||
331 | i { | |
332 | font-size: 2rem; | |
333 | } | |
334 | ||
335 | i.fa-redo-alt { | |
336 | font-size: 1.3rem; | |
337 | line-height: 1rem; | |
338 | vertical-align: middle; | |
339 | cursor: pointer; | |
340 | color: #3273dc; | |
341 | } | |
342 | } | |
343 | ||
09763dbf | 344 | } |