Skip to content

Commit 3fbf0f9

Browse files
committed
plugin: change @import directives to @use
1 parent 3a63210 commit 3fbf0f9

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

plugin/src/styles/main.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@import "colors";
1+
@use "colors";
22

33
body {
4-
@each $name, $color in $todoist-colors {
4+
@each $name, $color in colors.$todoist-colors {
55
--todoist-#{$name}: #{$color};
66
}
77
}

plugin/src/ui/createTaskModal/styles.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../../styles/colors.scss";
1+
@use "../../styles/colors.scss";
22

33
.modal-popover {
44
overflow-y: auto;
@@ -40,7 +40,7 @@
4040
display: flex;
4141
align-items: center;
4242

43-
&>*+* {
43+
& > * + * {
4444
margin-left: 0.5em;
4545
}
4646
}
@@ -51,7 +51,7 @@
5151
border: 1px solid var(--color-base-25);
5252
color: var(--text-muted);
5353

54-
&>*+* {
54+
& > * + * {
5555
margin-left: 0.5em;
5656
}
5757

@@ -78,15 +78,15 @@
7878
.is-mobile & {
7979
flex-direction: column;
8080

81-
&>*+* {
81+
& > * + * {
8282
margin-top: 0.5em;
8383
}
8484
}
8585

8686
.task-creation-action {
8787
display: flex;
8888

89-
&>*+* {
89+
& > * + * {
9090
margin-left: 1em;
9191
}
9292

@@ -335,7 +335,7 @@ button.project-selector {
335335
display: flex;
336336
align-items: center;
337337

338-
&>*+* {
338+
& > * + * {
339339
margin-left: 0.5em;
340340
}
341341

@@ -395,7 +395,7 @@ button.project-selector {
395395
--project-padding: 104px;
396396
}
397397

398-
&>*+* {
398+
& > * + * {
399399
margin-left: 0.5em;
400400
}
401401

@@ -410,7 +410,7 @@ button.project-selector {
410410
}
411411

412412
.todoist-project-icon {
413-
@each $name, $color in $todoist-colors {
413+
@each $name, $color in colors.$todoist-colors {
414414
&[data-project-color="#{$name}"] {
415415
--todoist-project-color: var(--todoist-#{$name});
416416
}
@@ -428,7 +428,7 @@ button.project-selector {
428428
display: flex;
429429
flex-direction: column;
430430

431-
&>*+* {
431+
& > * + * {
432432
margin-top: 1em;
433433
}
434434

@@ -481,7 +481,7 @@ button.project-selector {
481481
display: flex;
482482
justify-content: end;
483483

484-
&>*+* {
484+
& > * + * {
485485
margin-left: 1em;
486486
}
487487
}
@@ -501,4 +501,4 @@ button.project-selector {
501501
color: var(--text-on-accent);
502502
}
503503
}
504-
}
504+
}

plugin/src/ui/query/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../../styles/colors.scss";
1+
@use "../../styles/colors.scss";
22

33
.todoist-query-header {
44
display: flex;
@@ -161,7 +161,7 @@
161161
color: var(--todoist-label-color);
162162
}
163163

164-
@each $name, $color in $todoist-colors {
164+
@each $name, $color in colors.$todoist-colors {
165165
&[data-project-color="#{$name}"] {
166166
--todoist-project-color: var(--todoist-#{$name});
167167
}

plugin/src/ui/settings/styles.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "../../styles/colors.scss";
1+
@use "../../styles/colors.scss";
22

33
.mod-cta .setting-button-icon {
44
margin-right: 0.5em;
@@ -82,7 +82,7 @@
8282
}
8383

8484
.label-icon {
85-
@each $name, $color in $todoist-colors {
85+
@each $name, $color in colors.$todoist-colors {
8686
&[data-label-color="#{$name}"] {
8787
color: var(--todoist-#{$name});
8888
}

0 commit comments

Comments
 (0)