From 18b1bce0cbd23aa0f7fa5e883ba079e547554ad3 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 10 Jan 2023 15:57:25 +0100 Subject: Updated headings --- assets/css/components/_hnav.scss | 37 ----------------------------------- assets/css/components/_subheader.scss | 3 ++- assets/css/layouts/_card-list.scss | 14 ++++++++++++- assets/css/style.scss | 1 - 4 files changed, 15 insertions(+), 40 deletions(-) delete mode 100644 assets/css/components/_hnav.scss (limited to 'assets/css') diff --git a/assets/css/components/_hnav.scss b/assets/css/components/_hnav.scss deleted file mode 100644 index 4023c82..0000000 --- a/assets/css/components/_hnav.scss +++ /dev/null @@ -1,37 +0,0 @@ -@use 'iro-sass/src/index' as iro; -@use 'iro-design/src/functions' as fn; - -@include iro.props-namespace('hnav') { - @include iro.props-store(( - --colors: ( - --fg: fn.global-color(--fg-hi), - --border: fn.global-color(--obj), - ) - ), 'colors'); - - @include iro.props-store(( - --dims: ( - --gap-x: fn.global-dim(--size --300), - --gap-y: fn.global-dim(--size --150), - --font-size: .9em, - --margin-top: fn.global-dim(--paragraph --margin-top), - --margin-bottom: fn.global-dim(--size --1000), - --pad-top: calc(fn.global-dim(--paragraph --margin-top) * .5), - ) - ), 'dims'); - - @include iro.bem-component(iro.props-namespace()) { - display: flex; - flex-wrap: wrap; - gap: fn.dim(--gap-y) fn.dim(--gap-x); - align-items: baseline; - margin: fn.dim(--margin-top) 0 fn.dim(--margin-bottom); - padding-top: fn.dim(--pad-top); - border-top: 1px solid fn.color(--border); - color: fn.color(--fg); - - @include iro.bem-elem('item') { - font-size: fn.dim(--font-size); - } - } -} diff --git a/assets/css/components/_subheader.scss b/assets/css/components/_subheader.scss index df8eb50..768ff84 100644 --- a/assets/css/components/_subheader.scss +++ b/assets/css/components/_subheader.scss @@ -14,7 +14,7 @@ @include mx.set-font(--headline, ( --line-height: null, --size: fn.global-dim(--font-size --400), - --weight: normal + --weight: 350 )); color: fn.color(--fg); @@ -30,6 +30,7 @@ } @include iro.bem-elem('title') { + margin-right: .2em; font-size: inherit; font-weight: 800; letter-spacing: 1px; diff --git a/assets/css/layouts/_card-list.scss b/assets/css/layouts/_card-list.scss index d8e67ee..6d330c0 100644 --- a/assets/css/layouts/_card-list.scss +++ b/assets/css/layouts/_card-list.scss @@ -32,7 +32,19 @@ font-size: fn.global-dim(--font-size --100); @include iro.bem-elem('header') { - margin-top: fn.dim(--margin-top); + display: flex; + align-items: center; + gap: fn.dim(--spacing); + margin-top: fn.dim(--margin-top); + } + + @include iro.bem-elem('header-section') { + width: 100%; + + @include iro.bem-next-twin-elem { + flex: 1 0 auto; + width: auto; + } } @include iro.bem-elem('footer') { diff --git a/assets/css/style.scss b/assets/css/style.scss index 1225b2e..5759a50 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -23,7 +23,6 @@ @use 'components/footer'; @use 'components/header'; @use 'components/subheader'; -@use 'components/hnav'; @use 'components/card'; @use 'components/figure'; @use 'components/exhibit'; -- cgit v1.2.3-70-g09d2