Skip to content

Commit

Permalink
Merge pull request #562 from zrowdotnet/sass-deprecation
Browse files Browse the repository at this point in the history
update built in module function calls & imports for sass 1.80
  • Loading branch information
11k authored Nov 16, 2024
2 parents 1e16139 + f7e1d48 commit 1ea42a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion assets/chat/css/chat/_autocomplete.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use 'sass:color';
@use '../abstracts/' as a;

#chat-auto-complete {
Expand Down Expand Up @@ -47,7 +48,7 @@
}

&:hover {
color: lighten(a.$color-chat-text3, 20);
color: color.adjust(a.$color-chat-text3, $lightness: 20%);
}

&.active {
Expand Down
5 changes: 3 additions & 2 deletions assets/chat/css/components/_form-control.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
@use 'sass:color';
@use '../abstracts/' as a;

.form-control {
color: a.$color-chat-text2;
background: a.$color-surface-dark1;
border: 1px solid lighten(a.$color-surface-dark1, 9);
border: 1px solid color.adjust(a.$color-surface-dark1, $lightness: 9%);

&:focus {
color: a.$color-chat-text1;
background: a.$color-surface-dark1;
border: 1px solid lighten(a.$color-surface-dark1, 15);
border: 1px solid color.adjust(a.$color-surface-dark1, $lightness: 15%);
box-shadow: none;
outline: none;
}
Expand Down
4 changes: 3 additions & 1 deletion assets/chat/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

@use '~normalize.css/normalize';
@use '~tippy.js/dist/tippy';
@use '~tippy.js/dist/svg-arrow';
Expand Down Expand Up @@ -97,7 +99,7 @@ a {
hr {
border: 0;
margin: 1em 0;
border-top: 1px solid darken(a.$color-surface-dark1, 50%);
border-top: 1px solid color.adjust(a.$color-surface-dark1, $lightness: -50%);
border-bottom: 1px solid a.$color-surface-dark3;
}

Expand Down

0 comments on commit 1ea42a5

Please sign in to comment.