Calendar style

main
Bob Mottram 2020-11-07 23:18:09 +00:00
parent 06587d2be7
commit bde4f2de5c
2 changed files with 11 additions and 3 deletions

View File

@ -14,6 +14,10 @@
--title-text: #282c37; --title-text: #282c37;
--title-background: #ccc; --title-background: #ccc;
--focus-color: white; --focus-color: white;
--calendar-horizontal-padding: 0;
--font-size-calendar-header: 3rem;
--font-size-calendar-day: 1rem;
--font-size-calendar-cell: 4rem;
} }
@font-face { @font-face {
@ -54,6 +58,7 @@ main {
.calendar { .calendar {
table-display: fixed; table-display: fixed;
width: 100%; width: 100%;
padding: 0 var(--calendar-horizontal-padding);
} }
a:visited{ a:visited{
@ -105,7 +110,7 @@ a:focus {
background-color: var(--title-background); background-color: var(--title-background);
color: var(--title-text); color: var(--title-text);
display: inline-block; display: inline-block;
font-size: 3rem; font-size: var(--font-size-calendar-header);
font-weight: 400; font-weight: 400;
letter-spacing: 0.1em; letter-spacing: 0.1em;
padding: .5rem 2rem; padding: .5rem 2rem;
@ -113,13 +118,13 @@ a:focus {
} }
.calendar__day__header { .calendar__day__header {
font-size: 1rem; font-size: var(--font-size-calendar-day);
letter-spacing: 0.1em; letter-spacing: 0.1em;
text-transform: uppercase; text-transform: uppercase;
} }
.calendar__day__cell { .calendar__day__cell {
font-size: 4rem; font-size: var(--font-size-calendar-cell);
position: relative; position: relative;
} }

View File

@ -1026,6 +1026,9 @@ def setThemeIndymediaModern(baseDir: str):
fontStrItalic = \ fontStrItalic = \
"url('./fonts/NimbusSanL-italic.otf') format('opentype')" "url('./fonts/NimbusSanL-italic.otf') format('opentype')"
themeParams = { themeParams = {
"font-size-calendar-header": "2rem",
"font-size-calendar-cell": "2rem",
"calendar-horizontal-padding": "20%",
"time-vertical-align": "10px", "time-vertical-align": "10px",
"header-vertical-offset": "-10%", "header-vertical-offset": "-10%",
"publish-button-vertical-offset": "0", "publish-button-vertical-offset": "0",