Skip to content

Instantly share code, notes, and snippets.

@simevidas
Created April 7, 2023 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simevidas/b1e29d86923805526d2e7a0dd723778c to your computer and use it in GitHub Desktop.
Save simevidas/b1e29d86923805526d2e7a0dd723778c to your computer and use it in GitHub Desktop.
Make reveal.js slides render without JavaScript
* {
box-sizing: border-box !important;
pointer-events: initial !important;
}
.slides {
position: static !important;
}
.slides section {
position: static !important;
display: grid !important;
justify-content: center !important;
align-content: center !important;
height: auto !important;
min-height: 100vh !important;
padding-block: 1em !important;
border-bottom: 3px solid black !important;
}
.slides section > * {
max-width: 80vw !important;
}
.fragment {
opacity: 1 !important;
visibility: visible !important;
}
h2 {
white-space: initial !important;
}
h2 br {
display: none !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment