Fix full screen repainting correctly

Fix full screen repainting referred in https://github.com/google/material-design-lite/issues/560 correctly.
The commit afab807463 doesn't fix the issue but causes the missing `head.jpg` error in web browser's console.
master
Sesta 2015-07-12 13:30:25 +09:00
parent d0bf9a0169
commit bc040c73ca
1 changed files with 2 additions and 10 deletions

View File

@ -1,18 +1,10 @@
body {
background-image: url('images/bg.jpg');
background-size: cover;
background-attachment: fixed;
/* FIXME: Temp. workaround for vertical scrollbars */
margin: 0;
}
body::before {
background-image: url('/images/head.jpg');
background-image: url('images/bg.jpg');
background-size: cover;
background-attachment: fixed;
content: '';
will-change: transform;
z-index: 1;
z-index: -1;
left: 0;
right: 0;
bottom: 0;