Incorporating Bootstrap version 5.3.3, I have implemented a customized WordPress theme where I have specified a range of color overrides.
The custom WordPress theme stylesheet is loaded last, following the Bootstrap stylesheet.
At the beginning of my theme stylesheet, I have defined the following color variables:
/* Colours */
:root {
--mk-gold:#ab9460;
--mk-gold-rgb:171,148,96;
--mk-dark-gold:#615338;
--mk-dark-gold-rgb:97,83,56;
--mk-light-gold:#c4bc9a;
--mk-light-gold-rgb:196,188,154;
--bs-primary:var(--mk-gold);
--bs-primary-rgb:var(--mk-gold-rgb);
--bs-link-color:var(--mk-gold);
--bs-link-hover-color:var(--mk-dark-gold);
--bs-link-color-rgb:var(--mk-gold-rgb);
--bs-link-hover-color-rgb:var(--mk-dark-gold-rgb);
--bs-pagination-active-bg:var(--mk-gold);
--bs-pagination-active-border-color:var(--mk-dark-gold);
}
/* End Colours */
Most of the overrides function correctly, except for the pagination styling. Strangely, the rules related to pagination are not taking precedence over the default Bootstrap values, unlike the primary and link colors which successfully apply the override values when using classes such as text-primary
etc.
Could someone provide insight into why this behavior occurs, particularly in the context of pagination styling?