From 2cc7ec90a8b9992e6568369b51dca48f1055d783 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 13 Jan 2025 17:13:20 +0800 Subject: [PATCH] WebUI: add percentage sign for hsl components This is a workaround to avoid confusing the stylelint checker (and probably some other checker internally). They cannot accept the fact that the component can be `` but instead insist it should be `` Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl#formal_syntax Also, MDN recommended to use `hsl()` instead of `hsla()`. From https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl : > Note: The hsla() functional notation is an alias for hsl(). They are > exactly equivalent. It is recommended to use hsl(). PR #22154. --- src/webui/www/private/css/Window.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/css/Window.css b/src/webui/www/private/css/Window.css index 2546a9dcb..865fc8051 100644 --- a/src/webui/www/private/css/Window.css +++ b/src/webui/www/private/css/Window.css @@ -205,7 +205,7 @@ div.mochaToolbarWrapper.bottom { ---------------------------------------------------------------- */ #modalOverlay { - background: hsla(0deg 0 0 / 30%); + background: hsl(0deg 0% 0% / 30%); display: none; left: 0; opacity: 0;