program styles and icons

This commit is contained in:
Lyn Fugmann 2024-09-27 15:36:08 +02:00
parent 79e9051db6
commit e376bc1389
4 changed files with 52 additions and 3 deletions

View file

@ -90,7 +90,7 @@ header {
border-radius: 3rem; border-radius: 3rem;
} }
.nav-item-stream:hover { .nav-item-stream:hover {
color: var(--color-livestream-active); color: var(--color-button-active);
background-color: var(--color-primary); background-color: var(--color-primary);
} }
} }

View file

@ -69,6 +69,24 @@ p {
line-height: 1.8; 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) { @media (width < 640px) {
h1 { h1 {
font-size: 1.8em; font-size: 1.8em;
@ -90,7 +108,7 @@ p {
--page-width: 1280px; --page-width: 1280px;
--color-text: #495057; --color-text: #495057;
--color-primary: {{ ese.color }}; --color-primary: {{ ese.color }};
--color-livestream-active: #fff; --color-button-active: #fff;
--color-background-page: #fefefe; --color-background-page: #fefefe;
--color-background-header: rgba(255,255,255,.92); --color-background-header: rgba(255,255,255,.92);
} }

View file

@ -13,6 +13,11 @@
font-weight: 400; font-weight: 400;
} }
.timeslot h3 .icon {
vertical-align: -0.125em;
margin-right: 2px;
}
.timeslot-container { .timeslot-container {
position: relative; position: relative;
padding-top: 40px; padding-top: 40px;
@ -32,6 +37,30 @@
font-size: 26px; 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) { @media (width < 640px) {
.timeslot { .timeslot {
margin-bottom: 2.5rem; margin-bottom: 2.5rem;

View file

@ -22,7 +22,7 @@
<li class="timeslot"> <li class="timeslot">
<div class="timeslot-container"> <div class="timeslot-container">
<h3 id="{{date}}_{{loop.index}}"> <h3 id="{{date}}_{{loop.index}}">
{{ "🔴 " if event.livestream -}} {% if event.livestream %}{% icon "solid:video", title="Livestream" %}{% endif %}
{{ getLocalized(event.title) }} {{ getLocalized(event.title) }}
</h3> </h3>
@ -38,12 +38,14 @@
{% if event.annotation %} {% if event.annotation %}
<p class="annotation"> <p class="annotation">
{% icon "solid:exclamation", title=("Notice" if lang == "en" else "Hinweis") %}
{{ getLocalized(event.annotation) }} {{ getLocalized(event.annotation) }}
</p> </p>
{% endif %} {% endif %}
{% if event.location %} {% if event.location %}
<p class="location"> <p class="location">
{% icon "solid:location-dot", title=("Location" if lang == "en" else "Veranstaltungsort") %}
{{ getLocalized(event.location) }} {{ getLocalized(event.location) }}
</p> </p>
{% endif %} {% endif %}