@kolkrabbi/kol-theme 0.44.0 → 0.46.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.
@@ -859,10 +859,22 @@
859
859
  padding: var(--kol-row-pad);
860
860
  min-height: var(--kol-row-min-h);
861
861
  background: var(--kol-row-bg);
862
- border-color: var(--kol-row-border);
862
+ /* the FALLBACK is not optional. A variant with no frame publishes no
863
+ * `--kol-row-border`, and `border-color: var(--undefined)` is invalid at
864
+ * computed-value time — it resolves to `unset`, which INHERITS, which is
865
+ * currentColor, which is the text colour. That is how `default`'s hairline
866
+ * divider rendered as a solid white rule. */
867
+ border-color: var(--kol-row-border, transparent);
863
868
  transition: background-color 300ms var(--kol-ease-house),
864
869
  border-color 300ms var(--kol-ease-house);
865
870
  }
871
+
872
+ /* the divider is its OWN longhand, declared after the shorthand above so it
873
+ * wins on order — `default`'s bottom rule is not the same thing as a framed
874
+ * variant's border, and one property cannot carry both. */
875
+ .kol-row--divided {
876
+ border-bottom: 1px solid var(--kol-fg-08);
877
+ }
866
878
  .kol-row > .kol-row-thumb {
867
879
  width: var(--kol-row-thumb);
868
880
  }
@@ -936,3 +948,72 @@
936
948
  transition: background-color 300ms var(--kol-ease-house),
937
949
  border-color 300ms var(--kol-ease-house);
938
950
  }
951
+
952
+ /* ─────────────────────────────────────────────────────────────────────
953
+ * The house expand — molecules/SearchInput.jsx · organisms/ContentFilters.jsx
954
+ *
955
+ * A collapsed control that opens to its field: the search glyph widening
956
+ * into an input. Two components hand-wrote the same three declarations
957
+ * inline (`width 600ms`, `background 400ms`, `opacity 300ms`, all on the
958
+ * house curve), which is how the curve came to be hardcoded in seven
959
+ * places to begin with.
960
+ *
961
+ * Durations are STAGGERED on purpose and that is the whole character of
962
+ * the move: the box travels longest (600), its fill settles sooner (400),
963
+ * and the content inside arrives last and quickest (300) so it does not
964
+ * smear across the widening box.
965
+ *
966
+ * The width VALUE stays inline — it is per-instance data (a consumer's
967
+ * expanded width), not chrome. Only the motion lives here.
968
+ * ───────────────────────────────────────────────────────────────────── */
969
+ .kol-expand {
970
+ transition: width 600ms var(--kol-ease-house),
971
+ background 400ms var(--kol-ease-house),
972
+ border-color 400ms var(--kol-ease-house);
973
+ }
974
+
975
+ /* the content that rides inside an expanding box */
976
+ .kol-expand-content {
977
+ transition: opacity 300ms var(--kol-ease-house);
978
+ }
979
+
980
+ /* ─────────────────────────────────────────────────────────────────────
981
+ * ContentMedia — the hover zoom
982
+ *
983
+ * A state the house serves on image-led cards: the artwork creeps up
984
+ * inside its own frame while the frame holds still. ContentMedia already
985
+ * clips, so the scale has something to push against — without that
986
+ * overflow the image just grows out of the card.
987
+ *
988
+ * Keyed off the CARD's hover, not the media's, because the whole tile is
989
+ * the affordance; hovering the caption must zoom too. Transform only —
990
+ * it is the one property that scales without relayout, and a wall of
991
+ * these must not thrash the grid.
992
+ *
993
+ * 1.06 and 600ms, deliberately slow and small: a zoom you can SEE
994
+ * happening reads as a photograph breathing; a fast one reads as a
995
+ * glitch.
996
+ * ───────────────────────────────────────────────────────────────────── */
997
+ .kol-media-zoom > img,
998
+ .kol-media-zoom > video {
999
+ transition: transform 600ms var(--kol-ease-house);
1000
+ transform-origin: center;
1001
+ }
1002
+
1003
+ @media (hover: hover) {
1004
+ .group:hover .kol-media-zoom > img,
1005
+ .group:hover .kol-media-zoom > video {
1006
+ transform: scale(1.06);
1007
+ }
1008
+ }
1009
+
1010
+ @media (prefers-reduced-motion: reduce) {
1011
+ .kol-media-zoom > img,
1012
+ .kol-media-zoom > video {
1013
+ transition: none;
1014
+ }
1015
+ .group:hover .kol-media-zoom > img,
1016
+ .group:hover .kol-media-zoom > video {
1017
+ transform: none;
1018
+ }
1019
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-theme",
3
- "version": "0.44.0",
3
+ "version": "0.46.0",
4
4
  "description": "KOL (Kolkrabbi) design-system tokens + base CSS — brand-neutral. The canonical token/cascade layer every other KOL package and consumer builds on.",
5
5
  "license": "MIT",
6
6
  "type": "module",