Skip to content

Commit c45b007

Browse files
committed
css: tweak page box model to support scrolling background
1 parent 76ebfec commit c45b007

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/static/site6.css

+6-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
/* Layout - Common */
3333

3434
body {
35-
margin: 10px;
35+
position: relative;
36+
margin: 0;
37+
padding: 10px;
3638
overflow-y: scroll;
3739
}
3840

@@ -41,8 +43,8 @@ body::before {
4143
position: fixed;
4244
top: 0;
4345
left: 0;
44-
width: 100%;
45-
height: 100%;
46+
width: 100vw;
47+
height: 100vh;
4648
z-index: -1;
4749

4850
/* NB: these are 100 LVW, "largest view width", etc.
@@ -56,7 +58,7 @@ body::before {
5658

5759
#page-container {
5860
max-width: 1100px;
59-
margin: 10px auto 50px;
61+
margin: 0 auto 40px;
6062
padding: 15px 0;
6163
}
6264

0 commit comments

Comments
 (0)