blob: 966318a6136d6d367068f32d466fbc13e36eaf9d [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;
29$headingFont: 'Fira Sans Extra Condensed', 'Fira Sans', Helvetica, sans-serif;
30$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;
40$heading3Size: 1.1em;
41$heading4Size: 1.0em;
42
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 *********************************************/
85
86 #ids-footer {
87 opacity: 1;
88 background: white;
89 color: #444444;
90 border-top: dotted orange 2px;
91 transition: opacity 800ms ease-in-out;
92 position: fixed;
93 height: 6%;
94 line-height: 6%;
95 z-index: -20;
96 width: 100%;
97 letter-spacing: 0em;
98 text-align: center;
99 display: table;
100 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg");
101 background-repeat: no-repeat;
102 background-position: right 20px center;
103 background-size: 6vH auto;
104}
105
106#ids-footer span {
107 height: 100%;
108 line-height: 100%;
109 z-index: -20;
110 font-size: 2vh;
111 font-family: "Fira Sans Extra Condensed", "Univers LT Std 47 Cn Lt", "Roboto Condensed", 'League Gothic', Impact, sans-serif;
112 display: inline-block;
113 display: table-cell;
114 vertical-align: middle;
115}
116
117#ids-footer div span {}
118
119
120/* Bottom position for the IDS-Footer footer when both progress bar and TOC-Progress are visible */
121
122div.progress[style="display: block;"]~#ids-footer {
123 bottom: calc(3px + 0vh);
124}
125
126
127/* Bottom position for the IDS-Footer footer when TOC-Progress is visible */
128
129#ids-footer {
130 bottom: 3px;
131}
132
133#ids-footer a {
134 color: #555555;
135}
136
137
138/* Bottom position for the IDS-Footer footer when progress bar is visible */
139
140div.progress[style="display: block;"]~footer:last-of-type#ids-footer {
141 bottom: 3px;
142}
143
144
145/* Bottom position for the IDS-Footer footer when neither progress bar nor TOC-Progress are visible */
146
147footer:last-of-type#ids-footer {
148 bottom: 0px;
149}
150
151
152/* Make IDS-Footer invisible if explicitly indicated */
153
154.no-ids-footer #ids-footer {
155 opacity: 0;
156 transition: opacity 800ms ease-in-out;
157}
158
159.title-frame #ids-footer {
160 opacity: 0;
161 transition: opacity 800ms ease-in-out;
162}
163
164.no-toc-progress #ids-footer {
165 opacity: 0;
166 transition: opacity 800ms ease-in-out;
167}
168
169
170/* Make IDS-Footer invisible in overview mode */
171
172.overview #ids-footer {
173 opacity: 0;
174 transition: opacity 800ms ease-in-out;
175}
176
Marc Kupietzf0ce0322023-10-07 15:33:47 +0200177.reveal .slide-number {
178 position: absolute;
179 display: block;
180 right: 48px;
181 bottom: 32px;
182 z-index: 31;
183 font-family: Fira Sans, sans-serif;
184 font-size: 18px;
185 line-height: 1;
186 background-color: white;
187 color: #666;
188 padding: 5px;
189}
190
191.reveal .title-frame .slide-number {
192 display: none !important;
193}
194
195.title-frame div {
196 text-align:right !important;
197 background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg") !important;
198 background-repeat: no-repeat;
199 background-position: right 90px bottom 10px !important;
200 background-size: 7vH auto !important;
201
202}
203
204.slide-menu-items, .slide-menu-toolbar {
205 font-family: 'Fira Sans' !important;
206}
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200207
208/*
209 * Menu controls
210 */
211
212 body .reveal .slide-menu-button {
213 color: #aaaaaa !important;
214 position: fixed;
215 left: 30px;
216 bottom: 2%;
217 vertical-align: middle;
218 z-index: 30;
219 font-size: 2vh;
220}
221
222#customcontrols > ul {
223 color: #aaaaaa !important;
224 position: fixed;
Marc Kupietzf51e9152023-10-07 15:32:33 +0200225 left: 50px;
Marc Kupietz7c8f7de2023-10-07 11:42:29 +0200226 bottom: 2% !important;
227 vertical-align: middle;
228 z-index: 30;
229 font-size: 2vh;
230}
231
232@media only screen and (min-width: 500px) {
233 #customcontrols > ul {
234 bottom: 2% !important;
235 }
236}