From f561409f1cf476e2cc1112538eb7b724748a2378 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 29 Apr 2021 20:31:16 +0200 Subject: Update --- assets/css/objects/_button.scss | 23 ----------------------- assets/css/scopes/_body.scss | 29 +++++++++++++++++++++++++---- assets/css/style.scss | 1 - 3 files changed, 25 insertions(+), 28 deletions(-) delete mode 100644 assets/css/objects/_button.scss (limited to 'assets/css') diff --git a/assets/css/objects/_button.scss b/assets/css/objects/_button.scss deleted file mode 100644 index d97ca2d..0000000 --- a/assets/css/objects/_button.scss +++ /dev/null @@ -1,23 +0,0 @@ -@include namespace('button') { - @include store(( - --dims: ( - --pad-x: 1.4em, - --pad-y: .5em - ), - --colors: ( - --bg: prop(--colors --fg-lo, $global: true), - --fg: prop(--colors --bg, $global: true), - ) - )); - - @include object(namespace()) { - display: inline-block; - padding: prop(--dims --pad-y) prop(--dims --pad-x); - border-radius: 10em; - background-color: prop(--colors --bg); - color: prop(--colors --fg); - font-size: 1 / 16 * 14em; - font-weight: 500; - text-decoration: none; - } -} diff --git a/assets/css/scopes/_body.scss b/assets/css/scopes/_body.scss index faf1ef0..9598290 100644 --- a/assets/css/scopes/_body.scss +++ b/assets/css/scopes/_body.scss @@ -1,8 +1,14 @@ @include namespace('body') { @include store(( --colors: ( - --emph-fg: prop(--colors --accent --color, $global: true), - --emph-bg: prop(--colors --bg-hi, $global: true) + --emph: ( + --fg: prop(--colors --accent --color, $global: true), + --bg: prop(--colors --bg-hi, $global: true), + ), + --meta: ( + --fg: prop(--colors --fg-hi, $global: true), + --bg: prop(--colors --bg-hi, $global: true), + ) ) )); @@ -62,12 +68,27 @@ background-image: linear-gradient( to top, transparent .15em, - #{prop(--colors --emph-bg)} .15em, - #{prop(--colors --emph-bg)} .6em, + #{prop(--colors --emph --bg)} .15em, + #{prop(--colors --emph --bg)} .6em, transparent .6em ); } + @include element('meta') { + display: flex; + font-size: 1 / 16 * 14rem; + + + h1 { + margin-top: $line-height * 1rem; + } + } + + @include element('meta-item') { + padding: .3em .7em; + background-color: prop(--colors --meta --bg); + color: prop(--colors --meta --fg); + } + img { max-width: 100%; } diff --git a/assets/css/style.scss b/assets/css/style.scss index 958710c..aa83f85 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -16,7 +16,6 @@ @import 'layouts/project-grid'; @import 'objects/icon'; -@import 'objects/button'; @import 'components/outer-button'; @import 'components/header'; -- cgit v1.2.3-70-g09d2