@trebired/frontend 13.8.1 → 13.9.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 +4 -0
- package/README.md +1 -1
- package/dist/layout/styles/site-header.scss +5 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to `@trebired/frontend` will be documented here.
|
|
|
4
4
|
|
|
5
5
|
This project follows semantic versioning once published.
|
|
6
6
|
|
|
7
|
+
## 13.9.0
|
|
8
|
+
|
|
9
|
+
- The header's sizes are fixed for every site instead of being tokens: the bar is 5rem tall, a brand logo 3.5rem, navigation links 0.875rem and menu links 1rem, the measurements machynka.cz already used. A header that reads as the same component on four sites should not be a different height on each. Colors, fonts, borders, spacing and the brand's own type size stay configurable, since a brand is a logo on one site and fluid text on another.
|
|
10
|
+
|
|
7
11
|
## 13.8.1
|
|
8
12
|
|
|
9
13
|
- The mobile menu toggle is one fixed size everywhere: a 3rem button with a 2rem icon, the size machynka.cz already used. It was a per-site token, so each site could pick a different hit target for the same control; the built-in burger grew to match. Only the toggle's color and radius remain tokens.
|
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ A header with no links and no `menuActions` has no toggle and keeps its actions
|
|
|
108
108
|
|
|
109
109
|
The header is the hydration root, so it renders itself as the `<header>` element. Server markup wraps it with `siteHeaderRootHtml(html)`, which the client hydrates through `SITE_HEADER_ROOT_SELECTOR`; the wrapper is `display: contents`, so the header still sticks to the viewport.
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
Colors, fonts, borders and spacing are tokens under `components.shell.header`: `root` (position, background, border, backdropFilter), `maxWidth`, `paddingInline`, `brand`, `link`, `menu` and the motion pair `motionDuration` and `motionEasing`. Sizes are not: the bar is 5rem tall, a brand logo 3.5rem, navigation links 0.875rem, menu links 1rem, and the toggle a 3rem button with a 2rem icon, the same in every site.
|
|
112
112
|
|
|
113
113
|
### Bottom Bar
|
|
114
114
|
|
|
@@ -35,7 +35,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
35
35
|
#{ns.element-class("site-header", "bar")} {
|
|
36
36
|
position: relative;
|
|
37
37
|
display: flex;
|
|
38
|
-
min-height:
|
|
38
|
+
min-height: 5rem;
|
|
39
39
|
align-items: center;
|
|
40
40
|
justify-content: space-between;
|
|
41
41
|
gap: token("gap", 1rem);
|
|
@@ -65,7 +65,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
65
65
|
#{ns.element-class("site-header", "brand")} img {
|
|
66
66
|
display: block;
|
|
67
67
|
width: auto;
|
|
68
|
-
height:
|
|
68
|
+
height: 3.5rem;
|
|
69
69
|
max-width: token("brand-logo-max-width", 220px);
|
|
70
70
|
object-fit: contain;
|
|
71
71
|
}
|
|
@@ -95,7 +95,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
95
95
|
|
|
96
96
|
#{ns.element-class("site-header", "menu-link")} {
|
|
97
97
|
color: token("link-color", var(#{ns.css-var("text-muted")}, #555));
|
|
98
|
-
font-size:
|
|
98
|
+
font-size: 0.875rem;
|
|
99
99
|
font-weight: token("link-font-weight", 500);
|
|
100
100
|
letter-spacing: token("link-letter-spacing", normal);
|
|
101
101
|
text-decoration: none;
|
|
@@ -214,7 +214,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
214
214
|
|
|
215
215
|
#{ns.element-class("site-header", "menu-body")} {
|
|
216
216
|
min-height: 0;
|
|
217
|
-
max-height: calc(100dvh -
|
|
217
|
+
max-height: calc(100dvh - 5rem);
|
|
218
218
|
overflow: hidden;
|
|
219
219
|
}
|
|
220
220
|
|
|
@@ -248,7 +248,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
248
248
|
padding: token("menu-link-padding", 0.5rem 0);
|
|
249
249
|
border-radius: token("menu-link-radius", 0);
|
|
250
250
|
color: token("menu-link-color", var(#{ns.css-var("text")}, #000));
|
|
251
|
-
font-size:
|
|
251
|
+
font-size: 1rem;
|
|
252
252
|
font-weight: token("menu-link-font-weight", 600);
|
|
253
253
|
}
|
|
254
254
|
|