@slotted/styles 0.1.0-beta.18 → 0.1.0-beta.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/styles",
3
- "version": "0.1.0-beta.18",
3
+ "version": "0.1.0-beta.19",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -735,6 +735,8 @@
735
735
  * under `scroll="content"`, and a scroll container clips what stands outside
736
736
  * it. The strip is the rows' own inset wide, so it covers padding and no
737
737
  * content. `::before` is the reach, transparent and the WCAG 2.2 floor wide.
738
+ * Where the pane is a column the strip moves onto the seam or the gutter
739
+ * (the wide query below).
738
740
  *
739
741
  * It draws the `splitter` family's mark from that family's tokens: two
740
742
  * hairlines fading away from a grip, visible at rest. Under the hand, the
@@ -1917,6 +1919,37 @@
1917
1919
  > [data-part-aside] {
1918
1920
  margin-inline: var(--_gutter) 0;
1919
1921
  }
1922
+ /* The strip lies on the line between the pane and the content: the seam
1923
+ where they meet, the gutter's centre where the gutter separates them.
1924
+ The pane then does not scroll itself — its body does — so it does not
1925
+ clip the half of the strip that stands outside it. */
1926
+ [data-ui-app-shell][data-scroll='content']:not([data-aside-mode='overlay'])
1927
+ > [data-part-aside] {
1928
+ overflow: visible;
1929
+ }
1930
+ [data-ui-app-shell]:not([data-aside-mode='overlay'])
1931
+ > [data-part-aside]
1932
+ > [data-part-aside-resizer] {
1933
+ --_resizer-offset: calc(var(--_seam-width) / -2 - var(--_resizer-thickness) / 2);
1934
+
1935
+ inset-inline-start: var(--_resizer-offset);
1936
+ }
1937
+ [data-ui-app-shell]:not([data-aside-mode='overlay']):is(
1938
+ [data-canvas='floating'],
1939
+ [data-canvas='inset']
1940
+ )
1941
+ > [data-part-aside]
1942
+ > [data-part-aside-resizer] {
1943
+ --_resizer-offset: calc(
1944
+ -1 * (var(--_rule-width) + var(--_gutter) / 2) - var(--_resizer-thickness) / 2
1945
+ );
1946
+ }
1947
+ [data-ui-app-shell]:not([data-aside-mode='overlay'])[data-nav-side='end']
1948
+ > [data-part-aside]
1949
+ > [data-part-aside-resizer] {
1950
+ inset-inline-end: var(--_resizer-offset);
1951
+ inset-inline-start: auto;
1952
+ }
1920
1953
  [data-ui-app-shell]:not([data-aside-mode='overlay'])[data-canvas='flush'] > [data-part-aside] {
1921
1954
  border-block-start: none;
1922
1955
  }
@@ -121,6 +121,9 @@
121
121
  * is the word for the case where it may not.
122
122
  */
123
123
  [data-ui-collapsible] > [data-part-header] > [data-part-trigger] {
124
+ /* A height above the content's would otherwise be split over both rows,
125
+ the empty description row included, and lift the title off centre. */
126
+ align-content: center;
124
127
  align-items: center;
125
128
  appearance: none;
126
129
  background-color: var(--slotted-collapsible-background, transparent);
@@ -340,8 +340,10 @@
340
340
  * The way back. A link or a button the consumer renders; the arrow is the
341
341
  * family's, the `arrow-left` Glyph element the binding puts before the
342
342
  * label, and it points along the reading direction, so its `directional`
343
- * box mirrors it in a right-to-left document.
343
+ * box mirrors it in a right-to-left document. It is styled in the nav part
344
+ * and directly in the title area, where a page without breadcrumbs puts it.
344
345
  */
346
+ [data-ui-page-header] > * > [data-part-title-area] > [data-part-back],
345
347
  [data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] > [data-part-back] {
346
348
  --slotted-icon-size: var(--_icon-size);
347
349
 
@@ -362,10 +364,18 @@
362
364
  text-decoration: none;
363
365
  transition: color var(--slotted-duration-short) var(--_easing);
364
366
  }
367
+ /* Outside the nav part nothing sets the row's type or keeps the column from
368
+ stretching the link across the title area. */
369
+ [data-ui-page-header] > * > [data-part-title-area] > [data-part-back] {
370
+ align-self: flex-start;
371
+ font-size: var(--slotted-font-size-sm, 0.8125rem);
372
+ line-height: var(--slotted-line-height-sm, 1.45);
373
+ }
365
374
  /* On a finger the way back is a full target among 44-pixel controls: it
366
375
  reaches the comfortable size by padding and gives it back as a negative
367
376
  margin, so the nav row keeps its height and nothing under it moves. */
368
377
  @media (pointer: coarse) {
378
+ [data-ui-page-header] > * > [data-part-title-area] > [data-part-back],
369
379
  [data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] > [data-part-back] {
370
380
  --_reach: max(
371
381
  0px,
@@ -380,6 +390,10 @@
380
390
  > *
381
391
  > [data-part-title-area]
382
392
  > [data-part-nav]
393
+ > [data-part-back]:not([data-disabled]):not(:disabled):hover,
394
+ [data-ui-page-header]
395
+ > *
396
+ > [data-part-title-area]
383
397
  > [data-part-back]:not([data-disabled]):not(:disabled):hover {
384
398
  color: var(--_text);
385
399
  }
@@ -387,7 +401,8 @@
387
401
  > *
388
402
  > [data-part-title-area]
389
403
  > [data-part-nav]
390
- > [data-part-back]:focus-visible {
404
+ > [data-part-back]:focus-visible,
405
+ [data-ui-page-header] > * > [data-part-title-area] > [data-part-back]:focus-visible {
391
406
  outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
392
407
  outline-offset: var(--slotted-focus-ring-offset, 2px);
393
408
  }