diff --git a/core/static/css/theme/base.css b/core/static/css/theme/base.css index bd1b8d1..eaa23cb 100644 --- a/core/static/css/theme/base.css +++ b/core/static/css/theme/base.css @@ -66,6 +66,10 @@ a:hover::after { width: 100%; } +a.btn::after { + display: none; +} + /* Form controls */ .form-control:focus { border-color: var(--bs-primary); diff --git a/core/static/css/timeline.css b/core/static/css/timeline.css index d321710..7ee3ada 100644 --- a/core/static/css/timeline.css +++ b/core/static/css/timeline.css @@ -1,7 +1,7 @@ /* Timeline styling */ .timeline { position: relative; - padding: 0; + padding: 20px 0; list-style: none; } @@ -12,17 +12,18 @@ bottom: 0; left: 40px; width: 4px; - background-color: var(--bs-primary); + background: linear-gradient(to bottom, var(--bs-primary) 0%, rgba(var(--bs-primary-rgb), 0.2) 100%); + border-radius: 2px; } .timeline-item { position: relative; - margin-bottom: 50px; + margin-bottom: 60px; } .timeline-badge { position: absolute; - top: 0; + top: 10px; left: 40px; width: 60px; height: 60px; @@ -36,61 +37,111 @@ flex-direction: column; align-items: center; justify-content: center; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); padding: 5px; + border: 4px solid #fff; + transition: transform 0.3s ease, box-shadow 0.3s ease; +} + +.timeline-item:hover .timeline-badge { + transform: scale(1.1); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); } .timeline-badge-day { - font-size: 1.25rem; + font-size: 1.3rem; font-weight: bold; line-height: 1; } .timeline-badge-month { - font-size: 0.8rem; + font-size: 0.85rem; text-transform: uppercase; line-height: 1; + font-weight: 600; } .timeline-month-header { position: relative; - margin-bottom: 30px; + margin-bottom: 40px; list-style: none; } .timeline-month-header h3 { position: relative; - padding-left: 60px; - border-bottom: 2px solid var(--bs-primary); - padding-bottom: 10px; + padding-left: 85px; + border-bottom: 2px solid rgba(var(--bs-primary-rgb), 0.2); + padding-bottom: 12px; + font-weight: 700; + color: var(--bs-primary); + display: inline-block; } .timeline-panel { position: relative; - width: calc(100% - 90px); + width: calc(100% - 100px); float: right; - border-radius: 8px; + border-radius: 12px; + transition: transform 0.3s ease, box-shadow 0.3s ease; + border: 1px solid rgba(0,0,0,0.05) !important; +} + +.timeline-panel:hover { + transform: translateY(-5px); + box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; } .timeline-panel:before { content: ''; position: absolute; - top: 26px; - left: -15px; - border-top: 15px solid transparent; - border-right: 15px solid #fff; - border-bottom: 15px solid transparent; + top: 24px; + left: -12px; + border-top: 12px solid transparent; + border-right: 12px solid #fff; + border-bottom: 12px solid transparent; + filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.03)); } .timeline-date { display: block; margin-bottom: 10px; - font-weight: bold; + font-weight: 600; color: var(--bs-primary); } +.timeline-panel .card-title a { + transition: color 0.2s ease; +} + +.timeline-panel .card-title a:hover { + color: var(--bs-primary) !important; +} + @media (max-width: 767px) { + .timeline:before { + left: 30px; + } + .timeline-badge { - margin-left: 0; + left: 30px; + width: 50px; + height: 50px; + margin-left: -25px; + } + + .timeline-badge-day { + font-size: 1.1rem; + } + + .timeline-badge-month { + font-size: 0.75rem; + } + + .timeline-panel { + width: calc(100% - 70px); + } + + .timeline-month-header h3 { + padding-left: 65px; } } diff --git a/core/templates/core/event_history_page.html b/core/templates/core/event_history_page.html index 70d794e..5620445 100644 --- a/core/templates/core/event_history_page.html +++ b/core/templates/core/event_history_page.html @@ -20,24 +20,24 @@ {{ event.value.start_date|date:"b" }}
- {% if event.value.location_name %}{{ event.value.location_name }}
{% endif %}
- {% if event.value.location_city %}{{ event.value.location_city }}{% endif %}
+
+ {% if event.value.location_name %}{{ event.value.location_name }}
{% endif %}
+ {% if event.value.location_city %}{{ event.value.location_city }}{% endif %}
- - {{ event.value.additional_info_btn_label }} -
+ {{ event.value.additional_info_btn_label }} {% endif %} {% elif event.type == 'page' %} {% if event.value.flyer %} - + Programm herunterladen {% endif %} -- Details anzeigen -
+ Details anzeigen {% endif %}
- {{ event.location_name }}
- {% if event.location_street %}{{ event.location_street }}
{% endif %}
- {% if event.location_city %}{{ event.location_city }}{% endif %}
+
+ {{ event.location_name }}
+ {% if event.location_street %}{{ event.location_street }}
{% endif %}
+ {% if event.location_city %}{{ event.location_city }}{% endif %}
- Zur Anmeldung -
+ Zur Anmeldung {% endif %} {% if event.flyer.url %} - + Programm herunterladen {% endif %} - + Mehr Informationen