From 5db16a08a9726b67b5bb96fd17f813fa1b74f568 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 5 Jan 2021 10:58:04 +0100 Subject: Moved all metadata processing from the build script into a Pandoc Lua filter --- assets/css/_basics.scss | 4 ++-- assets/css/components/_nav.scss | 6 ++++++ assets/css/components/_page.scss | 11 ++++++----- assets/css/scopes/_code.scss | 2 ++ 4 files changed, 16 insertions(+), 7 deletions(-) (limited to 'assets/css') diff --git a/assets/css/_basics.scss b/assets/css/_basics.scss index 05d2974..b18ca57 100644 --- a/assets/css/_basics.scss +++ b/assets/css/_basics.scss @@ -182,7 +182,7 @@ hr { blockquote { position: relative; - margin: ($line-height * 1em) 0 0; - padding-left: calc(#{$subcontent--indent} - 2px); + margin: ($line-height * 1em) 0 0 1px; + padding-left: calc(#{$subcontent--indent} - 3px); border-left: 2px solid var(--obj); } diff --git a/assets/css/components/_nav.scss b/assets/css/components/_nav.scss index 60b3584..6d087ad 100644 --- a/assets/css/components/_nav.scss +++ b/assets/css/components/_nav.scss @@ -40,6 +40,12 @@ color: var(--nav--item--hover--fg); font-weight: bold; } + + &--active { + border-color: var(--nav--item--active--fg); + color: var(--nav--item--active--fg); + font-weight: bold; + } } @media (max-width: map-get($breakpoints, 'sm')) { diff --git a/assets/css/components/_page.scss b/assets/css/components/_page.scss index c9a4650..bccf069 100644 --- a/assets/css/components/_page.scss +++ b/assets/css/components/_page.scss @@ -8,7 +8,8 @@ } &__code { - padding-left: calc(#{$subcontent--indent} - 2px); + margin-left: 1px; + padding-left: calc(#{$subcontent--indent} - 3px); border-left: 2px solid var(--obj); } @@ -49,8 +50,8 @@ &--pre { $scale-factor: $font-size / $code-block--font-size; - // margin-left: calc(#{-1 * $page--item-prefix--width} * #{$scale-factor}); - // padding-left: calc(#{$page--item-prefix--width} * #{$scale-factor}); + margin-left: calc(#{-1 * $page--item-prefix--width} * #{$scale-factor}); + padding-left: calc(#{$page--item-prefix--width} * #{$scale-factor}); border-left: 0; &::before { @@ -58,8 +59,8 @@ height: 100%; overflow: hidden; color: var(--page--item-prefix--fg); - // font-size: px-to-em($font-size, $code-block--font-size); - // line-height: $code-block--line-height / $scale-factor; + font-size: px-to-em($font-size, $code-block--font-size); + line-height: $code-block--line-height / $scale-factor; } } diff --git a/assets/css/scopes/_code.scss b/assets/css/scopes/_code.scss index cdc9425..f6697aa 100644 --- a/assets/css/scopes/_code.scss +++ b/assets/css/scopes/_code.scss @@ -6,6 +6,8 @@ line-height: $line-height; } + /* stylelint-disable selector-class-pattern */ + .c { color: var(--fg-hi); } -- cgit v1.2.3-70-g09d2