From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-widget-toolkit-assets 1/3] utilities: generate a class for each element state opacity
Date: Thu, 18 Jun 2026 10:00:44 +0200 [thread overview]
Message-ID: <20260618080058.781054-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260618080058.781054-1-d.csapak@proxmox.com>
currently only 'disabled' exists there, but having this is useful as a
generic class to set the opacity according to state.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
scss/_utilities.scss | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/scss/_utilities.scss b/scss/_utilities.scss
index 58bc8e6..62178b8 100644
--- a/scss/_utilities.scss
+++ b/scss/_utilities.scss
@@ -471,6 +471,13 @@ $position-values: absolute fixed relative sticky static;
}
}
+@each $state, $value in $element-state-opacity {
+ .pwt-opacity-#{$state} {
+ $var: "var(--pwt-" + $state + "-opacity)";
+ opacity: #{$var};
+ }
+}
+
@keyframes delay-visibility {
from {
opacity: 0
--
2.47.3
next prev parent reply other threads:[~2026-06-18 8:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-18 8:00 [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/3] fix some field issues Dominik Csapak
2026-06-18 8:00 ` Dominik Csapak [this message]
2026-06-18 10:59 ` applied: [PATCH yew-widget-toolkit-assets 1/3] utilities: generate a class for each element state opacity Dietmar Maurer
2026-06-18 8:00 ` [PATCH yew-widget-toolkit 2/3] widget: checkbox: make box-label adhere to disabled state Dominik Csapak
2026-06-18 8:00 ` [PATCH yew-widget-toolkit 3/3] widget: input panel: correctly generate keys for custom children Dominik Csapak
2026-06-18 11:07 ` applied: [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/3] fix some field issues Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260618080058.781054-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.