[pdm-devel] [PATCH yew-widget-toolkit-assets 1/1] content-spacer: add helper class for color

Dominik Csapak d.csapak at proxmox.com
Fri Jun 6 09:27:16 CEST 2025


sometimes, there is need to use the spacer padding and color but not the
inner style of the content spacer. The padding class helper already
existed, but not the color one, so introduce it.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 scss/_content_spacer.scss         | 6 ++++++
 scss/crisp/_theme_post_crisp.scss | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/scss/_content_spacer.scss b/scss/_content_spacer.scss
index 1086135..e85bc86 100644
--- a/scss/_content_spacer.scss
+++ b/scss/_content_spacer.scss
@@ -51,3 +51,9 @@
 .pwt-content-spacer-padding {
     padding: var(--pwt-spacer-2);
 }
+
+.pwt-content-spacer-colors {
+    @include color-scheme-vars("surface");
+    color: var(--pwt-color);
+    background-color: var(--pwt-color-background);
+}
diff --git a/scss/crisp/_theme_post_crisp.scss b/scss/crisp/_theme_post_crisp.scss
index ac4e6d3..88d1564 100644
--- a/scss/crisp/_theme_post_crisp.scss
+++ b/scss/crisp/_theme_post_crisp.scss
@@ -7,3 +7,7 @@
 .pwt-content-spacer {
     @include color-scheme-vars("neutral");
 }
+
+.pwt-content-spacer-colors {
+    @include color-scheme-vars("neutral");
+}
-- 
2.39.5





More information about the pdm-devel mailing list