@pimolu/web-styles 0.0.0-stage → 0.1.0-beta.10
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 +125 -0
- package/README.md +124 -2
- package/dist/accordion.css +194 -0
- package/dist/alert.css +147 -0
- package/dist/anchor.css +121 -0
- package/dist/api-table.css +111 -0
- package/dist/app-shell.css +237 -0
- package/dist/arc-carousel.css +261 -0
- package/dist/aspect-ratio.css +34 -0
- package/dist/audio-player.css +327 -0
- package/dist/avatar-group.css +58 -0
- package/dist/avatar.css +130 -0
- package/dist/badge.css +185 -0
- package/dist/banner.css +145 -0
- package/dist/box.css +39 -0
- package/dist/breadcrumbs.css +48 -0
- package/dist/button-group.css +84 -0
- package/dist/button.css +284 -0
- package/dist/calendar.css +221 -0
- package/dist/card.css +163 -0
- package/dist/carousel.css +244 -0
- package/dist/cascader.css +273 -0
- package/dist/center.css +20 -0
- package/dist/chart.css +377 -0
- package/dist/chat.css +518 -0
- package/dist/checkbox.css +184 -0
- package/dist/circular-progress.css +125 -0
- package/dist/code-block.css +169 -0
- package/dist/code.css +81 -0
- package/dist/color-picker.css +295 -0
- package/dist/combobox.css +306 -0
- package/dist/command.css +241 -0
- package/dist/container.css +36 -0
- package/dist/context-menu.css +105 -0
- package/dist/coverflow-carousel.css +251 -0
- package/dist/currency-input.css +134 -0
- package/dist/dashboard-layout.css +244 -0
- package/dist/data-grid.css +515 -0
- package/dist/data-table.css +191 -0
- package/dist/date-picker.css +200 -0
- package/dist/date-range-picker.css +260 -0
- package/dist/description-list.css +76 -0
- package/dist/dialog.css +183 -0
- package/dist/docs-layout.css +196 -0
- package/dist/drawer.css +219 -0
- package/dist/dropdown-menu.css +82 -0
- package/dist/dropzone.css +248 -0
- package/dist/empty-state.css +120 -0
- package/dist/file-manager.css +408 -0
- package/dist/file-upload.css +235 -0
- package/dist/flex.css +70 -0
- package/dist/focus-scope.css +13 -0
- package/dist/footer.css +200 -0
- package/dist/form-field.css +141 -0
- package/dist/form.css +75 -0
- package/dist/gantt.css +406 -0
- package/dist/grid.css +51 -0
- package/dist/hero.css +176 -0
- package/dist/hover-card.css +76 -0
- package/dist/image-cropper.css +431 -0
- package/dist/image.css +158 -0
- package/dist/input-group.css +447 -0
- package/dist/input.css +271 -0
- package/dist/kanban.css +473 -0
- package/dist/label.css +39 -0
- package/dist/layered.css +23822 -0
- package/dist/lightbox.css +286 -0
- package/dist/link.css +66 -0
- package/dist/list.css +111 -0
- package/dist/loading-overlay.css +103 -0
- package/dist/masked-input.css +134 -0
- package/dist/mentions.css +212 -0
- package/dist/menubar.css +140 -0
- package/dist/modal.css +186 -0
- package/dist/motion.css +36 -0
- package/dist/multi-carousel.css +260 -0
- package/dist/multi-select.css +399 -0
- package/dist/navbar.css +574 -0
- package/dist/navigation-menu.css +132 -0
- package/dist/notification-center.css +331 -0
- package/dist/number-input.css +196 -0
- package/dist/page-header.css +169 -0
- package/dist/pagination.css +92 -0
- package/dist/password-input.css +303 -0
- package/dist/pdf-viewer.css +148 -0
- package/dist/peek-carousel.css +250 -0
- package/dist/phone-input.css +182 -0
- package/dist/pimolu.css +23521 -0
- package/dist/pimolu.min.css +1 -0
- package/dist/pin-input.css +121 -0
- package/dist/popconfirm.css +95 -0
- package/dist/popover.css +94 -0
- package/dist/progress.css +105 -0
- package/dist/prose.css +296 -0
- package/dist/qr-code.css +17 -0
- package/dist/radio.css +220 -0
- package/dist/range-slider.css +221 -0
- package/dist/rating.css +122 -0
- package/dist/resizable.css +122 -0
- package/dist/result.css +118 -0
- package/dist/scheduler.css +385 -0
- package/dist/scroll-area.css +55 -0
- package/dist/search-input.css +41 -0
- package/dist/segmented-control.css +176 -0
- package/dist/select.css +298 -0
- package/dist/separator.css +66 -0
- package/dist/sidebar.css +308 -0
- package/dist/signature.css +189 -0
- package/dist/skeleton.css +90 -0
- package/dist/slider.css +233 -0
- package/dist/spacer.css +20 -0
- package/dist/spinner.css +165 -0
- package/dist/split-button.css +100 -0
- package/dist/stack-carousel.css +250 -0
- package/dist/stack.css +58 -0
- package/dist/stat.css +159 -0
- package/dist/stepper.css +155 -0
- package/dist/switch.css +194 -0
- package/dist/table-of-contents.css +90 -0
- package/dist/table.css +184 -0
- package/dist/tabs.css +424 -0
- package/dist/tags-input.css +236 -0
- package/dist/textarea.css +208 -0
- package/dist/theme-builder.css +269 -0
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +244 -0
- package/dist/time-picker.css +174 -0
- package/dist/timeline.css +195 -0
- package/dist/toast.css +356 -0
- package/dist/toggle-group.css +21 -0
- package/dist/toggle.css +102 -0
- package/dist/tokens.css +902 -0
- package/dist/toolbar.css +161 -0
- package/dist/tooltip.css +95 -0
- package/dist/tour.css +196 -0
- package/dist/transfer.css +426 -0
- package/dist/tree-select.css +340 -0
- package/dist/tree-table.css +173 -0
- package/dist/tree-view.css +83 -0
- package/dist/typography.css +92 -0
- package/dist/video-player.css +299 -0
- package/dist/virtual-list.css +59 -0
- package/dist/visually-hidden.css +44 -0
- package/dist/watermark.css +41 -0
- package/package.json +174 -4
package/dist/switch.css
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/* src/switch.css */
|
|
2
|
+
.pimolu-switch {
|
|
3
|
+
--pimolu-switch-track-width: 42px;
|
|
4
|
+
--pimolu-switch-track-height: 24px;
|
|
5
|
+
--pimolu-switch-thumb-size: 18px;
|
|
6
|
+
--pimolu-switch-inset: 2px;
|
|
7
|
+
--pimolu-switch-gap: 12px;
|
|
8
|
+
--pimolu-switch-active: var(--pimolu-primary);
|
|
9
|
+
--pimolu-switch-active-foreground: var(--pimolu-primary-foreground, #fff);
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--pimolu-switch-gap);
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
17
|
+
color: var(--pimolu-foreground);
|
|
18
|
+
}
|
|
19
|
+
.pimolu-switch--sm {
|
|
20
|
+
--pimolu-switch-track-width: 34px;
|
|
21
|
+
--pimolu-switch-track-height: 20px;
|
|
22
|
+
--pimolu-switch-thumb-size: 14px;
|
|
23
|
+
--pimolu-switch-gap: 8px;
|
|
24
|
+
}
|
|
25
|
+
.pimolu-switch--md {
|
|
26
|
+
--pimolu-switch-track-width: 42px;
|
|
27
|
+
--pimolu-switch-track-height: 24px;
|
|
28
|
+
--pimolu-switch-thumb-size: 18px;
|
|
29
|
+
--pimolu-switch-gap: 12px;
|
|
30
|
+
}
|
|
31
|
+
.pimolu-switch--lg {
|
|
32
|
+
--pimolu-switch-track-width: 50px;
|
|
33
|
+
--pimolu-switch-track-height: 30px;
|
|
34
|
+
--pimolu-switch-thumb-size: 24px;
|
|
35
|
+
--pimolu-switch-gap: 14px;
|
|
36
|
+
}
|
|
37
|
+
.pimolu-switch--neutral {
|
|
38
|
+
--pimolu-switch-active: var(--pimolu-foreground);
|
|
39
|
+
--pimolu-switch-active-foreground: var(--pimolu-background);
|
|
40
|
+
}
|
|
41
|
+
.pimolu-switch--primary {
|
|
42
|
+
--pimolu-switch-active: var(--pimolu-primary);
|
|
43
|
+
--pimolu-switch-active-foreground: var(--pimolu-primary-foreground, #fff);
|
|
44
|
+
}
|
|
45
|
+
.pimolu-switch--secondary {
|
|
46
|
+
--pimolu-switch-active: var(--pimolu-secondary);
|
|
47
|
+
--pimolu-switch-active-foreground: var(--pimolu-secondary-foreground, #fff);
|
|
48
|
+
}
|
|
49
|
+
.pimolu-switch--success {
|
|
50
|
+
--pimolu-switch-active: var(--pimolu-success, #15803d);
|
|
51
|
+
--pimolu-switch-active-foreground: var(--pimolu-success-foreground, #fff);
|
|
52
|
+
}
|
|
53
|
+
.pimolu-switch--warning {
|
|
54
|
+
--pimolu-switch-active: var(--pimolu-warning, #d97706);
|
|
55
|
+
--pimolu-switch-active-foreground: var(--pimolu-warning-foreground, #171717);
|
|
56
|
+
}
|
|
57
|
+
.pimolu-switch--danger {
|
|
58
|
+
--pimolu-switch-active: var(--pimolu-danger, #dc2626);
|
|
59
|
+
--pimolu-switch-active-foreground: var(--pimolu-danger-foreground, #fff);
|
|
60
|
+
}
|
|
61
|
+
.pimolu-switch__control {
|
|
62
|
+
position: relative;
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
flex: 0 0 auto;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
width: var(--pimolu-switch-track-width);
|
|
69
|
+
min-width: 44px;
|
|
70
|
+
min-height: 44px;
|
|
71
|
+
}
|
|
72
|
+
.pimolu-switch__input {
|
|
73
|
+
position: absolute;
|
|
74
|
+
inset: 0;
|
|
75
|
+
z-index: 1;
|
|
76
|
+
display: block;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
margin: 0;
|
|
80
|
+
padding: 0;
|
|
81
|
+
opacity: 0;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
.pimolu-switch__track {
|
|
85
|
+
position: relative;
|
|
86
|
+
display: block;
|
|
87
|
+
flex: 0 0 auto;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
width: var(--pimolu-switch-track-width);
|
|
90
|
+
height: var(--pimolu-switch-track-height);
|
|
91
|
+
background: var(--pimolu-muted);
|
|
92
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
|
|
93
|
+
border-radius: var(--pimolu-radius-lg, 9999px);
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
transition: background-color 180ms ease, border-color 180ms ease;
|
|
96
|
+
}
|
|
97
|
+
.pimolu-switch__thumb {
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset-block-start: 50%;
|
|
100
|
+
inset-inline-start: var(--pimolu-switch-inset);
|
|
101
|
+
display: block;
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
width: var(--pimolu-switch-thumb-size);
|
|
104
|
+
height: var(--pimolu-switch-thumb-size);
|
|
105
|
+
background: var(--pimolu-background);
|
|
106
|
+
border-radius: var(--pimolu-radius-lg, 9999px);
|
|
107
|
+
box-shadow: var(--pimolu-shadow-sm, none);
|
|
108
|
+
transform: translateY(-50%);
|
|
109
|
+
transition: inset-inline-start 180ms ease, background-color 180ms ease;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
}
|
|
112
|
+
.pimolu-switch__input:checked + .pimolu-switch__track {
|
|
113
|
+
background: var(--pimolu-switch-active);
|
|
114
|
+
border-color: var(--pimolu-switch-active);
|
|
115
|
+
}
|
|
116
|
+
.pimolu-switch__input:checked + .pimolu-switch__track .pimolu-switch__thumb {
|
|
117
|
+
inset-inline-start: calc(100% - var(--pimolu-switch-thumb-size) - var(--pimolu-switch-inset));
|
|
118
|
+
background: var(--pimolu-switch-active-foreground);
|
|
119
|
+
}
|
|
120
|
+
.pimolu-switch__input:focus-visible + .pimolu-switch__track {
|
|
121
|
+
outline: 2px solid var( --pimolu-focus-ring, var(--pimolu-primary) );
|
|
122
|
+
outline-offset: 3px;
|
|
123
|
+
}
|
|
124
|
+
.pimolu-switch--disabled {
|
|
125
|
+
opacity: 0.55;
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
}
|
|
128
|
+
.pimolu-switch__input:disabled {
|
|
129
|
+
cursor: not-allowed;
|
|
130
|
+
}
|
|
131
|
+
.pimolu-switch--disabled .pimolu-switch__label {
|
|
132
|
+
cursor: not-allowed;
|
|
133
|
+
}
|
|
134
|
+
.pimolu-switch__content {
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
gap: 4px;
|
|
138
|
+
min-width: 0;
|
|
139
|
+
}
|
|
140
|
+
.pimolu-switch__label {
|
|
141
|
+
color: var(--pimolu-foreground);
|
|
142
|
+
font-size: 0.875rem;
|
|
143
|
+
line-height: 1.4;
|
|
144
|
+
overflow-wrap: anywhere;
|
|
145
|
+
cursor: pointer;
|
|
146
|
+
}
|
|
147
|
+
.pimolu-switch--lg .pimolu-switch__label {
|
|
148
|
+
font-size: 1rem;
|
|
149
|
+
}
|
|
150
|
+
.pimolu-switch--sm .pimolu-switch__label {
|
|
151
|
+
font-size: 0.8125rem;
|
|
152
|
+
}
|
|
153
|
+
.pimolu-switch__description {
|
|
154
|
+
color: var(--pimolu-muted-foreground);
|
|
155
|
+
font-size: 0.8125rem;
|
|
156
|
+
line-height: 1.5;
|
|
157
|
+
overflow-wrap: anywhere;
|
|
158
|
+
}
|
|
159
|
+
.pimolu-switch__required {
|
|
160
|
+
margin-inline-start: 3px;
|
|
161
|
+
color: var(--pimolu-danger, currentColor);
|
|
162
|
+
}
|
|
163
|
+
@media (prefers-reduced-motion: reduce) {
|
|
164
|
+
.pimolu-switch__track,
|
|
165
|
+
.pimolu-switch__thumb {
|
|
166
|
+
transition: none;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
@media (forced-colors: active) {
|
|
170
|
+
.pimolu-switch {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
}
|
|
173
|
+
.pimolu-switch__track {
|
|
174
|
+
background: Canvas;
|
|
175
|
+
border-color: ButtonText;
|
|
176
|
+
}
|
|
177
|
+
.pimolu-switch__thumb {
|
|
178
|
+
background: ButtonText;
|
|
179
|
+
box-shadow: none;
|
|
180
|
+
}
|
|
181
|
+
.pimolu-switch__input:checked + .pimolu-switch__track {
|
|
182
|
+
background: Highlight;
|
|
183
|
+
border-color: Highlight;
|
|
184
|
+
}
|
|
185
|
+
.pimolu-switch__input:checked + .pimolu-switch__track .pimolu-switch__thumb {
|
|
186
|
+
background: HighlightText;
|
|
187
|
+
}
|
|
188
|
+
.pimolu-switch__input:focus-visible + .pimolu-switch__track {
|
|
189
|
+
outline-color: Highlight;
|
|
190
|
+
}
|
|
191
|
+
.pimolu-switch__input:disabled + .pimolu-switch__track {
|
|
192
|
+
border-color: GrayText;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* src/table-of-contents.css */
|
|
2
|
+
.pimolu-table-of-contents {
|
|
3
|
+
--pimolu-table-of-contents-offset: 0px;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
align-self: start;
|
|
6
|
+
max-height: calc(100dvh - var(--pimolu-table-of-contents-offset, 0px) - var(--pimolu-spacing-6, 24px));
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
overscroll-behavior: contain;
|
|
9
|
+
min-width: 0;
|
|
10
|
+
color: var(--pimolu-foreground);
|
|
11
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
12
|
+
font-size: 0.875rem;
|
|
13
|
+
line-height: 1.5;
|
|
14
|
+
}
|
|
15
|
+
.pimolu-table-of-contents__title {
|
|
16
|
+
margin: 0 0 var(--pimolu-spacing-3, 12px);
|
|
17
|
+
color: var(--pimolu-foreground);
|
|
18
|
+
font-size: 0.75rem;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
line-height: 1.4;
|
|
21
|
+
letter-spacing: 0.08em;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
overflow-wrap: anywhere;
|
|
24
|
+
}
|
|
25
|
+
.pimolu-table-of-contents__list {
|
|
26
|
+
display: grid;
|
|
27
|
+
gap: 2px;
|
|
28
|
+
margin: 0;
|
|
29
|
+
padding: 0;
|
|
30
|
+
list-style: none;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-table-of-contents__list--nested {
|
|
33
|
+
margin-block-start: 2px;
|
|
34
|
+
padding-inline-start: var(--pimolu-spacing-3, 12px);
|
|
35
|
+
border-inline-start: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
36
|
+
}
|
|
37
|
+
.pimolu-table-of-contents__item {
|
|
38
|
+
min-width: 0;
|
|
39
|
+
}
|
|
40
|
+
.pimolu-table-of-contents__link {
|
|
41
|
+
display: block;
|
|
42
|
+
padding: var(--pimolu-spacing-1, 4px) var(--pimolu-spacing-2, 8px);
|
|
43
|
+
border-inline-start: 2px solid transparent;
|
|
44
|
+
border-radius: var(--pimolu-radius-sm, 6px);
|
|
45
|
+
color: var(--pimolu-muted-foreground);
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
line-height: 1.5;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
overflow-wrap: anywhere;
|
|
50
|
+
transition:
|
|
51
|
+
color 150ms ease,
|
|
52
|
+
background-color 150ms ease,
|
|
53
|
+
border-color 150ms ease;
|
|
54
|
+
}
|
|
55
|
+
.pimolu-table-of-contents__link:hover {
|
|
56
|
+
background: var(--pimolu-muted);
|
|
57
|
+
color: var(--pimolu-foreground);
|
|
58
|
+
}
|
|
59
|
+
.pimolu-table-of-contents__link:focus-visible {
|
|
60
|
+
outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
|
|
61
|
+
outline-offset: 2px;
|
|
62
|
+
}
|
|
63
|
+
.pimolu-table-of-contents__link[aria-current=location] {
|
|
64
|
+
border-inline-start-color: var(--pimolu-primary);
|
|
65
|
+
background: color-mix(in srgb, var(--pimolu-primary) 9%, transparent);
|
|
66
|
+
color: var(--pimolu-primary);
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
}
|
|
69
|
+
@media (prefers-reduced-motion: reduce) {
|
|
70
|
+
.pimolu-table-of-contents__link {
|
|
71
|
+
transition: none;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
.pimolu-table-of-contents__title {
|
|
76
|
+
color: CanvasText;
|
|
77
|
+
}
|
|
78
|
+
.pimolu-table-of-contents__link {
|
|
79
|
+
color: LinkText;
|
|
80
|
+
}
|
|
81
|
+
.pimolu-table-of-contents__link:hover,
|
|
82
|
+
.pimolu-table-of-contents__link[aria-current=location] {
|
|
83
|
+
background: Canvas;
|
|
84
|
+
color: Highlight;
|
|
85
|
+
outline: 1px solid Highlight;
|
|
86
|
+
}
|
|
87
|
+
.pimolu-table-of-contents__list--nested {
|
|
88
|
+
border-color: CanvasText;
|
|
89
|
+
}
|
|
90
|
+
}
|
package/dist/table.css
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
|
|
38
|
+
/* src/table.css */
|
|
39
|
+
.pimolu-table__wrapper {
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
width: 100%;
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
overflow-x: auto;
|
|
44
|
+
overscroll-behavior-x: contain;
|
|
45
|
+
-webkit-overflow-scrolling: touch;
|
|
46
|
+
}
|
|
47
|
+
.pimolu-table__wrapper:focus-visible {
|
|
48
|
+
outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
|
|
49
|
+
outline-offset: 2px;
|
|
50
|
+
border-radius: var(--pimolu-radius-sm, 4px);
|
|
51
|
+
}
|
|
52
|
+
.pimolu-table {
|
|
53
|
+
--pimolu-table-cell-padding-y: 12px;
|
|
54
|
+
--pimolu-table-cell-padding-x: 16px;
|
|
55
|
+
--pimolu-table-font-size: 0.875rem;
|
|
56
|
+
--pimolu-table-header-font-size: 0.8125rem;
|
|
57
|
+
--pimolu-table-header-bg: color-mix( in srgb, var(--pimolu-muted, #f4f4f5) 70%, var(--pimolu-surface, var(--pimolu-background, #ffffff)) );
|
|
58
|
+
width: 100%;
|
|
59
|
+
min-width: 100%;
|
|
60
|
+
border-collapse: collapse;
|
|
61
|
+
border-spacing: 0;
|
|
62
|
+
caption-side: bottom;
|
|
63
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground, currentColor) );
|
|
64
|
+
font-family: var(--pimolu-font-body, inherit);
|
|
65
|
+
font-size: var(--pimolu-table-font-size);
|
|
66
|
+
line-height: 1.5;
|
|
67
|
+
text-align: start;
|
|
68
|
+
}
|
|
69
|
+
.pimolu-table__header {
|
|
70
|
+
vertical-align: middle;
|
|
71
|
+
}
|
|
72
|
+
.pimolu-table__body {
|
|
73
|
+
vertical-align: top;
|
|
74
|
+
}
|
|
75
|
+
.pimolu-table__footer {
|
|
76
|
+
vertical-align: middle;
|
|
77
|
+
}
|
|
78
|
+
.pimolu-table__head {
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
padding: var(--pimolu-table-cell-padding-y) var(--pimolu-table-cell-padding-x);
|
|
81
|
+
color: inherit;
|
|
82
|
+
font-size: inherit;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
line-height: inherit;
|
|
85
|
+
text-align: start;
|
|
86
|
+
vertical-align: middle;
|
|
87
|
+
overflow-wrap: anywhere;
|
|
88
|
+
}
|
|
89
|
+
.pimolu-table__header .pimolu-table__head {
|
|
90
|
+
border-block-end: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
91
|
+
background: var(--pimolu-table-header-bg);
|
|
92
|
+
color: var( --pimolu-surface-foreground, var(--pimolu-foreground, currentColor) );
|
|
93
|
+
font-size: var(--pimolu-table-header-font-size);
|
|
94
|
+
line-height: 1.35;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
}
|
|
97
|
+
.pimolu-table__body .pimolu-table__head {
|
|
98
|
+
vertical-align: top;
|
|
99
|
+
white-space: normal;
|
|
100
|
+
}
|
|
101
|
+
.pimolu-table__cell {
|
|
102
|
+
box-sizing: border-box;
|
|
103
|
+
padding: var(--pimolu-table-cell-padding-y) var(--pimolu-table-cell-padding-x);
|
|
104
|
+
color: inherit;
|
|
105
|
+
font-size: inherit;
|
|
106
|
+
font-weight: inherit;
|
|
107
|
+
line-height: inherit;
|
|
108
|
+
text-align: start;
|
|
109
|
+
vertical-align: top;
|
|
110
|
+
overflow-wrap: anywhere;
|
|
111
|
+
}
|
|
112
|
+
.pimolu-table__body .pimolu-table__row:not(:last-child) .pimolu-table__cell,
|
|
113
|
+
.pimolu-table__body .pimolu-table__row:not(:last-child) .pimolu-table__head {
|
|
114
|
+
border-block-end: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
115
|
+
}
|
|
116
|
+
.pimolu-table__footer .pimolu-table__cell {
|
|
117
|
+
border-block-start: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
118
|
+
background: color-mix(in srgb, var(--pimolu-muted, #f4f4f5) 45%, var(--pimolu-surface, var(--pimolu-background, #ffffff)));
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
}
|
|
121
|
+
.pimolu-table__caption {
|
|
122
|
+
padding-block: 10px 0;
|
|
123
|
+
color: var(--pimolu-muted-foreground);
|
|
124
|
+
font-size: 0.8125rem;
|
|
125
|
+
font-weight: 400;
|
|
126
|
+
line-height: 1.5;
|
|
127
|
+
text-align: start;
|
|
128
|
+
caption-side: bottom;
|
|
129
|
+
}
|
|
130
|
+
.pimolu-table--striped .pimolu-table__body .pimolu-table__row:nth-child(odd) {
|
|
131
|
+
background: color-mix(in srgb, var(--pimolu-muted, #f4f4f5) 55%, transparent);
|
|
132
|
+
}
|
|
133
|
+
.pimolu-table__body .pimolu-table__row:hover {
|
|
134
|
+
background: color-mix(in srgb, var(--pimolu-primary) 7%, var(--pimolu-surface, var(--pimolu-background, #ffffff)));
|
|
135
|
+
}
|
|
136
|
+
.pimolu-table--bordered {
|
|
137
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
138
|
+
}
|
|
139
|
+
.pimolu-table--bordered .pimolu-table__head,
|
|
140
|
+
.pimolu-table--bordered .pimolu-table__cell {
|
|
141
|
+
border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
|
|
142
|
+
}
|
|
143
|
+
.pimolu-table--sticky-header .pimolu-table__header .pimolu-table__head {
|
|
144
|
+
position: sticky;
|
|
145
|
+
inset-block-start: 0;
|
|
146
|
+
z-index: 1;
|
|
147
|
+
background: var(--pimolu-table-header-bg);
|
|
148
|
+
box-shadow: inset 0 -1px 0 var(--pimolu-border);
|
|
149
|
+
}
|
|
150
|
+
.pimolu-table--sm {
|
|
151
|
+
--pimolu-table-cell-padding-y: 8px;
|
|
152
|
+
--pimolu-table-cell-padding-x: 12px;
|
|
153
|
+
--pimolu-table-font-size: 0.8125rem;
|
|
154
|
+
--pimolu-table-header-font-size: 0.75rem;
|
|
155
|
+
}
|
|
156
|
+
.pimolu-table--md {
|
|
157
|
+
--pimolu-table-cell-padding-y: 12px;
|
|
158
|
+
--pimolu-table-cell-padding-x: 16px;
|
|
159
|
+
--pimolu-table-font-size: 0.875rem;
|
|
160
|
+
--pimolu-table-header-font-size: 0.8125rem;
|
|
161
|
+
}
|
|
162
|
+
.pimolu-table--lg {
|
|
163
|
+
--pimolu-table-cell-padding-y: 16px;
|
|
164
|
+
--pimolu-table-cell-padding-x: 20px;
|
|
165
|
+
--pimolu-table-font-size: 1rem;
|
|
166
|
+
--pimolu-table-header-font-size: 0.875rem;
|
|
167
|
+
}
|
|
168
|
+
@media (forced-colors: active) {
|
|
169
|
+
.pimolu-table__wrapper:focus-visible {
|
|
170
|
+
outline-color: Highlight;
|
|
171
|
+
}
|
|
172
|
+
.pimolu-table__head,
|
|
173
|
+
.pimolu-table__cell {
|
|
174
|
+
border-color: CanvasText;
|
|
175
|
+
}
|
|
176
|
+
.pimolu-table--striped .pimolu-table__body .pimolu-table__row:nth-child(odd),
|
|
177
|
+
.pimolu-table__body .pimolu-table__row:hover,
|
|
178
|
+
.pimolu-table__footer .pimolu-table__cell {
|
|
179
|
+
background: Canvas;
|
|
180
|
+
}
|
|
181
|
+
.pimolu-table--bordered {
|
|
182
|
+
border-color: CanvasText;
|
|
183
|
+
}
|
|
184
|
+
}
|