blob: 28dcec00b051d2dbf2a10087adee7306c3f0634b [file] [log] [blame]
Marc Kupietza737b1b2023-10-07 09:32:20 +02001/**
2 * IDS theme for reveal.js
3 *
4 * By Marc Kupietz
5 */
6
7
8// Default mixins and settings -----------------
9@import "../template/mixins";
10@import "../template/settings";
11// ---------------------------------------------
12
13
14// Include theme-specific fonts
15@import url('https://code.cdn.mozilla.net/fonts/fira.css');
16@import url('https://korap.ids-mannheim.de/font/fira-condensed.css');
17@import url('https://korap.ids-mannheim.de/font/libertinus.css');
18
19$idsOrange: #f6a800;
20
21// Override theme settings (see ../template/settings.scss)
22$backgroundColor: #fff;
23
24$mainColor: #222;
25$headingColor: $idsOrange;
26
27$mainFontSize: 42px;
28$mainFont: 'Libertinus Serif', Helvetica, sans-serif;
Marc Kupietz3fdee732023-10-07 18:52:20 +020029$headingFont: 'Fira Sans Condensed', 'Fira Sans', Helvetica, sans-serif;
Marc Kupietza737b1b2023-10-07 09:32:20 +020030$headingTextShadow: none;
31$headingLetterSpacing: 0.05ex;
32$headingTextTransform: uppercase;
33$headingFontWeight: 600;
34$linkColor: #2a76dd;
35$linkColorHover: lighten( $linkColor, 15% );
36$selectionBackgroundColor: lighten( $linkColor, 25% );
37
38$heading1Size: 2em;
39$heading2Size: 1.35em;
Marc Kupietz3fdee732023-10-07 18:52:20 +020040$heading3Size: 0.9em;
41$heading4Size: 0.7em;
Marc Kupietza737b1b2023-10-07 09:32:20 +020042
43$listBulletColor: $idsOrange;
44
45// Change text colors against dark slide backgrounds
46@include dark-bg-text-color(#fff);
47
48
49// Theme template ------------------------------
50@import "../template/theme";
51// ---------------------------------------------
52
53body {
54 background-image: url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/IDS-Logo-2019.svg'),
55 url('https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/orange_bar.png') !important;
56 background-repeat: no-repeat !important;
57 background-position: top 20px right 20px, top 20px left !important;
58 background-size: 25vH auto, 4vH 16vH !important;
59}
60
61// Define additional color effects based on Dracula spec
62// https://spec.draculatheme.com/
63:root {
64 --r-bold-color: #{$idsOrange};
65 --r-list-bullet-color: #{$listBulletColor};
66}
67
68.reveal {
69 strong, b {
70 color: var(--r-bold-color);
71 }
72
73 // Dracula colored list bullets and numbers
74 ul, ol {
75 li::marker {
76 color: var(--r-list-bullet-color) !important;
77 }
78 }
79}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +020080
81
82/*********************************************
83 * FOOTER
84 *********************************************/
Marc Kupietzc0b272d2023-10-08 14:24:18 +020085 #ids-footer:not(title-slide) {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +020086 opacity: 1;
87 background: white;
88 color: #444444;
89 border-top: dotted orange 2px;
90 transition: opacity 800ms ease-in-out;
91 position: fixed;
92 height: 6%;
93 line-height: 6%;
94 z-index: -20;
95 width: 100%;
96 letter-spacing: 0em;
97 text-align: center;
98 display: table;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +020099}
100
101#ids-footer span {
102 height: 100%;
103 line-height: 100%;
104 z-index: -20;
Marc Kupietz61ad0262024-05-14 22:07:50 +0200105 font-size: 1.8vh;
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200106 font-family: "Fira Sans Condensed", "Fira Sans", "Roboto Condensed", "League Gothic", Impact, sans-serif;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200107 display: inline-block;
108 display: table-cell;
109 vertical-align: middle;
110}
111
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200112/* Bottom position for the IDS-Footer footer when both progress bar and TOC-Progress are visible */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200113div.progress[style="display: block;"] ~ #ids-footer {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200114 bottom: calc(3px + 0vh);
115}
116
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200117/* Bottom position for the IDS-Footer footer when TOC-Progress is visible */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200118#ids-footer {
119 bottom: 3px;
120}
121
122#ids-footer a {
123 color: #555555;
124}
125
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200126/* Bottom position for the IDS-Footer footer when progress bar is visible */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200127div.progress[style="display: block;"] ~ footer:last-of-type#ids-footer {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200128 bottom: 3px;
129}
130
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200131/* Bottom position for the IDS-Footer footer when neither progress bar nor TOC-Progress are visible */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200132footer:last-of-type#ids-footer {
133 bottom: 0px;
134}
135
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200136/* Make IDS-Footer invisible if explicitly indicated */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200137.no-ids-footer #ids-footer {
138 opacity: 0;
139 transition: opacity 800ms ease-in-out;
140}
141
142.title-frame #ids-footer {
143 opacity: 0;
144 transition: opacity 800ms ease-in-out;
145}
146
147.no-toc-progress #ids-footer {
148 opacity: 0;
149 transition: opacity 800ms ease-in-out;
150}
151
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200152/* Make IDS-Footer invisible in overview mode */
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200153.overview #ids-footer {
154 opacity: 0;
155 transition: opacity 800ms ease-in-out;
156}
157
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200158.reveal .title-frame .slide-number {
159 display: none !important;
160}
161
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200162.title-frame div.slide-background-content {
163 text-align: right !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200164 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important;
165 background-repeat: no-repeat;
166 background-position: right 90px bottom 10px !important;
167 background-size: 7vH auto !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200168}
169
170.slide-menu-items, .slide-menu-toolbar {
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200171 font-family: "Fira Sans" !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200172}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200173
174/*
175 * Menu controls
176 */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200177body .reveal .slide-menu-button {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200178 color: #aaaaaa !important;
179 position: fixed;
180 left: 30px;
181 bottom: 2%;
182 vertical-align: middle;
183 z-index: 30;
184 font-size: 2vh;
185}
186
187#customcontrols > ul {
188 color: #aaaaaa !important;
189 position: fixed;
Marc Kupietzf51e9152023-10-07 15:32:33 +0200190 left: 50px;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200191 bottom: 2% !important;
192 vertical-align: middle;
193 z-index: 30;
194 font-size: 2vh;
195}
196
197@media only screen and (min-width: 500px) {
198 #customcontrols > ul {
199 bottom: 2% !important;
200 }
201}
Marc Kupietz3fdee732023-10-07 18:52:20 +0200202
Marc Kupietzc7249f92023-10-10 07:16:50 +0200203.reveal .controls .controls-arrow {
204 position: relative;
205 width: 3.6em;
206 height: 3.6em;
207 bottom: -12px;
208 right: -4px;
209}
210
Marc Kupietz3fdee732023-10-07 18:52:20 +0200211.reveal h3, h4, h5, h6 {
212 text-transform: none !important;
213}
214
215.reveal h3, h4, h5, h6 {
216 text-transform: none !important;
217}
218
219.reveal h2 + h3 {
220 margin-top: -0.5em !important;
221}
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200222
Marc Kupietzfac437e2023-10-09 23:16:38 +0200223.reveal h1:last-child {
224 margin-top: 250px;
225}
226
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200227.title-frame h1,
228.title-frame h2 {
229 margin: 0 0 0 0;
230 background: rgb(246, 168, 0);
231 color: white;
232 font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif;
233 font-weight: 600;
234 line-height: 1.2;
235 letter-spacing: 0.05ex;
236 text-transform: uppercase;
237 width: 100%;
238 margin-top: .5em;
239 padding-top: .5em;
240 font-size: 1.75em;
241 margin-left: 0;
242 text-align: center;
243 text-shadow: none;
244 word-wrap: break-word;
245}
246
247
248.title-frame .author {
249 font-family: "Fira Sans Condensed", sans-serif;
250 font-weight: 400;
251 color: #657b83;
252 margin-top: 10vh;
253}
254
255.title-frame .place {
256 font-family: "Fira Sans Condensed", sans-serif;
257 margin-top: 40px;
258 font-weight: 400;
259 color: #657b83;
260}
261
262.title-frame h2 {
263 margin-top: -3px;
264 margin-bottom: 1em;
265 padding-bottom: .5em;
266 font-size: 1em;
267}
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200268
269/*********************************************
270 * TABLES
271 *********************************************/
272
273 th {
274 color: rgb(246, 168, 0);
275}
276
277table {
278 font-family: 'Fira Sans Condensed', sans-serif;
279 font-weight: 400;
280 font-size: 16px;
281}
282
283.reveal table.dataTable {
284 border: #aaaaaa 1px solid;
285 border-collapse: collapse;
286}
287
288.reveal table.dataTable td {
289 border: #aaaaaa 1px solid;
290 border-collapse: collapse;
291}
292
293.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate, table.dataTable thead > tr > th.sorting::before, table.dataTable thead > tr > th.sorting::after, table.dataTable thead > tr > th.sorting_asc::before, table.dataTable thead > tr > th.sorting_asc::after, table.dataTable thead > tr > th.sorting_desc::before, table.dataTable thead > tr > th.sorting_desc::after, table.dataTable thead > tr > th.sorting_asc_disabled::before, table.dataTable thead > tr > th.sorting_asc_disabled::after, table.dataTable thead > tr > th.sorting_desc_disabled::before, table.dataTable thead > tr > th.sorting_desc_disabled::after, table.dataTable thead > tr > td.sorting::before, table.dataTable thead > tr > td.sorting::after, table.dataTable thead > tr > td.sorting_asc::before, table.dataTable thead > tr > td.sorting_asc::after, table.dataTable thead > tr > td.sorting_desc::before, table.dataTable thead > tr > td.sorting_desc::after, table.dataTable thead > tr > td.sorting_asc_disabled::before, table.dataTable thead > tr > td.sorting_asc_disabled::after, table.dataTable thead > tr > td.sorting_desc_disabled::before, table.dataTable thead > tr > td.sorting_desc_disabled::after {
294 display: none;
295}
296
297.caption {
298 font-family: 'Fira Sans Condensed', sans-serif;
299 font-weight: 400;
300 font-size: 16px;
301 text-align: center;
302}
303
304/*
305table.display td { white-space: nowrap; }
306*/
307
308.dt-buttons, .dataTables_filter {
309 margin-top: 10pt;
310}
311
Marc Kupietz069f1e42023-10-11 10:26:16 +0200312/* Sort Arrows in DataTables */
313table.dataTable thead>tr>th.sorting:before, table.dataTable thead>tr>th.sorting:after, table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sorting_asc:after, table.dataTable thead>tr>th.sorting_desc:before, table.dataTable thead>tr>th.sorting_desc:after, table.dataTable thead>tr>th.sorting_asc_disabled:before, table.dataTable thead>tr>th.sorting_asc_disabled:after, table.dataTable thead>tr>th.sorting_desc_disabled:before, table.dataTable thead>tr>th.sorting_desc_disabled:after, table.dataTable thead>tr>td.sorting:before, table.dataTable thead>tr>td.sorting:after, table.dataTable thead>tr>td.sorting_asc:before, table.dataTable thead>tr>td.sorting_asc:after, table.dataTable thead>tr>td.sorting_desc:before, table.dataTable thead>tr>td.sorting_desc:after, table.dataTable thead>tr>td.sorting_asc_disabled:before, table.dataTable thead>tr>td.sorting_asc_disabled:after, table.dataTable thead>tr>td.sorting_desc_disabled:before, table.dataTable thead>tr>td.sorting_desc_disabled:after {
314 right: 0 !important;
315 line-height: 80% !important;
316}
317
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200318/*********************************************
319 * BIBLIOGRAPHY
320 *********************************************/
321
322.reveal .references {
323 font-family: "Fira Sans Condensed", sans-serif;
324 font-size: 16px;
325 text-align: left;
326 margin-top: 35px;
327 max-height: 540px;
328 font-weight: 400;
329 color: #253b43;
330 overflow-y: auto;
331}
332
333.hanging-indent > .csl-entry {
334 padding-left: 22px ;
335 text-indent: -22px ;
336}
337
338.csl-entry::first-line {
339 color: #253b43;
340}
341
342.csl-entry {
343 color: #888888;
344}
345
346/* Add line break after authors and year*/
347.csl-entry :first-child::before {
348 content: "\a";
349 white-space: pre;
350}
Marc Kupietz11797162023-10-09 23:17:36 +0200351
352.reveal code.sourceCode:last-child + pre {
353 height: 800px !important;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200354}
355
Marc Kupietz589d1b82023-10-10 12:31:33 +0200356
357/*********************************************
358 * ARROWS and SLIDE NUMBERS
359 *********************************************/
360
361 .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before {
362 width: 13px !important; /* size */
363 height: 4px; /* line width */
364}
365
366.reveal .controls {
367 display: none;
368 position: absolute;
369 top: auto;
370 bottom: -8px;
371 right: 16px;
372 left: auto;
373 z-index: 11;
374 /* color: #000;*/
375 pointer-events: none;
376 font-size: 8px;
377}
378
379.reveal .controls .controls-arrow {
380 position: relative;
381 height: 3.6em;
382 width: 1.2em; /* distance betwee arrows */
383 bottom: 0;
384 right: 0;
385}
386
387.reveal div.slide-number {
388 text-align: center;
389 width: 2em;
390 position: absolute;
391 display: block;
392 right: 29px;
393 bottom: 22px;
394 z-index: 31;
395 font-family: "Fira Sans Condensed", sans-serif;
396 font-size: 18px;
397 line-height: 1;
398 background-color: white;
399 color: #666;
400 padding: 0;
401}
402