mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-19 21:11:04 +03:00
Replace background-attachment: fixed
in docs (#5777)
Fixed backgrounds have performance issues on large displays.
This commit is contained in:
parent
769bc1336f
commit
ece4171ae4
|
@ -160,9 +160,19 @@ body, .navbar .navbar-inner .container-fluid{
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
body{
|
/* Replacement for `body { background-attachment: fixed; }`, which
|
||||||
background: url("../img/grid.png") repeat-x;
|
has performance issues when scrolling on large displays. */
|
||||||
background-attachment: fixed;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user