@passui/tokens 0.1.5 → 0.2.0
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/styles/base.css +28 -3
- package/styles/utilities.css +16 -0
package/package.json
CHANGED
package/styles/base.css
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
html {
|
|
20
20
|
@apply font-sans;
|
|
21
|
+
/* The colour behind the page: what shows when iOS rubber-bands past
|
|
22
|
+
either edge. Apps point `--overscroll-color` at their bar colour. */
|
|
23
|
+
background-color: var(--overscroll-color, var(--color-background));
|
|
21
24
|
height: 100%;
|
|
22
25
|
-webkit-font-smoothing: antialiased;
|
|
23
26
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -52,9 +55,18 @@
|
|
|
52
55
|
cursor: pointer;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
/*
|
|
59
|
+
* No focus rings. Components draw them with Tailwind ring utilities
|
|
60
|
+
* (focus-visible:ring-2 ring-accent/70), which sit in a later layer, so the
|
|
61
|
+
* ring layers are zeroed with !important (important wins from the earlier layer).
|
|
62
|
+
*/
|
|
63
|
+
:is(:focus-visible, :focus-within) {
|
|
64
|
+
/* biome-ignore lint/complexity/noImportantStyles: must beat the ring utilities in a later layer */
|
|
65
|
+
--tw-ring-shadow: 0 0 #0000 !important;
|
|
66
|
+
/* biome-ignore lint/complexity/noImportantStyles: must beat the ring utilities in a later layer */
|
|
67
|
+
--tw-ring-offset-shadow: 0 0 #0000 !important;
|
|
68
|
+
/* biome-ignore lint/complexity/noImportantStyles: must beat any outline a component sets */
|
|
69
|
+
outline: none !important;
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
::selection {
|
|
@@ -123,3 +135,16 @@
|
|
|
123
135
|
animation-iteration-count: 1 !important;
|
|
124
136
|
}
|
|
125
137
|
}
|
|
138
|
+
|
|
139
|
+
/*
|
|
140
|
+
* iOS Safari zooms the page when a field under 16px takes focus. This sits
|
|
141
|
+
* outside the base layer so it beats the component type utilities.
|
|
142
|
+
*/
|
|
143
|
+
:root[data-os="ios"]
|
|
144
|
+
:is(
|
|
145
|
+
input:not([type="checkbox"], [type="radio"], [type="range"]),
|
|
146
|
+
select,
|
|
147
|
+
textarea
|
|
148
|
+
) {
|
|
149
|
+
font-size: max(16px, 1em);
|
|
150
|
+
}
|
package/styles/utilities.css
CHANGED
|
@@ -207,6 +207,22 @@
|
|
|
207
207
|
backdrop-filter: none;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
+
/* iOS Safari samples a sticky bar's backdrop while the toolbar collapses and
|
|
211
|
+
the page rubber-bands, so a blurred bar flickers and shows the wrong colour
|
|
212
|
+
at the edges. Bars and panes are solid there, on their own GPU layer. */
|
|
213
|
+
:root[data-os="ios"] :is(.glass-bar, .glass-pane) {
|
|
214
|
+
backdrop-filter: none;
|
|
215
|
+
transform: translateZ(0);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:root[data-os="ios"] .glass-bar {
|
|
219
|
+
background-color: var(--color-paper);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:root[data-os="ios"] .glass-pane {
|
|
223
|
+
background-color: var(--color-sidebar);
|
|
224
|
+
}
|
|
225
|
+
|
|
210
226
|
/**
|
|
211
227
|
* Dense glass for menus and popovers. Nearly opaque so text stays legible
|
|
212
228
|
* even inside another glass surface (nested backdrop filters cannot see
|