Skip to content

Commit 0ab929d

Browse files
author
54895y
committed
fix: keep site background in scrolling root container
1 parent 1556232 commit 0ab929d

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

src/css/custom.css

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,35 @@
4242
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
4343
}
4444

45-
html,
45+
html {
46+
background-color: #eef7f8;
47+
}
48+
4649
body {
50+
background: transparent;
51+
}
52+
53+
#__docusaurus {
54+
min-height: 100vh;
4755
background:
4856
radial-gradient(circle at top, rgba(224, 176, 75, 0.1), transparent 26%),
4957
linear-gradient(180deg, #fffdf7 0%, #eef7f8 100%);
58+
background-repeat: no-repeat;
59+
}
60+
61+
html[data-theme='dark'] {
62+
background-color: #102131;
63+
}
64+
65+
html[data-theme='dark'] body {
66+
background: transparent;
5067
}
5168

52-
[data-theme='dark'] html,
53-
[data-theme='dark'] body {
69+
html[data-theme='dark'] #__docusaurus {
5470
background:
5571
radial-gradient(circle at top, rgba(125, 211, 199, 0.16), transparent 25%),
5672
linear-gradient(180deg, #08131f 0%, #102131 100%);
73+
background-repeat: no-repeat;
5774
}
5875

5976
.navbar {

0 commit comments

Comments
 (0)