Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glebm@google.com>2015-09-11 01:05:09 +0300
committerGleb Mazovetskiy <glebm@google.com>2015-09-11 01:05:48 +0300
commitaab35ab41958dcd2e3e94e4c15fb34867a7fdab1 (patch)
treeced44abe0016039edf24a73b186e2db95422d852 /assets/stylesheets/bootstrap/mixins/_grid.scss
parent5ef4dee608c93e6b3d7538500bbac4d05c79b94b (diff)
rake update[v4-dev]
Diffstat (limited to 'assets/stylesheets/bootstrap/mixins/_grid.scss')
-rw-r--r--assets/stylesheets/bootstrap/mixins/_grid.scss10
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/stylesheets/bootstrap/mixins/_grid.scss b/assets/stylesheets/bootstrap/mixins/_grid.scss
index 56b8c6f..87b4ac9 100644
--- a/assets/stylesheets/bootstrap/mixins/_grid.scss
+++ b/assets/stylesheets/bootstrap/mixins/_grid.scss
@@ -10,6 +10,16 @@
@include clearfix();
}
+
+// For each breakpoint, define the maximum width of the container in a media query
+@mixin make-container-max-widths($max-widths: $container-max-widths) {
+ @each $breakpoint, $container-max-width in $max-widths {
+ @include media-breakpoint-up($breakpoint) {
+ max-width: $container-max-width;
+ }
+ }
+}
+
@mixin make-row($gutter: $grid-gutter-width) {
@if $enable-flex {
display: flex;