From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id D93971FF15D for ; Tue, 01 Dec 2026 13:48:02 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 348DC20A75; Tue, 01 Dec 2026 13:48:02 +0100 (CET) From: Shannon Sterz 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 Message-ID: <20261201124753.176304-2-s.sterz@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261201124753.176304-1-s.sterz@proxmox.com> References: <20261201124753.176304-1-s.sterz@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1796129278320 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.517 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: MLKPXDPNWVJLK5EOJBZQ7UPYOZR3KDA3 X-Message-ID-Hash: MLKPXDPNWVJLK5EOJBZQ7UPYOZR3KDA3 X-MailFrom: s.sterz@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Yew framework devel list at Proxmox List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: So we can access it from other places and avoid having to hard code the value in dependent projects. Signed-off-by: Shannon Sterz --- 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