Commit 8a6d7f62 authored by Yeray Diaz Diaz's avatar Yeray Diaz Diaz Committed by Waylan Limberg
Browse files

Avoid `background-attachment: fixed` for better performance (#1395)

Fixes #1394.
parent 462584f3
body {
padding-top: 70px;
background: url(../img/grid.png) repeat-x;
background-attachment: fixed;
}
/* Replacement for `body { background-attachment: fixed; }`, which has
performance issues when scrolling on large displays. See #1394. */
body::before {
content: ' ';
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: #f8f8f8;
background: url(../img/grid.png) repeat-x;
will-change: transform;
z-index: -1;
}
body > .container {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment