diff --git a/docs/theme/stylesheets/extra.css b/docs/theme/stylesheets/extra.css index 94e1aaeb4..e959b7bee 100644 --- a/docs/theme/stylesheets/extra.css +++ b/docs/theme/stylesheets/extra.css @@ -63,4 +63,19 @@ body hr { .md-typeset a { color: var(--md-accent-fg-color--dark); +} + +/* Replacement for `body { background-attachment: fixed; }`, which + has performance issues when scrolling on large displays. */ +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; } \ No newline at end of file