From 3d7bc85a7735363936a6a40bd6a7fbcf98b2d8ce Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Thu, 18 Aug 2022 15:15:49 +0200 Subject: [PATCH] Add option to specify link color in headers --- res/templateDetails.tmpl.xml | 1 + slt/css/core/_core.scss | 9 +++++++++ slt/css/dynamic-styles.css.php | 1 + 3 files changed, 11 insertions(+) diff --git a/res/templateDetails.tmpl.xml b/res/templateDetails.tmpl.xml index 9792ce4..8cf1f27 100644 --- a/res/templateDetails.tmpl.xml +++ b/res/templateDetails.tmpl.xml @@ -68,6 +68,7 @@ + diff --git a/slt/css/core/_core.scss b/slt/css/core/_core.scss index 351ffc1..efb6f3d 100644 --- a/slt/css/core/_core.scss +++ b/slt/css/core/_core.scss @@ -53,4 +53,13 @@ h2, h3, h4 { line-height: 150%; + + /* stylelint-disable no-descending-specificity -- Keep the block of a elements together */ + a, + a:hover, + a:active, + a:visited { + color: var(--color-header-link, #000); + } + /* stylelint-enable no-descending-specificity */ } diff --git a/slt/css/dynamic-styles.css.php b/slt/css/dynamic-styles.css.php index 024d1a4..892150b 100644 --- a/slt/css/dynamic-styles.css.php +++ b/slt/css/dynamic-styles.css.php @@ -45,6 +45,7 @@ $rightImageValue = empty($params['imgright']) --color-main: ; --color-main-link: ; + --color-header-link: ; --color-page-bg-top: ; --color-page-bg-bottom: ;