|
| 1 | +/* |
| 2 | + * eccenca theme for the training decks. |
| 3 | + * |
| 4 | + * reveal.js 5.2.1 (MIT, see LICENSE in this directory) is vendored here, |
| 5 | + * not loaded from a CDN, for the same reason the web fonts are self-hosted: |
| 6 | + * no visitor IP address may reach a third-party origin. The bundled reveal.js |
| 7 | + * themes are not used because they @import their own font files. This theme |
| 8 | + * reuses the site's self-hosted Roboto from assets/fonts.css instead. |
| 9 | + * |
| 10 | + * Vendored files: reveal.js, reveal.css, reset.css, plugin/markdown.js, |
| 11 | + * plugin/notes.js (all from the reveal.js@5.2.1 npm package, source map |
| 12 | + * comment removed). |
| 13 | + */ |
| 14 | + |
| 15 | +:root { |
| 16 | + --ecc-orange: #f39200; |
| 17 | + --ecc-orange-dark: #c97800; |
| 18 | + --ecc-slate: #2e3a44; |
| 19 | + --ecc-slate-light: #4a5864; |
| 20 | + --ecc-text: #2e3a44; |
| 21 | + --ecc-muted: #6b7782; |
| 22 | + --ecc-bg: #f4f5f7; |
| 23 | + --ecc-code-bg: #e9e4ef; |
| 24 | + --ecc-callout: #ffc000; |
| 25 | + --ecc-blue: #0f5e98; |
| 26 | + |
| 27 | + --r-background-color: var(--ecc-bg); |
| 28 | + --r-main-font: "Roboto", Helvetica, Arial, sans-serif; |
| 29 | + --r-main-font-size: 24px; |
| 30 | + --r-main-color: var(--ecc-text); |
| 31 | + --r-block-margin: 14px; |
| 32 | + --r-heading-margin: 0 0 22px 0; |
| 33 | + --r-heading-font: "Roboto", Helvetica, Arial, sans-serif; |
| 34 | + --r-heading-color: var(--ecc-slate); |
| 35 | + --r-heading-line-height: 1.15; |
| 36 | + --r-heading-font-weight: 300; |
| 37 | + --r-heading1-size: 2em; |
| 38 | + --r-heading2-size: 1.45em; |
| 39 | + --r-heading3-size: 1.15em; |
| 40 | + --r-code-font: "Roboto Mono", monospace; |
| 41 | + --r-link-color: var(--ecc-blue); |
| 42 | + --r-link-color-hover: var(--ecc-orange-dark); |
| 43 | + --r-selection-background-color: var(--ecc-orange); |
| 44 | + --r-selection-color: #fff; |
| 45 | +} |
| 46 | + |
| 47 | +.reveal-viewport { |
| 48 | + background: var(--r-background-color); |
| 49 | +} |
| 50 | + |
| 51 | +.reveal { |
| 52 | + font-family: var(--r-main-font); |
| 53 | + font-size: var(--r-main-font-size); |
| 54 | + font-weight: 400; |
| 55 | + color: var(--r-main-color); |
| 56 | +} |
| 57 | + |
| 58 | +.reveal .slides { |
| 59 | + text-align: left; |
| 60 | +} |
| 61 | + |
| 62 | +.reveal .slides section { |
| 63 | + height: 100%; |
| 64 | + padding: 30px 46px 52px; |
| 65 | + box-sizing: border-box; |
| 66 | +} |
| 67 | + |
| 68 | +/* eccenca logo mark and copyright line in every slide's footer */ |
| 69 | +.reveal .slides section::after { |
| 70 | + content: "© eccenca GmbH"; |
| 71 | + position: absolute; |
| 72 | + left: 0; |
| 73 | + right: 0; |
| 74 | + bottom: 16px; |
| 75 | + text-align: center; |
| 76 | + font-size: 11px; |
| 77 | + color: var(--ecc-muted); |
| 78 | +} |
| 79 | + |
| 80 | +.reveal h1, |
| 81 | +.reveal h2, |
| 82 | +.reveal h3, |
| 83 | +.reveal h4 { |
| 84 | + margin: var(--r-heading-margin); |
| 85 | + color: var(--r-heading-color); |
| 86 | + font-family: var(--r-heading-font); |
| 87 | + font-weight: var(--r-heading-font-weight); |
| 88 | + line-height: var(--r-heading-line-height); |
| 89 | + text-transform: none; |
| 90 | +} |
| 91 | + |
| 92 | +.reveal h1 { font-size: var(--r-heading1-size); } |
| 93 | +.reveal h2 { font-size: var(--r-heading2-size); } |
| 94 | +.reveal h3 { font-size: var(--r-heading3-size); font-weight: 500; } |
| 95 | + |
| 96 | +.reveal p { |
| 97 | + margin: var(--r-block-margin) 0; |
| 98 | + line-height: 1.35; |
| 99 | +} |
| 100 | + |
| 101 | +.reveal strong { font-weight: 600; } |
| 102 | + |
| 103 | +.reveal ul, |
| 104 | +.reveal ol { |
| 105 | + display: block; |
| 106 | + margin: 0 0 0 1.1em; |
| 107 | +} |
| 108 | + |
| 109 | +.reveal li { |
| 110 | + margin: 0.25em 0; |
| 111 | + line-height: 1.3; |
| 112 | +} |
| 113 | + |
| 114 | +.reveal li li { |
| 115 | + font-size: 0.85em; |
| 116 | +} |
| 117 | + |
| 118 | +.reveal a { |
| 119 | + color: var(--r-link-color); |
| 120 | + text-decoration: underline; |
| 121 | +} |
| 122 | + |
| 123 | +.reveal a:hover { |
| 124 | + color: var(--r-link-color-hover); |
| 125 | +} |
| 126 | + |
| 127 | +.reveal code { |
| 128 | + font-family: var(--r-code-font); |
| 129 | + font-size: 0.85em; |
| 130 | +} |
| 131 | + |
| 132 | +.reveal pre { |
| 133 | + display: block; |
| 134 | + width: 100%; |
| 135 | + margin: var(--r-block-margin) 0; |
| 136 | + font-size: 0.7em; |
| 137 | + line-height: 1.4; |
| 138 | + box-shadow: none; |
| 139 | +} |
| 140 | + |
| 141 | +.reveal pre code { |
| 142 | + display: block; |
| 143 | + padding: 10px 16px; |
| 144 | + overflow: auto; |
| 145 | + max-height: 380px; |
| 146 | + background: var(--ecc-code-bg); |
| 147 | + color: var(--ecc-text); |
| 148 | + white-space: pre; |
| 149 | + word-wrap: normal; |
| 150 | +} |
| 151 | + |
| 152 | +.reveal pre.data code { background: #dfe8f3; } |
| 153 | +.reveal pre.result code { background: #e8eedd; } |
| 154 | + |
| 155 | +.reveal table { |
| 156 | + margin: 10px 0; |
| 157 | + border-collapse: collapse; |
| 158 | + font-size: 0.75em; |
| 159 | +} |
| 160 | + |
| 161 | +.reveal table th, |
| 162 | +.reveal table td { |
| 163 | + padding: 6px 14px; |
| 164 | + border: 1px solid var(--ecc-slate); |
| 165 | + text-align: left; |
| 166 | +} |
| 167 | + |
| 168 | +.reveal table th { background: #e7e9ec; font-weight: 600; } |
| 169 | +.reveal table td { background: #fff; } |
| 170 | + |
| 171 | +/* the yellow "what the query asks" bubble of the original decks */ |
| 172 | +.reveal .ask { |
| 173 | + display: inline-block; |
| 174 | + padding: 10px 18px; |
| 175 | + border-radius: 8px; |
| 176 | + background: var(--ecc-callout); |
| 177 | + font-size: 0.6em; |
| 178 | + font-style: italic; |
| 179 | +} |
| 180 | + |
| 181 | +.reveal .label { |
| 182 | + display: inline-block; |
| 183 | + margin: 0 0 6px; |
| 184 | + font-size: 0.5em; |
| 185 | + font-weight: 600; |
| 186 | + letter-spacing: 0.04em; |
| 187 | + color: var(--ecc-muted); |
| 188 | + text-transform: uppercase; |
| 189 | +} |
| 190 | + |
| 191 | +.reveal .small { font-size: 0.7em; } |
| 192 | +.reveal .muted { color: var(--ecc-muted); } |
| 193 | + |
| 194 | +.reveal .columns { |
| 195 | + display: grid; |
| 196 | + grid-template-columns: 1fr 1fr; |
| 197 | + gap: 30px; |
| 198 | + align-items: start; |
| 199 | +} |
| 200 | + |
| 201 | +.reveal .columns > * { min-width: 0; } |
| 202 | + |
| 203 | +.reveal .pill { |
| 204 | + display: inline-block; |
| 205 | + padding: 4px 18px; |
| 206 | + border-radius: 999px; |
| 207 | + background: var(--ecc-orange); |
| 208 | + color: #fff; |
| 209 | + font-size: 0.5em; |
| 210 | + font-weight: 600; |
| 211 | +} |
| 212 | + |
| 213 | +/* title and section divider slides */ |
| 214 | +.reveal .slides section.title-slide, |
| 215 | +.reveal .slides section.divider { |
| 216 | + display: flex !important; |
| 217 | + flex-direction: column; |
| 218 | + justify-content: flex-end; |
| 219 | + padding-bottom: 66px; |
| 220 | +} |
| 221 | + |
| 222 | +/* the backgrounds themselves are set with data-background-* on the section */ |
| 223 | + |
| 224 | +.reveal .slides section.title-slide h1, |
| 225 | +.reveal .slides section.title-slide h2, |
| 226 | +.reveal .slides section.title-slide p, |
| 227 | +.reveal .slides section.divider h1, |
| 228 | +.reveal .slides section.divider h2, |
| 229 | +.reveal .slides section.divider p, |
| 230 | +.reveal .slides section.title-slide::after, |
| 231 | +.reveal .slides section.divider::after { |
| 232 | + color: #fff; |
| 233 | +} |
| 234 | + |
| 235 | +.reveal .slides section.title-slide h1, |
| 236 | +.reveal .slides section.divider h1 { |
| 237 | + font-weight: 400; |
| 238 | + text-transform: uppercase; |
| 239 | + letter-spacing: 0.01em; |
| 240 | +} |
| 241 | + |
| 242 | +.reveal .slides section.title-slide .brand, |
| 243 | +.reveal .slides section.divider .brand { |
| 244 | + position: absolute; |
| 245 | + top: 44px; |
| 246 | + left: 46px; |
| 247 | + font-size: 1.4em; |
| 248 | + font-weight: 700; |
| 249 | + color: #fff; |
| 250 | + letter-spacing: -0.02em; |
| 251 | +} |
| 252 | + |
| 253 | +.reveal .slides section.title-slide .brand small, |
| 254 | +.reveal .slides section.divider .brand small { |
| 255 | + display: block; |
| 256 | + font-size: 0.4em; |
| 257 | + font-weight: 300; |
| 258 | + letter-spacing: 0.02em; |
| 259 | +} |
| 260 | + |
| 261 | +/* inline SVG diagrams */ |
| 262 | +.reveal svg.diagram { |
| 263 | + display: block; |
| 264 | + max-width: 100%; |
| 265 | + height: auto; |
| 266 | + margin: 10px auto; |
| 267 | + font-family: var(--r-main-font); |
| 268 | +} |
| 269 | + |
| 270 | +.reveal svg.diagram .node { fill: #dfeac6; stroke: #8fae4f; } |
| 271 | +.reveal svg.diagram .lit { fill: #f8cfb3; stroke: #d98a5a; } |
| 272 | +.reveal svg.diagram .edge { stroke: #3c6fb0; stroke-width: 2; fill: none; } |
| 273 | +.reveal svg.diagram text { fill: var(--ecc-text); } |
| 274 | + |
| 275 | +/* Semantic Web layer cake */ |
| 276 | +.reveal .stack { |
| 277 | + display: grid; |
| 278 | + grid-template-columns: repeat(6, 1fr); |
| 279 | + gap: 6px; |
| 280 | + width: 600px; |
| 281 | + margin: 0 auto; |
| 282 | + font-size: 0.5em; |
| 283 | + text-align: center; |
| 284 | +} |
| 285 | + |
| 286 | +.reveal .stack div { |
| 287 | + padding: 10px 4px; |
| 288 | + border: 1px solid #9aa3ab; |
| 289 | + background: #e2e4e7; |
| 290 | +} |
| 291 | + |
| 292 | +/* progress bar and controls in eccenca orange */ |
| 293 | +.reveal .progress { color: var(--ecc-orange); height: 4px; } |
| 294 | +.reveal .controls { color: var(--ecc-orange); } |
| 295 | +.reveal .slide-number a { text-decoration: none; color: inherit; } |
| 296 | +.reveal .slide-number { |
| 297 | + background: transparent; |
| 298 | + color: var(--ecc-muted); |
| 299 | + font-size: 11px; |
| 300 | + left: 46px; |
| 301 | + right: auto; |
| 302 | + bottom: 14px; |
| 303 | +} |
0 commit comments