Skip to content

Commit f73b71d

Browse files
committed
Resolve Sass deprecations
1 parent 1770b34 commit f73b71d

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

examples/src/scss/style.scss

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
// Cayman overrides
2-
$body-text-color: #444;
3-
$code-text-color: #465e6a;
4-
$header-bg-color: #3498db;
5-
$header-bg-color-secondary: #2c3e50;
6-
$section-headings-color: #2079b5;
7-
$blockquote-text-color: #576266;
8-
9-
// Checkbox tree overrides
10-
$rct-color: #444;
11-
$rct-border-color: #ccc;
1+
@use "../../../src/scss/react-checkbox-tree";
2+
@use "cayman" with (
3+
$body-text-color: #444,
4+
$code-text-color: #465e6a,
5+
$header-bg-color: #3498db,
6+
$header-bg-color-secondary: #2c3e50,
7+
$section-headings-color: #2079b5,
8+
$blockquote-text-color: #576266
9+
);
1210

1311
// Misc.
12+
$rct-color: #444;
1413
$input-border-color: #ced4da;
1514
$tree-font-family: "Roboto", sans-serif;
1615

17-
@import "../../../src/scss/react-checkbox-tree";
18-
@import "cayman";
19-
2016
.main-content {
2117
h1,
2218
h2,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"react": "^18.2.0",
9292
"react-dom": "^18.2.0",
9393
"sass": "^1.58.2",
94-
"sass-loader": "^13.2.0",
94+
"sass-loader": "^16.0.5",
9595
"stylelint": "^15.1.0",
9696
"stylelint-config-takiyon": "^3.0.0",
9797
"webpack": "^5.3.2",

src/scss/react-checkbox-tree.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ $rct-outline-offset: -2px !default;
149149
&:hover {
150150
opacity: 1;
151151
}
152-
153-
+ & {
154-
margin-left: 2px;
155-
}
156152
}
157153

158154
.rct-collapse,

0 commit comments

Comments
 (0)