From 598b5e44aa2f949ac470a46a9c850d62211cec42 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 28 Dec 2020 18:23:37 +0100 Subject: Improved CSS vars and scopes --- assets/css/scopes/_page.scss | 22 +++++++++++++++++++--- assets/css/scopes/_refs.scss | 9 +++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 assets/css/scopes/_refs.scss (limited to 'assets/css/scopes') diff --git a/assets/css/scopes/_page.scss b/assets/css/scopes/_page.scss index ba61b5f..6448d08 100644 --- a/assets/css/scopes/_page.scss +++ b/assets/css/scopes/_page.scss @@ -10,7 +10,7 @@ h1, h2, h3, - .c-refs__item, + .s-refs li, pre { position: relative; margin-left: -1 * $page--item-prefix--width; @@ -46,7 +46,7 @@ content: '###'; } - .c-refs__item::before { + .s-refs li::before { content: '->'; } @@ -65,6 +65,22 @@ margin-left: -1 * $page--item-prefix--width; } + :link { + color: var(--page--link--idle--fg); + } + + :visited { + color: var(--page--link--visited--fg); + } + + :link, + :visited { + &:hover { + background-color: var(--page--link--hover--bg); + color: var(--page--link--hover--fg); + } + } + .c-page-header { margin-left: -1 * $page--item-prefix--width; padding-left: $page--item-prefix--width; @@ -82,7 +98,7 @@ h1, h2, h3, - .c-refs__item, + .s-refs li, pre { margin-left: 0; padding-left: 0; diff --git a/assets/css/scopes/_refs.scss b/assets/css/scopes/_refs.scss new file mode 100644 index 0000000..79434ff --- /dev/null +++ b/assets/css/scopes/_refs.scss @@ -0,0 +1,9 @@ +.s-refs { + li { + padding-left: 0; + + &::before { + display: none; + } + } +} -- cgit v1.2.3-70-g09d2