Skip to content

Commit 81071ef

Browse files
committed
Fix sass issues
Deprecation warnings...
1 parent 1b44614 commit 81071ef

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

_sass/components/_background.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
.bg-black {
24
background-color: $black;
35
}
@@ -16,7 +18,7 @@
1618
.text-teal {
1719
&:focus,
1820
&:hover {
19-
color: darken($teal, 20%);
21+
color: color.adjust($teal, $lightness: -20%);
2022
}
2123
}
2224
}

_sass/components/_button.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
@use "sass:color";
2+
13
.btn {
24
&.bg-black.text-white:focus,
35
&.bg-black.text-white:hover {
4-
background-color: lighten($black, 20%);
6+
background-color: color.adjust($black, $lightness: 20%);
57
box-shadow: 0 0 0 0.2rem rgba($teal, 0.4);
6-
color: darken($teal, 10%);
8+
color: color.adjust($teal, $lightness: -10%);
79
}
810

911
&.bg-teal:focus,

_sass/components/_navbar.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
@use "sass:color";
2+
13
.navbar {
2-
border-bottom: 1px solid lighten($darkblue, 10%);
4+
border-bottom: 1px solid color.adjust($darkblue, $lightness: 10%);
35
}
46

57
.navbar-light {

0 commit comments

Comments
 (0)