mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
Change background rendering system
This commit is contained in:
parent
ac65c603ad
commit
a906213bd0
2 changed files with 24 additions and 4 deletions
|
@ -1,21 +1,40 @@
|
||||||
#body {
|
#background {
|
||||||
background-image: url("Space_Default.jpg");
|
width: 100vw;
|
||||||
background-attachment: fixed;
|
height: 120vh;
|
||||||
background-size: cover;
|
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
|
z-index: -1;
|
||||||
|
|
||||||
|
object-fit: cover;
|
||||||
|
object-position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#body {
|
||||||
padding: 0 16px;
|
padding: 0 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#background {
|
||||||
|
margin: 0 -16px;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 800px) {
|
@media screen and (max-width: 800px) {
|
||||||
#body {
|
#body {
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#background {
|
||||||
|
margin: 0 -8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 400px) {
|
@media screen and (max-width: 400px) {
|
||||||
#body {
|
#body {
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#background {
|
||||||
|
margin: 0 -4px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#body .chapter-1 > .panel,
|
#body .chapter-1 > .panel,
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
<title>Bluelib</title>
|
<title>Bluelib</title>
|
||||||
</head>
|
</head>
|
||||||
<body id="body" class="theme-bluelib">
|
<body id="body" class="theme-bluelib">
|
||||||
|
<img id="background" alt="" src="Space_Default.jpg">
|
||||||
<main>
|
<main>
|
||||||
<article>
|
<article>
|
||||||
<h1>
|
<h1>
|
||||||
|
|
Loading…
Reference in a new issue