Slightly better print version

main
Benjamin Bädorf 2021-10-26 14:36:24 +02:00
parent 31438ff72e
commit 359ae70a8c
No known key found for this signature in database
GPG Key ID: 4406E80E13CD656C
9 changed files with 86 additions and 11 deletions

View File

@ -10,7 +10,7 @@
>PDF</a>
<a
href="{{ download.web }}"
class="download-link"
class="download-link download-link_web"
>Web</a>
</li>
{% endfor %}

View File

@ -1,4 +1,4 @@
<details class="event-day">
<details open class="event-day">
<summary class="event-day-heading">
{{ eventDay.heading }}
</summary>

View File

@ -4,5 +4,5 @@ lume
cp -r ./img ./_site/
cp -r ./unterricht/docs ./_site/unterricht/
cp -r ./fonts ./_site/
cp -r ./videos ./_site/
# cp -r ./videos ./_site/
cp favicon.png ./_site/

View File

@ -2,6 +2,7 @@
display: flex;
align-items: flex-start;
justify-self: start;
line-height: 120%;
}
@media print {
@ -59,9 +60,11 @@
display: flex;
flex-wrap: wrap;
color: var(--primary-font);
position: relative;
}
.download-name {
font-size: 1.2rem;
flex-basis: 100%;
}
@ -82,14 +85,22 @@
background-color: rgba(0, 0, 0, 0.2);
}
.download-link_pdf::before {
.download-link::before {
content: '';
background-image: url(/img/download.svg);
background-repeat: no-repeat;
background-size: 18px;
display: block;
margin-right: 18px;
margin-right: 12px;
flex-basis: 22px;
flex-shrink: 0;
height: 18px;
color: white;
}
.download-link_pdf::before {
background-image: url(/img/pdf.svg);
}
.download-link_web::before {
background-image: url(/img/web.svg);
}

View File

@ -4,6 +4,7 @@
position: relative;
margin-right: calc(-1 * (100vw - 2 * var(--side-padding)));
max-width: calc( 100vw - 2 * var(--side-padding));
display: block;
}
.event-day[open] {
@ -17,12 +18,24 @@
cursor: pointer;
}
@media print {
.event-day-heading {
display: block;
}
}
.event {
border-top: 3px solid var(--border);
margin-left: 20px;
padding-bottom: 32px;
display: flex;
flex-direction: column;
break-before: always;
page-break-before: always;
break-inside: avoid;
page-break-inside: avoid;
break-after: always;
page-break-after: always;
}
@media screen and (min-width: 1024px) {

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve">
<path fill="white" d="M442.2,186.2H302.5V0h-93.1v186.2H69.8L256,418.9L442.2,186.2z M465.5,372.4v93.1H46.5v-93.1H0V512h512V372.4H465.5z"/>
</svg>

Before

Width:  |  Height:  |  Size: 485 B

10
img/pdf.svg Normal file
View File

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-text" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="white" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M14 3v4a1 1 0 0 0 1 1h4" />
<path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" />
<line x1="9" y1="9" x2="10" y2="9" />
<line x1="9" y1="13" x2="15" y2="13" />
<line x1="9" y1="17" x2="15" y2="17" />
</svg>

After

Width:  |  Height:  |  Size: 534 B

10
img/web.svg Normal file
View File

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-world" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="white" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<circle cx="12" cy="12" r="9" />
<line x1="3.6" y1="9" x2="20.4" y2="9" />
<line x1="3.6" y1="15" x2="20.4" y2="15" />
<path d="M11.5 3a17 17 0 0 0 0 18" />
<path d="M12.5 3a17 17 0 0 1 0 18" />
</svg>

After

Width:  |  Height:  |  Size: 486 B

View File

@ -157,4 +157,40 @@ Soweit in der Internetpräsenz der Stadt Köln ein Zugang zu fremden Inhalten, e
Für illegale, fehlerhafte oder unvollständige Inhalte und insbesondere Schäden, die aus der Nutzung oder Nichtnutzung von Informationen Dritter entstehen, haftet allein der Anbieter der Seite, auf welche verwiesen wurde, nicht derjenige, der über Links auf die jeweilige Veröffentlichung lediglich verweist.
### Lizenzen dritter
Auf dieser Seite werden Icons benutzt die unter der MIT Lizenz zur verfügung stehen.
<details>
<summary>Lizenzvereinbarung</summary>
MIT License
Copyright (c) 2020 Paweł Kuna
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
</details>
'