';var n=e.firstChild;e.insertBefore(t,n);var i,a=document.getElementById("dxpr-settings-search"),s=document.getElementById("dxpr-settings-search-clear"),o=[],r=function(){o=[];var t=e.querySelectorAll("label, legend, .vertical-tabs__menu-item-title, .form-header h2, .card-header, summary .details-title"),n=e.querySelectorAll(".description, .help-block");t.forEach((function(e){var t=e.closest(".form-item, .js-form-type-checkbox, .form-wrapper, details, .vertical-tabs__menu-item");t&&o.push({element:t,text:e.textContent.toLowerCase(),type:"label"})})),n.forEach((function(e){var t=e.closest(".form-item, .js-form-type-checkbox, .form-wrapper, details");t&&o.push({element:t,text:e.textContent.toLowerCase(),type:"description"})}))},c=function(t){if(""!==(t=t.toLowerCase().trim())){var n=new Set,i=new Set;o.forEach((function(e){if(e.text.includes(t)){n.add(e.element),(e.element.classList.contains("form-wrapper")||e.element.classList.contains("card")||"DETAILS"===e.element.tagName||"FIELDSET"===e.element.tagName)&&e.element.querySelectorAll(".form-item, .js-form-type-checkbox, .js-form-type-radio, .js-form-type-select, .js-form-type-textfield, .js-form-type-range").forEach((function(e){n.add(e)}));var a=e.element.closest(".vertical-tabs__pane");if(a){var s=a.id;s&&i.add(s)}}}));var a=new Set;if(o.forEach((function(e){a.add(e.element)})),a.forEach((function(e){if(n.has(e)){e.style.display="";for(var t=e.parentElement;t&&!t.classList.contains("vertical-tabs__pane");)(t.classList.contains("form-wrapper")||t.classList.contains("card")||"DETAILS"===t.tagName||"FIELDSET"===t.tagName)&&(t.style.display="","DETAILS"===t.tagName&&(t.open=!0)),t=t.parentElement}else e.style.display="none"})),n.size>0){var s=e.querySelector(".form-type-vertical-tabs");s&&(s.style.display="block")}e.querySelectorAll(".vertical-tabs__menu-item").forEach((function(e){var t=e.querySelector("a");if(t){var n=t.getAttribute("href");if(n&&n.startsWith("#")){var a=n.substring(1);if(i.has(a)){e.style.display="";var s=document.getElementById(a);s&&(s.style.display="")}else e.style.display="none"}}}))}else{o.forEach((function(e){e.element.style.display=""})),e.querySelectorAll(".vertical-tabs__menu-item").forEach((function(e){e.style.display=""}));var r=e.querySelector(".form-type-vertical-tabs");r&&(r.style.display="")}},l=function(){s.style.display=a.value.length>0?"block":"none"};a.addEventListener("input",(function(){l(),clearTimeout(i),i=setTimeout((function(){c(a.value)}),150)})),s.addEventListener("click",(function(){a.value="",l(),c(""),a.focus()})),a.addEventListener("keydown",(function(e){"Escape"===e.key&&a.value.length>0&&(a.value="",l(),c(""))})),l(),setTimeout((function(){r()}),500),new MutationObserver((function(){clearTimeout(i),i=setTimeout((function(){r()}),300)})).observe(e,{childList:!0,subtree:!0}),window.addEventListener("load",(function(){setTimeout(r,1e3)})),document.addEventListener("click",(function(e){e.target.closest(".vertical-tabs__menu-item")&&setTimeout(r,100)}))}}}},619:function(e,t,n){var i=n(473).initializeSidebarNavigation;e.exports={loadStyleguide:function(){requestAnimationFrame((function(){var e=document.querySelector(".region-content");if(e){var t=document.createElement("div");t.innerHTML='\n ',e.insertBefore(t,e.firstChild);var n=drupalSettings.dxpr_theme&&drupalSettings.dxpr_theme.styleguide_url?drupalSettings.dxpr_theme.styleguide_url:"".concat(window.location.origin+window.location.pathname.replace("/admin/appearance/settings",""),"/themes/custom/dxpr_theme/resources/styleguide.html"),a="".concat(n,"?v=").concat(Date.now());fetch(a,{cache:"no-store"}).then((function(e){if(!e.ok)throw new Error("HTTP ".concat(e.status,": ").concat(e.statusText));return e.text()})).then((function(e){var n=(new DOMParser).parseFromString(e,"text/html").querySelector(".bd-cheatsheet");n?(t.innerHTML=n.outerHTML,i(),setTimeout((function(){var e=document.getElementById("edit-block-card"),t=document.getElementById("edit-title-card");e&&e.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),t&&t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));var n=document.getElementById("edit-block-divider");n&&n.checked&&n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));var i=document.getElementById("edit-title-sticker");i&&i.checked&&i.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))}),100)):t.innerHTML='Notice: Styleguide content structure has changed. The expected content section (.bd-cheatsheet) was not found in the loaded HTML.
This may indicate a change in the styleguide format or a configuration issue.
'})).catch((function(e){var n=e.message||"Unknown error occurred";t.innerHTML='Bootstrap Style Guide
Error: Failed to load style guide content.
Details: '.concat(n,"
Please check your network connection and ensure the style guide file is accessible.
")}))}}))}}},874:function(e){e.exports={createBodyWrapper:function(){var e=document.body,t=document.createElement("div");for(t.className="dxpr-body-wrapper";e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t),document.documentElement.style.setProperty("--drupal-displace-offset-right","40vw")}}}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}var i=n(874).createBodyWrapper,a=n(613).initSearchFunctionality,s=n(619).loadStyleguide;!function(e,t){"use strict";e.behaviors.dxprThemeSettingsSidebar={attach:function(e,n){var i=this;t("dxpr-theme-settings-sidebar","html",e).forEach((function(e){i.init(e,n)}))},init:function(e,t){i(),a(),s()}}}(Drupal,once)}();
\ No newline at end of file
+!function(){var e={804:function(e){e.exports={initSearchFunctionality:function(){var e=document.getElementById("system-theme-settings");if(e){var t=document.createElement("div");t.className="dxpr-search-container",t.innerHTML='';var n=e.firstChild;e.insertBefore(t,n);var i,a=document.getElementById("dxpr-settings-search"),s=document.getElementById("dxpr-settings-search-clear"),o=[],r=function(){o=[];var t=e.querySelectorAll("label, legend, .vertical-tabs__menu-item-title, .form-header h2, .card-header, summary .details-title"),n=e.querySelectorAll(".description, .help-block");t.forEach((function(e){var t=e.closest(".form-item, .js-form-type-checkbox, .form-wrapper, details, .vertical-tabs__menu-item");t&&o.push({element:t,text:e.textContent.toLowerCase(),type:"label"})})),n.forEach((function(e){var t=e.closest(".form-item, .js-form-type-checkbox, .form-wrapper, details");t&&o.push({element:t,text:e.textContent.toLowerCase(),type:"description"})}))},c=function(t){if(""!==(t=t.toLowerCase().trim())){var n=new Set,i=new Set;o.forEach((function(e){if(e.text.includes(t)){n.add(e.element),(e.element.classList.contains("form-wrapper")||e.element.classList.contains("card")||"DETAILS"===e.element.tagName||"FIELDSET"===e.element.tagName)&&e.element.querySelectorAll(".form-item, .js-form-type-checkbox, .js-form-type-radio, .js-form-type-select, .js-form-type-textfield, .js-form-type-range").forEach((function(e){n.add(e)}));var a=e.element.closest(".vertical-tabs__pane");if(a){var s=a.id;s&&i.add(s)}}}));var a=new Set;if(o.forEach((function(e){a.add(e.element)})),a.forEach((function(e){if(n.has(e)){e.style.display="";for(var t=e.parentElement;t&&!t.classList.contains("vertical-tabs__pane");)(t.classList.contains("form-wrapper")||t.classList.contains("card")||"DETAILS"===t.tagName||"FIELDSET"===t.tagName)&&(t.style.display="","DETAILS"===t.tagName&&(t.open=!0)),t=t.parentElement}else e.style.display="none"})),n.size>0){var s=e.querySelector(".form-type-vertical-tabs");s&&(s.style.display="block")}e.querySelectorAll(".vertical-tabs__menu-item").forEach((function(e){var t=e.querySelector("a");if(t){var n=t.getAttribute("href");if(n&&n.startsWith("#")){var a=n.substring(1);if(i.has(a)){e.style.display="";var s=document.getElementById(a);s&&(s.style.display="")}else e.style.display="none"}}}))}else{o.forEach((function(e){e.element.style.display=""})),e.querySelectorAll(".vertical-tabs__menu-item").forEach((function(e){e.style.display=""}));var r=e.querySelector(".form-type-vertical-tabs");r&&(r.style.display="")}},l=function(){s.style.display=a.value.length>0?"block":"none"};a.addEventListener("input",(function(){l(),clearTimeout(i),i=setTimeout((function(){c(a.value)}),150)})),s.addEventListener("click",(function(){a.value="",l(),c(""),a.focus()})),a.addEventListener("keydown",(function(e){"Escape"===e.key&&a.value.length>0&&(a.value="",l(),c(""))})),l(),setTimeout((function(){r()}),500),new MutationObserver((function(){clearTimeout(i),i=setTimeout((function(){r()}),300)})).observe(e,{childList:!0,subtree:!0}),window.addEventListener("load",(function(){setTimeout(r,1e3)})),document.addEventListener("click",(function(e){e.target.closest(".vertical-tabs__menu-item")&&setTimeout(r,100)}))}}}},840:function(e){e.exports={createBodyWrapper:function(){var e=document.body,t=document.createElement("div");for(t.className="dxpr-body-wrapper";e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t),document.documentElement.style.setProperty("--drupal-displace-offset-right","40vw")}}},899:function(e){function t(){if("loading"!==document.readyState){var e={Colors:"backgrounds","Page Title":"top","Header & Main Menu":"top",Typography:"typography",Fonts:"typography","Block Design":"block-design"},n=function(){document.querySelectorAll(".vertical-tabs__menu-item a").forEach((function(t){var n=t.querySelector(".vertical-tabs__menu-item-title");if(n){var i=n.textContent.trim();Object.prototype.hasOwnProperty.call(e,i)&&t.addEventListener("click",(function(t){setTimeout((function(){!function(e){var t=document.querySelector(".bd-cheatsheet");if(t)if("top"!==e){var n=t.querySelector("#".concat(e));n&&n.scrollIntoView({behavior:"smooth",block:"start"})}else window.scrollTo({top:0,behavior:"smooth"})}(e[i])}),100)}))}}))};n();var i=new MutationObserver((function(e){e.forEach((function(e){"childList"===e.type&&n()}))})),a=document.getElementById("system-theme-settings");a&&i.observe(a,{childList:!0,subtree:!0})}else document.addEventListener("DOMContentLoaded",t)}t(),e.exports={initializeSidebarNavigation:t}},945:function(e,t,n){var i=n(899).initializeSidebarNavigation;e.exports={loadStyleguide:function(){requestAnimationFrame((function(){var e=document.querySelector(".region-content");if(e){var t=document.createElement("div");t.innerHTML='\n ',e.insertBefore(t,e.firstChild);var n=drupalSettings.dxpr_theme&&drupalSettings.dxpr_theme.styleguide_url?drupalSettings.dxpr_theme.styleguide_url:"".concat(window.location.origin+window.location.pathname.replace("/admin/appearance/settings",""),"/themes/custom/dxpr_theme/resources/styleguide.html"),a="".concat(n,"?v=").concat(Date.now());fetch(a,{cache:"no-store"}).then((function(e){if(!e.ok)throw new Error("HTTP ".concat(e.status,": ").concat(e.statusText));return e.text()})).then((function(e){var n=(new DOMParser).parseFromString(e,"text/html").querySelector(".bd-cheatsheet");n?(t.innerHTML=n.outerHTML,i(),setTimeout((function(){var e=document.getElementById("edit-block-card"),t=document.getElementById("edit-title-card");e&&e.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),t&&t.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));var n=document.getElementById("edit-block-divider");n&&n.checked&&n.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}));var i=document.getElementById("edit-title-sticker");i&&i.checked&&i.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))}),100)):t.innerHTML='Notice: Styleguide content structure has changed. The expected content section (.bd-cheatsheet) was not found in the loaded HTML.
This may indicate a change in the styleguide format or a configuration issue.
'})).catch((function(e){var n=e.message||"Unknown error occurred";t.innerHTML='Bootstrap Style Guide
Error: Failed to load style guide content.
Details: '.concat(n,"
Please check your network connection and ensure the style guide file is accessible.
")}))}}))}}}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}var i=n(840).createBodyWrapper,a=n(804).initSearchFunctionality,s=n(945).loadStyleguide;!function(e,t){"use strict";e.behaviors.dxprThemeSettingsSidebar={attach:function(e,n){var i=this;t("dxpr-theme-settings-sidebar","html",e).forEach((function(e){i.init(e,n)}))},init:function(e,t){i(),a(),s()}}}(Drupal,once)}();
\ No newline at end of file
diff --git a/scss/base/layout.scss b/scss/base/layout.scss
index 4626583b..dbedfa18 100755
--- a/scss/base/layout.scss
+++ b/scss/base/layout.scss
@@ -151,9 +151,16 @@ body.full-width-content {
margin-bottom: var(--dxt-setting-gutter-vertical);
}
-// Apply background only to blocks without preset background classes
+// Apply background and text color only to blocks without preset background classes
.region-block-design .block:not(.card, [class*="bg-"], [class*="dxpr-theme-util-background"]) {
background-color: var(--dxt-setting-block-background);
+ color: var(--dxt-setting-block-text-color);
+
+ a,
+ .btn-link,
+ h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
+ color: var(--dxt-setting-block-text-color);
+ }
}
// Apply other block styles only to non-card blocks
diff --git a/scss/base/variables.scss b/scss/base/variables.scss
index 2c38c803..119b395e 100644
--- a/scss/base/variables.scss
+++ b/scss/base/variables.scss
@@ -614,6 +614,7 @@ $schemes: (
--dxt-setting-block-divider-spacing: 0px;
--dxt-setting-block-divider-thickness: 0px;
--dxt-setting-block-padding: 0px;
+ --dxt-setting-block-text-color: inherit;
--dxt-setting-blockquote-font-face: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, helvetica, arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--dxt-setting-blockquote-font-size: 20px;
--dxt-setting-blockquote-line-height: 1.5;