Add option to specify link color in headers

This commit is contained in:
Christian Wolf 2022-08-18 15:15:49 +02:00
parent 539ef0f3d9
commit 3d7bc85a77
3 changed files with 11 additions and 0 deletions

View File

@ -68,6 +68,7 @@
<!--<field name="fgcolor1" type='color' default='#fff' label='TPL_SLT_FOREGROUND_COLOR_1'></field>--> <!--<field name="fgcolor1" type='color' default='#fff' label='TPL_SLT_FOREGROUND_COLOR_1'></field>-->
<field name="mainfgcolor" type='color' default='#000' label='TPL_SLT_FOREGROUND_COLOR_MAIN'></field> <field name="mainfgcolor" type='color' default='#000' label='TPL_SLT_FOREGROUND_COLOR_MAIN'></field>
<field name="mainlicolor" type='color' default='#222' label='TPL_SLT_LINK_COLOR_MAIN'></field> <field name="mainlicolor" type='color' default='#222' label='TPL_SLT_LINK_COLOR_MAIN'></field>
<field name="headercolor" type='color' default='#000' label='Color of header (normally foreground link color or black/white)'></field>
<field name="mainbgcolortop" type='color' default='#ddd' label='TPL_SLT_BACKGROUND_COLOR_MAIN_TOP'></field> <field name="mainbgcolortop" type='color' default='#ddd' label='TPL_SLT_BACKGROUND_COLOR_MAIN_TOP'></field>
<field name="mainbgcolorbot" type='color' default='#fff' label='TPL_SLT_BACKGROUND_COLOR_MAIN_BOTTOM'></field> <field name="mainbgcolorbot" type='color' default='#fff' label='TPL_SLT_BACKGROUND_COLOR_MAIN_BOTTOM'></field>

View File

@ -53,4 +53,13 @@ h2,
h3, h3,
h4 { h4 {
line-height: 150%; 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 */
} }

View File

@ -45,6 +45,7 @@ $rightImageValue = empty($params['imgright'])
--color-main: <?php echo $params['mainfgcolor']; ?>; --color-main: <?php echo $params['mainfgcolor']; ?>;
--color-main-link: <?php echo $params['mainlicolor']; ?>; --color-main-link: <?php echo $params['mainlicolor']; ?>;
--color-header-link: <?php echo $params['headercolor']; ?>;
--color-page-bg-top: <?php echo $params['mainbgcolortop']; ?>; --color-page-bg-top: <?php echo $params['mainbgcolortop']; ?>;
--color-page-bg-bottom: <?php echo $params['mainbgcolorbot']; ?>; --color-page-bg-bottom: <?php echo $params['mainbgcolorbot']; ?>;