Skip to content
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

refactor: Media queries #2680

Merged
merged 3 commits into from Dec 27, 2020
Merged

refactor: Media queries #2680

merged 3 commits into from Dec 27, 2020

Conversation

j-f1
Copy link
Member

@j-f1 j-f1 commented Dec 27, 2020

Fixes #2678

@vercel
Copy link

vercel bot commented Dec 27, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/excalidraw/excalidraw/dhx0dk5ua
✅ Preview: https://excalidraw-git-media-queries.excalidraw.vercel.app

@lipis
Copy link
Member

lipis commented Dec 27, 2020

While we at it.. can we do something with those as well? Maybe two sizes is enough
Screenshot 2020-12-27 at 5 20 00 PM

@lipis lipis changed the title Media queries refactor: Media queries Dec 27, 2020
@lipis
Copy link
Member

lipis commented Dec 27, 2020

Maybe part of the dialog property? small, medium, large?

@@ -153,6 +154,8 @@
}
}

// move the lock button out of the way on small viewports
// it begins to collide with the GitHub icon before we switch to mobile mode
@media (max-width: 760px) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we get those in variables? 425/760

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since they’re only used once and are fairly specific to the context I think it’s ok to use them as-is (with the comment that I added) and only pull them out if it becomes a problem

@lipis lipis merged commit b8d13c9 into master Dec 27, 2020
@lipis lipis deleted the media-queries branch December 27, 2020 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Put all media queries in constants and. unify if it makes sense
2 participants