material-sass 4.0.0.alpha6 → 4.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +36 -8
- data/Rakefile +16 -3
- data/app/assets/javascripts/material-sprockets.js +6 -1
- data/app/assets/javascripts/material.js +654 -417
- data/app/assets/javascripts/material.min.js +1 -0
- data/app/assets/javascripts/material/addons/picker.date.js +234 -0
- data/app/assets/javascripts/material/addons/picker.js +172 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
- data/app/assets/javascripts/material/addons/waves.js +127 -0
- data/app/assets/javascripts/material/components/floating-label.js +92 -0
- data/app/assets/javascripts/material/components/navdrawer.js +353 -0
- data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
- data/app/assets/javascripts/material/components/tab-switch.js +148 -0
- data/app/assets/javascripts/material/components/util.js +133 -0
- data/app/assets/javascripts/material/initializers/picker.js +171 -0
- data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
- data/app/assets/javascripts/material/initializers/waves.js +13 -0
- data/app/assets/stylesheets/material/_colours.scss +324 -0
- data/app/assets/stylesheets/material/_functions.scss +65 -0
- data/app/assets/stylesheets/material/_mixins.scss +23 -23
- data/app/assets/stylesheets/material/_print.scss +102 -0
- data/app/assets/stylesheets/material/_utilities.scss +21 -17
- data/app/assets/stylesheets/material/_variables.scss +13 -42
- data/app/assets/stylesheets/material/base/_base.scss +420 -5
- data/app/assets/stylesheets/material/base/_grid.scss +34 -33
- data/app/assets/stylesheets/material/base/_typography.scss +165 -174
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
- data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
- data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
- data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
- data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
- data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
- data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
- data/app/assets/stylesheets/material/material.scss +75 -62
- data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
- data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
- data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
- data/app/assets/stylesheets/material/material/_button.scss +133 -189
- data/app/assets/stylesheets/material/material/_card.scss +300 -248
- data/app/assets/stylesheets/material/material/_chip.scss +65 -64
- data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
- data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
- data/app/assets/stylesheets/material/material/_menu.scss +308 -228
- data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
- data/app/assets/stylesheets/material/material/_picker.scss +157 -155
- data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
- data/app/assets/stylesheets/material/material/_progress.scss +180 -115
- data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
- data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
- data/app/assets/stylesheets/material/material/_tab.scss +74 -93
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
- data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
- data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
- data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
- data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
- data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
- data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
- data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
- data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
- data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
- data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
- data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
- data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
- data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
- data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
- data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
- data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
- data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
- data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
- data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
- data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
- data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
- data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
- data/lib/material-sass/version.rb +1 -1
- data/material-sass.gemspec +3 -3
- metadata +26 -21
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
- data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
- data/app/assets/javascripts/material/addons/pickadate.js +0 -7
- data/app/assets/javascripts/material/addons/wave.js +0 -5
- data/app/assets/javascripts/material/src/floating-label.js +0 -91
- data/app/assets/javascripts/material/src/navdrawer.js +0 -352
- data/app/assets/javascripts/material/src/tab-switch.js +0 -133
- data/app/assets/javascripts/material/src/util.js +0 -138
- data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
- data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
- data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
- data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
- data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -1,85 +1,46 @@
|
|
1
1
|
.tooltip {
|
2
|
+
@include reset-text;
|
3
|
+
|
2
4
|
display: block;
|
3
5
|
font-size: $tooltip-font-size;
|
6
|
+
line-height: $tooltip-line-height;
|
7
|
+
margin: $tooltip-margin;
|
4
8
|
opacity: 0;
|
5
9
|
position: absolute;
|
10
|
+
word-break: break-word;
|
6
11
|
z-index: $tooltip-zindex;
|
7
|
-
@include reset-text;
|
8
|
-
|
9
|
-
&,
|
10
|
-
&.fade,
|
11
|
-
&.fade.show {
|
12
|
-
transition-property: opacity;
|
13
|
-
}
|
14
|
-
|
15
|
-
&.bs-tether-element-attached-bottom,
|
16
|
-
&.tooltip-top {
|
17
|
-
margin-top: ($tooltip-margin * -1);
|
18
|
-
}
|
19
12
|
|
20
|
-
&.
|
21
|
-
|
22
|
-
margin-left: $tooltip-margin;
|
23
|
-
}
|
24
|
-
|
25
|
-
&.bs-tether-element-attached-right,
|
26
|
-
&.tooltip-left {
|
27
|
-
margin-left: ($tooltip-margin * -1);
|
28
|
-
}
|
13
|
+
&.show {
|
14
|
+
opacity: $tooltip-opacity;
|
29
15
|
|
30
|
-
|
31
|
-
|
32
|
-
|
16
|
+
.tooltip-inner {
|
17
|
+
transform: scale(1);
|
18
|
+
}
|
33
19
|
}
|
34
20
|
}
|
35
21
|
|
36
22
|
.tooltip-inner {
|
23
|
+
@include border-radius($border-radius);
|
24
|
+
@include transition-standard(transform);
|
25
|
+
|
37
26
|
background-color: $tooltip-bg;
|
38
27
|
color: $tooltip-color;
|
39
28
|
padding: $tooltip-padding-y $tooltip-padding-x;
|
40
29
|
text-align: center;
|
41
|
-
transform: scale(
|
42
|
-
@include border-radius($border-radius);
|
43
|
-
@include transition-acceleration(transform);
|
30
|
+
transform: scale($tooltip-scale);
|
44
31
|
}
|
45
32
|
|
46
|
-
// show
|
47
|
-
.tooltip.show {
|
48
|
-
opacity: $tooltip-opacity;
|
49
|
-
|
50
|
-
.tooltip-inner {
|
51
|
-
transform: scale(1);
|
52
|
-
@include transition-deceleration(transform);
|
53
|
-
}
|
54
|
-
}
|
55
33
|
|
56
|
-
// desktop
|
57
|
-
@include media-breakpoint-up(md) {
|
58
|
-
.tooltip {
|
59
|
-
font-size: $tooltip-font-size-md-up;
|
60
34
|
|
61
|
-
|
62
|
-
&.tooltip-top {
|
63
|
-
margin-top: ($tooltip-margin-md-up * -1);
|
64
|
-
}
|
35
|
+
// Desktop
|
65
36
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
&.bs-tether-element-attached-right,
|
72
|
-
&.tooltip-left {
|
73
|
-
margin-left: ($tooltip-margin-md-up * -1);
|
74
|
-
}
|
75
|
-
|
76
|
-
&.bs-tether-element-attached-top,
|
77
|
-
&.tooltip-bottom {
|
78
|
-
margin-top: $tooltip-margin-md-up;
|
79
|
-
}
|
80
|
-
}
|
37
|
+
@include media-breakpoint-up(md) {
|
38
|
+
.tooltip {
|
39
|
+
font-size: $tooltip-font-size-desktop;
|
40
|
+
margin: $tooltip-margin-desktop;
|
41
|
+
}
|
81
42
|
|
82
|
-
|
83
|
-
|
84
|
-
}
|
43
|
+
.tooltip-inner {
|
44
|
+
padding: $tooltip-padding-y-desktop $tooltip-padding-x-desktop;
|
85
45
|
}
|
46
|
+
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@mixin bg-variant($class, $color, $color-dark:
|
1
|
+
@mixin bg-variant($class, $color, $color-dark: '') {
|
2
2
|
#{$class} {
|
3
3
|
background-color: $color !important;
|
4
4
|
}
|
5
5
|
|
6
|
-
@if ($color-dark !=
|
6
|
+
@if ($color-dark != '') {
|
7
7
|
a#{$class} {
|
8
|
-
//
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
// Active, focus, hover
|
9
|
+
@include active-focus-hover {
|
10
|
+
background-color: $color-dark !important;
|
11
|
+
}
|
12
12
|
}
|
13
13
|
}
|
14
14
|
}
|
@@ -2,23 +2,23 @@
|
|
2
2
|
border-radius: $radius;
|
3
3
|
}
|
4
4
|
|
5
|
-
//
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
// Single side
|
6
|
+
@mixin border-bottom-radius($radius: $border-radius) {
|
7
|
+
border-bottom-right-radius: $radius;
|
8
|
+
border-bottom-left-radius: $radius;
|
9
|
+
}
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
@mixin border-left-radius($radius: $border-radius) {
|
12
|
+
border-bottom-left-radius: $radius;
|
13
|
+
border-top-left-radius: $radius;
|
14
|
+
}
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
@mixin border-right-radius($radius: $border-radius) {
|
17
|
+
border-top-right-radius: $radius;
|
18
|
+
border-bottom-right-radius: $radius;
|
19
|
+
}
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
@mixin border-top-radius($radius: $border-radius) {
|
22
|
+
border-top-left-radius: $radius;
|
23
|
+
border-top-right-radius: $radius;
|
24
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
@function breakpoint-infix($name) {
|
2
|
-
@return if(breakpoint-min($name) == null,
|
2
|
+
@return if(breakpoint-min($name) == null, '', '-#{$name}');
|
3
3
|
}
|
4
4
|
|
5
5
|
@function breakpoint-max($name) {
|
@@ -43,4 +43,34 @@
|
|
43
43
|
} @else {
|
44
44
|
@content
|
45
45
|
}
|
46
|
-
}
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
// Additional mixins
|
51
|
+
|
52
|
+
@mixin media-breakpoint-between($lower, $upper) {
|
53
|
+
$max: breakpoint-max($upper);
|
54
|
+
$min: breakpoint-min($lower);
|
55
|
+
|
56
|
+
@media (min-width: $min) and (max-width: $max) {
|
57
|
+
@content;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
@mixin media-breakpoint-only($name) {
|
62
|
+
$max: breakpoint-max($name);
|
63
|
+
$min: breakpoint-min($name);
|
64
|
+
|
65
|
+
@media (min-width: $min) and (max-width: $max) {
|
66
|
+
@content;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
@mixin media-moz-webkit {
|
71
|
+
@media
|
72
|
+
screen and (-webkit-min-device-pixel-ratio: 0),
|
73
|
+
screen and (min--moz-device-pixel-ratio: 0) {
|
74
|
+
@content;
|
75
|
+
}
|
76
|
+
}
|
@@ -1,45 +1,82 @@
|
|
1
|
-
@mixin floating-label-size($font-size, $height, $
|
2
|
-
$floating-label-line-height: ($height - $padding-top - $padding-bottom);
|
3
|
-
$floating-label-scale-percentage: ($floating-label-font-size-focus / $font-size);
|
4
|
-
|
5
|
-
padding-top: ($floating-label-line-height * $floating-label-scale-percentage);
|
6
|
-
|
1
|
+
@mixin floating-label-size($font-size, $height, $line-height, $padding-y) {
|
7
2
|
> label {
|
8
3
|
font-size: $font-size;
|
9
|
-
line-height: $
|
10
|
-
|
11
|
-
top: ($floating-label-line-height * $floating-label-scale-percentage + $padding-top);
|
4
|
+
line-height: $line-height;
|
5
|
+
top: ($floating-label-font-size-focus + $padding-y);
|
12
6
|
}
|
13
7
|
|
14
8
|
&.has-value > label,
|
15
9
|
&.is-focused > label {
|
16
|
-
transform: scale($floating-label-
|
10
|
+
transform: scale($floating-label-font-size-focus / $font-size);
|
17
11
|
}
|
18
12
|
}
|
19
13
|
|
20
|
-
@mixin form-control-size($
|
14
|
+
@mixin form-control-size($font-size, $height, $line-height, $padding-x, $padding-y) {
|
21
15
|
font-size: $font-size;
|
22
16
|
height: $height;
|
23
|
-
line-height:
|
24
|
-
padding: $padding-
|
17
|
+
line-height: $line-height;
|
18
|
+
padding: $padding-y $padding-x ($padding-y - $textfield-border-width / $font-size-root * 1rem);
|
19
|
+
}
|
25
20
|
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
@mixin form-control-validation($color, $state) {
|
22
|
+
.custom-control-input {
|
23
|
+
.was-validated &:#{$state},
|
24
|
+
&.is-#{$state} {
|
25
|
+
~ .custom-control-indicator,
|
26
|
+
~ .custom-control-description {
|
27
|
+
color: $color;
|
28
|
+
}
|
29
29
|
}
|
30
30
|
}
|
31
|
-
}
|
32
31
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
32
|
+
.custom-file-input {
|
33
|
+
.was-validated &:#{$state},
|
34
|
+
&.is-#{$state} {
|
35
|
+
&:focus ~ .custom-file-control {
|
36
|
+
border-bottom-color: $color;
|
37
|
+
box-shadow: inset 0 ($textfield-border-width-focus * -1) 0 ($textfield-border-width * -1) $color;
|
38
|
+
}
|
39
|
+
|
40
|
+
~ .custom-file-control {
|
41
|
+
border-color: $color;
|
42
|
+
|
43
|
+
@include hover {
|
44
|
+
border-bottom-color: $color;
|
45
|
+
box-shadow: inset 0 ($textfield-border-width-hover * -1) 0 ($textfield-border-width * -1) $color;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
~ .#{$state}-feedback,
|
50
|
+
~ .#{$state}-tooltip {
|
51
|
+
display: block;
|
52
|
+
}
|
53
|
+
}
|
40
54
|
}
|
41
55
|
|
56
|
+
.custom-select,
|
42
57
|
.form-control {
|
43
|
-
|
58
|
+
.was-validated &:#{$state},
|
59
|
+
&.is-#{$state} {
|
60
|
+
border-color: $color;
|
61
|
+
|
62
|
+
@include focus-hover {
|
63
|
+
border-color: $color;
|
64
|
+
box-shadow: inset 0 ($textfield-border-width-hover * -1) 0 ($textfield-border-width * -1) $color;
|
65
|
+
}
|
66
|
+
|
67
|
+
~ .#{$state}-feedback,
|
68
|
+
~ .#{$state}-tooltip {
|
69
|
+
display: block;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.form-check-input {
|
75
|
+
.was-validated &:#{$state},
|
76
|
+
&.is-#{$state} {
|
77
|
+
+ .form-check-label {
|
78
|
+
color: $color;
|
79
|
+
}
|
80
|
+
}
|
44
81
|
}
|
45
82
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@mixin make-grid-columns() {
|
2
2
|
%grid-column {
|
3
|
+
@include make-gutters;
|
4
|
+
|
3
5
|
min-height: 1px;
|
4
6
|
position: relative;
|
5
7
|
width: 100%;
|
6
|
-
|
7
|
-
@include make-gutters;
|
8
8
|
}
|
9
9
|
|
10
10
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
@@ -16,7 +16,8 @@
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
19
|
-
.col#{$infix}
|
19
|
+
.col#{$infix},
|
20
|
+
.col#{$infix}-auto {
|
20
21
|
@extend %grid-column;
|
21
22
|
}
|
22
23
|
|
@@ -29,6 +30,7 @@
|
|
29
30
|
|
30
31
|
.col#{$infix}-auto {
|
31
32
|
flex: 0 0 auto;
|
33
|
+
max-width: none;
|
32
34
|
width: auto;
|
33
35
|
}
|
34
36
|
|
@@ -38,19 +40,9 @@
|
|
38
40
|
}
|
39
41
|
}
|
40
42
|
|
41
|
-
@
|
42
|
-
|
43
|
-
|
44
|
-
@include make-col-modifier($i, $modifier);
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
@for $i from 0 through ($grid-columns - 1) {
|
50
|
-
@if not ($infix == "" and $i == 0) {
|
51
|
-
.offset#{$infix}-#{$i} {
|
52
|
-
@include make-col-modifier($i, offset);
|
53
|
-
}
|
43
|
+
@for $i from 1 through $grid-columns {
|
44
|
+
.order#{$infix}-#{$i} {
|
45
|
+
order: $i;
|
54
46
|
}
|
55
47
|
}
|
56
48
|
}
|
@@ -1,77 +1,53 @@
|
|
1
|
-
//
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
// Make column
|
2
|
+
|
3
|
+
@mixin make-col($size) {
|
4
|
+
flex: 0 0 percentage($size / $grid-columns);
|
5
|
+
max-width: percentage($size / $grid-columns);
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin make-gutters($type: padding) {
|
9
|
+
@each $breakpoint in map-keys($grid-gutter-widths) {
|
10
|
+
@include media-breakpoint-up($breakpoint) {
|
11
|
+
$gutter: map-get($grid-gutter-widths, $breakpoint);
|
12
|
+
|
13
|
+
@if ($type == margin) {
|
14
|
+
margin-right: ($gutter / -2);
|
15
|
+
margin-left: ($gutter / -2);
|
16
|
+
} @else if ($type == padding) {
|
17
|
+
padding-right: ($gutter / 2);
|
18
|
+
padding-left: ($gutter / 2);
|
19
|
+
}
|
8
20
|
}
|
21
|
+
}
|
22
|
+
}
|
9
23
|
|
10
|
-
// gutter
|
11
|
-
@mixin make-gutters($type: padding) {
|
12
|
-
@each $breakpoint in map-keys($grid-gutter-widths) {
|
13
|
-
@include media-breakpoint-up($breakpoint) {
|
14
|
-
$gutter: map-get($grid-gutter-widths, $breakpoint);
|
15
24
|
|
16
|
-
@if ($type == margin) {
|
17
|
-
margin-right: ($gutter / -2);
|
18
|
-
margin-left: ($gutter / -2);
|
19
|
-
} @else if ($type == padding) {
|
20
|
-
padding-right: ($gutter / 2);
|
21
|
-
padding-left: ($gutter / 2);
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
25
|
|
27
|
-
|
28
|
-
@mixin make-col-modifier($size, $type) {
|
29
|
-
@if ($type == offset) {
|
30
|
-
@include make-col-offset($size);
|
31
|
-
} @else if ($type == pull) {
|
32
|
-
@include make-col-pull($size);
|
33
|
-
} @else if ($type == push ){
|
34
|
-
@include make-col-push($size);
|
35
|
-
}
|
36
|
-
}
|
26
|
+
// Make container
|
37
27
|
|
38
|
-
|
39
|
-
|
40
|
-
|
28
|
+
@mixin make-container() {
|
29
|
+
margin-right: auto;
|
30
|
+
margin-left: auto;
|
31
|
+
width: 100%;
|
41
32
|
|
42
|
-
|
43
|
-
|
44
|
-
}
|
33
|
+
@include make-gutters;
|
34
|
+
}
|
45
35
|
|
46
|
-
|
47
|
-
|
36
|
+
@mixin make-container-max-widths() {
|
37
|
+
@each $breakpoint, $container-max-width in $container-max-widths {
|
38
|
+
@include media-breakpoint-up($breakpoint) {
|
39
|
+
max-width: $container-max-width;
|
48
40
|
}
|
41
|
+
}
|
42
|
+
}
|
49
43
|
|
50
|
-
//
|
51
|
-
// make container
|
52
|
-
//
|
53
|
-
@mixin make-container() {
|
54
|
-
margin-right: auto;
|
55
|
-
margin-left: auto;
|
56
44
|
|
57
|
-
@include make-gutters;
|
58
|
-
}
|
59
45
|
|
60
|
-
|
61
|
-
@each $breakpoint, $container-max-width in $container-max-widths {
|
62
|
-
@include media-breakpoint-up($breakpoint) {
|
63
|
-
max-width: 100%;
|
64
|
-
width: $container-max-width;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
46
|
+
// Make row
|
68
47
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
@mixin make-row() {
|
73
|
-
display: flex;
|
74
|
-
flex-wrap: wrap;
|
48
|
+
@mixin make-row() {
|
49
|
+
display: flex;
|
50
|
+
flex-wrap: wrap;
|
75
51
|
|
76
|
-
|
77
|
-
|
52
|
+
@include make-gutters(margin);
|
53
|
+
}
|