Skip to content

Commit 0b6d0da

Browse files
committed
fix(scss): upgrade import -> use
1 parent 01a9840 commit 0b6d0da

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-scrolltop",
3-
"version": "19.0.0",
3+
"version": "18.0.1",
44
"description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!",
55
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
66
"scripts": {
@@ -124,4 +124,4 @@
124124
"publishConfig": {
125125
"registry": "https://registry.npmjs.org"
126126
}
127-
}
127+
}

projects/ngx-scrolltop/src/lib/ngx-scrolltop.component.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'variables';
1+
@use 'variables';
22

33
button {
44
outline: 0;
@@ -12,10 +12,10 @@ button {
1212
align-items: center;
1313
border-radius: 50%;
1414
padding: 0;
15-
width: $size;
16-
height: $size;
17-
right: $padding;
18-
bottom: $padding;
15+
width: variables.$size;
16+
height: variables.$size;
17+
right: variables.$padding;
18+
bottom: variables.$padding;
1919
cursor: pointer;
2020
border: none;
2121
transition: opacity 0.1s linear;
@@ -31,7 +31,7 @@ button {
3131

3232
.symbol-container {
3333
span {
34-
font-size: $font-size;
34+
font-size: variables.$font-size;
3535

3636
&:empty {
3737
display: none;
@@ -40,12 +40,12 @@ button {
4040
svg {
4141
display: inline-flex; // Ensure the SVG is centered horizontally and not conflicting with tailwindcss
4242
transform: translateY(10%); // Centering no-rectangle symbols
43-
width: $svg-size;
43+
width: variables.$svg-size;
4444
vertical-align: baseline;
4545
}
4646
}
4747

48-
@each $name, $background, $color in $themes {
48+
@each $name, $background, $color in variables.$themes {
4949
&.#{$name} {
5050
background-color: $background;
5151
color: $color;

0 commit comments

Comments
 (0)