@pimolu/web-styles 0.1.0-beta.4 → 0.1.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.fr.md +1 -1
- package/README.md +1 -1
- package/dist/accordion.css +73 -1
- package/dist/avatar.css +37 -0
- package/dist/badge.css +37 -0
- package/dist/card.css +37 -0
- package/dist/chat.css +1 -0
- package/dist/command.css +37 -0
- package/dist/form-field.css +50 -0
- package/dist/form.css +48 -0
- package/dist/layered.css +204 -1
- package/dist/motion.css +36 -0
- package/dist/navbar.css +327 -0
- package/dist/pimolu.css +202 -1
- package/dist/pimolu.min.css +1 -1
- package/dist/sidebar.css +45 -0
- package/dist/slider.css +63 -0
- package/dist/table.css +37 -0
- package/dist/toolbar.css +37 -0
- package/package.json +3 -2
package/dist/sidebar.css
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/sidebar.css */
|
|
2
39
|
.pimolu-sidebar {
|
|
3
40
|
position: relative;
|
|
@@ -261,3 +298,11 @@
|
|
|
261
298
|
color: Highlight;
|
|
262
299
|
}
|
|
263
300
|
}
|
|
301
|
+
.pimolu-sidebar {
|
|
302
|
+
transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
|
|
303
|
+
}
|
|
304
|
+
@media (prefers-reduced-motion: reduce) {
|
|
305
|
+
.pimolu-sidebar {
|
|
306
|
+
transition: none;
|
|
307
|
+
}
|
|
308
|
+
}
|
package/dist/slider.css
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/slider.css */
|
|
2
39
|
.pimolu-slider {
|
|
3
40
|
--pimolu-slider-direction: var(--pimolu-slider-inherited-direction, to right);
|
|
@@ -168,3 +205,29 @@
|
|
|
168
205
|
background: ButtonFace;
|
|
169
206
|
}
|
|
170
207
|
}
|
|
208
|
+
.pimolu-slider__control::-webkit-slider-thumb {
|
|
209
|
+
transition: box-shadow 150ms ease-out;
|
|
210
|
+
}
|
|
211
|
+
.pimolu-slider__control::-moz-range-thumb {
|
|
212
|
+
transition: box-shadow 150ms ease-out;
|
|
213
|
+
}
|
|
214
|
+
.pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-webkit-slider-thumb {
|
|
215
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
|
|
216
|
+
}
|
|
217
|
+
.pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-moz-range-thumb {
|
|
218
|
+
box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
|
|
219
|
+
}
|
|
220
|
+
@media (prefers-reduced-motion: reduce) {
|
|
221
|
+
.pimolu-slider__control::-webkit-slider-thumb {
|
|
222
|
+
transition: none;
|
|
223
|
+
}
|
|
224
|
+
.pimolu-slider__control::-moz-range-thumb {
|
|
225
|
+
transition: none;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
[data-pimolu-motion=off] .pimolu-slider__control::-webkit-slider-thumb {
|
|
229
|
+
transition: none;
|
|
230
|
+
}
|
|
231
|
+
[data-pimolu-motion=off] .pimolu-slider__control::-moz-range-thumb {
|
|
232
|
+
transition: none;
|
|
233
|
+
}
|
package/dist/table.css
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/table.css */
|
|
2
39
|
.pimolu-table__wrapper {
|
|
3
40
|
box-sizing: border-box;
|
package/dist/toolbar.css
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/toolbar.css */
|
|
2
39
|
.pimolu-toolbar {
|
|
3
40
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pimolu/web-styles",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.6",
|
|
4
4
|
"description": "Pimolu UI component stylesheets and CSS bundles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
|
|
28
28
|
"exports": {
|
|
29
|
+
"./motion.css": "./dist/motion.css",
|
|
29
30
|
"./styles.css": "./dist/pimolu.css",
|
|
30
31
|
"./layered.css": "./dist/layered.css",
|
|
31
32
|
"./pimolu.min.css": "./dist/pimolu.min.css",
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
},
|
|
162
163
|
|
|
163
164
|
"dependencies": {
|
|
164
|
-
"@pimolu/themes": "0.1.0-beta.
|
|
165
|
+
"@pimolu/themes": "0.1.0-beta.6"
|
|
165
166
|
},
|
|
166
167
|
|
|
167
168
|
"devDependencies": {
|