diff --git a/output/assets/img/instructions/instructions.webp b/output/assets/img/instructions/instructions.webp new file mode 100644 index 0000000..08d3b53 Binary files /dev/null and b/output/assets/img/instructions/instructions.webp differ diff --git a/output/css/instructions.css b/output/css/instructions.css index 1656cec..9077b11 100644 --- a/output/css/instructions.css +++ b/output/css/instructions.css @@ -2,7 +2,7 @@ header { text-align: center; } -label[for^=language-selection] { +label[for^=language-selection_] { font-size: 1.2em; padding-right: 0.5em; padding-block: 0.5em; @@ -36,9 +36,42 @@ label[for^=language-selection] { text-align: right; } +#instructions-image { + background: linear-gradient(to bottom right, lightgray, gray); + background: url("/assets/img/instructions/instructions.webp"); + aspect-ratio: 1200 / 630; + background-repeat: no-repeat; + background-position: bottom 20% left 50%; + background-size: calc(clamp(400px, 100%, 750px)); + max-width: 750px; + margin-inline: auto; + box-shadow: 0 0 0.5rem rgba(255, 255, 255, 0.5); + border-radius: 5px; +} + @media (max-width: 750px) { - .language-selection { + #language-selection-title { + width: 100%; + } + + #language-selection-title label { + display: inline-flex; + justify-content: space-between; + width: 100%; + cursor: pointer; + } + + #language-selection-show:not(:checked) ~ :is(.language-selection, .language-selection-label) { + display: none; + } + + #language-selection-title label::after { + content: "+"; + padding-inline: 0.5em; + } + #language-selection-show:checked ~ #language-selection-title label::after { + content: "−"; } label[for^=language-selection] { diff --git a/sites/instructions/index.php b/sites/instructions/index.php index 0f97ab9..3eb10ed 100644 --- a/sites/instructions/index.php +++ b/sites/instructions/index.php @@ -24,7 +24,7 @@