Skip to content

Commit 30190fc

Browse files
committed
remove deprecated scss functions
1 parent 656ab6a commit 30190fc

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/default-colors.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:color";
2+
13
// COLORS
24
$primary-color: #3579f8 !default;
35
$bg-color: #ffffff !default;
@@ -19,10 +21,7 @@ $checkbox-mark: #ffffff !default;
1921
$rg-content-text-color: #000000 !default;
2022
$cell-text-color: #000000 !default;
2123

22-
$dropdown-focused-item-bg-color: lighten(
23-
$color: $primary-color,
24-
$amount: 35,
25-
) !default;
24+
$dropdown-focused-item-bg-color: color.scale($primary-color, $lightness: 92.96875%) !default;
2625
$dropdown-menu-bg-color: #ffffff !default;
2726

2827
// SHADOWS
@@ -41,4 +40,4 @@ $opacity-20: 0.2 !default;
4140
$opacity-15: 0.15 !default;
4241
$opacity-10: 0.1 !default;
4342
$opacity-06: 0.06 !default;
44-
$opacity-01: 0.01 !default;
43+
$opacity-01: 0.01 !default;

src/main.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:color";
2+
13
.rg-copy-container[contenteditable] {
24
-webkit-user-select: text;
35
user-select: text;
@@ -195,7 +197,7 @@
195197
cursor: pointer;
196198

197199
&:hover {
198-
background-color: darken($main-bg-color, 5);
200+
background-color: color.scale($main-bg-color, $lightness: -5%);
199201
}
200202
}
201203
}

0 commit comments

Comments
 (0)