/** * CASUS Custom Theme for Reveal.js */ @import url('reveal.js/dist/theme/dracula.css'); @font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans_Light.ttf') format('truetype'); font-weight: 300; } @font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans_Regular.ttf') format('truetype'); font-weight: 400; } @font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans_SemiBold.ttf') format('truetype'); font-weight: 600; } @font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans_Bold.ttf') format('truetype'); font-weight: 700; } @font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans_ExtraBold.ttf') format('truetype'); font-weight: 800; } :root { --r-main-font: 'Open Sans', sans-serif; --r-heading-font: 'Open Sans', sans-serif; } /* Progress bar above color bar */ .reveal .progress { z-index: 20; color: #a0e300; } /* Custom font sizes for smaller headings and larger body text */ .reveal { font-size: 24px; } .reveal h1 { font-size: 2.2em; } .reveal h2 { font-size: 1.6em; color: #005096; } .reveal h3 { font-size: 1.3em; color: #005096; } .reveal h4 { font-size: 1.1em; color: #005096; } .reveal ul ul, .reveal ol ol, .reveal ul ol, .reveal ol ul { font-size: 1em; } .reveal p { font-size: 1em; } .reveal pre { font-size: 1em; } .reveal code { font-size: 1em; } .font-smaller { font-size: 22px !important; } .font-small { font-size: 20px !important; } .font-tiny { font-size: 0.4em !important; } /* Make all slides use full width */ .reveal .slides section { width: 100%; max-width: none; left: 0; margin: 0; padding: 0; } /* Left-align all text */ .reveal .slides { text-align: left; } .reveal .slides section:not(.title-slide) h1 { margin: 0 0 20px 0; } .reveal ul, .reveal ol { margin-left: 0; padding-left: 1.5em; } /* Title slide styling */ .title-slide { text-align: center !important; } .title-slide h1, .title-slide h2, .title-slide h3, .title-slide h4, .title-slide p { text-align: center !important; color: #fff; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); } .title-slide h1 { font-size: 2.6em; margin-bottom: 0.3em; font-weight: bold; text-shadow: 2px 2px 4px rgba(50, 50, 50, 0.8), -2px -2px 4px rgba(50, 50, 50, 0.8), 2px -2px 4px rgba(50, 50, 50, 0.8), -2px 2px 4px rgba(50, 50, 50, 0.8); } .title-slide h3 { font-size: 1.5em; margin-bottom: 0.5em; font-weight: bold; text-shadow: 2px 2px 4px rgba(50, 50, 50, 0.8), -2px -2px 4px rgba(50, 50, 50, 0.8), 2px -2px 4px rgba(50, 50, 50, 0.8), -2px 2px 4px rgba(50, 50, 50, 0.8); } .title-slide p { font-size: 1.2em; font-weight: bold; text-shadow: 2px 2px 4px rgba(50, 50, 50, 0.8), -2px -2px 4px rgba(50, 50, 50, 0.8), 2px -2px 4px rgba(50, 50, 50, 0.8), -2px 2px 4px rgba(50, 50, 50, 0.8); } /* useful things for slides */ .vspace { height: 30px; } .vspace2 { height: 60px; } .vspace4 { height: 120px; } /* Print-specific styles */ @media print { /* Reduce logo sizes to 3/4 for print */ .title-logo-hzdr, .title-logo-partners { height: 67px !important; } .title-logo-hzdr { width: 300px !important; background-size: auto 67px !important; } .title-logo-partners { width: 660px !important; background-size: auto 67px !important; } .title-logo-bar { height: 67px !important; left: 220px; right: 240px; } .reveal pre { font-size: 0.9em; } .reveal code { font-size: 0.85em; } /* Title slide centering for print */ .reveal .slides section.title-slide { width: 100vw !important; min-height: 100vh !important; height: auto !important; display: flex !important; flex-direction: column; justify-content: center; align-items: center; text-align: center; box-sizing: border-box; background: url('logos/code_globe.png') no-repeat center center !important; background-size: 100% auto !important; position: relative; } /* Lighten background image in print */ .reveal .slides section.title-slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.5) !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; pointer-events: none; } .reveal .slides section.title-slide > * { position: relative; z-index: 1; } .reveal .slides section.title-slide > * { vertical-align: middle; text-align: center; } .reveal .slides section.title-slide h1, .reveal .slides section.title-slide h2, .reveal .slides section.title-slide h3, .reveal .slides section.title-slide h4, .reveal .slides section.title-slide p { vertical-align: middle; text-align: center !important; text-shadow: none; } /* Page breaks */ .reveal .slides section { page-break-after: always; } /* Hide elements not needed in print */ .reveal::after { display: none !important; } /* Show top-right logo in print */ .logo-link { display: block !important; position: fixed !important; top: 10px !important; right: 10px !important; width: 80px !important; height: 32px !important; max-width: none !important; max-height: none !important; } /* Force logos to show in print - position fixed */ .title-logo-hzdr, .title-logo-partners, .title-logo-bar { display: block !important; position: fixed !important; z-index: 9999 !important; top: auto !important; bottom: 3px !important; } /* Remove black boxes around images in print */ .reveal img { border: none !important; outline: none !important; box-shadow: none !important; } .reveal section img { border: none !important; outline: none !important; box-shadow: none !important; } /* Fix flexbox layout for print */ .reveal .flex-container { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; } .reveal .flex-container > * { flex: none !important; width: auto !important; max-width: 50% !important; } }