Skip to content

Commit

Permalink
fix(scss): upgrade import -> use
Browse files Browse the repository at this point in the history
  • Loading branch information
bartholomej committed Feb 10, 2025
1 parent 01a9840 commit 0b6d0da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-scrolltop",
"version": "19.0.0",
"version": "18.0.1",
"description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!",
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
"scripts": {
Expand Down Expand Up @@ -124,4 +124,4 @@
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}
}
16 changes: 8 additions & 8 deletions projects/ngx-scrolltop/src/lib/ngx-scrolltop.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'variables';
@use 'variables';

button {
outline: 0;
Expand All @@ -12,10 +12,10 @@ button {
align-items: center;
border-radius: 50%;
padding: 0;
width: $size;
height: $size;
right: $padding;
bottom: $padding;
width: variables.$size;
height: variables.$size;
right: variables.$padding;
bottom: variables.$padding;
cursor: pointer;
border: none;
transition: opacity 0.1s linear;
Expand All @@ -31,7 +31,7 @@ button {

.symbol-container {
span {
font-size: $font-size;
font-size: variables.$font-size;

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

@each $name, $background, $color in $themes {
@each $name, $background, $color in variables.$themes {
&.#{$name} {
background-color: $background;
color: $color;
Expand Down

0 comments on commit 0b6d0da

Please sign in to comment.