Vertical header offset

main
Bob Mottram 2020-11-07 22:37:16 +00:00
parent 7298e7c885
commit f329352512
2 changed files with 17 additions and 8 deletions

View File

@ -129,6 +129,7 @@
--post-separator-margin-bottom: 0;
--post-separator-width: 95%;
--post-separator-height: 1px;
--header-vertical-offset: 0;
}
@font-face {
@ -431,14 +432,6 @@ a:focus {
margin: var(--vertical-between-posts);
}
.containerHeader {
border: var(--border-width-header) solid var(--border-color);
background-color: var(--main-bg-color);
border-radius: var(--timeline-border-radius);
padding: var(--header-button-padding);
margin: var(--vertical-between-posts-header);
}
.media {
width: 80%;
border-radius: 5px;
@ -919,6 +912,14 @@ div.container {
font-size: var(--font-size);
line-height: var(--line-spacing);
}
.containerHeader {
border: var(--border-width-header) solid var(--border-color);
background-color: var(--main-bg-color);
border-radius: var(--timeline-border-radius);
padding: var(--header-button-padding);
margin: var(--vertical-between-posts-header);
transform: translateY(var(--header-vertical-offset));
}
.container {
border: var(--border-width) solid var(--border-color);
background-color: var(--main-bg-color);
@ -1556,6 +1557,13 @@ div.container {
font-size: var(--font-size);
line-height: var(--line-spacing);
}
.containerHeader {
border: var(--border-width-header) solid var(--border-color);
background-color: var(--main-bg-color);
border-radius: var(--timeline-border-radius);
padding: var(--header-button-padding);
margin: var(--vertical-between-posts-header);
}
.container {
border: var(--border-width) solid var(--border-color);
background-color: var(--main-bg-color);

View File

@ -1026,6 +1026,7 @@ def setThemeIndymediaModern(baseDir: str):
fontStrItalic = \
"url('./fonts/NimbusSanL-italic.otf') format('opentype')"
themeParams = {
"header-vertical-offset": "-15%",
"publish-button-vertical-offset": "0",
"vertical-between-posts-header": "0 0",
"header-button-padding": "0 0",