Skip to content

Commit d75d791

Browse files
committed
chore: fix some sass deprecations
1 parent 7031f99 commit d75d791

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

packages/yasgui/src/TabElements.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
@use "sass:color";
12
$minTabHeight: 35px;
23
.yasgui {
34
.tabsList {
45
.sortable-placeholder {
56
min-width: 100px;
67
min-height: $minTabHeight;
7-
border: 2px dotted lighten(#555, 20);
8+
border: 2px dotted color.adjust(#555, $lightness: 20%);
89
}
910
display: flex;
1011
flex-wrap: wrap;
@@ -39,11 +40,11 @@ $minTabHeight: 35px;
3940
.tab {
4041
position: relative;
4142
$activeColor: #337ab7;
42-
$hoverColor: lighten($activeColor, 30);
43+
$hoverColor: color.adjust($activeColor, $lightness: 30%);
4344

4445
.loader {
4546
display: none;
46-
background-color: lighten(#555, 50);
47+
background-color: color.adjust(#555, $lightness: 50%);
4748
height: 2px;
4849
position: absolute;
4950
bottom: 0;
@@ -99,7 +100,7 @@ $minTabHeight: 35px;
99100
}
100101
a {
101102
font-weight: 600;
102-
color: lighten(#555, 20);
103+
color: color.adjust(#555, $lightness: 20%);
103104
font-size: 15px;
104105
line-height: 1.5rem;
105106
font-weight: 500;

packages/yasr/src/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "./scss/variables.scss";
1+
@use "scss/variables.scss";
22
.yasr {
33
.yasr_btn {
44
border: none;

packages/yasr/src/scss/global.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@import "./variables.scss";
1+
@use "variables.scss";
22
/**need to reset this: the modal-dialog class conflicts with bootstrap**/
33
.modal-dialog.google-visualization-charteditor-dialog {
4-
z-index: $zIndex-global;
4+
z-index: variables.$zIndex-global;
55
width: auto;
66
margin: inherit;
77
.charts-flat-menu-button {

0 commit comments

Comments
 (0)