diff options
author | Ratson <[email protected]> | 2024-11-13 23:57:02 +0800 |
---|---|---|
committer | Ratson <[email protected]> | 2024-11-13 23:57:02 +0800 |
commit | 75f788806213e45808a67ef98dbae21c356cb29d (patch) | |
tree | 815bbf7cf603f10b226b7a387e6f2ae507342ff4 /examples/js | |
parent | 2a9bb96f056f25c95b330984cfe7ac484db6c9c6 (diff) |
example(simple-bar): fix sass deprecation warnings
Diffstat (limited to 'examples/js')
-rw-r--r-- | examples/js/simple-bar/style.scss | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/examples/js/simple-bar/style.scss b/examples/js/simple-bar/style.scss index f98286e..1dcf729 100644 --- a/examples/js/simple-bar/style.scss +++ b/examples/js/simple-bar/style.scss @@ -1,3 +1,5 @@ +@use "sass:color"; + $bg: #212223; $fg: #f1f1f1; $accent: #378DF7; @@ -16,12 +18,12 @@ window.Bar { background-color: transparent; &:hover label { - background-color: transparentize($fg, 0.84); - border-color: transparentize($accent, 0.8); + background-color: color.adjust($fg, $alpha: -0.84); + border-color: color.adjust($accent, $alpha: -0.8); } &:active label { - background-color: transparentize($fg, 0.8) + background-color: color.adjust($fg, $alpha: -0.8) } } @@ -64,10 +66,12 @@ window.Bar { margin-right: .6em; } - margin: 0 1em; + & { + margin: 0 1em; + } trough { - background-color: transparentize($fg, 0.8); + background-color: color.adjust($fg, $alpha: -0.8); border-radius: $radius; } |