Background image
This commit is contained in:
parent
d7220282b4
commit
d196d8ae32
3 changed files with 16 additions and 2 deletions
14
src/main.css
14
src/main.css
|
|
@ -16,6 +16,20 @@ body
|
||||||
font-family: sans;
|
font-family: sans;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body::before {
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
background-image: url(/assets/back.webp);
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
opacity: 0.15;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 420px)
|
@media (max-width: 420px)
|
||||||
{
|
{
|
||||||
body
|
body
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ module.exports = Object.assign(
|
||||||
{
|
{
|
||||||
filename: "[path].gz[query]",
|
filename: "[path].gz[query]",
|
||||||
algorithm: "gzip",
|
algorithm: "gzip",
|
||||||
test: [/\.js/, /^assets\.*/],
|
test: [/\.js/, /\.svg/],
|
||||||
threshold: 1000
|
threshold: 1000
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ module.exports = Object.assign(
|
||||||
{
|
{
|
||||||
filename: "[path].gz[query]",
|
filename: "[path].gz[query]",
|
||||||
algorithm: "gzip",
|
algorithm: "gzip",
|
||||||
test: [/\.js/, /^assets\.*/],
|
test: [/\.js/, /\.svg/],
|
||||||
threshold: 1000
|
threshold: 1000
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue