Skip to content

Commit

Permalink
Merge pull request Hacker0x01#5242 from qburst/fix/scss-lint-issues
Browse files Browse the repository at this point in the history
🚨 Fix SCSS Lint issues - Change @import to @use
  • Loading branch information
martijnrusschen authored Nov 25, 2024
2 parents e479fc3 + 7196d4b commit 2452507
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 18 deletions.
1 change: 1 addition & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

"rules": {
"at-rule-no-unknown": null,
"at-rule-disallowed-list": ["import"],
"scss/at-rule-no-unknown": true,
"scss/dollar-variable-pattern": null,
"scss/at-import-partial-extension": null,
Expand Down
8 changes: 5 additions & 3 deletions docs-site/src/components/Examples/examples.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@use "helpers";

.examples__navigation {
display: none;

@include breakpoint(640px) {
@include helpers.breakpoint(640px) {
width: 200px;
float: left;
display: block;
Expand Down Expand Up @@ -76,7 +78,7 @@
overflow-x: auto;
overflow-y: hidden;

@include breakpoint(768px) {
@include helpers.breakpoint(768px) {
width: 70%;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
Expand All @@ -98,7 +100,7 @@
}
&__preview {
padding: 20px;
@include breakpoint(768px) {
@include helpers.breakpoint(768px) {
width: 30%;
}
@media (max-width: 768px) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
@content;
}
}

%container-styling {
max-width: 1100px;
margin: 0 auto;
}
2 changes: 2 additions & 0 deletions docs-site/src/components/Examples/hero.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "helpers" as *;

.hero {
color: #fff;
background-color: #216ba5;
Expand Down
17 changes: 6 additions & 11 deletions docs-site/src/components/Examples/style.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
@import "reset";
@import "higlight";
@import "breakpoint";
@import "hero";
@import "examples";

%container-styling {
max-width: 1100px;
margin: 0 auto;
}
@use "reset";
@use "higlight";
@use "helpers";
@use "examples";
@use "hero";

html,
body {
Expand Down Expand Up @@ -88,7 +83,7 @@ strong {
}

.row {
@include breakpoint(768px) {
@include helpers.breakpoint(768px) {
display: flex;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/stylesheets/datepicker.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use "sass:color";
@import "variables.scss";
@import "mixins.scss";
@use "variables" as *;
@use "mixins" as *;

.react-datepicker-wrapper {
display: inline-block;
Expand Down
6 changes: 4 additions & 2 deletions src/stylesheets/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@use "variables";

%navigation-chevron {
border-color: $datepicker__muted-color;
border-color: variables.$datepicker__muted-color;
border-style: solid;
border-width: 3px 3px 0 0;
content: "";
Expand All @@ -11,7 +13,7 @@

&--disabled,
&--disabled:hover {
border-color: $datepicker__navigation-disabled-color;
border-color: variables.$datepicker__navigation-disabled-color;
cursor: default;
}
}

0 comments on commit 2452507

Please sign in to comment.