@plexui/styles 0.16.4 → 0.16.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.
@@ -417,13 +417,14 @@
417
417
  color: var(--mobile-label-tertiary, var(--color-text-disabled));
418
418
  }
419
419
 
420
- /* A disabled text field in a row reads as disabled as a whole, as an unavailable row of iOS Settings
421
- is gray: its label dims with its value. (A Select's hidden form input does not count.) */
422
- .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) {
420
+ /* A disabled text field in a row dims only its value, as iOS shows a value that cannot be changed: the label
421
+ keeps its color (owner 19.11). A row that is unavailable as a whole, as a gray row
422
+ of iOS Settings, opts in with data-disabled on the Field: its label and description dim too. */
423
+ .Field:where([data-row][data-disabled]) {
423
424
  --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
424
425
  }
425
426
 
426
- .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) > .LabelGroup .Label {
427
+ .Field:where([data-row][data-disabled]) > .LabelGroup .Label {
427
428
  color: var(--mobile-label-tertiary, var(--color-text-disabled));
428
429
  }
429
430
 
@@ -832,13 +833,14 @@
832
833
  color: var(--mobile-label-tertiary, var(--color-text-disabled));
833
834
  }
834
835
 
835
- /* A disabled text field in a row reads as disabled as a whole, as an unavailable row of iOS Settings
836
- is gray: its label dims with its value. (A Select's hidden form input does not count.) */
837
- :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) {
836
+ /* A disabled text field in a row dims only its value, as iOS shows a value that cannot be changed: the label
837
+ keeps its color (owner 19.11). A row that is unavailable as a whole, as a gray row
838
+ of iOS Settings, opts in with data-disabled on the Field: its label and description dim too. */
839
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-disabled]) {
838
840
  --field-description-color: var(--mobile-label-quaternary, var(--color-text-disabled));
839
841
  }
840
842
 
841
- :where([data-plex-layout="phone"]) .Field:where([data-row]):has(> .Content > .Control :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [aria-hidden="true"]), textarea):disabled) > .LabelGroup .Label {
843
+ :where([data-plex-layout="phone"]) .Field:where([data-row][data-disabled]) > .LabelGroup .Label {
842
844
  color: var(--mobile-label-tertiary, var(--color-text-disabled));
843
845
  }
844
846
 
@@ -167,29 +167,209 @@ background-color: rgba(255, 255, 255, 0.1);
167
167
  flex-direction: column;
168
168
  gap: 16px;
169
169
  }@media (max-width: 767px) {
170
+ /* On a phone the editor is a cell of a grouped form (owner 21.11), built as an iOS 27 cell with a row of round
171
+ buttons under its value, the Repeat cell of the Clock app's Add Alarm (IMG_6623, measured at 430pt): the text
172
+ takes the row's 20 inset, as a Textarea in a row does; under it a hairline from that inset to the other, then the
173
+ row of 35 circles, 18 apart, 16 above and under them. A circle is a soft gray face with its glyph; a format that
174
+ is on is the solid face with an inverse glyph, as the days of the alarm that are chosen. The cell is the
175
+ FieldGroup's card: its fill, its 26 corners and no outline; its title and footer stand over and under it. */
176
+ .Container {
177
+ --markdown-editor-inset: var(--list-row-inset, 20px);
178
+ --markdown-editor-button-size: 35px;
179
+
180
+ border-radius: var(--field-group-radius, 26px);
181
+ font-size: var(--field-row-label-font-size, 17px);
182
+ }
183
+
184
+ /* A cell has no outline, hovered or focused either, as an iOS cell being edited; only the invalid line stays. */
185
+ .Container:where([data-variant="outline"], [data-variant="soft"]), .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-focused="true"] {
186
+ background-color: var(--field-group-background);
187
+ box-shadow: none;
188
+ }
189
+
190
+ .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled]):is(:hover, [data-focused="true"]) {
191
+ box-shadow: none;
192
+ }
193
+
194
+ .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-invalid][data-invalid] {
195
+ box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
196
+ }
197
+
198
+ .Editor {
199
+ order: 0;
200
+ padding: 15px var(--markdown-editor-inset);
201
+ line-height: var(--field-row-label-line-height, 22px);
202
+ }
203
+
204
+ .Toolbar {
205
+ position: relative;
206
+ order: 1;
207
+ border-bottom: 0;
208
+ }
209
+
210
+ .Toolbar::before {
211
+ position: absolute;
212
+ top: 0;
213
+ inset-inline: var(--markdown-editor-inset);
214
+ height: 1px;
215
+ background: var(--color-border);
216
+ content: "";
217
+ }
218
+
170
219
  .ToolbarGroup {
220
+ gap: 18px;
221
+ padding: 16px var(--markdown-editor-inset);
171
222
  overflow-x: auto;
172
223
  overscroll-behavior-x: contain;
224
+ scrollbar-width: none;
225
+ }
226
+
227
+ .ToolbarSeparator {
228
+ display: none;
173
229
  }
174
230
 
175
231
  .ToolbarButton.ToolbarButton {
176
- --button-size: 44px;
177
- --button-uniform-size: 44px;
178
- width: 44px;
179
- height: 44px;
232
+ --button-size: var(--markdown-editor-button-size);
233
+ --button-uniform-size: var(--markdown-editor-button-size);
234
+
235
+ position: relative;
236
+ width: var(--markdown-editor-button-size);
237
+ height: var(--markdown-editor-button-size);
180
238
  flex-shrink: 0;
239
+ border-radius: var(--radius-full);
240
+ background-color: var(--color-background-secondary-soft-alpha);
241
+ color: var(--color-text);
242
+ font-size: 20px;
243
+
244
+ }
245
+
246
+ .ToolbarButton.ToolbarButton > span > svg,
247
+ .ToolbarButton.ToolbarButton > svg {
248
+ width: 20px;
249
+ height: 20px;
250
+ }
251
+
252
+ /* A format that is on: the solid face with an inverse glyph, over the Button's selected colors. */
253
+ .Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] {
254
+ background-color: var(--color-background-primary-solid);
255
+ color: var(--color-text-inverse);
256
+ }
257
+
258
+ .Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] > span {
259
+ color: inherit;
260
+ }
261
+
262
+ /* The face is the button itself; its ::before is the 44 target around the circle, without a face of its own, on a
263
+ toolbarEnd button of the app's own too. */
264
+ .Container .Toolbar .ToolbarButton.ToolbarButton::before {
265
+ position: absolute;
266
+ inset: calc((var(--markdown-editor-button-size) - 44px) / 2);
267
+ content: "";
268
+ border-radius: var(--radius-full);
269
+ background: transparent;
270
+ opacity: 0;
181
271
  }
182
272
  }
273
+ /* On a phone the editor is a cell of a grouped form (owner 21.11), built as an iOS 27 cell with a row of round
274
+ buttons under its value, the Repeat cell of the Clock app's Add Alarm (IMG_6623, measured at 430pt): the text
275
+ takes the row's 20 inset, as a Textarea in a row does; under it a hairline from that inset to the other, then the
276
+ row of 35 circles, 18 apart, 16 above and under them. A circle is a soft gray face with its glyph; a format that
277
+ is on is the solid face with an inverse glyph, as the days of the alarm that are chosen. The cell is the
278
+ FieldGroup's card: its fill, its 26 corners and no outline; its title and footer stand over and under it. */
279
+ :where([data-plex-layout="phone"]) .Container {
280
+ --markdown-editor-inset: var(--list-row-inset, 20px);
281
+ --markdown-editor-button-size: 35px;
282
+
283
+ border-radius: var(--field-group-radius, 26px);
284
+ font-size: var(--field-row-label-font-size, 17px);
285
+ }
286
+
287
+ /* A cell has no outline, hovered or focused either, as an iOS cell being edited; only the invalid line stays. */
288
+ :where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]), :where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-focused="true"] {
289
+ background-color: var(--field-group-background);
290
+ box-shadow: none;
291
+ }
292
+
293
+ :where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled]):is(:hover, [data-focused="true"]) {
294
+ box-shadow: none;
295
+ }
296
+
297
+ :where([data-plex-layout="phone"]) .Container:where([data-variant="outline"], [data-variant="soft"]):not([data-disabled])[data-invalid][data-invalid] {
298
+ box-shadow: 0 0 0 1px var(--input-border-color-invalid) inset;
299
+ }
300
+
301
+ :where([data-plex-layout="phone"]) .Editor {
302
+ order: 0;
303
+ padding: 15px var(--markdown-editor-inset);
304
+ line-height: var(--field-row-label-line-height, 22px);
305
+ }
306
+
307
+ :where([data-plex-layout="phone"]) .Toolbar {
308
+ position: relative;
309
+ order: 1;
310
+ border-bottom: 0;
311
+ }
312
+
313
+ :where([data-plex-layout="phone"]) .Toolbar::before {
314
+ position: absolute;
315
+ top: 0;
316
+ inset-inline: var(--markdown-editor-inset);
317
+ height: 1px;
318
+ background: var(--color-border);
319
+ content: "";
320
+ }
321
+
183
322
  :where([data-plex-layout="phone"]) .ToolbarGroup {
323
+ gap: 18px;
324
+ padding: 16px var(--markdown-editor-inset);
184
325
  overflow-x: auto;
185
326
  overscroll-behavior-x: contain;
327
+ scrollbar-width: none;
328
+ }
329
+
330
+ :where([data-plex-layout="phone"]) .ToolbarSeparator {
331
+ display: none;
186
332
  }
187
333
 
188
334
  :where([data-plex-layout="phone"]) .ToolbarButton.ToolbarButton {
189
- --button-size: 44px;
190
- --button-uniform-size: 44px;
191
- width: 44px;
192
- height: 44px;
335
+ --button-size: var(--markdown-editor-button-size);
336
+ --button-uniform-size: var(--markdown-editor-button-size);
337
+
338
+ position: relative;
339
+ width: var(--markdown-editor-button-size);
340
+ height: var(--markdown-editor-button-size);
193
341
  flex-shrink: 0;
342
+ border-radius: var(--radius-full);
343
+ background-color: var(--color-background-secondary-soft-alpha);
344
+ color: var(--color-text);
345
+ font-size: 20px;
346
+
347
+ }
348
+
349
+ :where([data-plex-layout="phone"]) .ToolbarButton.ToolbarButton > span > svg,
350
+ :where([data-plex-layout="phone"]) .ToolbarButton.ToolbarButton > svg {
351
+ width: 20px;
352
+ height: 20px;
353
+ }
354
+
355
+ /* A format that is on: the solid face with an inverse glyph, over the Button's selected colors. */
356
+ :where([data-plex-layout="phone"]) .Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] {
357
+ background-color: var(--color-background-primary-solid);
358
+ color: var(--color-text-inverse);
359
+ }
360
+
361
+ :where([data-plex-layout="phone"]) .Container .Toolbar .ToolbarButton.ToolbarButton[aria-pressed="true"] > span {
362
+ color: inherit;
363
+ }
364
+
365
+ /* The face is the button itself; its ::before is the 44 target around the circle, without a face of its own, on a
366
+ toolbarEnd button of the app's own too. */
367
+ :where([data-plex-layout="phone"]) .Container .Toolbar .ToolbarButton.ToolbarButton::before {
368
+ position: absolute;
369
+ inset: calc((var(--markdown-editor-button-size) - 44px) / 2);
370
+ content: "";
371
+ border-radius: var(--radius-full);
372
+ background: transparent;
373
+ opacity: 0;
194
374
  }
195
375
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.16.4",
3
+ "version": "0.16.6",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",