diff --git a/css/theme/latex.css b/css/theme/latex.css index e9bef65..46c2b28 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -91,6 +91,21 @@ body { background: white; grid-area: content; position: relative; } + body .layout-content.titlepage { + display: flex; + flex-direction: column; + justify-content: flex-end; + padding-bottom: calc(var(--margin) * var(--square) + 0.5 * 3em); } + body .layout-content.titlepage::before { + content: ''; + position: absolute; + top: calc(var(--margin) * var(--square)); + right: calc(var(--margin) * var(--square)); + width: 15vw; + height: 15vw; + background-image: url(../../images/logo-fachschaft.png); + background-repeat: no-repeat; + background-size: contain; } body .layout-preview { grid-area: preview; display: flex; @@ -352,15 +367,21 @@ body { bottom: calc(38.2% - .5em); } h1 { - position: absolute; font-size: 300%; + max-width: var(--square); } + +:not(.titlepage) > h1 { + position: absolute; bottom: 0; left: 0; line-height: 115%; vertical-align: bottom; - max-width: var(--square); padding: 0 calc(var(--margin) * var(--square)) 0.5em; } +.titlepage > h1 { + line-height: 100%; + margin-bottom: 3rem; } + h2 { line-height: 1.2; } diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index 4d359d0..5035bbe 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -139,6 +139,25 @@ body { background: white; grid-area: content; position: relative; + + &.titlepage { + display: flex; + flex-direction: column; + justify-content: flex-end; + padding-bottom: calc(var(--margin) * var(--square) + 0.5 * 3em); + + &::before { + content: ''; + position: absolute; + top: calc(var(--margin) * var(--square)); + right: calc(var(--margin) * var(--square)); + width: 15vw; + height: 15vw; + background-image: url(../../images/logo-fachschaft.png); + background-repeat: no-repeat; + background-size: contain; + } + } } .layout-preview { @@ -435,16 +454,24 @@ body { } h1 { - position: absolute; font-size: 300%; + max-width: var(--square); +} + +:not(.titlepage) > h1 { + position: absolute; bottom: 0; left: 0; line-height: 115%; vertical-align: bottom; - max-width: var(--square); padding: 0 calc(var(--margin) * var(--square)) .5em; } +.titlepage > h1 { + line-height: 100%; + margin-bottom: 3rem; +} + h2 { line-height: 1.2; } diff --git a/images/logo-fachschaft.png b/images/logo-fachschaft.png new file mode 100644 index 0000000..7d93974 Binary files /dev/null and b/images/logo-fachschaft.png differ diff --git a/sections/german/00/00.md b/sections/german/00/00.md index 1701a5f..f5640c3 100644 --- a/sections/german/00/00.md +++ b/sections/german/00/00.md @@ -1,5 +1,6 @@