Add option to specify link color in headers
This commit is contained in:
parent
539ef0f3d9
commit
3d7bc85a77
@ -68,6 +68,7 @@
|
||||
<!--<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="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="mainbgcolorbot" type='color' default='#fff' label='TPL_SLT_BACKGROUND_COLOR_MAIN_BOTTOM'></field>
|
||||
|
||||
|
@ -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 */
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ $rightImageValue = empty($params['imgright'])
|
||||
|
||||
--color-main: <?php echo $params['mainfgcolor']; ?>;
|
||||
--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-bottom: <?php echo $params['mainbgcolorbot']; ?>;
|
||||
|
Loading…
Reference in New Issue
Block a user