-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Change grid and container sizes from em/rem to px #17403
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,41 +8,46 @@ | |
// Variables | ||
// | ||
|
||
// Grid system | ||
|
||
// Grid breakpoints | ||
// | ||
// Define your custom responsive grid. | ||
// Define the minimum and maximum dimensions at which your layout will change, | ||
// adapting to different screen sizes, for use in media queries. | ||
|
||
$grid-breakpoints: ( | ||
// Extra small screen / phone | ||
xs: 0, | ||
// Small screen / phone | ||
sm: 34em, | ||
sm: 544px, | ||
// Medium screen / tablet | ||
md: 48em, | ||
md: 768px, | ||
// Large screen / desktop | ||
lg: 62em, | ||
lg: 992px, | ||
// Extra large screen / wide desktop | ||
xl: 75em | ||
xl: 1200px | ||
) !default; | ||
|
||
// Number of columns in the grid. | ||
$grid-columns: 12 !default; | ||
|
||
// Padding between columns. Gets divided in half for the left and right. | ||
$grid-gutter-width: 1.5rem !default; | ||
|
||
|
||
// Container sizes | ||
// Grid containers | ||
// | ||
// Define the maximum width of `.container` for different screen sizes. | ||
|
||
$container-max-widths: ( | ||
sm: 34rem, // 480 | ||
md: 45rem, // 720 | ||
lg: 60rem, // 960 | ||
xl: 72.25rem // 1140 | ||
sm: 576px, | ||
md: 720px, | ||
lg: 940px, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 940 is not divisible by 12. Please change to 960. |
||
xl: 1140px | ||
) !default; | ||
|
||
|
||
// Grid columns | ||
// | ||
// Set the number of columns and specify the width of the gutters. | ||
|
||
$grid-columns: 12 !default; | ||
$grid-gutter-width: 1.875rem !default; // 30px | ||
|
||
|
||
// | ||
// Grid mixins | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
How can container width ever be wider than the breakpoint?