-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Fix element precision bug in at media CSS elements widths #17388
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
…(max-width: 33.999999em). For bug example : http://v4-alpha.getbootstrap.com/layout/responsive-utilities/ with a layout of 750px, hidden-sm-down and hidden-md-up are visible boths.
Partially duplicates #17283. |
Changes grid and container sizes to `px`, as the viewport pixel size does not depend on the font size. The actual em values were inconsistent with the docs, while the docs were also inconsistent with the comments, namely: * `sm` breakpoint was 34em which is 558px, not 480px. Changed to 480px, matching the docs and Bootstrap 3. * `lg` max width was 60rem which is 960px, less gutter than `md`. Changed to 940px, same as Bootstrap 3. * `xl` max width was 72.25rem which is 1140px not 1156px. Changed to 1140px matching the comment but not the docs. All the values are now the same as they were in Bootstrap 3. Addresses #17070 and #17388.
Two popular Sass mixins for handling media queries (see below) substract 0.01em by default so I think that should be enough. https://github.com/sass-mq/sass-mq |
1 em ~= 16 px (or 14px) so 1px ~= 0.0625em (0,0714..em). Le 01/09/2015 11:45, Sergio Lavanga a écrit :
|
Changes grid and container sizes to `px`, as the viewport pixel size does not depend on the font size. The actual em values were inconsistent with the docs, while the docs were also inconsistent with the comments, namely: * `sm` breakpoint was 34em which is 558px, not 480px. Changed to 480px, matching the docs and Bootstrap 3. * `lg` max width was 60rem which is 960px, less gutter than `md`. Changed to 940px, same as Bootstrap 3. * `xl` max width was 72.25rem which is 1140px not 1156px. Changed to 1140px matching the comment but not the docs. All the values are now the same as they were in Bootstrap 3. Addresses #17070 and #17388.
Changes grid and container sizes to `px`, as the viewport pixel size does not depend on the font size. The actual em values were inconsistent with the docs, while the docs were also inconsistent with the comments, namely: * `sm` breakpoint was 34em which is 558px, not 480px. Changed to 480px, matching the docs and Bootstrap 3. * `lg` max width was 60rem which is 960px, less gutter than `md`. Changed to 940px, same as Bootstrap 3. * `xl` max width was 72.25rem which is 1140px not 1156px. Changed to 1140px matching the comment but not the docs. All the values are now the same as they were in Bootstrap 3. Addresses #17070 and #17388.
Changes grid and container sizes to `px`, as the viewport pixel size does not depend on the font size. The actual em values were inconsistent with the docs, while the docs were not the same as the comments: * `sm` breakpoint was 34em (544px) not 480px. * `lg` container max-width was 60rem (960px), less gutter than `md`. Changed to 940px, same as Bootstrap 3. * `xl` container max-width was 72.25rem which is 1140px not 1156px. Changed to 1140px matching the comment but not the docs. Addresses #17070 and #17388.
Changes grid and container sizes to `px`, as the viewport pixel size does not depend on the font size. The actual em values were inconsistent with the docs, while the docs were not the same as the comments: * `sm` breakpoint was 34em (544px) not 480px. * `lg` container max-width was 60rem (960px), less gutter than `md`. Changed to 940px, same as Bootstrap 3. * `xl` container max-width was 72.25rem which is 1140px not 1156px. Changed to 1140px matching the comment but not the docs. Addresses #17070 and #17388.
Fixed by #17403. |
Change grid and container sizes to px twbs/bootstrap@eabed0e >> Changes grid and container sizes to `px`, as the viewport pixel size does not depend on the font size. >> The actual em values were inconsistent with the docs, while the docs were not the same as the comments: Also will fix element precision bug in at media CSS elements widths (twbs/bootstrap#17388)
Add more precision with @media (max-width: 33.9em) changed to @media (max-width: 33.999999em).
For bug example : http://v4-alpha.getbootstrap.com/layout/responsive-utilities/ with a layout of 750px, hidden-sm-down and hidden-md-up are visible both.