Skip to content

Commit

Permalink
WebUI: add percentage sign for hsl components
Browse files Browse the repository at this point in the history
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 `<number>` but instead
insist it should be `<percentage>`
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.
  • Loading branch information
Chocobo1 authored Jan 13, 2025
1 parent 99adb16 commit 2cc7ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/www/private/css/Window.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2cc7ec9

Please sign in to comment.