Browse Source

fix(assets/css): prevent ie10+ scrollbar from causing layout to jump

close #144
Josh Habdas 2 months ago
parent
commit
105356fbfa
Signed by: Josh Habdas <jhabdas@protonmail.com> GPG Key ID: B148B31154C75A74
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      assets/css/theme.css

+ 6
- 0
assets/css/theme.css View File

@@ -162,3 +162,9 @@ img {
162 162
     max-width: 50rem;
163 163
   }
164 164
 }
165
+@media only screen and (min-width: 768px), (-ms-high-contrast: active), (-ms-high-contrast: none) {
166
+  /* @see http://browserhacks.com/#hack-28f493d247a12ab654f6c3637f6978d5 */
167
+  html {
168
+    margin-left: calc(100vw - 100%); /* @see https://aykevl.nl/2014/09/fix-jumping-scrollbar */
169
+  }
170
+}

Loading…
Cancel
Save