@plexui/styles 0.3.0 → 0.3.2

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.
@@ -252,6 +252,8 @@
252
252
  .Indicator {
253
253
  padding-inline: 6px 4px;
254
254
  margin-block: 5px;
255
+ /* A smaller custom indicator stands on the middle of the icon's place */
256
+ min-height: var(--alert-indicator-size);
255
257
  }
256
258
 
257
259
  .Indicator::before {
@@ -263,6 +265,13 @@
263
265
  align-self: center;
264
266
  }
265
267
 
268
+ /* A description alone (a tip always has a title, so TipKit has no such card) stands its first line on the middle
269
+ of the image, as a title alone does: one line centred on the icon, more lines going on under it (owner 13.11:
270
+ the line sat 6px above the icon's middle) */
271
+ .Indicator + .Content > .Message:not(:has(> .Title)) {
272
+ margin-top: calc(5px + var(--alert-indicator-size) / 2 - 0.5lh);
273
+ }
274
+
266
275
  .Message {
267
276
  padding-inline-start: 6px;
268
277
  }
@@ -372,6 +381,8 @@
372
381
  :where([data-plex-layout="phone"]) .Indicator {
373
382
  padding-inline: 6px 4px;
374
383
  margin-block: 5px;
384
+ /* A smaller custom indicator stands on the middle of the icon's place */
385
+ min-height: var(--alert-indicator-size);
375
386
  }
376
387
 
377
388
  :where([data-plex-layout="phone"]) .Indicator::before {
@@ -383,6 +394,13 @@
383
394
  align-self: center;
384
395
  }
385
396
 
397
+ /* A description alone (a tip always has a title, so TipKit has no such card) stands its first line on the middle
398
+ of the image, as a title alone does: one line centred on the icon, more lines going on under it (owner 13.11:
399
+ the line sat 6px above the icon's middle) */
400
+ :where([data-plex-layout="phone"]) .Indicator + .Content > .Message:not(:has(> .Title)) {
401
+ margin-top: calc(5px + var(--alert-indicator-size) / 2 - 0.5lh);
402
+ }
403
+
386
404
  :where([data-plex-layout="phone"]) .Message {
387
405
  padding-inline-start: 6px;
388
406
  }
@@ -124,7 +124,7 @@
124
124
  sits on `::before`: on the bar itself a blur would hold the bar's children inside its own backdrop.
125
125
  The first column keeps the place of a sidebar's menu button. */@media (max-width: 767.98px) {
126
126
  .Page {
127
- --page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--page-bar-height-phone) + 10px)));
127
+ --page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
128
128
  --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
129
129
  --mobile-surface-primary: var(--mobile-surface-plain-primary, var(--color-surface));
130
130
  --mobile-surface-secondary: var(--mobile-surface-plain-secondary, var(--color-background-secondary-soft-alpha));
@@ -163,7 +163,8 @@
163
163
  position: absolute;
164
164
  z-index: 5;
165
165
  inset: 0 0 auto;
166
- padding-block: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 10px;
166
+ /* Under the status bar, or the gutter from the window's top without one, as a top Toolbar */
167
+ padding-block: max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
167
168
  }
168
169
 
169
170
  /* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
@@ -423,7 +424,7 @@
423
424
  }
424
425
  }
425
426
  :where([data-plex-layout="phone"]) .Page {
426
- --page-top: var(--page-toolbar-height, var(--page-header-height, calc(var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--page-bar-height-phone) + 10px)));
427
+ --page-top: var(--page-toolbar-height, var(--page-header-height, calc(max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) + var(--page-bar-height-phone) + 10px)));
427
428
  --page-bottom: var(--page-toolbar-bottom-height, var(--page-footer-height, 0px));
428
429
  --mobile-surface-primary: var(--mobile-surface-plain-primary, var(--color-surface));
429
430
  --mobile-surface-secondary: var(--mobile-surface-plain-secondary, var(--color-background-secondary-soft-alpha));
@@ -462,7 +463,8 @@
462
463
  position: absolute;
463
464
  z-index: 5;
464
465
  inset: 0 0 auto;
465
- padding-block: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) 10px;
466
+ /* Under the status bar, or the gutter from the window's top without one, as a top Toolbar */
467
+ padding-block: max(var(--page-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 10px;
466
468
  }
467
469
 
468
470
  /* Soft: the canvas covers content under the bar and fades out past it, as the soft edge of a top
@@ -521,12 +521,14 @@
521
521
  line-height: var(--toolbar-medium-title-line-height);
522
522
  }
523
523
 
524
- /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. iOS 27.2
524
+ /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. Without a
525
+ status bar (a page in a browser, where the top inset is 0) the row keeps the gutter from the window's top, as
526
+ its sides do and as a bottom bar keeps from the bottom (owner 13.11: the buttons touched the top). iOS 27.2
525
527
  sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
526
528
  (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
527
529
  PlexUI Sheet keeps one height. */
528
530
  .Toolbar[data-host="page"][data-placement="top"] {
529
- --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
531
+ --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
530
532
  position: absolute;
531
533
  inset: 0 0 auto;
532
534
  }
@@ -643,7 +645,7 @@
643
645
  }
644
646
 
645
647
  :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
646
- --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
648
+ --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
647
649
  }
648
650
 
649
651
  .Toolbar[data-host="dialog"][data-placement="bottom"] {
@@ -1167,12 +1169,14 @@
1167
1169
  line-height: var(--toolbar-medium-title-line-height);
1168
1170
  }
1169
1171
 
1170
- /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. iOS 27.2
1172
+ /* Hosts: a Page puts the top bar over its content under the status bar, a Sheet 16 below its top edge. Without a
1173
+ status bar (a page in a browser, where the top inset is 0) the row keeps the gutter from the window's top, as
1174
+ its sides do and as a bottom bar keeps from the bottom (owner 13.11: the buttons touched the top). iOS 27.2
1171
1175
  sets a sheet's row of controls there, its centre 38 below the edge, and draws no grabber over it: a grabber
1172
1176
  (60 by 4, 6 down) shows only on a sheet that changes height (prefersGrabberVisible, measures/sheets.md), and a
1173
1177
  PlexUI Sheet keeps one height. */
1174
1178
  :where([data-plex-layout="phone"]) .Toolbar[data-host="page"][data-placement="top"] {
1175
- --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1179
+ --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
1176
1180
  position: absolute;
1177
1181
  inset: 0 0 auto;
1178
1182
  }
@@ -1289,7 +1293,7 @@
1289
1293
  }
1290
1294
 
1291
1295
  :where([data-plex-layout="phone"]) :where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
1292
- --toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
1296
+ --toolbar-padding-top: max(var(--toolbar-gutter), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
1293
1297
  }
1294
1298
 
1295
1299
  :where([data-plex-layout="phone"]) .Toolbar[data-host="dialog"][data-placement="bottom"] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",