Skip to content

Commit 23ece39

Browse files
committed
website: prevent scrollbar shift
1 parent e331c4f commit 23ece39

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

website/src/css/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
--ifm-color-primary-lightest: #4298cc;
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
18+
19+
--ifm-navbar-padding-horizontal: 1.5rem;
1820
}
1921

2022
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -27,6 +29,14 @@
2729
--ifm-color-primary-lighter: #6cbff4;
2830
--ifm-color-primary-lightest: #97d2f7;
2931
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
32+
33+
--ifm-navbar-padding-horizontal: 1.5rem;
34+
}
35+
36+
body {
37+
/* https://stackoverflow.com/questions/1417934/how-to-prevent-scrollbar-from-repositioning-web-page/39289453#39289453 */
38+
overflow-x: hidden !important;
39+
margin-right: calc(100% - 100vw);
3040
}
3141

3242
div[class^='announcementBar_'] {

0 commit comments

Comments
 (0)