From 6662a2dfb60cd24a60225c40a91f3ba9019b718d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 20 Jun 2021 17:30:37 +0200 Subject: CSS/Markup improvements --- assets/css/layouts/_landing.scss | 2 ++ assets/css/layouts/_section.scss | 43 ++++++++++++++++++++++++++++------------ 2 files changed, 32 insertions(+), 13 deletions(-) (limited to 'assets/css/layouts') diff --git a/assets/css/layouts/_landing.scss b/assets/css/layouts/_landing.scss index 500849e..a81b105 100644 --- a/assets/css/layouts/_landing.scss +++ b/assets/css/layouts/_landing.scss @@ -12,6 +12,8 @@ display: flex; flex-direction: row; align-items: center; + margin-top: auto; + margin-bottom: auto; @include element('banner') { width: 70%; diff --git a/assets/css/layouts/_section.scss b/assets/css/layouts/_section.scss index e8b1617..80b8ca9 100644 --- a/assets/css/layouts/_section.scss +++ b/assets/css/layouts/_section.scss @@ -15,6 +15,13 @@ @include layout(namespace()) { position: relative; + @include modifier('flex') { + display: flex; + flex-direction: column; + align-items: stretch; + justify-content: flex-start; + } + @include modifier('fullscreen') { box-sizing: border-box; min-height: 100vh; @@ -26,26 +33,17 @@ background-color: prop(--colors --body-bg); } - @include modifier('no-head') { + @include modifier('no-header') { padding-top: prop(--dims --outer, $global: true); } - @include element('head') { + @include element('header') { display: flex; flex-direction: row; - justify-self: flex-start; + align-items: center; + height: prop(--dims --outer, $global: true); font-size: 1 / 16 * 15em; - &::after { - content: ''; - width: 100%; - height: 100%; - margin-top: -1px; - margin-right: prop(--container --dims --pad-x, $global: true); - margin-left: prop(--container --dims --pad-x, $global: true); - border-top: 1px solid prop(--colors --border); - } - @include modifier('sticky') { position: sticky; z-index: 9000; @@ -53,5 +51,24 @@ left: 0; } } + + /*@include element('footer') { + position: absolute; + z-index: 10000; + right: 0; + bottom: 0; + height: prop(--dims --outer, $global: true); + font-size: 1 / 16 * 15em; + }*/ + + @include element('header-separator') { + flex: 1 1 auto; + width: 100%; + height: 100%; + margin-top: -1px; + margin-right: prop(--container --dims --pad-x, $global: true); + margin-left: prop(--container --dims --pad-x, $global: true); + border-top: 1px solid prop(--colors --border); + } } } -- cgit v1.2.3-54-g00ecf