-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 labsite: Tweak CSS and scrolling behavior (#425)
Refactor labsite CSS to use more modern CSS features, especially nesting. Finally fix the broken looking light-theme sample selection on the playsite and labsite. Tweak the scrolling behavior for Next button clicks: we always scroll to top of notes section. We also use "smooth" scrolling (rather than immediate jumping to target), which makes it more obvious what's going on. Tested to work on iOS and MacOS, Chrome, Safari, Firefox. Unfortunately no dice on my Ubuntu laptop with Smooth scrolling on any browser 🤷♀. This merges the following commits: * playsite: Fix light-theme sample selection * labsite: Refactor CSS to use nesting * labsite: Improve scrolling on Next click frontend/lab/css/overrides.css | 126 ++++++++++++++++----------------- frontend/play/css/index.css | 20 ++++-- frontend/play/index.js | 2 +- 3 files changed, 79 insertions(+), 69 deletions(-) Link: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Using_CSS_nesting Pull-request: #425
- Loading branch information
Showing
3 changed files
with
79 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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