all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Shannon Sterz <s.sterz@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-widget-toolkit-assets 1/2] navigation: menu: use a css variable for the font-size of nav icons
Date: Tue,  1 Dec 2026 13:47:52 +0100	[thread overview]
Message-ID: <20261201124753.176304-2-s.sterz@proxmox.com> (raw)
In-Reply-To: <20261201124753.176304-1-s.sterz@proxmox.com>

So we can access it from other places and avoid having to hard code
the value in dependent projects.

Signed-off-by: Shannon Sterz <s.sterz@proxmox.com>
---
 scss/_nav.scss | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scss/_nav.scss b/scss/_nav.scss
index 8954c8e..01f3f20 100644
--- a/scss/_nav.scss
+++ b/scss/_nav.scss
@@ -125,6 +125,8 @@
     @include color-scheme-vars(surface);
     @include accent-color-scheme-vars(#{$default-accent-color}-container);
 
+    --pwt-nav-menu-icon-font-size: #{map-get($font-size, "title-medium")};
+
     background: var(--pwt-color-background);
     color: var(--pwt-color);
 
@@ -191,7 +193,7 @@
 }
 
 .pwt-nav-menu-icon {
-    font-size: map-get($font-size, "title-medium");
+    font-size: var(--pwt-nav-menu-icon-font-size);
     line-height: map-get($line-height, "title-medium");
 }
 
-- 
2.47.3





  reply	other threads:[~2026-12-01 12:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 12:47 [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/2] Make the menu option indet match the icon width Shannon Sterz
2026-12-01 12:47 ` Shannon Sterz [this message]
2026-12-01 12:47 ` [PATCH yew-widget-toolkit 2/2] widget: navigation drawer: match menu item indents with " Shannon Sterz
2026-12-01 14:42 ` applied: [PATCH yew-widget-toolkit/yew-widget-toolkit-assets 0/2] Make the menu option indet match " Thomas Lamprecht

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=20261201124753.176304-2-s.sterz@proxmox.com \
    --to=s.sterz@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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal