@carissa-io/theme-default 0.3.16 → 0.3.17
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/DESIGN.md +5 -4
- package/dist/index.css +20 -4
- package/package.json +5 -5
package/DESIGN.md
CHANGED
|
@@ -280,13 +280,14 @@ just appears.
|
|
|
280
280
|
|
|
281
281
|
**Scroll edges (Modal and Drawer).** The body scrolls between the header and the footer, so a long body used to be cut flush against the title and the buttons with nothing
|
|
282
282
|
to show where the scroll area ends. The theme draws that edge: a **1px `--c-disabled-border` line** under the header and over the footer (the footer line exists only
|
|
283
|
-
when there is a footer),
|
|
283
|
+
when there is a footer), **only while the body overflows** (the component marks the dialog with `c-modal--overflowing` / `c-drawer--overflowing`, and the width lives under
|
|
284
|
+
that class: a short dialog such as a confirmation has no lines at all, and the extra 1px of a line appears only with overflow), plus a fixed 0.5rem gap between each line and the header or footer content (the components' default, left as it is). The line is the quiet
|
|
284
285
|
neutral border, not `--c-muted` (the Divider's 5.74:1 line would compete with the content and with the box border): on `--c-background` it is **1.48:1 in light**
|
|
285
286
|
(`#d4d4d4` on `#fff`) and **1.91:1 in dark** (`#404040` on `#0a0a0a`). It is a decorative separator (the scroll position and the content are exposed by the scrollable region
|
|
286
287
|
itself), so the 3:1 non-text minimum does not apply; the test only requires it to be distinguishable from the background (above 1.1:1) and records the two ratios,
|
|
287
|
-
in the same spirit as the Progress track (a faint guide, 1.3:1). It is a custom property, so dark mode needs no extra rule. The
|
|
288
|
+
in the same spirit as the Progress track (a faint guide, 1.3:1). It is a custom property, so dark mode needs no extra rule. The layout of a dialog that does not overflow is the same as before the scroll edges (no line, no extra pixel):
|
|
288
289
|
the header keeps 1.25rem above and 0.5rem below its content, and the body keeps the remaining 0.75rem (1.25rem less the 0.5rem gap) on each side, so the distance
|
|
289
|
-
between the title and the content is still 1.25rem
|
|
290
|
+
between the title and the content is still 1.25rem (with overflow, the line sits inside that distance); a body without a header or without a footer keeps the whole 1.25rem on that side.
|
|
290
291
|
|
|
291
292
|
## Toast
|
|
292
293
|
From [components-toast](components/components-toast): the fixed region of toasts (24rem wide, 1rem from the edges, 0.75rem between toasts, above the page content) and its six
|
|
@@ -377,7 +378,7 @@ and `--c-text` for the current page (`aria-current="page"`). The content collaps
|
|
|
377
378
|
From [components-drawer](components/components-drawer): `Drawer`, the Modal's box as a panel on an edge of the screen (`start`, `end`, `top`, `bottom`; `sm` 20rem, `md` 28rem, `lg` 40rem). It is `--c-background` with `--c-text` (17.93:1 / 18.16:1), a 1px `--c-muted` border
|
|
378
379
|
(the edge that still reads in dark), square, with the Modal's layered shadow and the same padding (1.5rem by 1.25rem) and close button (`--c-muted`, `--c-text` on hover). The **backdrop** is `rgb(0 0 0 / 0.5)` in both modes, with the shadow the only literal color of the block.
|
|
379
380
|
The panel slides in over `$transition-duration`; with reduced motion it just appears.
|
|
380
|
-
The header and footer lines and the 0.5rem gaps are the Modal's (see [Modal](#modal), scroll edges): 1px `--c-disabled-border`, 1.48:1 light and 1.91:1 dark on `--c-background`.
|
|
381
|
+
The header and footer lines and the 0.5rem gaps are the Modal's (see [Modal](#modal), scroll edges): 1px `--c-disabled-border`, only while the body overflows, 1.48:1 light and 1.91:1 dark on `--c-background`.
|
|
381
382
|
|
|
382
383
|
## Menu
|
|
383
384
|
From [components-menu](components/components-menu): `Menu`, `MenuItem`, `MenuSeparator` and `MenuLabel`. The panel is the Popover's (`--c-background`, a 1px `--c-muted` border, flat). Items are `--c-text` with 0.625rem of block and 0.75rem of side padding, and hover and keyboard focus share a `--c-surface-active`
|
package/dist/index.css
CHANGED
|
@@ -1668,7 +1668,7 @@
|
|
|
1668
1668
|
align-items: flex-start;
|
|
1669
1669
|
justify-content: space-between;
|
|
1670
1670
|
padding: 1.25rem 1.5rem 0.5rem;
|
|
1671
|
-
border-bottom:
|
|
1671
|
+
border-bottom: 0 solid var(--c-disabled-border);
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
1674
|
.c-modal__heading {
|
|
@@ -1728,7 +1728,15 @@
|
|
|
1728
1728
|
gap: 1rem;
|
|
1729
1729
|
justify-content: flex-end;
|
|
1730
1730
|
padding: 0.5rem 1.5rem 1.25rem;
|
|
1731
|
-
border-top:
|
|
1731
|
+
border-top: 0 solid var(--c-disabled-border);
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
.c-modal--overflowing .c-modal__header {
|
|
1735
|
+
border-bottom-width: 1px;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.c-modal--overflowing .c-modal__footer {
|
|
1739
|
+
border-top-width: 1px;
|
|
1732
1740
|
}
|
|
1733
1741
|
|
|
1734
1742
|
@keyframes c-toast-enter {
|
|
@@ -3590,7 +3598,7 @@ hr.c-divider {
|
|
|
3590
3598
|
align-items: flex-start;
|
|
3591
3599
|
justify-content: space-between;
|
|
3592
3600
|
padding: 1.25rem 1.5rem 0.5rem;
|
|
3593
|
-
border-bottom:
|
|
3601
|
+
border-bottom: 0 solid var(--c-disabled-border);
|
|
3594
3602
|
}
|
|
3595
3603
|
|
|
3596
3604
|
.c-drawer__heading {
|
|
@@ -3650,7 +3658,15 @@ hr.c-divider {
|
|
|
3650
3658
|
gap: 1rem;
|
|
3651
3659
|
justify-content: flex-end;
|
|
3652
3660
|
padding: 0.5rem 1.5rem 1.25rem;
|
|
3653
|
-
border-top:
|
|
3661
|
+
border-top: 0 solid var(--c-disabled-border);
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
.c-drawer--overflowing .c-drawer__header {
|
|
3665
|
+
border-bottom-width: 1px;
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3668
|
+
.c-drawer--overflowing .c-drawer__footer {
|
|
3669
|
+
border-top-width: 1px;
|
|
3654
3670
|
}
|
|
3655
3671
|
|
|
3656
3672
|
.c-menu {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carissa-io/theme-default",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"description": "Carissa UI: the default theme (Swiss minimalism) as SCSS variable overrides of the Carissa components, with a compiled CSS build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"style": "dist/index.css",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@carissa-io/components-card": "^0.1.0",
|
|
57
57
|
"@carissa-io/components-alert": "^0.1.0",
|
|
58
58
|
"@carissa-io/components-spinner": "^0.1.0",
|
|
59
|
-
"@carissa-io/components-modal": "^0.1.
|
|
59
|
+
"@carissa-io/components-modal": "^0.1.3",
|
|
60
60
|
"@carissa-io/components-toast": "^0.1.0",
|
|
61
61
|
"@carissa-io/components-divider": "^0.1.0",
|
|
62
62
|
"@carissa-io/components-badge": "^0.1.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@carissa-io/components-stepper": "^0.1.0",
|
|
75
75
|
"@carissa-io/components-sidebar": "^0.1.0",
|
|
76
76
|
"@carissa-io/components-navbar": "^0.1.0",
|
|
77
|
-
"@carissa-io/components-drawer": "^0.1.
|
|
77
|
+
"@carissa-io/components-drawer": "^0.1.3",
|
|
78
78
|
"@carissa-io/components-menu": "^0.1.0",
|
|
79
79
|
"@carissa-io/components-table": "^0.1.0",
|
|
80
80
|
"@carissa-io/components-list": "^0.1.0",
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
"@carissa-io/components-date-range": "^0.1.0",
|
|
346
346
|
"@carissa-io/components-description-list": "^0.1.0",
|
|
347
347
|
"@carissa-io/components-divider": "^0.1.0",
|
|
348
|
-
"@carissa-io/components-drawer": "^0.1.
|
|
348
|
+
"@carissa-io/components-drawer": "^0.1.3",
|
|
349
349
|
"@carissa-io/components-empty-state": "^0.1.0",
|
|
350
350
|
"@carissa-io/components-faq": "^0.1.0",
|
|
351
351
|
"@carissa-io/components-field": "^0.1.0",
|
|
@@ -358,7 +358,7 @@
|
|
|
358
358
|
"@carissa-io/components-menu": "^0.1.0",
|
|
359
359
|
"@carissa-io/components-message": "^0.1.0",
|
|
360
360
|
"@carissa-io/components-message-list": "^0.1.0",
|
|
361
|
-
"@carissa-io/components-modal": "^0.1.
|
|
361
|
+
"@carissa-io/components-modal": "^0.1.3",
|
|
362
362
|
"@carissa-io/components-navbar": "^0.1.0",
|
|
363
363
|
"@carissa-io/components-number-input": "^0.1.0",
|
|
364
364
|
"@carissa-io/components-otp-input": "^0.1.0",
|