From 638e81a35a461c03917f0e482c4644e1327d6880 Mon Sep 17 00:00:00 2001 From: Gion-Andri Cantieni Date: Wed, 14 Feb 2024 12:35:59 +0100 Subject: [PATCH] feat: style mobile list view --- .../event-list-item.component.html | 9 ++- .../event-list-item.component.scss | 67 ++++++++++++------- 2 files changed, 47 insertions(+), 29 deletions(-) diff --git a/src/app/components/events/event-list-item/event-list-item.component.html b/src/app/components/events/event-list-item/event-list-item.component.html index 0d3ea71..14370ca 100644 --- a/src/app/components/events/event-list-item/event-list-item.component.html +++ b/src/app/components/events/event-list-item/event-list-item.component.html @@ -1,6 +1,5 @@
- {{ event.start ? event.start : 'tuttadi' }} {{ event.title }} annullĂ 
@@ -8,7 +7,11 @@ {{ event.location }}
{{ event.start ? event.start : 'tuttadi' }}
-
-
{{ tag.name }}
+
+ {{ event.start ? event.start : 'tuttadi' }} +
+
{{ tag.name }}
+ +
diff --git a/src/app/components/events/event-list-item/event-list-item.component.scss b/src/app/components/events/event-list-item/event-list-item.component.scss index 6328624..ecd8469 100644 --- a/src/app/components/events/event-list-item/event-list-item.component.scss +++ b/src/app/components/events/event-list-item/event-list-item.component.scss @@ -21,17 +21,6 @@ } - .inline-time { - background-color: var(--accent); - color: white; - border-radius: 3px; - padding: 0 2px; - - @include media-breakpoint-up(md) { - display: none; - } - } - .cancelled { background-color: #E42F2F; color: white; @@ -41,7 +30,10 @@ .location { color: black; - padding-left: 15px; + + @include media-breakpoint-up(md) { + padding-left: 15px; + } } .time { @@ -54,24 +46,47 @@ } } -.tags { - display: none; +.infos { + display: flex; @include media-breakpoint-up(md) { - display: flex; - align-items: flex-start; - flex-wrap: wrap; - white-space: nowrap; - padding-top: 5px; padding-left: 15px; + } + + .inline-time { + color: black; + + @include media-breakpoint-up(md) { + display: none; + } + } + + .tags { + flex-grow: 1; + } +} + +.tags { + display: flex; + flex-wrap: wrap; + white-space: nowrap; + justify-content: flex-end; + align-items: flex-start; + + @include media-breakpoint-up(md) { + justify-content: unset; + } + + .tag { + background-color: var(--accent); + color: white; + padding: 2px 7px; + font-size: 0.85rem; + margin-right: 6px; + margin-bottom: 6px; - .tag { - background-color: var(--accent); - color: white; - padding: 2px 7px; - font-size: 0.85rem; - margin-right: 6px; - margin-bottom: 6px; + @include media-breakpoint-up(lg) { + font-size: 1rem; } } }