blob: 8cb1b8353bd57ec0cd1c077803950975af2007dc [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 .slide-number {
159 position: absolute;
160 display: block;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200161 right: 44px;
162 bottom: 23px;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200163 z-index: 31;
164 font-family: Fira Sans, sans-serif;
165 font-size: 18px;
166 line-height: 1;
167 background-color: white;
168 color: #666;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200169 padding: 0;
170 text-align: right;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200171}
172
173.reveal .title-frame .slide-number {
174 display: none !important;
175}
176
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200177.title-frame div.slide-background-content {
178 text-align: right !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200179 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important;
180 background-repeat: no-repeat;
181 background-position: right 90px bottom 10px !important;
182 background-size: 7vH auto !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200183}
184
185.slide-menu-items, .slide-menu-toolbar {
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200186 font-family: "Fira Sans" !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200187}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200188
189/*
190 * Menu controls
191 */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200192body .reveal .slide-menu-button {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200193 color: #aaaaaa !important;
194 position: fixed;
195 left: 30px;
196 bottom: 2%;
197 vertical-align: middle;
198 z-index: 30;
199 font-size: 2vh;
200}
201
202#customcontrols > ul {
203 color: #aaaaaa !important;
204 position: fixed;
Marc Kupietzf51e9152023-10-07 15:32:33 +0200205 left: 50px;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200206 bottom: 2% !important;
207 vertical-align: middle;
208 z-index: 30;
209 font-size: 2vh;
210}
211
212@media only screen and (min-width: 500px) {
213 #customcontrols > ul {
214 bottom: 2% !important;
215 }
216}
Marc Kupietz3fdee732023-10-07 18:52:20 +0200217
Marc Kupietzc7249f92023-10-10 07:16:50 +0200218.reveal .controls .controls-arrow {
219 position: relative;
220 width: 3.6em;
221 height: 3.6em;
222 bottom: -12px;
223 right: -4px;
224}
225
Marc Kupietz3fdee732023-10-07 18:52:20 +0200226.reveal h3, h4, h5, h6 {
227 text-transform: none !important;
228}
229
230.reveal h3, h4, h5, h6 {
231 text-transform: none !important;
232}
233
234.reveal h2 + h3 {
235 margin-top: -0.5em !important;
236}
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200237
Marc Kupietzfac437e2023-10-09 23:16:38 +0200238.reveal h1:last-child {
239 margin-top: 250px;
240}
241
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200242.title-frame h1,
243.title-frame h2 {
244 margin: 0 0 0 0;
245 background: rgb(246, 168, 0);
246 color: white;
247 font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif;
248 font-weight: 600;
249 line-height: 1.2;
250 letter-spacing: 0.05ex;
251 text-transform: uppercase;
252 width: 100%;
253 margin-top: .5em;
254 padding-top: .5em;
255 font-size: 1.75em;
256 margin-left: 0;
257 text-align: center;
258 text-shadow: none;
259 word-wrap: break-word;
260}
261
262
263.title-frame .author {
264 font-family: "Fira Sans Condensed", sans-serif;
265 font-weight: 400;
266 color: #657b83;
267 margin-top: 10vh;
268}
269
270.title-frame .place {
271 font-family: "Fira Sans Condensed", sans-serif;
272 margin-top: 40px;
273 font-weight: 400;
274 color: #657b83;
275}
276
277.title-frame h2 {
278 margin-top: -3px;
279 margin-bottom: 1em;
280 padding-bottom: .5em;
281 font-size: 1em;
282}
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200283
284/*********************************************
285 * TABLES
286 *********************************************/
287
288 th {
289 color: rgb(246, 168, 0);
290}
291
292table {
293 font-family: 'Fira Sans Condensed', sans-serif;
294 font-weight: 400;
295 font-size: 16px;
296}
297
298.reveal table.dataTable {
299 border: #aaaaaa 1px solid;
300 border-collapse: collapse;
301}
302
303.reveal table.dataTable td {
304 border: #aaaaaa 1px solid;
305 border-collapse: collapse;
306}
307
308.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 {
309 display: none;
310}
311
312.caption {
313 font-family: 'Fira Sans Condensed', sans-serif;
314 font-weight: 400;
315 font-size: 16px;
316 text-align: center;
317}
318
319/*
320table.display td { white-space: nowrap; }
321*/
322
323.dt-buttons, .dataTables_filter {
324 margin-top: 10pt;
325}
326
327/*********************************************
328 * BIBLIOGRAPHY
329 *********************************************/
330
331.reveal .references {
332 font-family: "Fira Sans Condensed", sans-serif;
333 font-size: 16px;
334 text-align: left;
335 margin-top: 35px;
336 max-height: 540px;
337 font-weight: 400;
338 color: #253b43;
339 overflow-y: auto;
340}
341
342.hanging-indent > .csl-entry {
343 padding-left: 22px ;
344 text-indent: -22px ;
345}
346
347.csl-entry::first-line {
348 color: #253b43;
349}
350
351.csl-entry {
352 color: #888888;
353}
354
355/* Add line break after authors and year*/
356.csl-entry :first-child::before {
357 content: "\a";
358 white-space: pre;
359}
Marc Kupietz11797162023-10-09 23:17:36 +0200360
361.reveal code.sourceCode:last-child + pre {
362 height: 800px !important;
Marc Kupietzc7249f92023-10-10 07:16:50 +0200363}
364