@pimolu/web-styles 0.1.0-beta.2 → 0.1.0-beta.3

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  La couche CSS de Pimolu UI. Elle réunit les tokens, les thèmes de couleurs, les presets visuels et les styles des familles de composants React. Aucun runtime Tailwind ou CSS-in-JS n'est nécessaire.
4
4
 
5
- > **0.1.0-beta.2** est une version de prévisualisation.
5
+ > **0.1.0-beta.3** est une version de prévisualisation.
6
6
 
7
7
  ## Installation
8
8
 
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The plain CSS layer for Pimolu UI. It combines design tokens, colour themes, visual presets and styles for the React component families. No Tailwind or CSS-in-JS runtime is required.
4
4
 
5
- > **0.1.0-beta.2** is a preview release.
5
+ > **0.1.0-beta.3** is a preview release.
6
6
 
7
7
  ## Install
8
8
 
@@ -28,7 +28,7 @@
28
28
  .pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
29
29
  --pimolu-app-shell-sidebar-track: 3.75rem;
30
30
  }
31
- @container (max-width: 1100px) {
31
+ @container (max-width: 900px) {
32
32
  .pimolu-app-shell[data-aside=true] {
33
33
  grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
34
34
  grid-template-areas: "header header" "sidebar main" "aside aside" "footer footer";
@@ -120,7 +120,21 @@
120
120
  color: var(--pimolu-muted-foreground);
121
121
  font-size: 0.8125rem;
122
122
  }
123
- @media (max-width: 960px) {
123
+ @media (min-width: 721px) and (max-width: 900px) {
124
+ .pimolu-app-shell[data-aside=true] {
125
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
126
+ grid-template-areas: "header header" "sidebar main" "aside aside" "footer footer";
127
+ }
128
+ .pimolu-app-shell[data-sidebar=false][data-aside=true] {
129
+ grid-template-columns: minmax(0, 1fr);
130
+ grid-template-areas: "header" "main" "aside" "footer";
131
+ }
132
+ .pimolu-app-shell__aside {
133
+ border-inline-start: 0;
134
+ border-block-start: 1px solid var(--pimolu-border);
135
+ }
136
+ }
137
+ @media (max-width: 720px) {
124
138
  .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
125
139
  display: flex;
126
140
  min-height: 40px;
@@ -199,3 +213,25 @@
199
213
  display: none;
200
214
  }
201
215
  }
216
+ @container (max-width: 720px) {
217
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__expanded {
218
+ display: contents;
219
+ }
220
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__compact {
221
+ display: none;
222
+ }
223
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
224
+ justify-content: flex-start;
225
+ padding-inline: 8px 100px;
226
+ }
227
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
228
+ position: absolute;
229
+ inset-inline-end: 64px;
230
+ inset-block-start: 12px;
231
+ margin: 0;
232
+ padding: 0;
233
+ border: 0;
234
+ height: 40px;
235
+ align-items: center;
236
+ }
237
+ }
package/dist/carousel.css CHANGED
@@ -88,6 +88,15 @@
88
88
  width: 1.25rem;
89
89
  height: 1.25rem;
90
90
  }
91
+ [dir=rtl] {
92
+ --pimolu-carousel-arrow-direction: -1;
93
+ }
94
+ [dir=ltr] {
95
+ --pimolu-carousel-arrow-direction: 1;
96
+ }
97
+ .pimolu-carousel__control svg {
98
+ transform: scaleX(var(--pimolu-carousel-arrow-direction, 1));
99
+ }
91
100
  .pimolu-carousel__footer {
92
101
  display: flex;
93
102
  align-items: center;
@@ -28,7 +28,7 @@
28
28
  .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
29
29
  --pimolu-dashboard-sidebar-track: 3.75rem;
30
30
  }
31
- @container (max-width: 1100px) {
31
+ @container (max-width: 900px) {
32
32
  .pimolu-dashboard-layout[data-aside=true] {
33
33
  grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
34
34
  grid-template-areas: "sidebar main" "aside aside";
@@ -74,7 +74,7 @@
74
74
  grid-template-columns: minmax(0, 1fr);
75
75
  grid-template-areas: "sidebar" "main";
76
76
  }
77
- .pimolu-dashboard-layout[data-aside=true] {
77
+ .pimolu-dashboard-layout[data-sidebar][data-aside=true] {
78
78
  grid-template-areas: "sidebar" "main" "aside";
79
79
  }
80
80
  .pimolu-dashboard-layout[data-sidebar=false] {
@@ -128,7 +128,7 @@
128
128
  border-inline-start: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
129
129
  background: var(--pimolu-surface);
130
130
  }
131
- @media (max-width: 1100px) {
131
+ @media (max-width: 900px) {
132
132
  .pimolu-dashboard-layout[data-aside=true] {
133
133
  grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
134
134
  grid-template-areas: "sidebar main" "aside aside";
@@ -142,7 +142,7 @@
142
142
  border-block-start: 1px solid var(--pimolu-border);
143
143
  }
144
144
  }
145
- @media (max-width: 860px) {
145
+ @media (max-width: 720px) {
146
146
  .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
147
147
  display: flex;
148
148
  min-height: 40px;
@@ -167,7 +167,7 @@
167
167
  grid-template-columns: minmax(0, 1fr);
168
168
  grid-template-areas: "sidebar" "main";
169
169
  }
170
- .pimolu-dashboard-layout[data-aside=true] {
170
+ .pimolu-dashboard-layout[data-sidebar][data-aside=true] {
171
171
  grid-template-areas: "sidebar" "main" "aside";
172
172
  }
173
173
  .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]),
@@ -220,3 +220,25 @@
220
220
  display: none;
221
221
  }
222
222
  }
223
+ @container (max-width: 720px) {
224
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__expanded {
225
+ display: contents;
226
+ }
227
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__compact {
228
+ display: none;
229
+ }
230
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
231
+ justify-content: flex-start;
232
+ padding-inline: 8px 100px;
233
+ }
234
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
235
+ position: absolute;
236
+ inset-inline-end: 64px;
237
+ inset-block-start: 12px;
238
+ margin: 0;
239
+ padding: 0;
240
+ border: 0;
241
+ height: 40px;
242
+ align-items: center;
243
+ }
244
+ }
@@ -167,7 +167,9 @@
167
167
  }
168
168
  .pimolu-input__wrapper:focus-within {
169
169
  border-color: var(--pimolu-input-tone);
170
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent), var(--pimolu-input-elevation);
170
+ box-shadow: var(--pimolu-input-elevation);
171
+ outline: 3px solid color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent);
172
+ outline-offset: 0;
171
173
  }
172
174
  .pimolu-input--invalid {
173
175
  --pimolu-input-tone: var(--pimolu-danger, #dc2626);
package/dist/input.css CHANGED
@@ -167,7 +167,9 @@
167
167
  }
168
168
  .pimolu-input__wrapper:focus-within {
169
169
  border-color: var(--pimolu-input-tone);
170
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent), var(--pimolu-input-elevation);
170
+ box-shadow: var(--pimolu-input-elevation);
171
+ outline: 3px solid color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent);
172
+ outline-offset: 0;
171
173
  }
172
174
  .pimolu-input--invalid {
173
175
  --pimolu-input-tone: var(--pimolu-danger, #dc2626);