flex monstrosity

This commit is contained in:
godot 2024-01-20 10:31:11 +01:00
parent 08de0f0fe0
commit a9d52aa766
2 changed files with 23 additions and 25 deletions

View File

@ -3,14 +3,12 @@
max-width: 64em;
flex-grow: 1;
max-width: 64em;
align-items: center;
}
body {
margin: 0px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
header{
@ -19,9 +17,10 @@ header{
background-color: #2867af;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
display: flex;
}
@ -58,24 +57,27 @@ header > .wrapper > .title{
font-weight: bold;
}
body > .main {
display: flex;
flex-direction: row;
width: 100vw;
align-items: center;
align-content: center;
}
body > .main > .wrapper{
background-color: white;
flex-direction: column;
justify-content: center;
}
@media screen and (min-width: 640em) {
body > .main > .ad {
flex-grow: 1;
background-color: red;`
#@media screen and (min-width: 640em) {
body > .ad {
background-color: red;
position: absolute;
z-index: 1;
width: 100vw;
height: 100vh;
}
#}
.main {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
article{
@ -88,8 +90,6 @@ article{
text-overflow: hidden;
white-space: normal;
text-overflow: ellipsis;
max-height: 40vh;
}
article > .text{

View File

@ -16,8 +16,9 @@
</div>
</div>
</header>
<div class="main">
<div class="ad"></div>
<div class="main">
<div class="wrapper">
<article><div class="text">Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.
</div>
@ -66,9 +67,6 @@
</div>
<div class="ad">
</div>
</div>