@trebired/frontend 20.12.0 → 21.0.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 +11 -0
- package/dist/layout/styles/site-header.scss +23 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 21.0.0
|
|
4
|
+
|
|
5
|
+
Breaking for configuration: `shell.header.px` and `shell.header.brand.button.padding` are gone.
|
|
6
|
+
|
|
7
|
+
- The brand sits the same distance from the edge of the screen on every site: 1.5rem on a phone, 1rem once there is room for the full bar. The distance was a per-site setting and the brand button added its own padding on top, so the same logo started at 16px on one site and 38px on another. The header's structure is tbf's to decide, like its height and the size of its menu button.
|
|
8
|
+
- A site that set either of those values is no longer honoured; remove them. Nothing else about the brand changes.
|
|
9
|
+
|
|
10
|
+
## 20.13.0
|
|
11
|
+
|
|
12
|
+
- The brand button keeps its own colour instead of the one every button gets. Both rules carried the same weight and the general one is written later, so it won, and the brand took the colour flowing down from the header: on a light page the little arrow beside the logo came out almost white and read as having disappeared. Its colour now outranks the general rule, as its background already did.
|
|
13
|
+
|
|
3
14
|
## 20.12.0
|
|
4
15
|
|
|
5
16
|
- The brand button takes the colour of the surface it is on rather than the colour it inherits. It was built from the text colour flowing down from the header, so a brand that had been worked out to sit on light content still printed itself in the header's dark-content colour: on a light page the little arrow beside the logo came out almost white and read as having disappeared. It now follows its own state, like the links and the toggle beside it.
|
|
@@ -29,7 +29,7 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
29
29
|
max-width: token("max-width", 72rem);
|
|
30
30
|
box-sizing: border-box;
|
|
31
31
|
margin-inline: auto;
|
|
32
|
-
padding-inline:
|
|
32
|
+
padding-inline: 1.5rem;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
#{ns.element-class("site-header", "bar")} {
|
|
@@ -255,6 +255,11 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
@media (min-width: 768px) {
|
|
258
|
+
#{ns.element-class("site-header", "bar")},
|
|
259
|
+
#{ns.element-class("site-header", "menu-content")} {
|
|
260
|
+
padding-inline: 1rem;
|
|
261
|
+
}
|
|
262
|
+
|
|
258
263
|
#{ns.element-class("site-header", "nav")},
|
|
259
264
|
#{ns.element-class("site-header", "actions")} {
|
|
260
265
|
display: flex;
|
|
@@ -317,21 +322,33 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
317
322
|
min-width: 0;
|
|
318
323
|
border: 0;
|
|
319
324
|
border-radius: var(#{ns.css-var("shell-header-brand-button-radius")}, var(#{ns.css-var("radius-sm")}, 0));
|
|
320
|
-
padding:
|
|
325
|
+
padding-block: 4px;
|
|
326
|
+
padding-inline: 0;
|
|
327
|
+
background: transparent;
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
transition: color 0.22s ease;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
#{ns.class("site-header-brand-button")},
|
|
333
|
+
|
|
334
|
+
#{ns.class("button")}#{ns.class("site-header-brand-button")} {
|
|
321
335
|
color: var(
|
|
322
336
|
#{ns.css-var("shell-header-brand-button-color")},
|
|
323
337
|
color-mix(in srgb, var(#{ns.css-var("text")}, currentColor) 74%, transparent)
|
|
324
338
|
);
|
|
325
|
-
background: transparent;
|
|
326
|
-
cursor: pointer;
|
|
327
|
-
transition: color 0.22s ease;
|
|
328
339
|
}
|
|
329
340
|
|
|
330
341
|
#{ns.class("site-header-brand-button")}:hover,
|
|
331
342
|
|
|
332
343
|
#{ns.class("site-header-brand-button")}:focus-visible,
|
|
333
344
|
|
|
334
|
-
#{ns.class("site-header-brand-button")}[aria-expanded="true"]
|
|
345
|
+
#{ns.class("site-header-brand-button")}[aria-expanded="true"],
|
|
346
|
+
|
|
347
|
+
#{ns.class("button")}#{ns.class("site-header-brand-button")}:hover,
|
|
348
|
+
|
|
349
|
+
#{ns.class("button")}#{ns.class("site-header-brand-button")}:focus-visible,
|
|
350
|
+
|
|
351
|
+
#{ns.class("button")}#{ns.class("site-header-brand-button")}[aria-expanded="true"] {
|
|
335
352
|
color: var(#{ns.css-var("shell-header-brand-button-hover-color")}, var(#{ns.css-var("text")}, currentColor));
|
|
336
353
|
}
|
|
337
354
|
|