Skip to content

Commit 6e58d5c

Browse files
committed
rake update[v4-dev]
1 parent e82238c commit 6e58d5c

5 files changed

Lines changed: 46 additions & 41 deletions

File tree

assets/stylesheets/_bootstrap-grid.scss

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,46 @@
88
// Variables
99
//
1010

11-
// Grid system
11+
12+
// Grid breakpoints
1213
//
13-
// Define your custom responsive grid.
14+
// Define the minimum and maximum dimensions at which your layout will change,
15+
// adapting to different screen sizes, for use in media queries.
16+
1417
$grid-breakpoints: (
1518
// Extra small screen / phone
1619
xs: 0,
1720
// Small screen / phone
18-
sm: 34em,
21+
sm: 544px,
1922
// Medium screen / tablet
20-
md: 48em,
23+
md: 768px,
2124
// Large screen / desktop
22-
lg: 62em,
25+
lg: 992px,
2326
// Extra large screen / wide desktop
24-
xl: 75em
27+
xl: 1200px
2528
) !default;
2629

27-
// Number of columns in the grid.
28-
$grid-columns: 12 !default;
29-
30-
// Padding between columns. Gets divided in half for the left and right.
31-
$grid-gutter-width: 1.5rem !default;
32-
3330

34-
// Container sizes
31+
// Grid containers
3532
//
3633
// Define the maximum width of `.container` for different screen sizes.
3734

3835
$container-max-widths: (
39-
sm: 34rem, // 480
40-
md: 45rem, // 720
41-
lg: 60rem, // 960
42-
xl: 72.25rem // 1140
36+
sm: 576px,
37+
md: 720px,
38+
lg: 940px,
39+
xl: 1140px
4340
) !default;
4441

4542

43+
// Grid columns
44+
//
45+
// Set the number of columns and specify the width of the gutters.
46+
47+
$grid-columns: 12 !default;
48+
$grid-gutter-width: 1.875rem !default; // 30px
49+
50+
4651
//
4752
// Grid mixins
4853
//

assets/stylesheets/bootstrap/_variables.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,13 @@ $grid-breakpoints: (
9090
// Extra small screen / phone
9191
xs: 0,
9292
// Small screen / phone
93-
sm: 34em,
93+
sm: 544px,
9494
// Medium screen / tablet
95-
md: 48em,
95+
md: 768px,
9696
// Large screen / desktop
97-
lg: 62em,
97+
lg: 992px,
9898
// Extra large screen / wide desktop
99-
xl: 75em
99+
xl: 1200px
100100
) !default;
101101

102102

@@ -105,10 +105,10 @@ $grid-breakpoints: (
105105
// Define the maximum width of `.container` for different screen sizes.
106106

107107
$container-max-widths: (
108-
sm: 34rem, // 480
109-
md: 45rem, // 720
110-
lg: 60rem, // 960
111-
xl: 72.25rem // 1140
108+
sm: 576px,
109+
md: 720px,
110+
lg: 940px,
111+
xl: 1140px
112112
) !default;
113113

114114

assets/stylesheets/bootstrap/mixins/_breakpoints.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
//
33
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
44
//
5-
// (xs: 0, sm: 34rem, md: 45rem)
5+
// (xs: 0, sm: 544px, md: 768px)
66
//
77
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
88

99
// Name of the next breakpoint, or null for the last breakpoint.
1010
//
1111
// >> breakpoint-next(sm)
1212
// md
13-
// >> breakpoint-next(sm, $breakpoints: (xs: 0, sm: 34rem, md: 45rem))
13+
// >> breakpoint-next(sm, (xs: 0, sm: 544px, md: 768px))
1414
// md
1515
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md))
1616
// md
@@ -21,8 +21,8 @@
2121

2222
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
2323
//
24-
// >> breakpoint-min(sm, (xs: 0, sm: 34rem, md: 45rem))
25-
// 34rem
24+
// >> breakpoint-min(sm, (xs: 0, sm: 544px, md: 768px))
25+
// 544px
2626
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
2727
$min: map-get($breakpoints, $name);
2828
@return if($min != 0, $min, null);
@@ -31,11 +31,11 @@
3131
// Maximum breakpoint width. Null for the largest (last) breakpoint.
3232
// The maximum value is calculated as the minimum of the next one less 0.1.
3333
//
34-
// >> breakpoint-max(sm, (xs: 0, sm: 34rem, md: 45rem))
35-
// 44.9rem
34+
// >> breakpoint-max(sm, (xs: 0, sm: 544px, md: 768px))
35+
// 767px
3636
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
3737
$next: breakpoint-next($name, $breakpoints);
38-
@return if($next, breakpoint-min($next, $breakpoints) - 0.1, null);
38+
@return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
3939
}
4040

4141
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.

lib/bootstrap/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Bootstrap
22
VERSION = '4.0.0.dev'
3-
BOOTSTRAP_SHA = '3497d9937a2d9c192e1818bdc671fd61b3542515'
3+
BOOTSTRAP_SHA = '9f95b592ce2c9b3f141db9b973d0c98568c2c549'
44
end

templates/project/_bootstrap-variables.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@
9191
// // Extra small screen / phone
9292
// xs: 0,
9393
// // Small screen / phone
94-
// sm: 34em,
94+
// sm: 544px,
9595
// // Medium screen / tablet
96-
// md: 48em,
96+
// md: 768px,
9797
// // Large screen / desktop
98-
// lg: 62em,
98+
// lg: 992px,
9999
// // Extra large screen / wide desktop
100-
// xl: 75em
100+
// xl: 1200px
101101
// );
102102

103103

@@ -106,10 +106,10 @@
106106
// Define the maximum width of `.container` for different screen sizes.
107107

108108
// $container-max-widths: (
109-
// sm: 34rem, // 480
110-
// md: 45rem, // 720
111-
// lg: 60rem, // 960
112-
// xl: 72.25rem // 1140
109+
// sm: 576px,
110+
// md: 720px,
111+
// lg: 940px,
112+
// xl: 1140px
113113
// );
114114

115115

0 commit comments

Comments
 (0)