@slotted/styles 0.1.0-beta.7 → 0.1.0-beta.8
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 +1 -1
- package/src/dialog/dialog.css +12 -0
- package/src/tabs/tabs.css +14 -10
package/package.json
CHANGED
package/src/dialog/dialog.css
CHANGED
|
@@ -932,6 +932,8 @@
|
|
|
932
932
|
block-size: 100%;
|
|
933
933
|
border-radius: 0;
|
|
934
934
|
border: 0;
|
|
935
|
+
box-sizing: border-box;
|
|
936
|
+
padding-block-end: var(--slotted-keyboard-inset, 0px);
|
|
935
937
|
}
|
|
936
938
|
}
|
|
937
939
|
|
|
@@ -961,6 +963,16 @@
|
|
|
961
963
|
* layer, which on a phone is a stray line under the browser chrome.
|
|
962
964
|
*/
|
|
963
965
|
border: 0;
|
|
966
|
+
/**
|
|
967
|
+
* The virtual keyboard. `observeKeyboardInset` in `@slotted/core/measure`
|
|
968
|
+
* measures what the keyboard covers, the binding writes it on the open
|
|
969
|
+
* layer, and the panel's rows end above the keys: a full-screen panel is
|
|
970
|
+
* the layout viewport's height, and the keyboard shrinks only the visual
|
|
971
|
+
* one. Nought under `interactive-widget=resizes-content`, whose layout
|
|
972
|
+
* already shrank.
|
|
973
|
+
*/
|
|
974
|
+
box-sizing: border-box;
|
|
975
|
+
padding-block-end: var(--slotted-keyboard-inset, 0px);
|
|
964
976
|
}
|
|
965
977
|
|
|
966
978
|
/* ── Forced colours ───────────────────────────────────────────────────── */
|
package/src/tabs/tabs.css
CHANGED
|
@@ -469,7 +469,11 @@
|
|
|
469
469
|
* end padding, so the end inset is nought there. Below the width of a short
|
|
470
470
|
* label it keeps a minimum length, centred on the content. It stands
|
|
471
471
|
* `--slotted-tabs-marker-offset` above the list's edge, over the track, and the axes are physical in this one rule
|
|
472
|
-
* because the measurement is: the
|
|
472
|
+
* because the measurement is: the position is from the list's left edge.
|
|
473
|
+
* Position and length are both layout properties, so one thread advances
|
|
474
|
+
* both edges in the same frame: a composited `translate` beside a
|
|
475
|
+
* main-thread `inline-size` drifted apart while the panel rendered, and the
|
|
476
|
+
* bar grew and shrank on its way between tabs of unequal widths.
|
|
473
477
|
*/
|
|
474
478
|
[data-ui='tabs'] > :where([data-part='list']) > [data-part='marker'] {
|
|
475
479
|
--_start-inset: var(--_marker-inset);
|
|
@@ -483,13 +487,11 @@
|
|
|
483
487
|
border-radius: var(--_marker-radius);
|
|
484
488
|
inline-size: var(--_length);
|
|
485
489
|
inset-block-end: calc(var(--_marker-lift, 0px) + var(--_marker-offset));
|
|
486
|
-
left:
|
|
490
|
+
left: calc(
|
|
491
|
+
var(--_indicator-start, 0px) + var(--_left-inset) + (var(--_span) - var(--_length)) / 2
|
|
492
|
+
);
|
|
487
493
|
pointer-events: none;
|
|
488
494
|
position: absolute;
|
|
489
|
-
translate: calc(
|
|
490
|
-
var(--_indicator-start, 0px) + var(--_left-inset) + (var(--_span) - var(--_length)) / 2
|
|
491
|
-
)
|
|
492
|
-
0;
|
|
493
495
|
}
|
|
494
496
|
|
|
495
497
|
[data-ui='tabs']:dir(rtl) > :where([data-part='list']) > [data-part='marker'] {
|
|
@@ -520,7 +522,8 @@
|
|
|
520
522
|
--_marker-easing: var(--slotted-tabs-marker-easing, cubic-bezier(0.4, 0, 0.2, 1));
|
|
521
523
|
|
|
522
524
|
transition:
|
|
523
|
-
|
|
525
|
+
left var(--slotted-duration-medium) var(--_marker-easing),
|
|
526
|
+
top var(--slotted-duration-medium) var(--_marker-easing),
|
|
524
527
|
inline-size var(--slotted-duration-medium) var(--_marker-easing),
|
|
525
528
|
block-size var(--slotted-duration-medium) var(--_marker-easing);
|
|
526
529
|
}
|
|
@@ -590,10 +593,11 @@
|
|
|
590
593
|
> [data-part='marker'] {
|
|
591
594
|
block-size: var(--_length);
|
|
592
595
|
inline-size: var(--_marker-size);
|
|
593
|
-
inset-block:
|
|
596
|
+
inset-block: calc(
|
|
597
|
+
var(--_indicator-start, 0px) + var(--_start-inset) + (var(--_span) - var(--_length)) / 2
|
|
598
|
+
)
|
|
599
|
+
auto;
|
|
594
600
|
inset-inline: auto calc(var(--_marker-lift, 0px) + var(--_marker-offset));
|
|
595
|
-
translate: 0
|
|
596
|
-
calc(var(--_indicator-start, 0px) + var(--_start-inset) + (var(--_span) - var(--_length)) / 2);
|
|
597
601
|
}
|
|
598
602
|
|
|
599
603
|
[data-ui='tabs'][data-orientation='vertical']
|