diff --git a/_includes/header.css b/_includes/header.css index 2cdff53..a9ee6c6 100644 --- a/_includes/header.css +++ b/_includes/header.css @@ -90,7 +90,7 @@ header { border-radius: 3rem; } .nav-item-stream:hover { - color: var(--color-livestream-active); + color: var(--color-button-active); background-color: var(--color-primary); } } diff --git a/_includes/page.css b/_includes/page.css index e0a0252..1523d32 100644 --- a/_includes/page.css +++ b/_includes/page.css @@ -69,6 +69,24 @@ p { line-height: 1.8; } +a.btn { + display: block; + width: fit-content; + margin: 1em 0; + border: 1px solid var(--color-primary); + border-radius: 25px; + padding: .75rem 1.6rem; + text-decoration: none; + color: var(--color-primary); + transition: .2s ease-out; + transition-property: color, background-color; +} + +a.btn:hover { + background-color: var(--color-primary); + color: var(--color-button-active); +} + @media (width < 640px) { h1 { font-size: 1.8em; @@ -90,7 +108,7 @@ p { --page-width: 1280px; --color-text: #495057; --color-primary: {{ ese.color }}; - --color-livestream-active: #fff; + --color-button-active: #fff; --color-background-page: #fefefe; --color-background-header: rgba(255,255,255,.92); } diff --git a/_includes/program.css b/_includes/program.css index ca515a0..6264666 100644 --- a/_includes/program.css +++ b/_includes/program.css @@ -13,6 +13,11 @@ font-weight: 400; } +.timeslot h3 .icon { + vertical-align: -0.125em; + margin-right: 2px; +} + .timeslot-container { position: relative; padding-top: 40px; @@ -32,6 +37,30 @@ font-size: 26px; } +.timeslot .icon { + height: 1.1em; + vertical-align: text-bottom; + fill: currentColor; +} + +.annotation { + background-color: rgba(255, 139, 0, 0.06); + border: 1px solid #ff8b00; + border-radius: 3px; + width: fit-content; + padding: .5em 1em; + font-weight: 500; +} + +.annotation .icon { + color: #ff8b00; + margin-right: .5em; +} + +.location .icon { + margin-right: .2em; +} + @media (width < 640px) { .timeslot { margin-bottom: 2.5rem; diff --git a/_includes/program.njk b/_includes/program.njk index 829dcae..5149e03 100644 --- a/_includes/program.njk +++ b/_includes/program.njk @@ -22,7 +22,7 @@
  • - {{ "🔴 " if event.livestream -}} + {% if event.livestream %}{% icon "solid:video", title="Livestream" %}{% endif %} {{ getLocalized(event.title) }}

    @@ -38,12 +38,14 @@ {% if event.annotation %}

    + {% icon "solid:exclamation", title=("Notice" if lang == "en" else "Hinweis") %} {{ getLocalized(event.annotation) }}

    {% endif %} {% if event.location %}

    + {% icon "solid:location-dot", title=("Location" if lang == "en" else "Veranstaltungsort") %} {{ getLocalized(event.location) }}

    {% endif %}