-
Notifications
You must be signed in to change notification settings - Fork 3
Scale down logo more for small screens #1517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 6918af2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✔️ Deploy Preview for cloudfour-patterns ready! 🔨 Explore the source changes: 6918af2 🔍 Inspect the deploy log: https://app.netlify.com/sites/cloudfour-patterns/deploys/612e5d9196a5930007501012 😎 Browse the preview: https://deploy-preview-1517--cloudfour-patterns.netlify.app |
src/components/sky-nav/sky-nav.scss
Outdated
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)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tylersticka Any idea why the last number has to be 9? If I change it to 8, at the large breakpoint it is very discontinuous and there is a large jump. I tried to figure out what was going wrong but I couldn't figure it out. It might have something to do with the units?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm honestly not exactly sure, the math I stole from CSS-Tricks articles. I've been considering whether long-term we should replace this logic with something simpler based on math functions like min
and max
, which I didn't realize until recently are startlingly well-supported.
Can you add a comment explaining why it's set to 9
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels so much better. Will approve once we add a Sass comment so future generations understand why we used ms.step(9)
(always good to explain magic numbers, y'know?), but no issues at all with the end result.
Overview
#1514
Screenshots
Testing
https://deploy-preview-1517--cloudfour-patterns.netlify.app/iframe.html?id=components-sky-nav--dark&viewMode=story&args=&globals=