Set gallery text color in theme

merge-requests/6/head
Bob Mottram 2019-11-28 11:02:59 +00:00
parent 231225b1bc
commit 40a23d0879
2 changed files with 13 additions and 7 deletions

View File

@ -35,8 +35,9 @@
--button-height-padding: 10px;
--gallery-border: #ccc;
--gallery-hover: #777;
--gallery-text-color: #ccc;
--gallery-font-size: 22px;
--gallery-font-size-mobile: 30px;
--gallery-font-size-mobile: 35px;
--button-corner-radius: 15px;
--timeline-border-radius: 30px;
}
@ -589,7 +590,7 @@ div.gallery img {
font-size: var(--font-size4);
}
div.gallerytext {
color: var(--main-fg-color);
color: var(--gallery-text-color);
font-size: var(--gallery-font-size);
}
div.gallery {
@ -878,7 +879,7 @@ div.gallery img {
font-size: var(--font-size3);
}
div.gallerytext {
color: var(--main-fg-color);
color: var(--gallery-text-color);
font-size: var(--gallery-font-size-mobile);
}
div.gallery {

View File

@ -87,7 +87,9 @@ def setThemeHighVis(baseDir: str):
"font-size2": "45px",
"font-size3": "45px",
"font-size4": "35px",
"font-size5": "29px"
"font-size5": "29px",
"gallery-font-size": "35px",
"gallery-font-size-mobile": "45px"
}
setThemeFromDict(baseDir,'highvis',themeParams)
@ -119,7 +121,8 @@ def setThemePurple(baseDir: str):
"event-background": "yellow",
"event-foreground": "white",
"title-text": "white",
"title-background": "#ff42a0"
"title-background": "#ff42a0",
"gallery-text-color": "#ccc"
}
setThemeFromDict(baseDir,'purple',themeParams)
@ -154,7 +157,8 @@ def setThemeHacker(baseDir: str):
"event-background": "lightgreen",
"event-foreground": "black",
"title-text": "black",
"title-background": "darkgreen"
"title-background": "darkgreen",
"gallery-text-color": "green"
}
setThemeFromDict(baseDir,'hacker',themeParams)
@ -189,7 +193,8 @@ def setThemeLight(baseDir: str):
"event-background": "lightblue",
"event-foreground": "white",
"title-text": "#282c37",
"title-background": "#ccc"
"title-background": "#ccc",
"gallery-text-color": "black"
}
setThemeFromDict(baseDir,'light',themeParams)