blob: 23ef168f599665243c16b88ab724c367c7874a34 [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
177
178/*
179 * Menu controls
180 */
181
182 body .reveal .slide-menu-button {
183 color: #aaaaaa !important;
184 position: fixed;
185 left: 30px;
186 bottom: 2%;
187 vertical-align: middle;
188 z-index: 30;
189 font-size: 2vh;
190}
191
192#customcontrols > ul {
193 color: #aaaaaa !important;
194 position: fixed;
195 left: 30px;
196 bottom: 2% !important;
197 vertical-align: middle;
198 z-index: 30;
199 font-size: 2vh;
200}
201
202@media only screen and (min-width: 500px) {
203 #customcontrols > ul {
204 bottom: 2% !important;
205 }
206}