blob: e836f250107e4d2e8f0037a641defa88038d2220 [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;
105 font-size: 2vh;
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
312/*********************************************
313 * BIBLIOGRAPHY
314 *********************************************/
315
316.reveal .references {
317 font-family: "Fira Sans Condensed", sans-serif;
318 font-size: 16px;
319 text-align: left;
320 margin-top: 35px;
321 max-height: 540px;
322 font-weight: 400;
323 color: #253b43;
324 overflow-y: auto;
325}
326
327.hanging-indent > .csl-entry {
328 padding-left: 22px ;
329 text-indent: -22px ;
330}
331
332.csl-entry::first-line {
333 color: #253b43;
334}
335
336.csl-entry {
337 color: #888888;
338}
339
340/* Add line break after authors and year*/
341.csl-entry :first-child::before {
342 content: "\a";
343 white-space: pre;
344}
Marc Kupietz11797162023-10-09 23:17:36 +0200345
346.reveal code.sourceCode:last-child + pre {
347 height: 800px !important;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200348}
349
Marc Kupietz589d1b82023-10-10 12:31:33 +0200350
351/*********************************************
352 * ARROWS and SLIDE NUMBERS
353 *********************************************/
354
355 .reveal .controls .controls-arrow:after, .reveal .controls .controls-arrow:before {
356 width: 13px !important; /* size */
357 height: 4px; /* line width */
358}
359
360.reveal .controls {
361 display: none;
362 position: absolute;
363 top: auto;
364 bottom: -8px;
365 right: 16px;
366 left: auto;
367 z-index: 11;
368 /* color: #000;*/
369 pointer-events: none;
370 font-size: 8px;
371}
372
373.reveal .controls .controls-arrow {
374 position: relative;
375 height: 3.6em;
376 width: 1.2em; /* distance betwee arrows */
377 bottom: 0;
378 right: 0;
379}
380
381.reveal div.slide-number {
382 text-align: center;
383 width: 2em;
384 position: absolute;
385 display: block;
386 right: 29px;
387 bottom: 22px;
388 z-index: 31;
389 font-family: "Fira Sans Condensed", sans-serif;
390 font-size: 18px;
391 line-height: 1;
392 background-color: white;
393 color: #666;
394 padding: 0;
395}
396