summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-11-24 02:03:46 +0100
committerGitHub <[email protected]>2024-11-24 02:03:46 +0100
commit2cc6a253c1dd0d6b207ddf797fe5c6cbec7b662e (patch)
tree7ab50fdb061308e0a6241dba84439860ec1385b2 /examples
parentc9bd17968cea272ba47d4d9cce55b1478321a40a (diff)
parent291c5b8c73519244b5d7d4a95024d14a54df0b7b (diff)
Merge pull request #77 from ratson/fix-sass-warniing
example: fix sass deprecation warnings
Diffstat (limited to 'examples')
-rw-r--r--examples/js/simple-bar/style.scss14
-rw-r--r--examples/lua/simple-bar/style.scss14
-rw-r--r--examples/py/simple-bar/style.scss14
-rw-r--r--examples/vala/simple-bar/style.scss14
4 files changed, 36 insertions, 20 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;
}
diff --git a/examples/lua/simple-bar/style.scss b/examples/lua/simple-bar/style.scss
index f98286e..1dcf729 100644
--- a/examples/lua/simple-bar/style.scss
+++ b/examples/lua/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;
}
diff --git a/examples/py/simple-bar/style.scss b/examples/py/simple-bar/style.scss
index f98286e..1dcf729 100644
--- a/examples/py/simple-bar/style.scss
+++ b/examples/py/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;
}
diff --git a/examples/vala/simple-bar/style.scss b/examples/vala/simple-bar/style.scss
index f98286e..1dcf729 100644
--- a/examples/vala/simple-bar/style.scss
+++ b/examples/vala/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;
}