@stnd/styles 0.10.10 → 0.10.12
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/CHANGELOG.md +12 -0
- package/_standard-01-token.scss +12 -12
- package/_standard-13-components.scss +0 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/_standard-01-token.scss
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
*/
|
|
104
104
|
--gap: calc(var(--space));
|
|
105
105
|
--gap-compact: var(--trim);
|
|
106
|
-
--page-padding: clamp(1rem, 3vw,
|
|
106
|
+
--page-padding: clamp(1rem, 3vw, 3rem);
|
|
107
107
|
--gap-grid-img: var(--space-half);
|
|
108
108
|
--rhythm-block-scale: 2;
|
|
109
109
|
|
|
@@ -293,18 +293,18 @@
|
|
|
293
293
|
(each step = previous * --optical-ratio). Below base (d5..d2) the
|
|
294
294
|
scale steps down by fractional power increments (ratio^-0.5, ratio^-1,
|
|
295
295
|
ratio^-1.5, ratio^-2) floored at 9px so micro text stays legible and distinct. */
|
|
296
|
-
--scale-d5: max(calc(var(--font-size) * pow(var(--optical-ratio), -
|
|
297
|
-
--scale-d4: max(calc(var(--font-size) * pow(var(--optical-ratio), -
|
|
298
|
-
--scale-d3: max(calc(var(--font-size) * pow(var(--optical-ratio), -
|
|
299
|
-
--scale-d2: max(calc(var(--font-size) * pow(var(--optical-ratio), -
|
|
296
|
+
--scale-d5: max(calc(var(--font-size) * pow(var(--optical-ratio), -4)), 9px);
|
|
297
|
+
--scale-d4: max(calc(var(--font-size) * pow(var(--optical-ratio), -3)), 9px);
|
|
298
|
+
--scale-d3: max(calc(var(--font-size) * pow(var(--optical-ratio), -2)), 9px);
|
|
299
|
+
--scale-d2: max(calc(var(--font-size) * pow(var(--optical-ratio), -1)), 9px);
|
|
300
300
|
--scale: var(--font-size);
|
|
301
|
-
--scale-2: calc(var(--font-size) * var(--optical-ratio));
|
|
302
|
-
--scale-3: calc(var(--
|
|
303
|
-
--scale-4: calc(var(--
|
|
304
|
-
--scale-5: calc(var(--
|
|
305
|
-
--scale-6: calc(var(--
|
|
306
|
-
--scale-7: calc(var(--
|
|
307
|
-
--scale-8: calc(var(--
|
|
301
|
+
--scale-2: min(calc(var(--font-size) * pow(var(--optical-ratio), 1)), 96px);
|
|
302
|
+
--scale-3: min(calc(var(--font-size) * pow(var(--optical-ratio), 2)), 96px);
|
|
303
|
+
--scale-4: min(calc(var(--font-size) * pow(var(--optical-ratio), 3)), 96px);
|
|
304
|
+
--scale-5: min(calc(var(--font-size) * pow(var(--optical-ratio), 4)), 96px);
|
|
305
|
+
--scale-6: min(calc(var(--font-size) * pow(var(--optical-ratio), 5)), 96px);
|
|
306
|
+
--scale-7: min(calc(var(--font-size) * pow(var(--optical-ratio), 6)), 96px);
|
|
307
|
+
--scale-8: min(calc(var(--font-size) * pow(var(--optical-ratio), 7)), 96px);
|
|
308
308
|
|
|
309
309
|
/**
|
|
310
310
|
* @name Mobile Settings
|
|
@@ -210,14 +210,12 @@ a.btn.large {
|
|
|
210
210
|
|
|
211
211
|
:where(button).small,
|
|
212
212
|
a.btn.small {
|
|
213
|
-
padding: calc(var(--trim) / 2) var(--trim);
|
|
214
213
|
border-radius: var(--radius-sm);
|
|
215
214
|
font-size: var(--scale-d3);
|
|
216
215
|
}
|
|
217
216
|
|
|
218
217
|
:where(button).smaller,
|
|
219
218
|
a.btn.smaller {
|
|
220
|
-
padding: calc(var(--trim) / 2) var(--trim);
|
|
221
219
|
border-radius: var(--radius-sm);
|
|
222
220
|
font-size: var(--scale-d4);
|
|
223
221
|
}
|