diff --git a/css/theme/latex.css b/css/theme/latex.css index e2ba673..919597f 100644 --- a/css/theme/latex.css +++ b/css/theme/latex.css @@ -223,7 +223,7 @@ body { .layout-content-and-preview .layout-content, .layout-content-only .layout-content, .layout-wide-content .layout-content { - overflow: auto; + overflow: visible; padding: calc(var(--margin) * var(--square)); } .layout-content-and-preview .layout-content *:first-child, .layout-content-only .layout-content *:first-child, @@ -405,9 +405,12 @@ h2[data-category]::before { padding-left: calc(var(--margin) * var(--square)); margin-right: .5em; } -.layout-content-only h2[data-category^=Aufgabe]::after, -.layout-wide-content h2[data-category^=Aufgabe]::after { - content: attr(data-category); +h2[data-category=Aufgabe]::before { + content: attr(data-category) " " attr(data-task); } + +.layout-content-only h2[data-category=Aufgabe]::after, +.layout-wide-content h2[data-category=Aufgabe]::after { + content: attr(data-task); position: absolute; top: 0; right: 0; @@ -421,6 +424,12 @@ h2[data-category]::before { direction: rtl; word-spacing: 1000%; opacity: .2; } + @media screen and (min-aspect-ratio: 1 / 1) and (max-aspect-ratio: 2 / 1) { + .layout-content-only h2[data-category=Aufgabe]::after, + .layout-wide-content h2[data-category=Aufgabe]::after { + --versatz: calc((100vh - var(--square)) / 2); + top: var(--versatz); + bottom: calc(-1 * var(--versatz)); } } img { width: auto; @@ -552,3 +561,10 @@ p a:link, p a:hover, p a:active, p a:visited { p a:hover::before { height: 110%; } + +pre.small-text { + font-size: 80%; } + +pre.scroll-one-half { + max-height: calc(.5 * var(--square)); + overflow: auto !important; } diff --git a/css/theme/source/latex.scss b/css/theme/source/latex.scss index f06c7aa..5175723 100644 --- a/css/theme/source/latex.scss +++ b/css/theme/source/latex.scss @@ -314,7 +314,7 @@ body { .layout-content-only, .layout-wide-content { .layout-content { - overflow: auto; + overflow: visible; padding: calc(var(--margin) * var(--square)); *:first-child { @@ -494,15 +494,16 @@ h2[data-category]::before { vertical-align: baseline; letter-spacing: .1em; position: relative; - // left: calc(-1 * var(--margin) * var(--square)); - // margin-right: calc(-1 * var(--margin) * var(--square) + 1em); margin-left: calc(-1 * var(--margin) * var(--square)); padding-left: calc(var(--margin) * var(--square)); margin-right: .5em; } -.layout-content-only h2[data-category^=Aufgabe]::after, -.layout-wide-content h2[data-category^=Aufgabe]::after { - content: attr(data-category); +h2[data-category=Aufgabe]::before { + content: attr(data-category) ' ' attr(data-task); +} +.layout-content-only h2[data-category=Aufgabe]::after, +.layout-wide-content h2[data-category=Aufgabe]::after { + content: attr(data-task); position: absolute; top: 0; right: 0; @@ -516,6 +517,11 @@ h2[data-category]::before { direction: rtl; word-spacing: 1000%; opacity: .2; + @media screen and (min-aspect-ratio: 1/1) and (max-aspect-ratio: 2/1) { + --versatz: calc((100vh - var(--square)) / 2); + top: var(--versatz); + bottom: calc(-1 * var(--versatz)); + } } img { @@ -684,3 +690,12 @@ p a { } } + +pre.small-text { + font-size: 80%; +} + +pre.scroll-one-half { + max-height: calc(.5 * var(--square)); + overflow: auto !important; +} diff --git a/sections/german/02/02.md b/sections/german/02/02.md index 0fc5fcd..94c1865 100644 --- a/sections/german/02/02.md +++ b/sections/german/02/02.md @@ -140,7 +140,7 @@ Geburtsort: Milwaukee, Wisconsin
-

Erste Schritte mit LaTeX

+

Erste Schritte mit LaTeX