forked from indymedia/epicyon
Add italic font
parent
ce1067d1a9
commit
1052ea8a45
|
@ -59,6 +59,13 @@
|
||||||
--focus-color: white;
|
--focus-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Bedstead';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: normal;
|
||||||
|
font-display: block;
|
||||||
|
src: url('./fonts/bedstead.otf') format('opentype');
|
||||||
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Bedstead';
|
font-family: 'Bedstead';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
|
13
theme.py
13
theme.py
|
@ -68,7 +68,10 @@ def setCSSparam(css: str, param: str, value: str) -> str:
|
||||||
return css.replace(param, value)
|
return css.replace(param, value)
|
||||||
# if the parameter begins with * then don't prepend --
|
# if the parameter begins with * then don't prepend --
|
||||||
if param.startswith('*'):
|
if param.startswith('*'):
|
||||||
searchStr = param.replace('*', '') + ':'
|
if param.startswith('**'):
|
||||||
|
searchStr = param.replace('**', '', 1) + ':'
|
||||||
|
else:
|
||||||
|
searchStr = param.replace('*', '') + ':'
|
||||||
else:
|
else:
|
||||||
searchStr = '--' + param + ':'
|
searchStr = '--' + param + ':'
|
||||||
if searchStr not in css:
|
if searchStr not in css:
|
||||||
|
@ -276,6 +279,8 @@ def setThemeNight(baseDir: str):
|
||||||
setThemeInConfig(baseDir, name)
|
setThemeInConfig(baseDir, name)
|
||||||
fontStr = \
|
fontStr = \
|
||||||
"url('./fonts/solidaric.woff2') format('woff2')"
|
"url('./fonts/solidaric.woff2') format('woff2')"
|
||||||
|
fontStrItalic = \
|
||||||
|
"url('./fonts/solidaric-italic.woff2') format('woff2')"
|
||||||
themeParams = {
|
themeParams = {
|
||||||
"focus-color": "blue",
|
"focus-color": "blue",
|
||||||
"font-size-button-mobile": "36px",
|
"font-size-button-mobile": "36px",
|
||||||
|
@ -306,7 +311,8 @@ def setThemeNight(baseDir: str):
|
||||||
"event-color": "#7961ab",
|
"event-color": "#7961ab",
|
||||||
"event-background": "#333",
|
"event-background": "#333",
|
||||||
"*font-family": "'solidaric'",
|
"*font-family": "'solidaric'",
|
||||||
"*src": fontStr
|
"*src": fontStr,
|
||||||
|
"**src": fontStrItalic
|
||||||
}
|
}
|
||||||
bgParams = {
|
bgParams = {
|
||||||
"login": "jpg",
|
"login": "jpg",
|
||||||
|
@ -767,7 +773,8 @@ def setThemeSolidaric(baseDir: str):
|
||||||
"title-background": "#ccc",
|
"title-background": "#ccc",
|
||||||
"gallery-text-color": "black",
|
"gallery-text-color": "black",
|
||||||
"*font-family": "'solidaric'",
|
"*font-family": "'solidaric'",
|
||||||
"*src": "url('./fonts/solidaric.woff2') format('woff2')"
|
"*src": "url('./fonts/solidaric.woff2') format('woff2')",
|
||||||
|
"**src": "url('./fonts/solidaric-italic.woff2') format('woff2')"
|
||||||
}
|
}
|
||||||
bgParams = {
|
bgParams = {
|
||||||
"login": "jpg",
|
"login": "jpg",
|
||||||
|
|
Loading…
Reference in New Issue