From a9d52aa76676b3dc58f55ab3546982d6f588eb97 Mon Sep 17 00:00:00 2001 From: godot Date: Sat, 20 Jan 2024 10:31:11 +0100 Subject: [PATCH] flex monstrosity --- basic.css | 38 +++++++++++++++++++------------------- index.html | 10 ++++------ 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/basic.css b/basic.css index 6099bd2..ed0a189 100644 --- a/basic.css +++ b/basic.css @@ -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{ diff --git a/index.html b/index.html index 37b169c..0720faa 100644 --- a/index.html +++ b/index.html @@ -16,9 +16,10 @@ -
-
+ +
+
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.
@@ -66,10 +67,7 @@ -
-
- -
+