@trebired/frontend 19.2.1 → 19.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 19.5.0
4
+
5
+ - An action row's value no longer breaks mid-word by default. It is usually an address or a number, and `overflow-wrap: anywhere` cut `info@machynka.eu` across two lines on a phone. It breaks only where it truly cannot fit now, and its size is capped against the screen before that: a site's chosen size holds on a wide screen and gives way on a narrow one, so the same address fits on one line at phone width.
6
+
7
+ ## 19.4.0
8
+
9
+ - A hairline grid draws lines only between its cells. Each cell carried a full ring and the grid an outer border, so the outside edges were drawn twice and the grid was boxed in. The lines are the grid's gap showing through now, which cannot reach an outer edge, and they default to 10% of the current colour rather than 18%.
10
+ - A link in the menu reads from the header link's own tokens. It had its own colour, weight and size, so a site styling its navigation got two different looks and the active mark did not match between the header and the menu. `menu-link-*` still overrides where a site wants them to differ.
11
+ - `tbf-cols-hold` keeps a fixed column grid from collapsing on a narrow screen. A grid of small tiles, a symbol and a word, narrows well and has no reason to stack; without it `tbf-cols-2` becomes one column below 560px and a compact block turns into a list.
12
+
3
13
  ## 19.2.1
4
14
 
5
15
  - The marked section is the one nearest the reading line from above, rather than the last matching entry in the menu. A menu does not have to list sections in the order the page lays them out, and machynka's does not: walking the menu handed the mark to whichever section happened to come last, so standing in one section marked another.
@@ -254,9 +254,11 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
254
254
  display: block;
255
255
  padding: token("menu-link-padding", 0.5rem 0);
256
256
  border-radius: token("menu-link-radius", 0);
257
- color: token("menu-link-color", var(#{ns.css-var("text")}, #000));
257
+ color: token("menu-link-color", token("link-color", var(#{ns.css-var("text-muted")}, #555)));
258
258
  font-size: 1rem;
259
- font-weight: token("menu-link-font-weight", 600);
259
+ font-weight: token("menu-link-font-weight", token("link-font-weight", 500));
260
+ letter-spacing: token("menu-link-letter-spacing", token("link-letter-spacing", normal));
261
+ text-transform: token("menu-link-text-transform", token("link-text-transform", none));
260
262
  }
261
263
 
262
264
  #{ns.element-class("site-header", "menu-footer")} {
@@ -77,4 +77,14 @@
77
77
  grid-template-columns: 1fr;
78
78
  }
79
79
  }
80
+
81
+ @media (max-width: 900px) {
82
+ &#{ns.class("cols-hold")}#{ns.class("cols-2")} {
83
+ grid-template-columns: repeat(2, minmax(0, 1fr));
84
+ }
85
+
86
+ &#{ns.class("cols-hold")}#{ns.class("cols-3")} {
87
+ grid-template-columns: repeat(3, minmax(0, 1fr));
88
+ }
89
+ }
80
90
  }
@@ -102,9 +102,12 @@
102
102
  }
103
103
 
104
104
  #{ns.element-class("action-row", "value")} {
105
- overflow-wrap: anywhere;
105
+ overflow-wrap: break-word;
106
106
  color: var(#{ns.css-var("surf-action-row-value-color")}, inherit);
107
- font-size: var(#{ns.css-var("surf-action-row-value-font-size")}, 1.25rem);
107
+ font-size: min(
108
+ var(#{ns.css-var("surf-action-row-value-font-size")}, 1.25rem),
109
+ max(0.85rem, 4.2vw)
110
+ );
108
111
  font-weight: var(#{ns.css-var("surf-action-row-value-font-weight")}, 700);
109
112
  transition: color var(#{ns.css-var("transition-fast")}, 180ms) ease;
110
113
  }
@@ -6,17 +6,17 @@
6
6
  auto-fit,
7
7
  minmax(min(var(#{ns.css-var("surf-hairline-root-min")}, 16rem), 100%), 1fr)
8
8
  );
9
- gap: var(#{ns.css-var("surf-hairline-root-gap")}, 0);
9
+ gap: var(#{ns.css-var("surf-hairline-root-gap")}, var(--border-width, 1px));
10
10
  overflow: hidden;
11
- border: var(
12
- #{ns.css-var("surf-hairline-root-border")},
13
- var(--border-width, 1px) solid color-mix(in srgb, currentColor 18%, transparent)
14
- );
11
+ border: var(#{ns.css-var("surf-hairline-root-border")}, 0);
15
12
  border-radius: var(
16
13
  #{ns.css-var("surf-hairline-root-radius")},
17
14
  var(--radius-lg, var(#{ns.css-var("radius")}, 0))
18
15
  );
19
- background: var(#{ns.css-var("surf-hairline-root-bg")}, transparent);
16
+ background: var(
17
+ #{ns.css-var("surf-hairline-root-bg")},
18
+ color-mix(in srgb, currentColor 10%, transparent)
19
+ );
20
20
  list-style: none;
21
21
  }
22
22
 
@@ -32,10 +32,6 @@
32
32
  padding: var(#{ns.css-var("surf-hairline-cell-padding")}, var(#{ns.css-var("gap-md")}, 24px));
33
33
  color: var(#{ns.css-var("surf-hairline-cell-color")}, var(#{ns.css-var("text")}, #000));
34
34
  background: var(#{ns.css-var("surf-hairline-cell-bg")}, var(#{ns.css-var("page")}, #fff));
35
- box-shadow: 0 0 0 var(--border-width, 1px) var(
36
- #{ns.css-var("surf-hairline-cell-line")},
37
- color-mix(in srgb, currentColor 18%, transparent)
38
- );
39
35
  transition: background-color 0.3s ease, color 0.3s ease;
40
36
  }
41
37
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "name": "@trebired/frontend",
11
- "version": "19.2.1",
11
+ "version": "19.5.0",
12
12
  "description": "Generic browser runtime systems for Trebired frontend packages and applications.",
13
13
  "type": "module",
14
14
  "private": false,