jekyll-theme-conference 4.1.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +214 -149
  3. data/UPGRADE_GUIDE.md +140 -21
  4. data/_data/conference_assets.yml +3 -3
  5. data/_data/lang.yml +9 -1
  6. data/_includes/checks.html +121 -29
  7. data/_includes/conference_config.json +15 -6
  8. data/_includes/footer.html +1 -1
  9. data/_includes/get_edition.html +85 -0
  10. data/_includes/get_link.html +7 -6
  11. data/_includes/get_link_tag_streaming.html +3 -3
  12. data/_includes/get_live_timestamps.html +5 -5
  13. data/_includes/get_location_config.html +5 -0
  14. data/_includes/get_menu.html +30 -0
  15. data/_includes/get_overview_url.html +18 -0
  16. data/_includes/get_page_description.html +4 -4
  17. data/_includes/get_program_config.html +34 -21
  18. data/_includes/get_room_live_href.html +1 -1
  19. data/_includes/get_schema_event.html +28 -0
  20. data/_includes/get_start_times.html +1 -1
  21. data/_includes/get_tag_icon.html +1 -1
  22. data/_includes/get_talk_overview_talk.html +4 -4
  23. data/_includes/get_time_pronoun.html +1 -1
  24. data/_includes/get_track_properties.html +1 -1
  25. data/_includes/header.html +5 -3
  26. data/_includes/hidden_page.html +7 -5
  27. data/_includes/infobox.html +11 -8
  28. data/_includes/list_header_meta.html +9 -9
  29. data/_includes/list_header_pwa.html +1 -1
  30. data/_includes/list_speakers.html +1 -1
  31. data/_includes/modal_live.html +4 -4
  32. data/_includes/navbar.html +41 -22
  33. data/_includes/navbar_pwa.html +13 -12
  34. data/_includes/navbar_rooms.html +2 -2
  35. data/_includes/schema_conference.html +26 -48
  36. data/_includes/schema_location.html +3 -3
  37. data/_includes/schema_room.html +1 -1
  38. data/_includes/schema_speaker.html +3 -3
  39. data/_includes/schema_talk.html +9 -21
  40. data/_includes/show_live_icon.html +1 -1
  41. data/_includes/show_menu_items.html +19 -0
  42. data/_includes/show_talk_info.html +3 -3
  43. data/_includes/show_talk_time.html +3 -3
  44. data/_layouts/editions.html +20 -0
  45. data/_layouts/home.html +11 -14
  46. data/_layouts/htaccess.html +19 -0
  47. data/_layouts/json-data.html +7 -6
  48. data/_layouts/json-site.html +11 -1
  49. data/_layouts/location.html +5 -3
  50. data/_layouts/manifest.html +6 -5
  51. data/_layouts/program.html +42 -10
  52. data/_layouts/room.html +3 -2
  53. data/_layouts/speaker-overview.html +1 -1
  54. data/_layouts/speaker.html +7 -4
  55. data/_layouts/stream-overview.html +2 -2
  56. data/_layouts/sw.js +14 -2
  57. data/_layouts/talk-overview.html +4 -4
  58. data/_layouts/talk.html +5 -2
  59. data/_sass/theme.scss +37 -0
  60. data/assets/css/conference-only.bundle.css +1 -1
  61. data/assets/css/conference.bundle.css +1 -1
  62. data/assets/js/conference.bundle.js +2 -2
  63. metadata +8 -1
@@ -4,7 +4,9 @@
4
4
  Documents (/documents/), source maps, .woff fonts with a .woff2 twin and
5
5
  the icon font (icons are inline SVGs) are skipped. Theme bundles carry
6
6
  their content hash (?v=), so an unchanged bundle is not downloaded again.
7
+ Of several editions, only the current one is precached.
7
8
  {%- endcomment -%}
9
+ {%- include get_edition.html -%}
8
10
  {%- assign pages = "" | split: "" -%}
9
11
  {%- assign assets = "" | split: "" -%}
10
12
  {%- assign asset_versions = site.data.conference_assets -%}
@@ -23,6 +25,10 @@
23
25
  {%- if page.output == false or page.url == nil or page.url == "" or page.url == "/sw.js" or page_ext == "map" -%}
24
26
  {%- continue -%}
25
27
  {%- endif -%}
28
+ {%- assign page_edition = page.edition | append: "" -%}
29
+ {%- if page.edition and page_edition != edition_current_id -%}
30
+ {%- continue -%}
31
+ {%- endif -%}
26
32
  {%- assign url = page.url | prepend: site.baseurl -%}
27
33
  {%- if page.url contains "/assets/" -%}
28
34
  {%- assign assets = assets | push: url -%}
@@ -36,6 +42,10 @@
36
42
  {%- continue -%}
37
43
  {%- endunless -%}
38
44
  {%- for item in collection.docs -%}
45
+ {%- assign item_edition = item.edition | append: "" -%}
46
+ {%- if item.edition and item_edition != edition_current_id -%}
47
+ {%- continue -%}
48
+ {%- endif -%}
39
49
  {%- unless item.hide or item.output == false -%}
40
50
  {%- assign url = item.url | prepend: site.baseurl -%}
41
51
  {%- assign pages = pages | push: url -%}
@@ -64,7 +74,7 @@
64
74
  {%- assign assets = assets | push: url -%}
65
75
  {%- endfor -%}
66
76
  {
67
- "name": {{ site.title | jsonify }},
77
+ "name": {{ edition_title | jsonify }},
68
78
  "baseurl": {{ site.baseurl | jsonify }},
69
79
  "pages": {{ pages | uniq | jsonify }},
70
80
  "assets": {{ assets | uniq | jsonify }}
@@ -1,3 +1,4 @@
1
+ {%- unless page.hide -%}
1
2
  {% include header.html %}
2
3
 
3
4
  {% assign this_room = page %}
@@ -10,9 +11,7 @@
10
11
  {% endif %}
11
12
  </h1>
12
13
 
13
- {% unless page.hide %}
14
- {% include navbar_rooms.html %}
15
- {% endunless %}
14
+ {% include navbar_rooms.html %}
16
15
 
17
16
  {% if page.postal_address %}
18
17
  <address>
@@ -58,3 +57,6 @@
58
57
  {% endif %}
59
58
 
60
59
  {% include footer.html %}
60
+ {%- else -%}
61
+ {%- include hidden_page.html -%}
62
+ {%- endunless -%}
@@ -1,10 +1,11 @@
1
+ {%- include get_edition.html -%}
1
2
  {%- if site.conference.pwa and site.conference.pwa.enable -%}
2
3
  {
3
- "name": {{ site.title | jsonify }},
4
- "short_name": {{ site.title | jsonify }},
5
- "description": {{ site.description | jsonify }},
4
+ "name": {{ edition_title | jsonify }},
5
+ "short_name": {{ edition_title | jsonify }},
6
+ "description": {{ edition_description | jsonify }},
6
7
  "lang": {{ site.conference.lang | default: 'en' | jsonify }},
7
- "start_url": {{ site.baseurl | append: '/' | jsonify }},
8
+ "start_url": {{ site.baseurl | append: edition_base | append: '/' | jsonify }},
8
9
  "scope": {{ site.baseurl | append: '/' | jsonify }},
9
10
  "display": "standalone",
10
11
  "background_color": {{ site.conference.pwa.background_color | default: '#ffffff' | jsonify }},
@@ -33,7 +34,7 @@
33
34
  {%- endif %}
34
35
  "shortcuts": [
35
36
  {%- assign first_shortcut = true -%}
36
- {%- for link in site.conference.navigation.links -%}
37
+ {%- for link in edition_nav_links -%}
37
38
  {%- unless link.pwa_hide or link.live or link.menu -%}
38
39
  {%- include get_link.html %}
39
40
  {%- unless first_shortcut -%},{%- endunless -%}
@@ -1,6 +1,12 @@
1
+ {%- include get_edition.html -%}
1
2
  {%- include get_location_config.html -%}
2
3
  {% include header.html %}
3
- {% assign nbr_days = site.data.program.days | size -%}
4
+ {%- comment -%} Line at the current time (_js/modules/nowline.js) {%- endcomment -%}
5
+ {%- assign now_line = false -%}
6
+ {%- if edition_live and edition_live.now_line.enable != false -%}
7
+ {%- assign now_line = true -%}
8
+ {%- endif %}
9
+ {% assign nbr_days = edition_program.days | size -%}
4
10
 
5
11
  <h1 class="display-5 {% if nbr_days > 1 -%} mb-2 {%- else -%} mb-4 {%- endif %} text-break">
6
12
  {%- if page.title -%}
@@ -15,7 +21,7 @@
15
21
  {%- if nbr_days > 1 %}
16
22
  <nav aria-label="{{ site.data.lang[site.conference.lang].program.days | default: 'Conference days' }}">
17
23
  <ul class="nav nav-pills justify-content-center mb-3" id="program-tabs" role="tablist">
18
- {%- for d in site.data.program.days -%}
24
+ {%- for d in edition_program.days -%}
19
25
  {%- include get_day_hash.html %}
20
26
  <li class="nav-item" role="presentation">
21
27
  <a class="nav-link {%- if forloop.index == 1 %} active{% endif %}" id="tab-{{ day_hash }}" data-bs-toggle="tab" {%- if d.date -%}{%- include get_talk_timestamp.html %} data-ts="{{ timestamp_start }}" {%- endif %} href="#{{ day_hash }}" role="tab" aria-controls="{{ day_hash }}" aria-selected="{% if forloop.index == 1 %}true{% else %}false{% endif %}">{{ day_name | escape }}</a>
@@ -26,7 +32,7 @@
26
32
  <div class="tab-content" id="day-content">
27
33
  {%- endif %}
28
34
 
29
- {%- for d in site.data.program.days -%}
35
+ {%- for d in edition_program.days -%}
30
36
  {%- if nbr_days > 1 -%}
31
37
  {%- include get_day_hash.html %}
32
38
  <div class="tab-pane {%- if forloop.index == 1 %} active{% endif %}" id="{{ day_hash }}" role="tabpanel" aria-labelledby="tab-{{ day_hash }}">
@@ -39,7 +45,7 @@
39
45
  <th scope="col" class="program-time text-center" aria-label="{{ site.data.lang[site.conference.lang].program.time | default: 'Time' }}">#</th>
40
46
  {%- assign nbr_rooms = d.rooms | size -%}
41
47
  {%- for r in d.rooms -%}
42
- {%- assign room = site.rooms | where: 'name', r.name | first %}
48
+ {%- assign room = edition_rooms | where: 'name', r.name | first %}
43
49
  <th scope="col" class="program-talk text-center" id="room-{{ day_hash }}-{{ forloop.index }}">
44
50
  {%- if room.hide or location_hide -%}
45
51
  {{- room.name | escape -}}
@@ -56,6 +62,16 @@
56
62
  <tbody>
57
63
  {%- include get_day_time.html -%}
58
64
 
65
+ {%- if now_line and d.date -%}
66
+ {%- comment -%} End of the day's last row, e.g. 01:00 the next day (minutes may be 60 after rounding) {%- endcomment -%}
67
+ {%- assign now_hour = day_end_hour | prepend: "0" | slice: -2, 2 -%}
68
+ {%- assign now_offset = day_end_day | times: 1440 | plus: day_end_min | times: 60 -%}
69
+ {%- assign now_end = d.date | append: "T" | append: now_hour | append: ":00:00" | date: "%s" | plus: now_offset -%}
70
+
71
+ {%- comment -%} Rows before the day's start lie after midnight {%- endcomment -%}
72
+ {%- assign now_start_min = day_start_hour | times: 60 | plus: day_start_min -%}
73
+ {%- endif -%}
74
+
59
75
  {%- if day_end_day > day_start_day -%}
60
76
  {%- assign day_end_hour = day_end_day | minus: day_start_day | times: 24 | plus: day_end_hour -%}
61
77
  {%- endif -%}
@@ -84,7 +100,20 @@
84
100
  {% assign current_min = current_time | split: ":" | last | plus: 0 %}
85
101
  {%- endunless -%}
86
102
 
87
- <tr class="h-100">
103
+ {%- if now_line and d.date -%}
104
+ {%- comment -%} Start of the row, e.g. 09:15 {%- endcomment -%}
105
+ {%- assign now_hour = current_hour | prepend: "0" | slice: -2, 2 -%}
106
+ {%- assign now_min = current_min | prepend: "0" | slice: -2, 2 -%}
107
+ {%- assign now_row_min = current_hour | times: 60 | plus: current_min -%}
108
+ {%- assign now_days = day_start_day -%}
109
+ {%- if now_row_min < now_start_min -%}
110
+ {%- assign now_days = now_days | plus: 1 -%}
111
+ {%- endif -%}
112
+ {%- assign now_offset = now_days | times: 86400 -%}
113
+ {%- assign now_row = d.date | append: "T" | append: now_hour | append: ":" | append: now_min | append: ":00" | date: "%s" | plus: now_offset -%}
114
+ {%- endif %}
115
+
116
+ <tr class="h-100" {%- if now_line and d.date %} data-time="{{ now_row }}" {%- endif %}>
88
117
 
89
118
  {%- if current_min == 0 or page.time_steps == "start" -%}
90
119
  <th scope="row" class="program-time text-end">
@@ -113,7 +142,7 @@
113
142
  {%- endif -%}
114
143
  </th>
115
144
  {%- else -%}
116
- <th scope="row">
145
+ <th scope="row" class="program-time">
117
146
  {%- comment -%} Time for screen readers only {%- endcomment -%}
118
147
  <span class="visually-hidden">
119
148
  {%- if current_min < 10 -%}
@@ -126,11 +155,11 @@
126
155
  {%- endif %}
127
156
 
128
157
  {%- for r in d.rooms -%}
129
- {%- assign room = site.rooms | where: 'name', r.name | first -%}
158
+ {%- assign room = edition_rooms | where: 'name', r.name | first -%}
130
159
 
131
160
  {%- assign active_talk = false -%}
132
161
  {%- for t in r.talks -%}
133
- {%- assign talk = site.talks | where: 'name', t.name | first -%}
162
+ {%- assign talk = edition_talks | where: 'name', t.name | first -%}
134
163
 
135
164
  {%- include get_talk_time.html -%}
136
165
 
@@ -222,6 +251,9 @@
222
251
  {%- endfor %}
223
252
  </tbody>
224
253
  </table>
254
+ {%- if now_line and d.date %}
255
+ <div class="program-now bg-{{ edition_live.now_line.color | default: 'danger' }} d-none" data-end="{{ now_end }}" aria-hidden="true"></div>
256
+ {%- endif %}
225
257
  </div>
226
258
 
227
259
  {%- if nbr_days > 1 %}
@@ -232,10 +264,10 @@
232
264
  </div>
233
265
  {%- endif -%}
234
266
 
235
- {%- if site.conference.talks.tracks %}
267
+ {%- if edition_tracks %}
236
268
  {%- unless page.hide_legend -%}
237
269
  <h2 class="h5 mt-4">{{ site.data.lang[site.conference.lang].program.legend | default: "Caption" }}</h2>
238
- {%- for track_prop in site.conference.talks.tracks %}
270
+ {%- for track_prop in edition_tracks %}
239
271
  <div class="d-block d-sm-inline-block m-1 p-1 ps-2 pe-2 bg-{{ track_prop.color | default: 'light' }}-subtle text-{{ track_prop.color | default: 'light' }}-emphasis border-start border-4 border-{{ track_prop.color | default: 'light' }}-subtle fw-normal">
240
272
  {{- track_prop.name | escape -}}
241
273
  </div>
data/_layouts/room.html CHANGED
@@ -1,3 +1,4 @@
1
+ {%- include get_edition.html -%}
1
2
  {%- include get_location_config.html -%}
2
3
  {%- assign this_room = page -%}
3
4
 
@@ -19,7 +20,7 @@
19
20
  {{ content }}
20
21
 
21
22
  {% assign room_talks = false %}
22
- {% for d in site.data.program.days %}
23
+ {% for d in edition_program.days %}
23
24
  {% include get_day_hash.html %}
24
25
  {% for r in d.rooms %}
25
26
  {% if this_room.name == r.name and r.talks.size > 0 %}
@@ -36,7 +37,7 @@
36
37
 
37
38
  <table class="mw-100">
38
39
  {%- for t in r.talks -%}
39
- {%- assign talk = site.talks | where: 'name', t.name | first -%}
40
+ {%- assign talk = edition_talks | where: 'name', t.name | first -%}
40
41
  {%- include show_talk_listed.html hide_day=true -%}
41
42
  {%- endfor -%}
42
43
  </table>
@@ -12,7 +12,7 @@
12
12
 
13
13
  <div class="col-count-1 col-count-md-2 col-count-lg-3">
14
14
  {% assign cur_letter = false %}
15
- {% assign speakers = site.speakers | sort_natural: 'last_name' %}
15
+ {% assign speakers = edition_speakers | sort_natural: 'last_name' %}
16
16
  {% for speaker in speakers %}
17
17
 
18
18
  {% assign last_letter = speaker.last_name | slice: 0 | capitalize %}
@@ -40,7 +40,7 @@
40
40
  {% endif %}
41
41
 
42
42
  {% assign active_speaker = false %}
43
- {% for talk in site.talks %}
43
+ {% for talk in edition_talks %}
44
44
  {% for speaker_name in talk.speakers %}
45
45
  {% if speaker_name == speaker.name %}
46
46
  {% assign active_speaker = true %}
@@ -53,11 +53,11 @@
53
53
  <h2 class="h5 mt-4 mb-2">{{ site.data.lang[site.conference.lang].speaker.talks | default: "Talks at this conference" }}:</h2>
54
54
 
55
55
  <table class="mw-100">
56
- {%- for d in site.data.program.days -%}
56
+ {%- for d in edition_program.days -%}
57
57
  {%- include get_day_hash.html -%}
58
58
  {%- for r in d.rooms -%}
59
59
  {%- for t in r.talks -%}
60
- {%- assign talk = site.talks | where: 'name', t.name | first -%}
60
+ {%- assign talk = edition_talks | where: 'name', t.name | first -%}
61
61
 
62
62
  {%- for speaker_name in talk.speakers -%}
63
63
  {%- if speaker_name == speaker.name -%}
@@ -71,11 +71,14 @@
71
71
  </table>
72
72
  {% endif %}
73
73
 
74
+ {%- include get_overview_url.html layout="speaker-overview" -%}
75
+ {%- if overview_url %}
74
76
  <p class="d-print-none d-pwa-none mt-5">
75
- <a href="{{ page.collection | prepend: '/' | prepend: site.baseurl }}" class="btn btn-outline-secondary">
77
+ <a href="{{ overview_url | prepend: site.baseurl }}" class="btn btn-outline-secondary">
76
78
  {% include icon.html name="people" %}&nbsp;{{ site.data.lang[site.conference.lang].overview | default: "Overview" }}
77
79
  </a>
78
80
  </p>
81
+ {%- endif %}
79
82
 
80
83
  {%- include footer.html -%}
81
84
  {%- else -%}
@@ -11,7 +11,7 @@
11
11
  {{ content }}
12
12
 
13
13
  {%- assign nbr_streams = 0 -%}
14
- {%- for room in site.rooms -%}
14
+ {%- for room in edition_rooms -%}
15
15
  {%- if room.live -%}
16
16
  {%- assign mod_nbr_streams = nbr_streams | modulo: 2 -%}
17
17
  {%- if mod_nbr_streams == 0 %}
@@ -24,7 +24,7 @@
24
24
  {%- include get_room_live_href.html %}
25
25
  {%- comment -%} Loaded by the embed module, after consent {%- endcomment %}
26
26
  <iframe data-embed-src="{{ room_live_href | escape }}" loading="lazy" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen title="{{ site.data.lang[site.conference.lang].live.stream | default: 'Live Stream' }}: {{ room.name | escape }}" aria-labelledby="stream-heading-{{ forloop.index }}"></iframe>
27
- {%- include embed_consent.html href=room_live_href click_to_load=site.conference.live.streaming.click_to_load %}
27
+ {%- include embed_consent.html href=room_live_href click_to_load=edition_live.streaming.click_to_load %}
28
28
  </div>
29
29
  </div>
30
30
 
data/_layouts/sw.js CHANGED
@@ -117,8 +117,20 @@ const networkFirst = async (event) => {
117
117
  // Cache first: versioned assets do not change once cached
118
118
  const cacheFirst = async (event) => (await caches.match(event.request)) || networkFirst(event);
119
119
 
120
+ // Folders of documents (e.g. slides, not offline): /documents/, with
121
+ // editions /<id>/documents/
122
+ {%- assign document_paths = "/documents/" | split: "," -%}
123
+ {%- if site.conference.editions.size > 0 -%}
124
+ {%- assign document_paths = "" | split: "" -%}
125
+ {%- for e in site.conference.editions -%}
126
+ {%- assign document_path = "/" | append: e.id | append: "/documents/" -%}
127
+ {%- assign document_paths = document_paths | push: document_path -%}
128
+ {%- endfor -%}
129
+ {%- endif %}
130
+ const DOCUMENT_PATHS = {{ document_paths | jsonify }};
131
+
120
132
  // Fetch event - only handle same-origin GET requests within the site,
121
- // except the service worker itself and documents (e.g. slides, not offline)
133
+ // except the service worker itself and documents
122
134
  self.addEventListener("fetch", (event) => {
123
135
  const { request } = event;
124
136
  const url = new URL(request.url);
@@ -126,7 +138,7 @@ self.addEventListener("fetch", (event) => {
126
138
  if (request.method !== "GET" || url.origin !== self.location.origin || !url.pathname.startsWith(`${BASE_URL}/`)) {
127
139
  return;
128
140
  }
129
- if (url.pathname === `${BASE_URL}/sw.js` || url.pathname.startsWith(`${BASE_URL}/documents/`)) {
141
+ if (url.pathname === `${BASE_URL}/sw.js` || DOCUMENT_PATHS.some((path) => url.pathname.startsWith(`${BASE_URL}${path}`))) {
130
142
  return;
131
143
  }
132
144
 
@@ -10,15 +10,15 @@
10
10
 
11
11
  {{ content }}
12
12
 
13
- {% if site.conference.talks.tracks %}
14
- {% for track_prop in site.conference.talks.tracks %}
13
+ {% if edition_tracks %}
14
+ {% for track_prop in edition_tracks %}
15
15
  <h2 class="h3 mt-4 mb-3">
16
16
  <span class="badge rounded-0 bg-{{ track_prop.color | default: 'light' }}-subtle text-{{ track_prop.color | default: 'light' }}-emphasis border-4 border-start border-{{ track_prop.color | default: 'light' }}-subtle d-block d-sm-inline text-wrap">
17
17
  {{ track_prop.name | escape }}
18
18
  </span>
19
19
  </h2>
20
20
  <ul class="list-unstyled">
21
- {% for talk in site.talks -%}
21
+ {% for talk in edition_talks -%}
22
22
  {% if talk.track == track_prop.name %}
23
23
  {% include get_talk_overview_talk.html %}
24
24
  {% endif %}
@@ -27,7 +27,7 @@
27
27
  {% endfor %}
28
28
  {% else %}
29
29
  <ul class="list-unstyled">
30
- {% for talk in site.talks -%}
30
+ {% for talk in edition_talks -%}
31
31
  {% include get_talk_overview_talk.html %}
32
32
  {%- endfor %}
33
33
  </ul>
data/_layouts/talk.html CHANGED
@@ -32,7 +32,7 @@
32
32
  </p>
33
33
 
34
34
  <div class="mb-3 p-0">
35
- {% for d in site.data.program.days -%}
35
+ {% for d in edition_program.days -%}
36
36
  {%- include get_day_hash.html -%}
37
37
  {%- for r in d.rooms -%}
38
38
  {%- for t in r.talks -%}
@@ -77,9 +77,12 @@
77
77
  {% endif %}
78
78
 
79
79
  <p class="d-print-none d-pwa-none mt-5">
80
- <a href="{{ page.collection | prepend: '/' | prepend: site.baseurl }}" class="btn btn-outline-secondary me-2">
80
+ {%- include get_overview_url.html layout="talk-overview" -%}
81
+ {%- if overview_url %}
82
+ <a href="{{ overview_url | prepend: site.baseurl }}" class="btn btn-outline-secondary me-2">
81
83
  {% include icon.html name="megaphone" %}&nbsp;{{ site.data.lang[site.conference.lang].overview | default: "Overview" }}
82
84
  </a>
85
+ {%- endif %}
83
86
 
84
87
  {%- include get_program_config.html -%}
85
88
  <a href="{{ program_url | prepend: site.baseurl }}" class="btn btn-outline-secondary">
data/_sass/theme.scss CHANGED
@@ -41,10 +41,15 @@
41
41
  td.program-talk[rowspan] {
42
42
  border-width: 0 0 2px 0.25rem !important;
43
43
  border-bottom-color: var(--bs-body-bg) !important;
44
+
45
+ // Above the line at the current time
46
+ position: relative;
47
+ z-index: 1;
44
48
  }
45
49
  }
46
50
 
47
51
  .program-table-container {
52
+ position: relative;
48
53
  scroll-snap-type: x mandatory;
49
54
  scroll-padding-left: 4rem;
50
55
 
@@ -53,6 +58,38 @@
53
58
  }
54
59
  }
55
60
 
61
+ // Line at the current time (_js/modules/nowline.js): above empty cells,
62
+ // below talks and the time column
63
+ .program-now {
64
+ position: absolute;
65
+ height: 2px;
66
+ margin-top: -1px;
67
+ pointer-events: none;
68
+
69
+ @media print {
70
+ display: none;
71
+ }
72
+ }
73
+
74
+ // Its part in the time column: a box like the line (a gradient would be
75
+ // rounded to pixels differently), behind the label (z-index -1 within the
76
+ // sticky cell)
77
+ .program-now-cell::after {
78
+ content: "";
79
+ position: absolute;
80
+ top: var(--program-now-top);
81
+ left: 0;
82
+ right: 0;
83
+ z-index: -1;
84
+ height: var(--program-now-height);
85
+ background-color: var(--program-now-color);
86
+ pointer-events: none;
87
+
88
+ @media print {
89
+ display: none;
90
+ }
91
+ }
92
+
56
93
  // Speaker Columns
57
94
  @mixin generate-col-count-classes($max-cols: 6) {
58
95
 
@@ -1 +1 @@
1
- .bi{vertical-align:-.125em;width:1em;height:1em}.program-table{border-collapse:separate!important;border-spacing:1rem 0!important}.program-table .program-time{z-index:900;width:4rem;min-width:4rem;max-width:4rem;position:sticky;left:0}.program-table .program-talk{width:15rem;min-width:15rem;max-width:15rem}.program-table td.program-talk[rowspan]{border-width:0 0 2px .25rem!important;border-bottom-color:var(--bs-body-bg)!important}.program-table-container{scroll-snap-type:x mandatory;scroll-padding-left:4rem}.program-table-container tbody .program-talk{scroll-snap-align:start}.col-count-1{column-count:1}.col-count-2{column-count:2}.col-count-3{column-count:3}.col-count-4{column-count:4}.col-count-5{column-count:5}.col-count-6{column-count:6}@media (min-width:576px){.col-count-sm-1{column-count:1}.col-count-sm-2{column-count:2}.col-count-sm-3{column-count:3}.col-count-sm-4{column-count:4}.col-count-sm-5{column-count:5}.col-count-sm-6{column-count:6}}@media (min-width:768px){.col-count-md-1{column-count:1}.col-count-md-2{column-count:2}.col-count-md-3{column-count:3}.col-count-md-4{column-count:4}.col-count-md-5{column-count:5}.col-count-md-6{column-count:6}}@media (min-width:992px){.col-count-lg-1{column-count:1}.col-count-lg-2{column-count:2}.col-count-lg-3{column-count:3}.col-count-lg-4{column-count:4}.col-count-lg-5{column-count:5}.col-count-lg-6{column-count:6}}@media (min-width:1200px){.col-count-xl-1{column-count:1}.col-count-xl-2{column-count:2}.col-count-xl-3{column-count:3}.col-count-xl-4{column-count:4}.col-count-xl-5{column-count:5}.col-count-xl-6{column-count:6}}@media (min-width:1400px){.col-count-xxl-1{column-count:1}.col-count-xxl-2{column-count:2}.col-count-xxl-3{column-count:3}.col-count-xxl-4{column-count:4}.col-count-xxl-5{column-count:5}.col-count-xxl-6{column-count:6}}.col-count{break-inside:avoid-column}.alert>p:last-of-type{margin-bottom:0}.home-header-img{width:100%}@media (min-width:768px){.home-header-img{width:75%}}.mode-light{display:initial}.mode-dark,[data-bs-theme=dark] .mode-light{display:none}[data-bs-theme=dark] .mode-dark{display:initial}.d-pwa-block{display:none}@media (display-mode:standalone),(display-mode:fullscreen){.d-pwa-none{display:none}.d-pwa-block{display:block}body{flex-direction:column;display:flex}.footer-pwa{z-index:1030;margin-top:auto;position:sticky;bottom:0}}[data-pwa=true] .d-pwa-none{display:none}[data-pwa=true] .d-pwa-block{display:block}[data-pwa=true] body{flex-direction:column;display:flex}[data-pwa=true] .footer-pwa{z-index:1030;margin-top:auto;position:sticky;bottom:0}#map,#map .map-consent{min-height:400px}.live-button{color:#fff;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity,1))}.live-button:hover{color:#ccc}.btn-outline-primary{--bs-btn-color:var(--bs-primary-text-emphasis)}[data-bs-theme=dark] .btn-outline-secondary{--bs-btn-color:var(--bs-secondary-color);--bs-btn-border-color:var(--bs-border-color)}[data-bs-theme=dark] .live-button{color:#000;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity,1))}[data-bs-theme=dark] .live-button:hover{color:#000}.live-icon{width:.75em;height:.75em}@keyframes live-icon-pulse{0%,6%{opacity:0}8%,to{opacity:1}}@keyframes live-icon-arc-small{0%,8%{opacity:0}10%,to{opacity:1}}@keyframes live-icon-arc-large{0%,10%{opacity:0}12%,to{opacity:1}}.live-icon .live-icon-arc-small{animation:8s infinite live-icon-pulse}.live-icon .live-icon-arc-medium{animation:8s infinite live-icon-arc-small}.live-icon .live-icon-arc-large{animation:8s infinite live-icon-arc-large}@media (prefers-reduced-motion:reduce){.live-icon .live-icon-arc-small,.live-icon .live-icon-arc-medium,.live-icon .live-icon-arc-large{animation:none}}
1
+ .bi{vertical-align:-.125em;width:1em;height:1em}.program-table{border-collapse:separate!important;border-spacing:1rem 0!important}.program-table .program-time{z-index:900;width:4rem;min-width:4rem;max-width:4rem;position:sticky;left:0}.program-table .program-talk{width:15rem;min-width:15rem;max-width:15rem}.program-table td.program-talk[rowspan]{z-index:1;position:relative;border-width:0 0 2px .25rem!important;border-bottom-color:var(--bs-body-bg)!important}.program-table-container{scroll-snap-type:x mandatory;scroll-padding-left:4rem;position:relative}.program-table-container tbody .program-talk{scroll-snap-align:start}.program-now{pointer-events:none;height:2px;margin-top:-1px;position:absolute}@media print{.program-now{display:none}}.program-now-cell:after{content:"";top:var(--program-now-top);z-index:-1;height:var(--program-now-height);background-color:var(--program-now-color);pointer-events:none;position:absolute;left:0;right:0}@media print{.program-now-cell:after{display:none}}.col-count-1{column-count:1}.col-count-2{column-count:2}.col-count-3{column-count:3}.col-count-4{column-count:4}.col-count-5{column-count:5}.col-count-6{column-count:6}@media (min-width:576px){.col-count-sm-1{column-count:1}.col-count-sm-2{column-count:2}.col-count-sm-3{column-count:3}.col-count-sm-4{column-count:4}.col-count-sm-5{column-count:5}.col-count-sm-6{column-count:6}}@media (min-width:768px){.col-count-md-1{column-count:1}.col-count-md-2{column-count:2}.col-count-md-3{column-count:3}.col-count-md-4{column-count:4}.col-count-md-5{column-count:5}.col-count-md-6{column-count:6}}@media (min-width:992px){.col-count-lg-1{column-count:1}.col-count-lg-2{column-count:2}.col-count-lg-3{column-count:3}.col-count-lg-4{column-count:4}.col-count-lg-5{column-count:5}.col-count-lg-6{column-count:6}}@media (min-width:1200px){.col-count-xl-1{column-count:1}.col-count-xl-2{column-count:2}.col-count-xl-3{column-count:3}.col-count-xl-4{column-count:4}.col-count-xl-5{column-count:5}.col-count-xl-6{column-count:6}}@media (min-width:1400px){.col-count-xxl-1{column-count:1}.col-count-xxl-2{column-count:2}.col-count-xxl-3{column-count:3}.col-count-xxl-4{column-count:4}.col-count-xxl-5{column-count:5}.col-count-xxl-6{column-count:6}}.col-count{break-inside:avoid-column}.alert>p:last-of-type{margin-bottom:0}.home-header-img{width:100%}@media (min-width:768px){.home-header-img{width:75%}}.mode-light{display:initial}.mode-dark,[data-bs-theme=dark] .mode-light{display:none}[data-bs-theme=dark] .mode-dark{display:initial}.d-pwa-block{display:none}@media (display-mode:standalone),(display-mode:fullscreen){.d-pwa-none{display:none}.d-pwa-block{display:block}body{flex-direction:column;display:flex}.footer-pwa{z-index:1030;margin-top:auto;position:sticky;bottom:0}}[data-pwa=true] .d-pwa-none{display:none}[data-pwa=true] .d-pwa-block{display:block}[data-pwa=true] body{flex-direction:column;display:flex}[data-pwa=true] .footer-pwa{z-index:1030;margin-top:auto;position:sticky;bottom:0}#map,#map .map-consent{min-height:400px}.live-button{color:#fff;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity,1))}.live-button:hover{color:#ccc}.btn-outline-primary{--bs-btn-color:var(--bs-primary-text-emphasis)}[data-bs-theme=dark] .btn-outline-secondary{--bs-btn-color:var(--bs-secondary-color);--bs-btn-border-color:var(--bs-border-color)}[data-bs-theme=dark] .live-button{color:#000;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity,1))}[data-bs-theme=dark] .live-button:hover{color:#000}.live-icon{width:.75em;height:.75em}@keyframes live-icon-pulse{0%,6%{opacity:0}8%,to{opacity:1}}@keyframes live-icon-arc-small{0%,8%{opacity:0}10%,to{opacity:1}}@keyframes live-icon-arc-large{0%,10%{opacity:0}12%,to{opacity:1}}.live-icon .live-icon-arc-small{animation:8s infinite live-icon-pulse}.live-icon .live-icon-arc-medium{animation:8s infinite live-icon-arc-small}.live-icon .live-icon-arc-large{animation:8s infinite live-icon-arc-large}@media (prefers-reduced-motion:reduce){.live-icon .live-icon-arc-small,.live-icon .live-icon-arc-medium,.live-icon .live-icon-arc-large{animation:none}}