@mlola-ui/tokens 1.2.1 → 1.3.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/generated/accessibility.css +1 -4
- package/generated/foundations.css +1 -20
- package/generated/materials.css +1 -1
- package/generated/motion.css +1 -9
- package/generated/recipes.css +244 -276
- package/generated/tokens.css +1 -6
- package/package.json +1 -1
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
/*
|
|
2
|
-
/* On a touch screen, a text field smaller than 16px makes iOS zoom the page
|
|
3
|
-
when it takes focus, and the page stays zoomed after. Every field that
|
|
4
|
-
takes typing is at least 16px there; everything else keeps its size. */
|
|
1
|
+
/* @mlola-ui/engine accessibility.css, generated. The sources keep the comments. */
|
|
5
2
|
@media (pointer: coarse) {
|
|
6
3
|
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="hidden"]), textarea, select, [contenteditable]:not([contenteditable="false"])) {
|
|
7
4
|
font-size: max(1rem, 1em);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* @mlola-ui/engine foundations.css, generated. The sources keep the comments. */
|
|
2
2
|
*,
|
|
3
3
|
*::before,
|
|
4
4
|
*::after {
|
|
@@ -28,10 +28,6 @@ body {
|
|
|
28
28
|
-webkit-font-smoothing: antialiased;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
/* A layer on <body> (a menu, list, tooltip, dialog, toaster) carries the
|
|
32
|
-
theme and mode of the place it opened from, which may not be the page's.
|
|
33
|
-
Inherited text would be the page's, worked out on <body>; the layer
|
|
34
|
-
restates it, so its ink and type are its own theme's. */
|
|
35
31
|
[data-ml-portal] {
|
|
36
32
|
color: var(--ml-text);
|
|
37
33
|
font-family: var(--ml-font-sans);
|
|
@@ -124,18 +120,11 @@ h3 {
|
|
|
124
120
|
opacity: .5;
|
|
125
121
|
}
|
|
126
122
|
|
|
127
|
-
/* Room for a fingertip on text fields, which grow with their content.
|
|
128
|
-
Buttons keep the shape their recipe draws: stretching a round or square
|
|
129
|
-
control only distorts it. Small ones widen their target invisibly instead
|
|
130
|
-
(see [data-hit] below), and every other button already clears the 24px
|
|
131
|
-
minimum of WCAG 2.5.8. */
|
|
132
123
|
@media (pointer:coarse) {
|
|
133
124
|
:where(input:not([type="hidden"],[type="checkbox"],[type="radio"],[type="range"],[type="color"],[type="file"],[type="submit"],[type="button"],[type="reset"],[type="image"]),select,textarea):where(:not([data-shape="inline"])) {
|
|
134
125
|
min-height: var(--ml-target-min);
|
|
135
126
|
}
|
|
136
127
|
|
|
137
|
-
/* A control drawn smaller than a fingertip keeps its look and gains an
|
|
138
|
-
invisible target around it. */
|
|
139
128
|
:where([data-hit="expand"]) {
|
|
140
129
|
position: relative;
|
|
141
130
|
}
|
|
@@ -167,16 +156,8 @@ h3 {
|
|
|
167
156
|
forced-color-adjust: auto;
|
|
168
157
|
}
|
|
169
158
|
|
|
170
|
-
/* Box-shadow rings vanish in forced colors; the system highlight stands in. */
|
|
171
159
|
:focus-visible {
|
|
172
160
|
outline: 2px solid Highlight!important;
|
|
173
161
|
outline-offset: 2px!important;
|
|
174
162
|
}
|
|
175
163
|
}
|
|
176
|
-
|
|
177
|
-
/* The page scrollbar is left to the platform: styling it with
|
|
178
|
-
::-webkit-scrollbar forces a classic, space-taking scrollbar even where the
|
|
179
|
-
system uses overlay scrollbars, and the page then shifts whenever an
|
|
180
|
-
overlay locks scrolling. The theme's color-scheme already tints it for dark
|
|
181
|
-
mode. Scroll areas inside components opt into a thin, themed scrollbar
|
|
182
|
-
with the standard properties in their own stylesheets. */
|
package/generated/materials.css
CHANGED
package/generated/motion.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* @mlola-ui/engine motion.css, generated. The sources keep the comments. */
|
|
2
2
|
@keyframes ml-spin { to{transform:rotate(360deg)} }
|
|
3
3
|
|
|
4
4
|
@keyframes ml-pulse { 50%{opacity:.5} }
|
|
@@ -19,12 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
@keyframes ml-slide-down { from{transform:translateY(-100%)}to{transform:translateY(0)} }
|
|
21
21
|
|
|
22
|
-
/* An overlay panel entering from wherever it sits: the element sets
|
|
23
|
-
--ml-enter-from to the transform it starts at. */
|
|
24
22
|
@keyframes ml-panel-in { from{opacity:0;transform:var(--ml-enter-from)} }
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
28
24
|
@keyframes ml-shimmer { from{background-position:200% center}to{background-position:-200% center} }
|
|
29
25
|
|
|
30
26
|
.ml-animate-pop {
|
|
@@ -51,10 +47,6 @@
|
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
49
|
|
|
54
|
-
/* Glyph motion: an animated glyph draws itself, stroke by stroke, and its
|
|
55
|
-
filled details fade in after. It runs once when a glyph becomes active
|
|
56
|
-
(a check on success, a bell on a new alert) and never while idle. Shapes
|
|
57
|
-
carry pathLength="1", so one dash length fits every stroke. */
|
|
58
50
|
@keyframes mlola-glyph-draw { from{stroke-dashoffset:1} }
|
|
59
51
|
|
|
60
52
|
@keyframes mlola-glyph-fill { from{opacity:0} }
|