Skip to content

Commit

Permalink
chore: gutter scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Apr 8, 2024
1 parent 7942c3a commit e869f12
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.46",
"version": "0.0.47",
"sideEffects": false,
"type": "module",
"scripts": {
Expand Down
17 changes: 16 additions & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,21 @@
}
}

html {
/* prevent layout shifts when the scrollbar appears */
scrollbar-gutter: stable;
}

body[style] {
margin: 0 auto !important;
}

body[data-scroll-locked] {
overflow: hidden;
position: fixed;
width: 100%;
}

/* Custom rules */
iframe {
/* for google login button having a white background otherwise */
Expand All @@ -98,7 +113,7 @@ iframe {

.lucide {
/* bigger stroke for ALL icons */
stroke-width: 2.25px;
stroke-width: 1.75px !important;
}

/* NProgress (top progress bar on page load) */
Expand Down

0 comments on commit e869f12

Please sign in to comment.