1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-21 19:24:17 +00:00

Add compiled layouts-center ruleset

This commit is contained in:
Steffo 2023-04-16 03:53:22 +02:00
parent 7fb6300ac2
commit aefb9f6308
Signed by: steffo
GPG key ID: 2A24051445686895
4 changed files with 66 additions and 10 deletions

View file

@ -1,8 +1,36 @@
:where(.bluelib) :where(.layout-center) :where(.layout-center-background) {
width: 100vw;
height: 120vh;
/**
* Bluelib Layouts Center
* by <me@steffo.eu>
*/
:where(.bluelib) {
min-height: 100vh;
max-width: 1600px;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
}
:where(.bluelib):where(.layout-center) {
padding: 0 16px;
}
@media screen and (max-width: 900px) {
:where(.bluelib):where(.layout-center) {
padding: 0 8px;
}
}
@media screen and (max-width: 450px) {
:where(.bluelib):where(.layout-center) {
padding: 0 4px;
}
}
:where(.bluelib) > :where(.layout-center-background) {
position: fixed;
z-index: -1;
z-index: -100;
top: 0;
left: 0;
width: 110vw;
height: 110vh;
object-fit: cover;
object-position: center;
}

View file

@ -1 +1 @@
:where(.bluelib) :where(.layout-center) :where(.layout-center-background){width:100vw;height:120vh;position:fixed;z-index:-1;object-fit:cover;object-position:center}
:where(.bluelib){min-height:100vh;max-width:1600px;margin:0 auto;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch}:where(.bluelib):where(.layout-center){padding:0 16px}@media screen and (max-width:900px){:where(.bluelib):where(.layout-center){padding:0 8px}}@media screen and (max-width:450px){:where(.bluelib):where(.layout-center){padding:0 4px}}:where(.bluelib)>:where(.layout-center-background){position:fixed;z-index:-100;top:0;left:0;width:110vw;height:110vh;object-fit:cover;object-position:center}

View file

@ -1,8 +1,36 @@
:where(body) :where(.layout-center) > :where(img) {
width: 100vw;
height: 120vh;
/**
* Bluelib Layouts Center
* by <me@steffo.eu>
*/
:where(body) {
min-height: 100vh;
max-width: 1600px;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
}
:where(body):where(.layout-center) {
padding: 0 16px;
}
@media screen and (max-width: 900px) {
:where(body):where(.layout-center) {
padding: 0 8px;
}
}
@media screen and (max-width: 450px) {
:where(body):where(.layout-center) {
padding: 0 4px;
}
}
:where(body) > :where(img) {
position: fixed;
z-index: -1;
z-index: -100;
top: 0;
left: 0;
width: 110vw;
height: 110vh;
object-fit: cover;
object-position: center;
}

View file

@ -1 +1 @@
:where(body) :where(.layout-center)>:where(img){width:100vw;height:120vh;position:fixed;z-index:-1;object-fit:cover;object-position:center}
:where(body){min-height:100vh;max-width:1600px;margin:0 auto;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch}:where(body):where(.layout-center){padding:0 16px}@media screen and (max-width:900px){:where(body):where(.layout-center){padding:0 8px}}@media screen and (max-width:450px){:where(body):where(.layout-center){padding:0 4px}}:where(body)>:where(img){position:fixed;z-index:-100;top:0;left:0;width:110vw;height:110vh;object-fit:cover;object-position:center}