contain-css-svelte 1.1.14 → 1.1.15

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/dist/cssprops.js CHANGED
@@ -7,6 +7,7 @@ const plainProps = [
7
7
  "--border-width",
8
8
  "--bold",
9
9
  "--font-size",
10
+ "--font-size-tiny",
10
11
  "--font-size-small",
11
12
  "--first-heading-margin-top",
12
13
  "--white",
@@ -846,7 +846,7 @@ button {
846
846
  border-bottom: var(--search-hint-border-bottom, var(--tag-border-bottom, var(--border-bottom, var(--search-hint-border, var(--tag-border, var(--border, none))))));
847
847
  border-left: var(--search-hint-border-left, var(--tag-border-left, var(--border-left, var(--search-hint-border, var(--tag-border, var(--border, none))))));
848
848
  border-radius: var(--search-hint-border-radius, var(--tag-border-radius, var(--border-radius, none)));
849
- font-size: var(--search-hint-font-size, var(--font-size-small, 0.75rem));
849
+ font-size: var(--search-hint-font-size, var(--font-size-tiny, 0.75em));
850
850
  padding: var(--search-hint-padding, 0.2em 0.55em);
851
851
  font-variant-numeric: tabular-nums;
852
852
  white-space: nowrap;
@@ -577,7 +577,7 @@ function handleKeydown(event) {
577
577
  .main :global(h4 + p),
578
578
  .main :global(h5 + p),
579
579
  .main :global(h6 + p) {
580
- font-size: var(--data-list-item-paragraph-font-size, var(--data-list-paragraph-font-size, var(--paragraph-font-size, var(--data-list-item-body-font-size, var(--data-list-body-font-size, var(--body-font-size, var(--font-size-small, 0.9rem)))))));
580
+ font-size: var(--data-list-item-paragraph-font-size, var(--data-list-paragraph-font-size, var(--paragraph-font-size, var(--data-list-item-body-font-size, var(--data-list-body-font-size, var(--body-font-size, var(--font-size-small, 0.9em)))))));
581
581
  line-height: var(--data-list-item-paragraph-line-height, var(--data-list-paragraph-line-height, var(--paragraph-line-height, var(--data-list-item-body-line-height, var(--data-list-body-line-height, var(--body-line-height, 1.35))))));
582
582
  opacity: var(--data-list-item-body-opacity, var(--data-list-body-opacity, var(--body-opacity, 0.9)));
583
583
  }
@@ -145,7 +145,7 @@ let style = $derived(injectVars(restProps, "tag", [
145
145
  border-bottom: var(--tag-border-bottom, var(--border-bottom, var(--tag-border, var(--border, none))));
146
146
  border-left: var(--tag-border-left, var(--border-left, var(--tag-border, var(--border, none))));
147
147
  border-radius: var(--tag-border-radius, var(--border-radius, none));
148
- font-size: var(--tag-font-size, var(--font-size-small, 0.75rem));
148
+ font-size: var(--tag-font-size, var(--font-size-tiny, 0.75em));
149
149
  padding: var(--tag-padding, 0.2em 0.55em);
150
150
  margin-inline-start: var(--space);
151
151
  margin-inline-end: var(--space);
@@ -1,6 +1,10 @@
1
1
  :root {
2
2
  --font-size: 16px;
3
- --font-size-small: 12px;
3
+ /* Relative units so these track --font-size at each responsive breakpoint
4
+ (see responsive-typography.css) and any local context set by a container
5
+ like Card, rather than being pinned to one absolute pixel value. */
6
+ --font-size-tiny: 0.75em;
7
+ --font-size-small: 0.9em;
4
8
  --heading-font-size: revert;
5
9
  --text-font-size: 1.2rem;
6
10
  --font-family: sans-serif;
@@ -1,6 +1,10 @@
1
1
  :root {
2
2
  --font-size: 16px;
3
- --font-size-small: 12px;
3
+ /* Relative units so these track --font-size at each responsive breakpoint
4
+ (see responsive-typography.css) and any local context set by a container
5
+ like Card, rather than being pinned to one absolute pixel value. */
6
+ --font-size-tiny: 0.75em;
7
+ --font-size-small: 0.9em;
4
8
  --heading-font-size: revert;
5
9
  --text-font-size: 1.2rem;
6
10
  --font-family: sans-serif;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contain-css-svelte",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "capture:review": "node scripts/capture-review.mjs",