diff --git a/templates/conference_list.html b/templates/conference_list.html index 70e5f10..dd8bddf 100644 --- a/templates/conference_list.html +++ b/templates/conference_list.html @@ -91,6 +91,75 @@ tr.conf-hl > td { .conf-going { --bs-table-bg: rgba(25, 135, 84, 0.07); } + +@media (max-width: 767.98px) { + .conf-table, + .conf-table tbody { + display: block; + } + .conf-table colgroup, + .conf-table thead { + display: none; + } + .conf-table .conf-row { + display: flex; + flex-direction: column; + margin: 0.5rem 0 1rem; + padding: 0.35rem 0.75rem; + border: 1px solid #dee2e6; + border-radius: 0.5rem; + background: var(--bs-body-bg); + box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); + } + .conf-table .conf-row.conf-going { + border-left: 0.3rem solid #198754; + background: rgba(25, 135, 84, 0.07); + } + .conf-table .conf-row > td { + display: grid; + grid-template-columns: 5.25rem minmax(0, 1fr); + gap: 0.5rem; + padding: 0.35rem 0; + border: 0; + white-space: normal !important; + overflow-wrap: anywhere; + } + .conf-table .conf-row > td::before { + content: attr(data-label); + color: var(--bs-secondary-color); + font-size: 0.75rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.03em; + } + .conf-table .conf-name { + order: -2; + display: block !important; + padding-bottom: 0.5rem !important; + font-size: 1.05rem; + font-weight: 600; + border-bottom: 1px solid #dee2e6 !important; + } + .conf-table .conf-name::before { + display: none; + } + .conf-table .conf-dates { + order: -1; + } + .conf-table .conf-section-row, + .conf-table .conf-month-row { + display: block; + } + .conf-table .conf-section-row td, + .conf-table .conf-month-row td { + display: block; + width: 100%; + } + .conf-table .conf-section-row td { + margin-top: 1.25rem; + border-radius: 0.25rem; + } +} {% endblock %} @@ -145,8 +214,8 @@ tr.conf-hl > td { {{ month_label }} {% endif %} - - + + {{ item.display_date }} {% if item.date_status == "tentative" %} tentative @@ -154,7 +223,7 @@ tr.conf-hl > td { approximate {% endif %} - + {% if item.url %}{{ item.name }} {% else %}{{ item.name }}{% endif %} {% if item.going and not (item.accommodation_booked or item.travel_booked) %} @@ -175,24 +244,24 @@ tr.conf-hl > td { {% endif %} - {{ item.topic }} - + {{ item.topic }} + {% if item.series and item.series_detail %} {{ item.series_detail.name }} {% elif item.series %} {{ item.series }} {% endif %} - + {% set country = get_country(item.country) if item.country else None %} {% if country %}{{ country.flag }} {{ item.location }} {% elif item.online %}💻 Online {% else %}{{ item.location }}{% endif %} - + {% if item.cfp_end %}{{ item.cfp_end.strftime("%-d %b %Y") }}{% endif %} - + {% if item.price and item.currency %} {{ "{:,d}".format(item.price | int) }} {{ item.currency }} {% if item.currency != "GBP" and item.currency in fx_rate %} @@ -236,7 +305,8 @@ tr.conf-hl > td { {{ render_timeline(timeline) }} - +
+
Conferences grouped by attendance and month