Skip to content

Commit 51a68ce

Browse files
committed
chore: replace @import with @use
1 parent a6f0d0c commit 51a68ce

39 files changed

+1205
-1667
lines changed

css/pico.classless.css

+352-345
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/pico.classless.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/pico.classless.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/pico.css

+352-345
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/pico.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/pico.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/themes/default.css

-522
This file was deleted.

css/themes/default.css.map

-1
This file was deleted.

css/themes/default.min.css

-1
This file was deleted.

scss/_functions.scss

-4
This file was deleted.
File renamed without changes.

scss/components/_accordion.scss

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../settings";
2+
13
/**
24
* Accordion (<details>)
35
*/
@@ -17,7 +19,7 @@ details {
1719
color: var(--accordion-close-summary-color);
1820
}
1921

20-
@if $enable-transitions {
22+
@if settings.$enable-transitions {
2123
transition: color var(--transition);
2224
}
2325

@@ -48,7 +50,7 @@ details {
4850
background-repeat: no-repeat;
4951
content: "";
5052

51-
@if $enable-transitions {
53+
@if settings.$enable-transitions {
5254
transition: transform var(--transition);
5355
}
5456
}
@@ -72,7 +74,7 @@ details {
7274
background-image: var(--icon-chevron-button);
7375
}
7476

75-
@if $enable-classes {
77+
@if settings.$enable-classes {
7678
// .contrast
7779
&:not(.outline).contrast {
7880
// Marker

scss/components/_dropdown.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../settings";
2+
13
/**
24
* Dropdown ([role="list"])
35
*/
@@ -99,7 +101,7 @@ details[role="list"] {
99101
line-height: inherit;
100102
cursor: pointer;
101103

102-
@if $enable-transitions {
104+
@if settings.$enable-transitions {
103105
transition: background-color var(--transition), border-color var(--transition),
104106
color var(--transition), box-shadow var(--transition);
105107
}
File renamed without changes.

scss/components/_modal.scss

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../settings";
2+
13
/**
24
* Modal (<dialog>)
35
*/
@@ -31,15 +33,15 @@ dialog {
3133
max-height: calc(100vh - var(--spacing) * 2);
3234
overflow: auto;
3335

34-
@if map-get($breakpoints, "sm") {
35-
@media (min-width: map-get($breakpoints, "sm")) {
36-
max-width: map-get($viewports, "sm");
36+
@if map-get(settings.$breakpoints, "sm") {
37+
@media (min-width: map-get(settings.$breakpoints, "sm")) {
38+
max-width: map-get(settings.$viewports, "sm");
3739
}
3840
}
3941

40-
@if map-get($breakpoints, "md") {
41-
@media (min-width: map-get($breakpoints, "md")) {
42-
max-width: map-get($viewports, "md");
42+
@if map-get(settings.$breakpoints, "md") {
43+
@media (min-width: map-get(settings.$breakpoints, "md")) {
44+
max-width: map-get(settings.$viewports, "md");
4345
}
4446
}
4547

@@ -75,7 +77,7 @@ dialog {
7577
}
7678

7779
// Close icon
78-
@if $enable-classes {
80+
@if settings.$enable-classes {
7981
.close {
8082
display: block;
8183
width: 1rem;
@@ -89,7 +91,7 @@ dialog {
8991
background-repeat: no-repeat;
9092
opacity: 0.5;
9193

92-
@if $enable-transitions {
94+
@if settings.$enable-transitions {
9395
transition: opacity var(--transition);
9496
}
9597

@@ -108,7 +110,7 @@ dialog {
108110
}
109111

110112
// Utilities
111-
@if $enable-classes {
113+
@if settings.$enable-classes {
112114
.modal-is-open {
113115
padding-right: var(--scrollbar-width, 0px);
114116
overflow: hidden;
@@ -121,7 +123,7 @@ dialog {
121123
}
122124

123125
// Animations
124-
@if ($enable-classes and $enable-transitions) {
126+
@if (settings.$enable-classes and settings.$enable-transitions) {
125127
$animation-duration: 0.2s;
126128

127129
:where(.modal-is-opening, .modal-is-closing) {

scss/utilities/_tooltip.scss renamed to scss/components/_tooltip.scss

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../settings";
2+
13
/**
24
* Tooltip ([data-tooltip])
35
*/
@@ -109,7 +111,7 @@
109111
}
110112
}
111113

112-
@if $enable-transitions {
114+
@if settings.$enable-transitions {
113115
// Animations, excluding touch devices
114116
@media (hover: hover) and (pointer: fine) {
115117
&[data-placement="bottom"]:focus,

scss/content/_button.scss

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../settings";
2+
13
/**
24
* Button
35
*/
@@ -61,7 +63,7 @@ input[type="reset"],
6163
text-align: center;
6264
cursor: pointer;
6365

64-
@if $enable-transitions {
66+
@if settings.$enable-transitions {
6567
transition: background-color var(--transition), border-color var(--transition),
6668
color var(--transition), box-shadow var(--transition);
6769
}
@@ -80,7 +82,7 @@ input[type="reset"],
8082
}
8183

8284
// .secondary, .contrast & .outline
83-
@if $enable-classes {
85+
@if settings.$enable-classes {
8486
// Secondary
8587
:is(button, input[type="submit"], input[type="button"], [role="button"]).secondary,
8688
input[type="reset"] {

0 commit comments

Comments
 (0)