Skip to content

Commit 710cf83

Browse files
samfearnalshedivat
authored andcommitted
Added css to take account of vertical scroll bar and avoid content jumps
1 parent 59e4e39 commit 710cf83

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_sass/_base.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
@charset "UTF-8";
2+
html{
3+
margin-left: calc(100vw - 100%);
4+
margin-right: 0;
5+
}
26

37
html, body {
48
height: auto;

_sass/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
background-color: #fff;
44
opacity: 0.95;
55
position:fixed;
6-
left:0px;
6+
left:calc((100vw - 100%)/2);
77
top:0px;
88
width:100%;
99
z-index: 50;

0 commit comments

Comments
 (0)