@trebired/frontend 20.13.0 → 21.0.1
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 +15 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 21.0.1
|
|
4
|
+
|
|
5
|
+
- The brand button really has no padding now. It is a button, and the padding every button gets is written later in the stylesheet, so at equal weight it won and the logo still started 19px further in than the edge of the bar. The brand's own box now outranks it, as its colour already does.
|
|
6
|
+
|
|
7
|
+
## 21.0.0
|
|
8
|
+
|
|
9
|
+
Breaking for configuration: `shell.header.px` and `shell.header.brand.button.padding` are gone.
|
|
10
|
+
|
|
11
|
+
- 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.
|
|
12
|
+
- A site that set either of those values is no longer honoured; remove them. Nothing else about the brand changes.
|
|
13
|
+
|
|
3
14
|
## 20.13.0
|
|
4
15
|
|
|
5
16
|
- 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.
|
|
@@ -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;
|
|
@@ -309,27 +314,27 @@ $motion: token("motion-duration", 500ms) token("motion-easing", cubic-bezier(0.2
|
|
|
309
314
|
box-shadow: none;
|
|
310
315
|
}
|
|
311
316
|
|
|
312
|
-
#{ns.class("site-header-brand-button")}
|
|
317
|
+
#{ns.class("site-header-brand-button")},
|
|
318
|
+
|
|
319
|
+
#{ns.class("button")}#{ns.class("site-header-brand-button")} {
|
|
313
320
|
display: inline-flex;
|
|
314
321
|
flex-shrink: 0;
|
|
315
322
|
align-items: center;
|
|
316
323
|
gap: var(#{ns.css-var("shell-header-brand-button-gap")}, 8px);
|
|
317
324
|
min-width: 0;
|
|
325
|
+
min-height: 0;
|
|
326
|
+
height: auto;
|
|
318
327
|
border: 0;
|
|
319
328
|
border-radius: var(#{ns.css-var("shell-header-brand-button-radius")}, var(#{ns.css-var("radius-sm")}, 0));
|
|
320
|
-
padding:
|
|
329
|
+
padding-block: 4px;
|
|
330
|
+
padding-inline: 0;
|
|
321
331
|
background: transparent;
|
|
322
|
-
cursor: pointer;
|
|
323
|
-
transition: color 0.22s ease;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
#{ns.class("site-header-brand-button")},
|
|
327
|
-
|
|
328
|
-
#{ns.class("button")}#{ns.class("site-header-brand-button")} {
|
|
329
332
|
color: var(
|
|
330
333
|
#{ns.css-var("shell-header-brand-button-color")},
|
|
331
334
|
color-mix(in srgb, var(#{ns.css-var("text")}, currentColor) 74%, transparent)
|
|
332
335
|
);
|
|
336
|
+
cursor: pointer;
|
|
337
|
+
transition: color 0.22s ease;
|
|
333
338
|
}
|
|
334
339
|
|
|
335
340
|
#{ns.class("site-header-brand-button")}:hover,
|