Skip to content

Commit f79d963

Browse files
authored
Merge pull request #595 from OrthFelix/patch-1
Comply with css spec - put @import at the top
2 parents 121e826 + 9a8a460 commit f79d963

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

variants.css

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
/* States */
2-
@custom-variant hs-success {
3-
4-
&.success {
5-
@slot;
6-
}
7-
8-
.success & {
9-
@slot;
10-
}
11-
}
12-
13-
@custom-variant hs-error {
14-
15-
&.error {
16-
@slot;
17-
}
18-
19-
.error & {
20-
@slot;
21-
}
22-
}
23-
241
/* Preline */
252
@import './src/plugins/dropdown/variants.css';
263
@import './src/plugins/remove-element/variants.css';
@@ -46,6 +23,29 @@
4623
@import './src/plugins/datepicker/variants.css';
4724
@import './src/plugins/theme-switch/variants.css';
4825

26+
/* States */
27+
@custom-variant hs-success {
28+
29+
&.success {
30+
@slot;
31+
}
32+
33+
.success & {
34+
@slot;
35+
}
36+
}
37+
38+
@custom-variant hs-error {
39+
40+
&.error {
41+
@slot;
42+
}
43+
44+
.error & {
45+
@slot;
46+
}
47+
}
48+
4949
/* Apexcharts */
5050
@custom-variant hs-apexcharts-tooltip-dark {
5151
&.dark {
@@ -70,4 +70,4 @@
7070
.toastify.on & {
7171
@slot;
7272
}
73-
}
73+
}

0 commit comments

Comments
 (0)