aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2020-03-25 22:58:24 -0700
committerBastien Wirtz <bastien.wirtz@gmail.com>2020-03-25 23:03:36 -0700
commit0503e77861fcdfeaf20e1cc06dbc2f49d06bc45b (patch)
treeaa2dbcbcdb2c668494d7f6b6a491127c9fdd82c7
parent4aeaeb09add6448a29447e3ad438e7f478e487f4 (diff)
downloadhomer-0503e77861fcdfeaf20e1cc06dbc2f49d06bc45b.tar.gz
homer-0503e77861fcdfeaf20e1cc06dbc2f49d06bc45b.tar.zst
homer-0503e77861fcdfeaf20e1cc06dbc2f49d06bc45b.zip
Change message box background according to the theme.
-rw-r--r--app.css637
-rw-r--r--app.scss7
2 files changed, 290 insertions, 354 deletions
diff --git a/app.css b/app.css
index 60b41e8..0b3ea23 100644
--- a/app.css
+++ b/app.css
@@ -1,372 +1,301 @@
1@charset "UTF-8";
2/* raleway-regular - latin */ 1/* raleway-regular - latin */
3@font-face { 2@font-face {
4 font-family: "Raleway"; 3 font-family: 'Raleway';
5 font-style: normal; 4 font-style: normal;
6 font-weight: 400; 5 font-weight: 400;
7 font-display: swap; 6 font-display: swap;
8 src: local("Raleway"), local("Raleway-Regular"), url("./webfonts/raleway/raleway-v14-latin-regular.woff2") format("woff2"), url("./webfonts/raleway/raleway-v14-latin-regular.woff") format("woff"); 7 src: local("Raleway"), local("Raleway-Regular"), url("./webfonts/raleway/raleway-v14-latin-regular.woff2") format("woff2"), url("./webfonts/raleway/raleway-v14-latin-regular.woff") format("woff");
9 /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ 8 /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ }
10} 9
11/* lato-regular - latin */ 10/* lato-regular - latin */
12@font-face { 11@font-face {
13 font-family: "Lato"; 12 font-family: 'Lato';
14 font-style: normal; 13 font-style: normal;
15 font-weight: 400; 14 font-weight: 400;
16 font-display: swap; 15 font-display: swap;
17 src: local("Lato Regular"), local("Lato-Regular"), url("./webfonts/lato/lato-v16-latin-regular.woff2") format("woff2"), url("./webfonts/lato/lato-v16-latin-regular.woff") format("woff"); 16 src: local("Lato Regular"), local("Lato-Regular"), url("./webfonts/lato/lato-v16-latin-regular.woff2") format("woff2"), url("./webfonts/lato/lato-v16-latin-regular.woff") format("woff");
18 /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ 17 /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ }
19} 18
20html { 19html {
21 height: 100%; 20 height: 100%; }
22}
23 21
24body { 22body {
25 font-family: "Raleway", sans-serif; 23 font-family: 'Raleway', sans-serif;
26 height: 100%; 24 height: 100%; }
27}
28body #app {
29 min-height: 100%;
30 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
31 background-color: #f5f5f5;
32 color: #363636;
33}
34body #app a:hover {
35 color: #363636;
36}
37body #app .title {
38 color: #303030;
39}
40body #app .subtitle {
41 color: #424242;
42}
43body #app .card {
44 background-color: #ffffff;
45 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
46}
47body #app .card:hover {
48 background-color: #ffffff;
49}
50body #app .footer {
51 background-color: #ffffff;
52 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
53}
54@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
55 body #app { 25 body #app {
26 min-height: 100%;
27 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
56 background-color: #f5f5f5; 28 background-color: #f5f5f5;
57 color: #363636; 29 color: #363636; }
58 } 30 body #app a:hover {
59 body #app a:hover { 31 color: #363636; }
60 color: #363636; 32 body #app .title {
61 } 33 color: #303030; }
62 body #app .title { 34 body #app .subtitle {
63 color: #303030; 35 color: #424242; }
64 } 36 body #app .card {
65 body #app .subtitle { 37 background-color: #ffffff;
66 color: #424242; 38 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); }
67 } 39 body #app .card:hover {
68 body #app .card { 40 background-color: #ffffff; }
69 background-color: #ffffff; 41 body #app .message {
42 background-color: #ffffff; }
43 body #app .message .message-body {
44 color: #363636; }
45 body #app .footer {
46 background-color: #ffffff;
47 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); }
48 @media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
49 body #app {
50 background-color: #f5f5f5;
51 color: #363636; }
52 body #app a:hover {
53 color: #363636; }
54 body #app .title {
55 color: #303030; }
56 body #app .subtitle {
57 color: #424242; }
58 body #app .card {
59 background-color: #ffffff;
60 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); }
61 body #app .card:hover {
62 background-color: #ffffff; }
63 body #app .message {
64 background-color: #ffffff; }
65 body #app .message .message-body {
66 color: #363636; }
67 body #app .footer {
68 background-color: #ffffff;
69 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); } }
70 @media (prefers-color-scheme: dark) {
71 body #app {
72 background-color: #131313;
73 color: #eaeaea; }
74 body #app a:hover {
75 color: #ffdd57; }
76 body #app .title {
77 color: #fafafa; }
78 body #app .subtitle {
79 color: #f5f5f5; }
80 body #app .card {
81 background-color: #2b2b2b;
82 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4); }
83 body #app .card:hover {
84 background-color: #2b2b2b; }
85 body #app .message {
86 background-color: #2b2b2b; }
87 body #app .message .message-body {
88 color: #eaeaea; }
89 body #app .footer {
90 background-color: #2b2b2b;
91 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4); } }
92 body #app.is-light {
93 background-color: #f5f5f5;
94 color: #363636; }
95 body #app.is-light a:hover {
96 color: #363636; }
97 body #app.is-light .title {
98 color: #303030; }
99 body #app.is-light .subtitle {
100 color: #424242; }
101 body #app.is-light .card {
102 background-color: #ffffff;
103 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); }
104 body #app.is-light .card:hover {
105 background-color: #ffffff; }
106 body #app.is-light .message {
107 background-color: #ffffff; }
108 body #app.is-light .message .message-body {
109 color: #363636; }
110 body #app.is-light .footer {
111 background-color: #ffffff;
112 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); }
113 body #app.is-dark {
114 background-color: #131313;
115 color: #eaeaea; }
116 body #app.is-dark a:hover {
117 color: #ffdd57; }
118 body #app.is-dark .title {
119 color: #fafafa; }
120 body #app.is-dark .subtitle {
121 color: #f5f5f5; }
122 body #app.is-dark .card {
123 background-color: #2b2b2b;
124 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4); }
125 body #app.is-dark .card:hover {
126 background-color: #2b2b2b; }
127 body #app.is-dark .message {
128 background-color: #2b2b2b; }
129 body #app.is-dark .message .message-body {
130 color: #eaeaea; }
131 body #app.is-dark .footer {
132 background-color: #2b2b2b;
133 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4); }
134 body h1, body h2, body h3, body h4, body h5, body h6 {
135 font-family: 'Lato', sans-serif; }
136 body h1 {
137 font-size: 2rem; }
138 body h2 {
139 font-size: 1.7rem;
140 margin-top: 2rem;
141 margin-bottom: 1rem; }
142 body h2 .fas, body h2 .fab, body h2 .far {
143 margin-right: 10px; }
144 body h2 span {
145 font-weight: bold;
146 color: #4285f4; }
147 body [v-cloak] {
148 display: none; }
149 body #bighead {
150 color: #ffffff; }
151 body #bighead .dashboard-title {
152 padding: 6px 0 0 80px; }
153 body #bighead .first-line {
154 height: 100px;
155 vertical-align: center;
156 background-color: #3367d6; }
157 body #bighead .first-line h1 {
158 margin-top: -12px;
159 font-size: 2rem; }
160 body #bighead .first-line .headline {
161 margin-top: 5px;
162 font-size: 0.9rem; }
163 body #bighead .first-line .container {
164 height: 80px;
165 padding: 10px 0; }
166 body #bighead .first-line .logo {
167 float: left; }
168 body #bighead .first-line .logo i {
169 vertical-align: top;
170 padding: 8px 15px;
171 font-size: 50px; }
172 body #bighead .first-line .logo img {
173 padding: 10px;
174 max-height: 70px;
175 max-width: 70px; }
176 body #bighead .navbar, body #bighead .navbar-menu {
177 background-color: #4285f4; }
178 body #bighead .navbar a, body #bighead .navbar-menu a {
179 color: #ffffff; }
180 body #bighead .navbar a:hover, body #bighead .navbar a:focus, body #bighead .navbar-menu a:hover, body #bighead .navbar-menu a:focus {
181 color: #ffffff;
182 background-color: #5a95f5; }
183 body #bighead .navbar-end {
184 text-align: right; }
185 body #main-section {
186 margin-bottom: 2rem;
187 padding: 0; }
188 body #main-section h2 {
189 border-bottom: 1px dashed #ccc;
190 padding-bottom: 10px; }
191 body #main-section .title {
192 font-size: 1.1em; }
193 body #main-section .subtitle {
194 font-size: .9em;
195 white-space: nowrap;
196 overflow: hidden;
197 text-overflow: ellipsis; }
198 body #main-section .container {
199 padding: 1.2rem .75rem; }
200 body #main-section .message {
201 margin-top: 45px;
202 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); }
203 body #main-section .message .message-header {
204 font-weight: bold; }
205 body #main-section .message .message-body {
206 border: none; }
207 body .media-content {
208 overflow: inherit; }
209 body .tag {
210 color: #4285f4;
211 background-color: #4285f4;
212 position: absolute;
213 top: 1rem;
214 right: -0.2rem;
215 width: 3px;
216 overflow: hidden;
217 transition: all 0.2s ease-out;
218 padding: 0; }
219 body .tag .tag-text {
220 display: none; }
221 body .card {
222 border-radius: 5px;
223 border: none;
70 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); 224 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
71 } 225 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; }
72 body #app .card:hover { 226 body .card a {
73 background-color: #ffffff; 227 outline: none; }
74 } 228 body .card:hover {
75 body #app .footer { 229 transform: translate(0, -3px); }
76 background-color: #ffffff; 230 body .card:hover .tag {
77 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); 231 width: auto;
78 } 232 color: #ffffff;
79} 233 padding: 0 0.75em; }
80@media (prefers-color-scheme: dark) { 234 body .card:hover .tag .tag-text {
81 body #app { 235 display: block; }
82 background-color: #131313; 236 body .card-content {
83 color: #eaeaea; 237 height: 85px;
84 } 238 padding: 1.3rem; }
85 body #app a:hover { 239 body .layout-vertical .card {
86 color: #ffdd57; 240 border-radius: 0; }
87 } 241 body .layout-vertical .column div:first-of-type .card {
88 body #app .title { 242 border-radius: 5px 5px 0 0; }
89 color: #fafafa; 243 body .layout-vertical .column div:last-child .card {
90 } 244 border-radius: 0 0 5px 5px; }
91 body #app .subtitle { 245 body .footer {
92 color: #f5f5f5; 246 position: fixed;
93 } 247 left: 0;
94 body #app .card { 248 right: 0;
95 background-color: #2b2b2b; 249 bottom: 0;
96 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4); 250 padding: 0.5rem;
97 } 251 text-align: left;
98 body #app .card:hover { 252 color: #676767;
99 background-color: #2b2b2b; 253 font-size: 0.85rem;
100 } 254 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; }
101 body #app .footer { 255 body .no-footer #main-section {
102 background-color: #2b2b2b; 256 margin-bottom: 0; }
103 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4); 257 body .no-footer .footer {
104 } 258 display: none; }
105} 259 body .search-bar {
106body #app.is-light { 260 position: relative;
107 background-color: #f5f5f5; 261 display: inline-block; }
108 color: #363636; 262 body .search-bar #search {
109} 263 border: none;
110body #app.is-light a:hover { 264 background-color: #5f98f6;
111 color: #363636; 265 border-radius: 5px;
112} 266 padding: 2px 12px 2px 30px;
113body #app.is-light .title { 267 margin: 0 0 0 12px;
114 color: #303030; 268 transition: all 100ms linear;
115} 269 color: #ffffff;
116body #app.is-light .subtitle { 270 height: 30px;
117 color: #424242; 271 width: 100px; }
118} 272 body .search-bar #search:focus {
119body #app.is-light .card { 273 color: #000000;
120 background-color: #ffffff; 274 width: 250px;
121 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); 275 background-color: #ffffff; }
122} 276 body .search-bar .search-label::before {
123body #app.is-light .card:hover { 277 font-family: 'Font Awesome 5 Free';
124 background-color: #ffffff; 278 position: absolute;
125} 279 top: 4px;
126body #app.is-light .footer { 280 left: 16px;
127 background-color: #ffffff; 281 content: "\f002";
128 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); 282 font-weight: 900;
129} 283 width: 20px;
130body #app.is-dark { 284 height: 20px;
131 background-color: #131313; 285 color: #ffffff; }
132 color: #eaeaea; 286 body .search-bar:focus-within .search-label::before {
133} 287 color: #4a4a4a; }
134body #app.is-dark a:hover { 288 body .icon-button {
135 color: #ffdd57; 289 display: inline-block;
136} 290 padding: 0 12px; }
137body #app.is-dark .title { 291 body .offline-message {
138 color: #fafafa; 292 text-align: center;
139} 293 margin: 35px 0; }
140body #app.is-dark .subtitle { 294 body .offline-message i {
141 color: #f5f5f5; 295 font-size: 2rem; }
142} 296 body .offline-message i.fa-redo-alt {
143body #app.is-dark .card { 297 font-size: 1.3rem;
144 background-color: #2b2b2b; 298 line-height: 1rem;
145 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4); 299 vertical-align: middle;
146} 300 cursor: pointer;
147body #app.is-dark .card:hover { 301 color: #3273dc; }
148 background-color: #2b2b2b;
149}
150body #app.is-dark .footer {
151 background-color: #2b2b2b;
152 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.4);
153}
154body h1, body h2, body h3, body h4, body h5, body h6 {
155 font-family: "Lato", sans-serif;
156}
157body h1 {
158 font-size: 2rem;
159}
160body h2 {
161 font-size: 1.7rem;
162 margin-top: 2rem;
163 margin-bottom: 1rem;
164}
165body h2 .fas, body h2 .fab, body h2 .far {
166 margin-right: 10px;
167}
168body h2 span {
169 font-weight: bold;
170 color: #4285f4;
171}
172body [v-cloak] {
173 display: none;
174}
175body #bighead {
176 color: #ffffff;
177}
178body #bighead .dashboard-title {
179 padding: 6px 0 0 80px;
180}
181body #bighead .first-line {
182 height: 100px;
183 vertical-align: center;
184 background-color: #3367d6;
185}
186body #bighead .first-line h1 {
187 margin-top: -12px;
188 font-size: 2rem;
189}
190body #bighead .first-line .headline {
191 margin-top: 5px;
192 font-size: 0.9rem;
193}
194body #bighead .first-line .container {
195 height: 80px;
196 padding: 10px 0;
197}
198body #bighead .first-line .logo {
199 float: left;
200}
201body #bighead .first-line .logo i {
202 vertical-align: top;
203 padding: 8px 15px;
204 font-size: 50px;
205}
206body #bighead .first-line .logo img {
207 padding: 10px;
208 max-height: 70px;
209 max-width: 70px;
210}
211body #bighead .navbar, body #bighead .navbar-menu {
212 background-color: #4285f4;
213}
214body #bighead .navbar a, body #bighead .navbar-menu a {
215 color: #ffffff;
216}
217body #bighead .navbar a:hover, body #bighead .navbar a:focus, body #bighead .navbar-menu a:hover, body #bighead .navbar-menu a:focus {
218 color: #ffffff;
219 background-color: #5a95f5;
220}
221body #bighead .navbar-end {
222 text-align: right;
223}
224body #main-section {
225 margin-bottom: 2rem;
226 padding: 0;
227}
228body #main-section h2 {
229 border-bottom: 1px dashed #ccc;
230 padding-bottom: 10px;
231}
232body #main-section .title {
233 font-size: 1.1em;
234}
235body #main-section .subtitle {
236 font-size: 0.9em;
237 white-space: nowrap;
238 overflow: hidden;
239 text-overflow: ellipsis;
240}
241body #main-section .container {
242 padding: 1.2rem 0.75rem;
243}
244body #main-section .message {
245 margin-top: 45px;
246 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
247}
248body #main-section .message .message-header {
249 font-weight: bold;
250}
251body #main-section .message .message-body {
252 border: none;
253}
254body .media-content {
255 overflow: inherit;
256}
257body .tag {
258 color: #4285f4;
259 background-color: #4285f4;
260 position: absolute;
261 top: 1rem;
262 right: -0.2rem;
263 width: 3px;
264 overflow: hidden;
265 transition: all 0.2s ease-out;
266 padding: 0;
267}
268body .tag .tag-text {
269 display: none;
270}
271body .card {
272 border-radius: 5px;
273 border: none;
274 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
275 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
276}
277body .card a {
278 outline: none;
279}
280body .card:hover {
281 transform: translate(0, -3px);
282}
283body .card:hover .tag {
284 width: auto;
285 color: #ffffff;
286 padding: 0 0.75em;
287}
288body .card:hover .tag .tag-text {
289 display: block;
290}
291body .card-content {
292 height: 85px;
293 padding: 1.3rem;
294}
295body .layout-vertical .card {
296 border-radius: 0;
297}
298body .layout-vertical .column div:first-of-type .card {
299 border-radius: 5px 5px 0 0;
300}
301body .layout-vertical .column div:last-child .card {
302 border-radius: 0 0 5px 5px;
303}
304body .footer {
305 position: fixed;
306 left: 0;
307 right: 0;
308 bottom: 0;
309 padding: 0.5rem;
310 text-align: left;
311 color: #676767;
312 font-size: 0.85rem;
313 transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
314}
315body .no-footer #main-section {
316 margin-bottom: 0;
317}
318body .no-footer .footer {
319 display: none;
320}
321body .search-bar {
322 position: relative;
323 display: inline-block;
324}
325body .search-bar #search {
326 border: none;
327 background-color: #5f98f6;
328 border-radius: 5px;
329 padding: 2px 12px 2px 30px;
330 margin: 0 0 0 12px;
331 transition: all 100ms linear;
332 color: #ffffff;
333 height: 30px;
334 width: 100px;
335}
336body .search-bar #search:focus {
337 color: #000000;
338 width: 250px;
339 background-color: #ffffff;
340}
341body .search-bar .search-label::before {
342 font-family: "Font Awesome 5 Free";
343 position: absolute;
344 top: 4px;
345 left: 16px;
346 content: "";
347 font-weight: 900;
348 width: 20px;
349 height: 20px;
350 color: #ffffff;
351}
352body .search-bar:focus-within .search-label::before {
353 color: #4a4a4a;
354}
355body .icon-button {
356 display: inline-block;
357 padding: 0 12px;
358}
359body .offline-message {
360 text-align: center;
361 margin: 35px 0;
362}
363body .offline-message i {
364 font-size: 2rem;
365}
366body .offline-message i.fa-redo-alt {
367 font-size: 1.3rem;
368 line-height: 1rem;
369 vertical-align: middle;
370 cursor: pointer;
371 color: #3273dc;
372}
diff --git a/app.scss b/app.scss
index 69b1067..2b726c8 100644
--- a/app.scss
+++ b/app.scss
@@ -68,6 +68,13 @@ $theme-dark: (
68 } 68 }
69 } 69 }
70 70
71 .message {
72 background-color: map-get($theme, "card-background");
73 .message-body {
74 color: map-get($theme, "text");
75 }
76 }
77
71 .footer { 78 .footer {
72 background-color: map-get($theme, "card-background"); 79 background-color: map-get($theme, "card-background");
73 box-shadow: 0 2px 15px 0 map-get($theme, "card-shadow"); 80 box-shadow: 0 2px 15px 0 map-get($theme, "card-shadow");