Skip to content

Commit

Permalink
Fix Sass warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Jan 22, 2025
1 parent 0dcfae9 commit 6658558
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
14 changes: 13 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,19 @@ module.exports = {
webpackFinal: async (config, { configType }) => {
config.module.rules.push({
test: /\.scss$/,
use: ["style-loader", "css-loader", "sass-loader"],
use: [
"style-loader",
"css-loader",
{
loader: "sass-loader",
options: {
sassOptions: {
quietDeps: true,
silenceDeprecations: ["import"],
},
},
},
],
include: path.resolve(__dirname, "../"),
});
return config;
Expand Down
2 changes: 1 addition & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DocsContainer } from "@storybook/addon-docs";
import { themes } from "@storybook/theming";
import "vanilla-framework/scss/build.scss";
import "./vanilla.scss";

// or global addParameters
export const parameters = {
Expand Down
2 changes: 2 additions & 0 deletions .storybook/vanilla.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import "vanilla-framework";
@include vanilla;
20 changes: 10 additions & 10 deletions src/components/LoadingCard/LoadingCard.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
.p-card--placeholder {
@keyframes shine {
0% {
background-position: right;
}

100% {
background-position: left;
}
}

animation: shine 3s infinite ease-in-out;
background-image: linear-gradient(
to bottom right,
Expand All @@ -18,4 +8,14 @@
);
background-size: 300% 300%;
clip-path: url("#animation-mask");

@keyframes shine {
0% {
background-position: right;
}

100% {
background-position: left;
}
}
}

0 comments on commit 6658558

Please sign in to comment.