Skip to content

Commit 7df1dd1

Browse files
authored
Merge pull request #14 from missytake/hotel-zuflucht
- adding Hotel Zuflucht theme - improve theming
2 parents 93b922e + eac658f commit 7df1dd1

File tree

5 files changed

+123
-6
lines changed

5 files changed

+123
-6
lines changed

css/list.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#item {
2-
width: var(--item_scale);
3-
height: var(--item_scale);
2+
width: var(--item-width);
3+
height: var(--item-height);
44
border-radius: 25px;
55
-ms-word-break: break-all;
66
word-break: break-all;
@@ -14,6 +14,7 @@
1414
#item #title {
1515
font-size: var(--item-title-font-size);
1616
margin: 5px;
17+
text-align: var(--item-text-align);
1718
}
1819

1920
#item #meta {

css/main.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
@media (orientation: portrait) {
77
:root {
8-
--item_scale: max(75px, 27vw);
8+
--item_height: max(75px, 27vw);
9+
--item_width: max(75px, 27vw);
910
--item-title-font-size: max(10px, 4vw);
1011
--item-meta-font-size: max(8px, 3vw);
1112
--input_scale: max(20px, 10vw);
@@ -16,7 +17,8 @@
1617
}
1718
@media (orientation: landscape) {
1819
:root {
19-
--item_scale: max(75px, min(250px, min(22vw, 22vh)));/*min(27vw, 175px);*/
20+
--item_height: max(75px, min(250px, min(22vw, 22vh)));/*min(27vw, 175px);*/
21+
--item_width: max(75px, min(250px, min(22vw, 22vh)));/*min(27vw, 175px);*/
2022
--item-title-font-size: max(10px, min(40px, min(3.5vw, 3.5vh)));
2123
--item-meta-font-size: max(8px, min(25px, min(2.5vw, 2.5vh)));
2224
--input_scale: max(20px, min(100px, min(10vw, 10vh)));

css/theme.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
--list: #49595D;
3535
--list-text: white;
3636

37-
--list-active: #F06870;
37+
--list-active: #AB6A87;
3838
--list-active-border: 0px;
3939
--list-active-text: white;
4040
--list-active-meta: rgb(235, 235, 235);
@@ -44,7 +44,7 @@
4444
--list-active-hover-text: white;
4545
--list-active-hover-meta: rgb(235, 235, 235);
4646

47-
--list-last: #68B8A8;
47+
--list-last: #6AAB8E;
4848
--list-last-border: 0px;
4949
--list-last-text: white;
5050
--list-last-meta: rgb(235, 235, 235);
@@ -77,4 +77,8 @@
7777
--toast-button: grey;
7878
--toast-button-border: 0px;
7979
--toast-button-text: black;
80+
81+
--item-height: 27vw;
82+
--item-width: 27vw;
83+
--item-text-align: center;
8084
}

js/languages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ var languages = {
3030
"style_light": "Bright",
3131
"style_yb": "Yellow-Blue",
3232
"style_eink": "E-Ink",
33+
"style_zuflucht": "Hotel Zuflucht",
3334

3435
//Tutorial
3536
"tutorial_title": "Tutorial",
@@ -230,6 +231,7 @@ var languages = {
230231
"style_dark": "Dunkel",
231232
"style_light": "Hell",
232233
"style_yb": "Gelb-Blau",
234+
"style_zuflucht": "Hotel Zuflucht",
233235

234236

235237
//Tutorial

js/themes.js

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ var themes = {
7979

8080
"toast-button-border": null,
8181
"toast-button-text": null,
82+
83+
"item-height": null,
84+
"item-width": null,
85+
"item-text-align": null,
8286
},
8387
oled: {
8488
"popup": "rgba(20, 20, 20)",
@@ -158,6 +162,10 @@ var themes = {
158162

159163
"toast-button-border": null,
160164
"toast-button-text": "white",
165+
166+
"item-height": null,
167+
"item-width": null,
168+
"item-text-align": null,
161169
},
162170
dark: {
163171
"popup": "rgba(70, 70, 70)",
@@ -238,6 +246,10 @@ var themes = {
238246

239247
"toast-button-border": null,
240248
"toast-button-text": "white",
249+
250+
"item-height": null,
251+
"item-width": null,
252+
"item-text-align": null,
241253
},
242254
light: {
243255
"popup": "rgba(220, 220, 220)",
@@ -317,6 +329,10 @@ var themes = {
317329

318330
"toast-button-border": null,
319331
"toast-button-text": null,
332+
333+
"item-height": null,
334+
"item-width": null,
335+
"item-text-align": null,
320336
},
321337
yb: {
322338
"popup": null,
@@ -396,6 +412,10 @@ var themes = {
396412

397413
"toast-button-border": null,
398414
"toast-button-text": null,
415+
416+
"item-height": null,
417+
"item-width": null,
418+
"item-text-align": null,
399419
},
400420
eink: {
401421
"popup": "white",
@@ -476,6 +496,94 @@ var themes = {
476496

477497
"toast-button-border": "5px solid black",
478498
"toast-button-text": "black",
499+
500+
"item-height": null,
501+
"item-width": null,
502+
"item-text-align": null,
503+
},
504+
zuflucht: {
505+
"popup": null,
506+
"popup-border": null,
507+
"popup-text": null,
508+
509+
"popup-close": null,
510+
"popup-close-border": null,
511+
"popup-close-text": null,
512+
513+
"popup-close-hover": null,
514+
"popup-close-hover-border": null,
515+
"popup-close-hover-text": null,
516+
517+
"popup-button": null,
518+
"popup-button-border": null,
519+
"popup-button-text": null,
520+
521+
"popup-button-hover": null,
522+
"popup-button-hover-border": null,
523+
"popup-button-hover-text": null,
524+
525+
"menu": null,
526+
"menu-border": null,
527+
"menu-toggle": null,
528+
529+
"menu-button": null,
530+
"menu-button-border": null,
531+
"menu-button-text": null,
532+
533+
"menu-button-hover": null,
534+
"menu-button-hover-border": null,
535+
"menu-button-hover-text": null,
536+
537+
"list": null,
538+
"list-text": null,
539+
540+
"list-active": null,
541+
"list-active-border": null,
542+
"list-active-text": null,
543+
"list-active-meta": null,
544+
545+
"list-active-hover-border": null,
546+
"list-active-hover-text": null,
547+
"list-active-hover-meta": null,
548+
549+
"list-last-border": null,
550+
"list-last-text": null,
551+
"list-last-meta": null,
552+
553+
"list-last-hover": null,
554+
"list-last-hover-border": null,
555+
"list-last-hover-text": null,
556+
"list-last-hover-meta": null,
557+
558+
"search": null,
559+
"search-border": null,
560+
"search-text": null,
561+
562+
"search-hover": null,
563+
"search-hover-border": null,
564+
"search-hover-text": null,
565+
566+
"search-button": null,
567+
"search-button-border": null,
568+
"search-button-text": null,
569+
570+
"search-button-hover": null,
571+
"search-button-hover-border": null,
572+
"search-button-hover-text": null,
573+
574+
"toast": null,
575+
"toast-progress": null,
576+
"toast-border": null,
577+
"toast-text": null,
578+
579+
"toast-button-border": null,
580+
"toast-button-text": null,
581+
"item-width": "80%",
582+
"item-height": "null",
583+
584+
"list-last": "rgba(106, 171, 142)",
585+
"list-active": "rgba(171, 106, 135)",
586+
"item-text-align": "left",
479587
},
480588
}
481589

0 commit comments

Comments
 (0)