Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ten-parrots-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudfour/patterns': minor
---

Adjust sizing of logo in sky nav
14 changes: 13 additions & 1 deletion src/components/sky-nav/sky-nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ $_masthead-height-sm: ms.step(7);
* around for visual balance. We could subtract this value from the container
* padding, but it felt easier to understand the scope of the change to me
* from this element. (Though now I'm second-guessing myself...)
* 3. ms.step(9) is used instead of ms.step(8) because ms.step(8) leads to a big jump at the large breakpoint
*/
.c-sky-nav__logo-object {
display: block; /* 1 */
Expand All @@ -182,7 +183,18 @@ $_masthead-height-sm: ms.step(7);
margin: (ms.step(-6) * -1); /* 2 */
transition: opacity transition.$slow ease.$out,
transform transition.$quick ease.$out;
width: ms.step(8);
width: fluid.fluid-calc(
breakpoint.$s,
breakpoint.$l,
ms.step(7),
ms.step(9) /* 3 */
);
@media (min-width: breakpoint.$l) {
width: ms.step(8);
}
@media (max-width: breakpoint.$s) {
width: ms.step(7);
}

/**
* When the containing logo is hovered, scale up this element. Scaling this
Expand Down