aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/assets
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-06-27 16:02:52 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2021-05-08 20:13:28 +0200
commite0a72b7dfbaac977798cbe02a840e5f400291198 (patch)
tree5273a1d7bf76689a1719772ee4351273e48af1b3 /src/assets
parent796a16c8da1e40aef418559ade2252a5275708c8 (diff)
downloadhomer-e0a72b7dfbaac977798cbe02a840e5f400291198.tar.gz
homer-e0a72b7dfbaac977798cbe02a840e5f400291198.tar.zst
homer-e0a72b7dfbaac977798cbe02a840e5f400291198.zip
Add some local changes
Diffstat (limited to 'src/assets')
-rw-r--r--src/assets/app.scss68
-rw-r--r--src/assets/defaults.yml6
2 files changed, 68 insertions, 6 deletions
diff --git a/src/assets/app.scss b/src/assets/app.scss
index ab067e6..2408d60 100644
--- a/src/assets/app.scss
+++ b/src/assets/app.scss
@@ -55,6 +55,23 @@ body {
55 } 55 }
56 } 56 }
57 57
58 .subcard {
59 background-color: var(--subcard-background);
60 color: var(--subcard-a);
61
62 a {
63 color: var(--subcard-a);
64 &:hover {
65 color: var(--subcard-a-hover);
66 }
67 }
68 }
69
70 a.card-arrow {
71 color: var(--subcard-a);
72 background-color: var(--subcard-background);
73 }
74
58 .footer { 75 .footer {
59 background-color: var(--card-background); 76 background-color: var(--card-background);
60 box-shadow: 0 2px 15px 0 var(--card-shadow); 77 box-shadow: 0 2px 15px 0 var(--card-shadow);
@@ -214,8 +231,7 @@ body {
214 } 231 }
215 } 232 }
216 233
217 .card { 234 .card, .card-arrow {
218 border-radius: 5px;
219 border: none; 235 border: none;
220 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1); 236 box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
221 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms; 237 transition: cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
@@ -225,6 +241,32 @@ body {
225 } 241 }
226 } 242 }
227 243
244 .card {
245 border-radius: 5px;
246 }
247
248 .card-arrow {
249 border-radius: 0px 5px 5px 0px;
250 }
251
252 .card-arrow.active {
253 border-radius: 0px 5px 0px 0px;
254 box-shadow: none;
255 }
256
257 .subcard {
258 border-radius: 0px 0px 5px 5px;
259 display: none;
260 list-style: disc inside;
261 padding: 0.8rem;
262 }
263 .subcard.active {
264 display: block;
265 }
266 .subcard a {
267 padding: 10px;
268 }
269
228 .card:hover { 270 .card:hover {
229 transform: translate(0, -3px); 271 transform: translate(0, -3px);
230 272
@@ -239,6 +281,14 @@ body {
239 } 281 }
240 } 282 }
241 283
284 .card-arrow {
285 height: 85px;
286 display: flex;
287 align-items: center;
288 float: right;
289 padding: 10px;
290 }
291
242 .card-content { 292 .card-content {
243 height: 85px; 293 height: 85px;
244 padding: 1.3rem; 294 padding: 1.3rem;
@@ -259,10 +309,6 @@ body {
259 } 309 }
260 310
261 .footer { 311 .footer {
262 position: fixed;
263 left: 0;
264 right: 0;
265 bottom: 0;
266 padding: 0.5rem; 312 padding: 0.5rem;
267 text-align: left; 313 text-align: left;
268 color: #676767; 314 color: #676767;
@@ -318,6 +364,16 @@ body {
318 } 364 }
319 } 365 }
320 366
367 .search-bar-mobile {
368 input {
369 margin-top: 10px;
370 margin-left: 10px;
371 }
372 .search-label::before {
373 top: 14px;
374 }
375 }
376
321 .offline-message { 377 .offline-message {
322 text-align: center; 378 text-align: center;
323 margin: 35px 0; 379 margin: 35px 0;
diff --git a/src/assets/defaults.yml b/src/assets/defaults.yml
index 99f5ed5..eaa345c 100644
--- a/src/assets/defaults.yml
+++ b/src/assets/defaults.yml
@@ -18,11 +18,14 @@ colors:
18 highlight-hover: "#5a95f5" 18 highlight-hover: "#5a95f5"
19 background: "#f5f5f5" 19 background: "#f5f5f5"
20 card-background: "#ffffff" 20 card-background: "#ffffff"
21 subcard-background: "#eeeeee"
21 text: "#363636" 22 text: "#363636"
22 text-header: "#ffffff" 23 text-header: "#ffffff"
23 text-title: "#303030" 24 text-title: "#303030"
24 text-subtitle: "#424242" 25 text-subtitle: "#424242"
25 card-shadow: rgba(0, 0, 0, 0.1) 26 card-shadow: rgba(0, 0, 0, 0.1)
27 subcard-a: "#363636"
28 subcard-a-hover: "#808080"
26 link-hover: "#363636" 29 link-hover: "#363636"
27 dark: 30 dark:
28 highlight-primary: "#3367d6" 31 highlight-primary: "#3367d6"
@@ -30,11 +33,14 @@ colors:
30 highlight-hover: "#5a95f5" 33 highlight-hover: "#5a95f5"
31 background: "#131313" 34 background: "#131313"
32 card-background: "#2b2b2b" 35 card-background: "#2b2b2b"
36 subcard-background: "#444444"
33 text: "#eaeaea" 37 text: "#eaeaea"
34 text-header: "#ffffff" 38 text-header: "#ffffff"
35 text-title: "#fafafa" 39 text-title: "#fafafa"
36 text-subtitle: "#f5f5f5" 40 text-subtitle: "#f5f5f5"
37 card-shadow: rgba(0, 0, 0, 0.4) 41 card-shadow: rgba(0, 0, 0, 0.4)
42 subcard-a: "#ffdd57"
43 subcard-a-hover: "#eaeaea"
38 link-hover: "#ffdd57" 44 link-hover: "#ffdd57"
39 45
40message: ~ 46message: ~