-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix media query edge case #13546
fix media query edge case #13546
Conversation
was failing for 768px width before
Theres also one oddball in _repository.less which probably benefits from the same:
|
Actually, could we look into putting these values into less variables? |
I suspect this is to protect browsers out there that will do something stupid at 767px and/or if they have subpixels do something stupid between 767px and 768px. Are we certain that setting everything to 767.98px would not be better? |
@zeripath I'm pretty sure these |
@gary-kim done. I'm not very experienced with LESS, so if you see a more elegant way let me know |
Not a fan of Less variables in general personally as they can not be changed at runtime and lock us into that specific precompiler. Would suggest to convert to CSS variables. |
Fomantic breakpoints are from here I think: We could remap them to the same CSS vars but I guess that's material for another PR. |
Sadly, css variables can't be used in media query selectors :( |
The variables seem fine to me. |
Oh you're right, one of the stupid limitations of them that they can't appear in selectors. |
Enough bikeshedding, this one's ready ;) |
Co-authored-by: silverwind <me@silverwind.io>
Codecov Report
@@ Coverage Diff @@
## master #13546 +/- ##
==========================================
+ Coverage 42.19% 42.21% +0.01%
==========================================
Files 696 696
Lines 76540 76540
==========================================
+ Hits 32297 32308 +11
+ Misses 38951 38932 -19
- Partials 5292 5300 +8
Continue to review full report at Codecov.
|
altough it doesnt matter, LESS lazy evals variables
🚀 |
Some layouts were failing for 768px width. Now breakpoints strictly separate between 767 and 768 pixels