blob: e2ba97400ccab88eb14811df1c82ac4ccd66db62 [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 Kupietzc0b272d2023-10-08 14:24:18 +0200158.title-frame div.slide-background-content {
159 text-align: right !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200160 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important;
161 background-repeat: no-repeat;
Marc Kupietze9ace292024-05-14 22:11:15 +0200162 background-position: right 15px bottom 5px !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200163 background-size: 7vH auto !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200164}
165
Marc Kupietze9ace292024-05-14 22:11:15 +0200166@media only screen {
167 .title-frame div.slide-background-content {
Marc Kupietz3e018a32024-05-14 23:17:25 +0200168 background-position: right 45px bottom 5px !important;
Marc Kupietze9ace292024-05-14 22:11:15 +0200169 }
170}
171
172
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200173.slide-menu-items, .slide-menu-toolbar {
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200174 font-family: "Fira Sans" !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200175}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200176
177/*
178 * Menu controls
179 */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200180body .reveal .slide-menu-button {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200181 color: #aaaaaa !important;
182 position: fixed;
183 left: 30px;
184 bottom: 2%;
185 vertical-align: middle;
186 z-index: 30;
187 font-size: 2vh;
188}
189
190#customcontrols > ul {
191 color: #aaaaaa !important;
192 position: fixed;
Marc Kupietzf51e9152023-10-07 15:32:33 +0200193 left: 50px;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200194 bottom: 2% !important;
195 vertical-align: middle;
196 z-index: 30;
197 font-size: 2vh;
198}
199
200@media only screen and (min-width: 500px) {
201 #customcontrols > ul {
202 bottom: 2% !important;
203 }
204}
Marc Kupietz3fdee732023-10-07 18:52:20 +0200205
Marc Kupietzc7249f92023-10-10 07:16:50 +0200206.reveal .controls .controls-arrow {
207 position: relative;
208 width: 3.6em;
209 height: 3.6em;
210 bottom: -12px;
211 right: -4px;
212}
213
Marc Kupietz3fdee732023-10-07 18:52:20 +0200214.reveal h3, h4, h5, h6 {
215 text-transform: none !important;
216}
217
218.reveal h3, h4, h5, h6 {
219 text-transform: none !important;
220}
221
222.reveal h2 + h3 {
223 margin-top: -0.5em !important;
224}
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200225
Marc Kupietzfac437e2023-10-09 23:16:38 +0200226.reveal h1:last-child {
227 margin-top: 250px;
228}
229
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200230.title-frame h1,
231.title-frame h2 {
232 margin: 0 0 0 0;
233 background: rgb(246, 168, 0);
234 color: white;
235 font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif;
236 font-weight: 600;
237 line-height: 1.2;
238 letter-spacing: 0.05ex;
239 text-transform: uppercase;
240 width: 100%;
241 margin-top: .5em;
242 padding-top: .5em;
243 font-size: 1.75em;
244 margin-left: 0;
245 text-align: center;
246 text-shadow: none;
247 word-wrap: break-word;
248}
249
250
251.title-frame .author {
252 font-family: "Fira Sans Condensed", sans-serif;
253 font-weight: 400;
254 color: #657b83;
255 margin-top: 10vh;
256}
257
258.title-frame .place {
259 font-family: "Fira Sans Condensed", sans-serif;
260 margin-top: 40px;
261 font-weight: 400;
262 color: #657b83;
263}
264
265.title-frame h2 {
266 margin-top: -3px;
267 margin-bottom: 1em;
268 padding-bottom: .5em;
269 font-size: 1em;
270}
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200271
272/*********************************************
273 * TABLES
274 *********************************************/
275
276 th {
277 color: rgb(246, 168, 0);
278}
279
280table {
281 font-family: 'Fira Sans Condensed', sans-serif;
282 font-weight: 400;
283 font-size: 16px;
284}
285
286.reveal table.dataTable {
287 border: #aaaaaa 1px solid;
288 border-collapse: collapse;
289}
290
291.reveal table.dataTable td {
292 border: #aaaaaa 1px solid;
293 border-collapse: collapse;
294}
295
296.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 {
297 display: none;
298}
299
300.caption {
301 font-family: 'Fira Sans Condensed', sans-serif;
302 font-weight: 400;
303 font-size: 16px;
304 text-align: center;
305}
306
307/*
308table.display td { white-space: nowrap; }
309*/
310
311.dt-buttons, .dataTables_filter {
312 margin-top: 10pt;
313}
314
Marc Kupietz069f1e42023-10-11 10:26:16 +0200315/* Sort Arrows in DataTables */
316table.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 {
317 right: 0 !important;
318 line-height: 80% !important;
319}
320
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200321/*********************************************
322 * BIBLIOGRAPHY
323 *********************************************/
324
325.reveal .references {
326 font-family: "Fira Sans Condensed", sans-serif;
327 font-size: 16px;
328 text-align: left;
329 margin-top: 35px;
330 max-height: 540px;
331 font-weight: 400;
332 color: #253b43;
333 overflow-y: auto;
334}
335
336.hanging-indent > .csl-entry {
337 padding-left: 22px ;
338 text-indent: -22px ;
339}
340
341.csl-entry::first-line {
342 color: #253b43;
343}
344
345.csl-entry {
346 color: #888888;
347}
348
349/* Add line break after authors and year*/
350.csl-entry :first-child::before {
351 content: "\a";
352 white-space: pre;
353}
Marc Kupietz11797162023-10-09 23:17:36 +0200354
355.reveal code.sourceCode:last-child + pre {
356 height: 800px !important;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200357}
358
Marc Kupietz589d1b82023-10-10 12:31:33 +0200359
360/*********************************************
361 * ARROWS and SLIDE NUMBERS
362 *********************************************/
363
364 .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before {
365 width: 13px !important; /* size */
366 height: 4px; /* line width */
367}
368
369.reveal .controls {
370 display: none;
371 position: absolute;
372 top: auto;
373 bottom: -8px;
374 right: 16px;
375 left: auto;
376 z-index: 11;
377 /* color: #000;*/
378 pointer-events: none;
379 font-size: 8px;
380}
381
382.reveal .controls .controls-arrow {
383 position: relative;
384 height: 3.6em;
385 width: 1.2em; /* distance betwee arrows */
386 bottom: 0;
387 right: 0;
388}
389
390.reveal div.slide-number {
391 text-align: center;
392 width: 2em;
393 position: absolute;
394 display: block;
395 right: 29px;
396 bottom: 22px;
397 z-index: 31;
398 font-family: "Fira Sans Condensed", sans-serif;
399 font-size: 18px;
400 line-height: 1;
401 background-color: white;
402 color: #666;
403 padding: 0;
404}
405