Fix blank presentation page - Reveal.js initialization and body styling#167
Merged
Conversation
- Remove invalid string values for width/height in Reveal.initialize() - Add explicit html/body viewport styling (100% width/height, no margins) - Add embedded: true to Reveal config - Ensure dark background is applied to viewport https://claude.ai/code/session_01FUJQyGdWpZSgYkW1Xb95gU
There was a problem hiding this comment.
Pull request overview
Fixes a blank Reveal.js presentation page by correcting initialization options and ensuring the document viewport is styled to fill the screen with a consistent dark background.
Changes:
- Add explicit
html, bodysizing (100% width/height) and remove default margins/padding. - Remove invalid string values for
width/heightfromReveal.initialize()and adjust layout-related config. - Enable
embedded: trueand ensure the viewport background is consistently dark.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| height: 100%; | ||
| margin: 0; | ||
| padding: 0; | ||
| background: #1A1A1A; |
There was a problem hiding this comment.
The html/body background color is hard-coded (#1A1A1A) even though the same value is already defined as --surface a few lines below and used for .reveal-viewport. Using background: var(--surface) (or background-color) here would avoid duplication and prevent future drift if the palette changes.
Suggested change
| background: #1A1A1A; | |
| background: var(--surface); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://claude.ai/code/session_01FUJQyGdWpZSgYkW1Xb95gU