blob: 26dabc576296ae9f622d72829121093cead7bedc [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;
161 right: 48px;
162 bottom: 32px;
163 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;
169 padding: 5px;
170}
171
172.reveal .title-frame .slide-number {
173 display: none !important;
174}
175
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200176.title-frame div.slide-background-content {
177 text-align: right !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200178 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important;
179 background-repeat: no-repeat;
180 background-position: right 90px bottom 10px !important;
181 background-size: 7vH auto !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200182}
183
184.slide-menu-items, .slide-menu-toolbar {
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200185 font-family: "Fira Sans" !important;
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200186}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200187
188/*
189 * Menu controls
190 */
Marc Kupietzc0b272d2023-10-08 14:24:18 +0200191body .reveal .slide-menu-button {
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200192 color: #aaaaaa !important;
193 position: fixed;
194 left: 30px;
195 bottom: 2%;
196 vertical-align: middle;
197 z-index: 30;
198 font-size: 2vh;
199}
200
201#customcontrols > ul {
202 color: #aaaaaa !important;
203 position: fixed;
Marc Kupietzf51e9152023-10-07 15:32:33 +0200204 left: 50px;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200205 bottom: 2% !important;
206 vertical-align: middle;
207 z-index: 30;
208 font-size: 2vh;
209}
210
211@media only screen and (min-width: 500px) {
212 #customcontrols > ul {
213 bottom: 2% !important;
214 }
215}
Marc Kupietz3fdee732023-10-07 18:52:20 +0200216
217.reveal h3, h4, h5, h6 {
218 text-transform: none !important;
219}
220
221.reveal h3, h4, h5, h6 {
222 text-transform: none !important;
223}
224
225.reveal h2 + h3 {
226 margin-top: -0.5em !important;
227}
Marc Kupietzdf0eda92023-10-07 20:50:00 +0200228
229.title-frame h1,
230.title-frame h2 {
231 margin: 0 0 0 0;
232 background: rgb(246, 168, 0);
233 color: white;
234 font-family: "Fira Sans Condensed", "Roboto Condensed", Impact, sans-serif;
235 font-weight: 600;
236 line-height: 1.2;
237 letter-spacing: 0.05ex;
238 text-transform: uppercase;
239 width: 100%;
240 margin-top: .5em;
241 padding-top: .5em;
242 font-size: 1.75em;
243 margin-left: 0;
244 text-align: center;
245 text-shadow: none;
246 word-wrap: break-word;
247}
248
249
250.title-frame .author {
251 font-family: "Fira Sans Condensed", sans-serif;
252 font-weight: 400;
253 color: #657b83;
254 margin-top: 10vh;
255}
256
257.title-frame .place {
258 font-family: "Fira Sans Condensed", sans-serif;
259 margin-top: 40px;
260 font-weight: 400;
261 color: #657b83;
262}
263
264.title-frame h2 {
265 margin-top: -3px;
266 margin-bottom: 1em;
267 padding-bottom: .5em;
268 font-size: 1em;
269}
Marc Kupietz0a3c2e52023-10-08 20:20:43 +0200270
271/*********************************************
272 * TABLES
273 *********************************************/
274
275 th {
276 color: rgb(246, 168, 0);
277}
278
279table {
280 font-family: 'Fira Sans Condensed', sans-serif;
281 font-weight: 400;
282 font-size: 16px;
283}
284
285.reveal table.dataTable {
286 border: #aaaaaa 1px solid;
287 border-collapse: collapse;
288}
289
290.reveal table.dataTable td {
291 border: #aaaaaa 1px solid;
292 border-collapse: collapse;
293}
294
295.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 {
296 display: none;
297}
298
299.caption {
300 font-family: 'Fira Sans Condensed', sans-serif;
301 font-weight: 400;
302 font-size: 16px;
303 text-align: center;
304}
305
306/*
307table.display td { white-space: nowrap; }
308*/
309
310.dt-buttons, .dataTables_filter {
311 margin-top: 10pt;
312}
313
314/*********************************************
315 * BIBLIOGRAPHY
316 *********************************************/
317
318.reveal .references {
319 font-family: "Fira Sans Condensed", sans-serif;
320 font-size: 16px;
321 text-align: left;
322 margin-top: 35px;
323 max-height: 540px;
324 font-weight: 400;
325 color: #253b43;
326 overflow-y: auto;
327}
328
329.hanging-indent > .csl-entry {
330 padding-left: 22px ;
331 text-indent: -22px ;
332}
333
334.csl-entry::first-line {
335 color: #253b43;
336}
337
338.csl-entry {
339 color: #888888;
340}
341
342/* Add line break after authors and year*/
343.csl-entry :first-child::before {
344 content: "\a";
345 white-space: pre;
346}