From b80e8510728b4fc605bd5f6b52d82d320acc2c1f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 14 May 2021 21:18:14 +0200 Subject: Moved ASCII fox from page list header to general footer --- assets/css/components/_ascii.scss | 32 --------------------------- assets/css/components/_footer.scss | 38 +++++++++++++++++++------------- assets/css/components/_outer-button.scss | 6 +++++ 3 files changed, 29 insertions(+), 47 deletions(-) delete mode 100644 assets/css/components/_ascii.scss (limited to 'assets/css/components') diff --git a/assets/css/components/_ascii.scss b/assets/css/components/_ascii.scss deleted file mode 100644 index e6bb39f..0000000 --- a/assets/css/components/_ascii.scss +++ /dev/null @@ -1,32 +0,0 @@ -@include namespace('ascii') { - @include store(( - --colors: ( - --fg: prop(--colors --fg-hi, $global: true), - --border: prop(--colors --fg-hi, $global: true), - ) - )); - - @include component(namespace()) { - overflow: hidden; - color: prop(--colors --fg); - font-family: $font-fam--mono; - line-height: 1.4; - - &::after { - content: str-repeat('░', 400); - display: block; - margin-top: 1 / 16 * 2em; - padding-top: 1 / 16 * 2em; - border-top: 1px solid prop(--colors --border); - color: prop(--colors --fg); - } - - @include element('fixed-content') { - display: inline-block; - position: relative; - left: 50%; - overflow: visible; - transform: translateX(-50%); - } - } -} diff --git a/assets/css/components/_footer.scss b/assets/css/components/_footer.scss index 4e809a4..2bd1fb1 100644 --- a/assets/css/components/_footer.scss +++ b/assets/css/components/_footer.scss @@ -2,26 +2,34 @@ @include store(( --colors: ( --fg: prop(--colors --obj, $global: true), - --border: prop(--colors --obj-hi, $global: true), + --ground: prop(--colors --obj, $global: true), ) )); @include component(namespace()) { - display: flex; - position: relative; - align-items: center; - justify-content: space-between; - height: prop(--dims --outer, $global: true); + position: relative; + min-height: prop(--dims --outer, $global: true); + margin-top: calc(2 * #{prop(--container --dims --pad-y, $global: true)}); + color: prop(--colors --fg); + font-family: $font-fam--mono; + line-height: 1.4; - @include element('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); - color: prop(--colors --fg); - line-height: prop(--dims --outer, $global: true); + &::after { + content: str-repeat('░', 400); + display: block; + margin-top: 1 / 16 * 2em; + padding-top: 1 / 16 * 2em; + overflow: hidden; + border-top: 1px solid prop(--colors --ground); + color: prop(--colors --ground); + } + + @include element('ascii') { + display: inline-block; + position: relative; + left: 50%; + overflow: visible; + transform: translateX(-50%); } } } diff --git a/assets/css/components/_outer-button.scss b/assets/css/components/_outer-button.scss index 21f78f4..2b7775e 100644 --- a/assets/css/components/_outer-button.scss +++ b/assets/css/components/_outer-button.scss @@ -35,6 +35,12 @@ color: prop(--colors --inverted --fg); } + @include modifier('scroll-top') { + position: absolute; + right: 0; + bottom: 0; + } + @include element('icon') { display: flex; position: relative; -- cgit v1.2.3-70-g09d2