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