From 416436b6a757479de8ce58fd87c4927cb52b541d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 10 Jan 2023 12:42:16 +0100 Subject: Improved list page header --- assets/css/components/_subheader.scss | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 assets/css/components/_subheader.scss (limited to 'assets/css/components') diff --git a/assets/css/components/_subheader.scss b/assets/css/components/_subheader.scss new file mode 100644 index 0000000..df8eb50 --- /dev/null +++ b/assets/css/components/_subheader.scss @@ -0,0 +1,39 @@ +@use 'iro-sass/src/index' as iro; +@use 'iro-design/src/functions' as fn; +@use 'iro-design/src/mixins' as mx; + +@include iro.props-namespace('subheader') { + @include iro.props-store(( + --colors: ( + --fg: fn.global-color(--fg), + --strong: fn.global-color(--fg-lo), + ), + ), 'colors'); + + @include iro.bem-component(iro.props-namespace()) { + @include mx.set-font(--headline, ( + --line-height: null, + --size: fn.global-dim(--font-size --400), + --weight: normal + )); + + color: fn.color(--fg); + + > * { + display: inline; + margin: 0; + } + + strong { + color: fn.color(--strong); + font-weight: 500; + } + + @include iro.bem-elem('title') { + font-size: inherit; + font-weight: 800; + letter-spacing: 1px; + text-transform: uppercase; + } + } +} -- cgit v1.2.3-54-g00ecf