diff --git a/RIGS/templates/event_archive.html b/RIGS/templates/event_archive.html index ae3c0a1c..35f17950 100644 --- a/RIGS/templates/event_archive.html +++ b/RIGS/templates/event_archive.html @@ -46,7 +46,7 @@
-
+
{% with object_list as events %} {% include 'partials/event_table.html' %} {% endwith %} diff --git a/RIGS/templates/partials/event_table.html b/RIGS/templates/partials/event_table.html index 5e875ffa..4b5c59d0 100644 --- a/RIGS/templates/partials/event_table.html +++ b/RIGS/templates/partials/event_table.html @@ -11,6 +11,14 @@ grid-column: 1/5; grid-template-columns: subgrid; padding: 1em; + dt { + float: left; + clear: left; + margin-right: 10px; + } + dd { + margin-left: 0px; + } } .grid-header { border-bottom: 1px solid grey; @@ -23,7 +31,13 @@ grid-row-start: 1; grid-column-start: 4; } -@media (max-width: 600px) { +.c-none { + display: none; +} +.c-inline { + display: inline; +} +@container (width <= 500px) { #event_table { grid-template-columns: 1fr !important; } @@ -43,9 +57,9 @@ #event_mic { grid-row-start: auto; grid-column-start: 4; + } } -} -@media (max-width: 900px) { +@container (width <= 700px) { #event_table { grid-template-columns: max-content; column-gap: 0.5em; @@ -68,17 +82,20 @@ #event_status { grid-column: span 2; } - .grid-header { + .grid-header, .c-md-none { display: none; } } -dt { - float: left; - clear: left; - margin-right: 10px; -} -dd { - margin-left: 0px; +@container (width > 700px) { + .c-lg-block { + display: block; + } + .c-lg-inline { + display: inline; + } + .c-lg-none, .c-md-none { + display: none; + } }
@@ -105,7 +122,7 @@ table-warning {% endif %}" {% if event.cancelled %}style="opacity: 50% !important;"{% endif %} id="event_row"> -
{{ event.display_id }}
+
{{ event.display_id }}