We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
background-attachment: fixed
1 parent 769bc13 commit ece4171Copy full SHA for ece4171
docs_theme/css/default.css
@@ -160,9 +160,19 @@ body, .navbar .navbar-inner .container-fluid{
160
margin: 0 auto;
161
}
162
163
-body{
164
- background: url("../img/grid.png") repeat-x;
165
- background-attachment: fixed;
+/* Replacement for `body { background-attachment: fixed; }`, which
+ has performance issues when scrolling on large displays. */
+body::before {
166
+ content: ' ';
167
+ position: fixed;
168
+ width: 100%;
169
+ height: 100%;
170
+ top: 0;
171
+ left: 0;
172
+ background-color: #f8f8f8;
173
+ background: url(../img/grid.png) repeat-x;
174
+ will-change: transform;
175
+ z-index: -1;
176
177
178
0 commit comments