@muten/shadcn 0.2.14 → 0.2.16
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/kit.css +19 -0
- package/package.json +1 -1
package/kit.css
CHANGED
|
@@ -5519,6 +5519,15 @@ a.cx-bc-item:hover { color: var(--foreground); }
|
|
|
5519
5519
|
/* SidebarTrigger: in the icon column (its 32 px square sits where the rows' icons sit), folded or open */
|
|
5520
5520
|
.cx-sb-trigger { align-self: flex-start; flex: none; margin-left: 0; }
|
|
5521
5521
|
.cx-sidebar[data-collapsed="true"] .cx-sb-trigger { align-self: flex-start; }
|
|
5522
|
+
.cx-sidebar .cx-sb-trigger { width: 32px; height: 32px; } /* the rows' square, so its centre is the column's */
|
|
5523
|
+
/* THE HEADER AND THE FOOTER USE THE ICON COLUMN TOO. Whatever leads a link or a menu button there (a logo, an avatar,
|
|
5524
|
+
an icon) sits centred in a 32 px box exactly over the rows' icons, open or folded, so the logo, the trigger, every icon
|
|
5525
|
+
and the avatar make one straight line and nothing moves sideways when the rail folds. Folded, a menu button closes
|
|
5526
|
+
to that box (its words fade and the rail never crops the avatar). */
|
|
5527
|
+
.cx-sidebar :is(.cx-sb-head, .cx-sb-foot) > a, .cx-sidebar :is(.cx-sb-head, .cx-sb-foot) .cn-sidebar-menu-button { justify-content: flex-start; padding-left: 0; }
|
|
5528
|
+
.cx-sidebar :is(.cx-sb-head, .cx-sb-foot) > a > :first-child, .cx-sidebar :is(.cx-sb-head, .cx-sb-foot) .cn-sidebar-menu-button > :first-child { flex: none; width: 32px; display: flex; justify-content: center; object-fit: contain; }
|
|
5529
|
+
.cx-sidebar :is(.cx-sb-head, .cx-sb-foot) .cn-sidebar-menu-button { transition: width .2s var(--ease-out), padding .2s var(--ease-out); }
|
|
5530
|
+
.cx-sidebar[data-collapsed="true"] :is(.cx-sb-head, .cx-sb-foot) .cn-sidebar-menu-button { width: 32px; padding-right: 0; }
|
|
5522
5531
|
|
|
5523
5532
|
/* Sheet: its content arrives a moment after the panel, one row after another; leaving, it goes with the panel */
|
|
5524
5533
|
.cx-modal[data-mode="sheet"] .cx-modal-body > * { transition: opacity var(--t-pop) var(--ease-out), translate calc(var(--t-sheet) * .8) var(--ease-out); }
|
|
@@ -5630,3 +5639,13 @@ a.cx-bc-item:hover { color: var(--foreground); }
|
|
|
5630
5639
|
.cx-sidebar[data-collapsed="true"] .cx-sb-fold > .cx-sb-fold-in { visibility: visible; }
|
|
5631
5640
|
.cx-sidebar[data-collapsed="true"] :is(.cx-sb-rowtoggle, .cx-sb-chev) { display: none; }
|
|
5632
5641
|
@media (prefers-reduced-motion: reduce) { .cx-sb-fold, .cx-sb-chev { transition: none; } }
|
|
5642
|
+
|
|
5643
|
+
/* ═════ EVERYTHING YOU CAN CLICK SHOWS THE HAND ═════ */
|
|
5644
|
+
/* A browser gives a <button> the arrow, and shadcn gives menu items, options and selects `cursor: default` (the desktop-app
|
|
5645
|
+
convention). On the web the hand is what says «this does something», so every enabled control takes it: buttons,
|
|
5646
|
+
tabs, menu items, options, switches, checkboxes, toggles, triggers, labels of a box. Disabled ones keep the arrow, and a
|
|
5647
|
+
modal's backdrop (a button that fills the screen) too. The :is() weighs as an element plus an attribute, so it wins
|
|
5648
|
+
over the single-class `cursor: default` rules above. */
|
|
5649
|
+
:is(button, a[href], summary, select, label[for], input[type="checkbox"], input[type="radio"], input[type="range"], input[type="color"], input[type="file"],
|
|
5650
|
+
[role="button"], [role="tab"], [role="menuitem"], [role="menuitemradio"], [role="menuitemcheckbox"], [role="option"], [role="switch"], [role="checkbox"], [role="radio"], [data-slot$="trigger"]):not(:disabled, [aria-disabled="true"], [data-disabled], .cx-overlay) { cursor: pointer; }
|
|
5651
|
+
:is(button, [role="button"], [role="menuitem"], [role="option"], [role="switch"], [role="tab"]):is(:disabled, [aria-disabled="true"], [data-disabled]) { cursor: not-allowed; }
|