- Issue created by @pivica
- ๐ฎ๐ณIndia ravi kant Jaipur
ravi kant โ made their first commit to this issueโs fork.
- ๐ท๐ธSerbia pivica
pivica โ changed the visibility of the branch 3436198-switch-to-css to hidden.
- Merge request !7Issue #3436198 by pivica: Switch to CSS variables for header and footer โ (Merged) created by pivica
- ๐ท๐ธSerbia pivica
Decided to try to push this to 8.x-1.x version.
Introduced CSS vars are part taken from Bootstrap 5.3.x and the rest is added. I didn't want to push too much changes here, just to try to simplify overrides for current custom implementation, so this should not cause any problems when updating current child themes.
New CSS vars that are introduced are for heading and links colors
:root { --bs-heading-color: inherit; --bs-link-color: #026bc5; --bs-link-hover-color: #026bc5; --bsb-link-active-color: #026bc5; }
And for nav link element:
.nav { --bs-nav-link-color: #026bc5; --bs-nav-link-hover-color: #026bc5; --bs-nav-link-disabled-color: #757575; --bsb-nav-link-hover-border-color: #026bc5; --bsb-nav-link-active-color: #026bc5; --bsb-nav-link-active-border-color: #026bc5; }
New SASS variables:
$headings-color: inherit !default; // BS5 CSS vars prefix. $prefix: bs- !default;
I'll test this against at least 3-4 custom projects before merging it.
-
pivica โ
committed 5f3fa3e2 on 8.x-1.x
Issue #3436198 by pivica: Switch to CSS variables for header and footer
-
pivica โ
committed 5f3fa3e2 on 8.x-1.x
-
pivica โ
committed 5f3fa3e2 on 2.x
Issue #3436198 by pivica: Switch to CSS variables for header and footer
-
pivica โ
committed 5f3fa3e2 on 2.x
Automatically closed - issue fixed for 2 weeks with no activity.