@styleflow.app/flowpress-astro-core 1.0.0-beta.45 → 1.0.0-beta.46
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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.46 — 2026-11-04
|
|
4
|
+
|
|
5
|
+
- Menu toggle of `core/navigation`: the two bars sit 0.5rem apart and the cross is centred on the button. `flowpress-navigation.css` placed the bars at 35%/65% with `inset-inline: 0` and won over the `motion.css` insets, while `motion.css` still applied its centred transforms, so every offset counted twice: bars 14px apart and 10px left of the icon, cross 10px above the button centre (seen on friviera.it).
|
|
6
|
+
- `flowpress-navigation.css`: the static bars (pages without `motion.css`) use the same centred geometry as `motion.css` and zero specificity (`:where()`), so the two stylesheets compose in any order. The icon is centred in the 2.75rem button (`margin-inline: auto`).
|
|
7
|
+
- `motion.css`: the closed bars include the `-50%` of their own height, so the pair is symmetric around the icon centre (it sat 1px low), and bars are `0.125rem` thick, the 2px every navigation rendered so far. The `--bars` variant is unchanged.
|
|
8
|
+
- New renderer fixture pages `navigation-toggle` (with `motion.css`) and `navigation-static` (without) and browser check `tests/browser/navigation-toggle.js` (gap, vertical centre and cross centre, full and reduced motion).
|
|
9
|
+
- [Canonical report](https://github.com/StyleFlow-App/styleflow-docs/blob/main/dev/rapporti/2026-11-04-toggle-menu-navigazione.md).
|
|
10
|
+
|
|
3
11
|
## 1.0.0-beta.45 — 2026-11-04
|
|
4
12
|
|
|
5
13
|
- `sf/carousel` slides animate again. The track used `sf-motion-disable`, whose `transition: none !important` overrode the transition Splide writes inline on the list (slide) and on the slides (fade), so every move jumped. The track now uses the new `sf-reveal-skip`.
|
|
@@ -414,7 +414,7 @@ details[open] > summary.sf-motion-disclosure .sf-motion-disclosure-icon {
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
.sf-motion-menu-toggle__line {
|
|
417
|
-
block-size: 0.
|
|
417
|
+
block-size: 0.125rem;
|
|
418
418
|
border-radius: 999px;
|
|
419
419
|
box-shadow: inset 0 0 0 999px currentColor;
|
|
420
420
|
inline-size: 1.25rem;
|
|
@@ -427,18 +427,19 @@ details[open] > summary.sf-motion-disclosure .sf-motion-disclosure-icon {
|
|
|
427
427
|
transform var(--sf-motion-duration-reveal) var(--sf-motion-ease-out);
|
|
428
428
|
}
|
|
429
429
|
|
|
430
|
+
/* Bars centred on the icon (-50% of their own height), 0.5rem apart. */
|
|
430
431
|
.sf-motion-menu-toggle__line:nth-child(1) {
|
|
431
|
-
transform: translate(-50%, -0.25rem);
|
|
432
|
+
transform: translate(-50%, calc(-50% - 0.25rem));
|
|
432
433
|
}
|
|
433
434
|
.sf-motion-menu-toggle__line:nth-child(2) {
|
|
434
435
|
inline-size: 0.875rem;
|
|
435
|
-
transform: translate(-28%, 0.25rem);
|
|
436
|
+
transform: translate(-28%, calc(-50% + 0.25rem));
|
|
436
437
|
}
|
|
437
438
|
|
|
438
439
|
.sf-motion-menu-toggle:hover .sf-motion-menu-toggle__line:nth-child(2),
|
|
439
440
|
.sf-motion-menu-toggle:focus-visible .sf-motion-menu-toggle__line:nth-child(2) {
|
|
440
441
|
inline-size: 1.25rem;
|
|
441
|
-
transform: translate(-50%, 0.25rem);
|
|
442
|
+
transform: translate(-50%, calc(-50% + 0.25rem));
|
|
442
443
|
}
|
|
443
444
|
|
|
444
445
|
.sf-motion-menu-toggle[aria-expanded="true"] .sf-motion-menu-toggle__icon {
|
|
@@ -10,8 +10,9 @@ flowpress-navigation .site-nav__backdrop { position: fixed; inset: 0; z-index: v
|
|
|
10
10
|
flowpress-navigation[data-overlay-active="false"][data-orientation="horizontal"] .site-nav__list { flex-direction: row; flex-wrap: wrap; }
|
|
11
11
|
flowpress-navigation .site-nav__summary { cursor: pointer; }
|
|
12
12
|
flowpress-navigation .site-nav__link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|
|
13
|
-
flowpress-navigation .sf-motion-menu-toggle__icon { display: block; inline-size: 1.25rem; block-size: 1.25rem; position: relative; }
|
|
14
|
-
|
|
15
|
-
flowpress-navigation .sf-motion-menu-toggle__line
|
|
16
|
-
flowpress-navigation
|
|
17
|
-
flowpress-navigation [aria-expanded="true"] .sf-motion-menu-toggle__line
|
|
13
|
+
flowpress-navigation .sf-motion-menu-toggle__icon { display: block; inline-size: 1.25rem; block-size: 1.25rem; margin-inline: auto; position: relative; }
|
|
14
|
+
/* Static bars for pages without motion.css. Same centred geometry as motion.css and zero specificity, so its transforms win instead of adding up. */
|
|
15
|
+
:where(flowpress-navigation .sf-motion-menu-toggle__line) { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 100%; block-size: 2px; background: currentColor; transform: translate(-50%, calc(-50% - 0.25rem)); }
|
|
16
|
+
:where(flowpress-navigation .sf-motion-menu-toggle__line + .sf-motion-menu-toggle__line) { transform: translate(-50%, calc(-50% + 0.25rem)); }
|
|
17
|
+
:where(flowpress-navigation [aria-expanded="true"] .sf-motion-menu-toggle__line) { transform: translate(-50%, -50%) rotate(45deg); }
|
|
18
|
+
:where(flowpress-navigation [aria-expanded="true"] .sf-motion-menu-toggle__line + .sf-motion-menu-toggle__line) { transform: translate(-50%, -50%) rotate(-45deg); }
|
package/package.json
CHANGED