material-sass 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/MaterialIcons-Regular.eot +0 -0
  3. data/app/assets/fonts/MaterialIcons-Regular.ttf +0 -0
  4. data/app/assets/fonts/MaterialIcons-Regular.woff +0 -0
  5. data/app/assets/fonts/MaterialIcons-Regular.woff2 +0 -0
  6. data/app/assets/javascripts/init.js +9 -0
  7. data/app/assets/javascripts/material/_.js +1 -5
  8. data/app/assets/javascripts/material/bootstrap.js +2 -2
  9. data/app/assets/javascripts/material/datepicker.js +58 -18
  10. data/app/assets/javascripts/material/dropdown.js +0 -13
  11. data/app/assets/javascripts/material/form-adv.js +2 -2
  12. data/app/assets/javascripts/material/header.js +39 -41
  13. data/app/assets/javascripts/material/menu.js +11 -35
  14. data/app/assets/javascripts/material/wave.js +10 -13
  15. data/app/assets/javascripts/material/webfont.js +33 -36
  16. data/app/assets/javascripts/material-sprockets.js +2 -1
  17. data/app/assets/stylesheets/material/_code.scss +1 -1
  18. data/app/assets/stylesheets/material/_reset.scss +16 -17
  19. data/app/assets/stylesheets/material/_utilities.scss +13 -16
  20. data/app/assets/stylesheets/material/_variable.scss +6 -3
  21. data/app/assets/stylesheets/material/addon/_material-design-icon.scss +6 -6
  22. data/app/assets/stylesheets/material/addon/_waves.scss +11 -17
  23. data/app/assets/stylesheets/material/addon/material-design-icon/_core.scss +18 -15
  24. data/app/assets/stylesheets/material/addon/material-design-icon/_larger.scss +20 -0
  25. data/app/assets/stylesheets/material/addon/material-design-icon/_path.scss +9 -8
  26. data/app/assets/stylesheets/material/addon/material-design-icon/_variables.scss +2 -776
  27. data/app/assets/stylesheets/material/base.scss +3 -0
  28. data/app/assets/stylesheets/material/element/_avatar.scss +2 -2
  29. data/app/assets/stylesheets/material/element/_breadcrumb.scss +2 -2
  30. data/app/assets/stylesheets/material/element/_button-flat.scss +32 -0
  31. data/app/assets/stylesheets/material/element/_button-float.scss +47 -60
  32. data/app/assets/stylesheets/material/element/_button.scss +18 -42
  33. data/app/assets/stylesheets/material/element/_card.scss +7 -19
  34. data/app/assets/stylesheets/material/element/_dropdown.scss +15 -18
  35. data/app/assets/stylesheets/material/element/_form-adv-checkbox.scss +12 -26
  36. data/app/assets/stylesheets/material/element/_form-adv-datepicker.scss +77 -55
  37. data/app/assets/stylesheets/material/element/_form-adv-label.scss +2 -2
  38. data/app/assets/stylesheets/material/element/_form-adv-switch.scss +38 -12
  39. data/app/assets/stylesheets/material/element/_form.scss +7 -7
  40. data/app/assets/stylesheets/material/element/_label.scss +1 -1
  41. data/app/assets/stylesheets/material/element/_modal.scss +22 -19
  42. data/app/assets/stylesheets/material/element/_progress-circular.scss +165 -0
  43. data/app/assets/stylesheets/material/element/_progress-loadbar.scss +103 -0
  44. data/app/assets/stylesheets/material/element/_progress.scss +7 -411
  45. data/app/assets/stylesheets/material/element/_sortable.scss +2 -2
  46. data/app/assets/stylesheets/material/element/_tab.scss +49 -17
  47. data/app/assets/stylesheets/material/element/_tile.scss +11 -13
  48. data/app/assets/stylesheets/material/element/_toast.scss +10 -11
  49. data/app/assets/stylesheets/material/mixin/_css3.scss +0 -45
  50. data/app/assets/stylesheets/material/theme/_content.scss +7 -7
  51. data/app/assets/stylesheets/material/theme/_header.scss +29 -173
  52. data/app/assets/stylesheets/material/theme/_menu.scss +160 -210
  53. data/lib/material-sass/engine.rb +1 -1
  54. data/lib/material-sass/version.rb +1 -1
  55. metadata +12 -9
  56. data/app/assets/fonts/MaterialDesignIcon.eot +0 -0
  57. data/app/assets/fonts/MaterialDesignIcon.svg +0 -773
  58. data/app/assets/fonts/MaterialDesignIcon.ttf +0 -0
  59. data/app/assets/fonts/MaterialDesignIcon.woff +0 -0
  60. data/app/assets/javascripts/material/sortable.js +0 -10
  61. data/app/assets/stylesheets/material/addon/material-design-icon/_icons.scss +0 -773
@@ -1,32 +1,62 @@
1
1
  .picker {
2
2
  position: absolute;
3
3
  z-index: $top-base;
4
- @include user-select(none);
4
+ user-select: none;
5
5
  }
6
6
 
7
7
  .picker__box {
8
8
  background-clip: padding-box;
9
9
  background-color: $white;
10
10
  border-radius: 4px;
11
+ box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
11
12
  outline: 0;
12
13
  overflow: hidden;
14
+ position: relative;
13
15
  vertical-align: middle;
14
- @include box-shadow(0 1px 30px rgba(0, 0, 0, 0.5));
16
+ z-index: 1;
15
17
  @include clearfix();
18
+ // 992
19
+ @include responsive(md) {
20
+ &:before {
21
+ background-color: $brand-color;
22
+ border-radius: 4px 0 0 4px;
23
+ content: "";
24
+ display: block;
25
+ height: 100%;
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ width: (($grid-gutter + $line-height * 2 * 7) / 2);
30
+ z-index: -1;
31
+ }
32
+ }
16
33
  }
17
34
 
18
35
  .picker__date-display {
19
36
  background-color: $brand-color;
20
37
  border-radius: 4px 4px 0 0;
21
38
  color: $white;
39
+ padding: ($line-height / 2) $grid-gutter;
40
+ text-align: left;
22
41
  // 992
23
42
  @include responsive(md) {
24
43
  border-radius: 4px 0 0 0;
25
44
  float: left;
26
- width: 50%;
45
+ width: (($grid-gutter + $line-height * 2 * 7) / 2);
27
46
  }
28
47
  }
29
48
 
49
+ .picker__date-display-bottom {
50
+ font-size: $font-size-h2;
51
+ line-height: $line-height-h2;
52
+ }
53
+
54
+ .picker__date-display-top {
55
+ color: $brand-color-light;
56
+ font-weight: $font-weight-light;
57
+ margin-bottom: ($line-height / 4);
58
+ }
59
+
30
60
  .picker__day {
31
61
  border-radius: 50%;
32
62
  display: inline-block;
@@ -48,15 +78,7 @@
48
78
  }
49
79
 
50
80
  .picker__day-display {
51
- font-size: $font-size-lg;
52
- line-height: $line-height-lg;
53
- padding: 0 $grid-gutter;
54
- // 992
55
- @include responsive(md) {
56
- div {
57
- font-size: 2em;
58
- }
59
- }
81
+ margin-right: ($grid-gutter / 2);
60
82
  }
61
83
 
62
84
  .picker__day--outfocus {
@@ -82,14 +104,13 @@
82
104
  display: inline-block;
83
105
  margin: ($line-height * 2) auto;
84
106
  max-width: ($grid-gutter + $line-height * 1.5 * 7);
107
+ transform: scale(0, 0);
108
+ transition: all 0.3s $timing;
109
+ transition-property: transform;
85
110
  vertical-align: middle;
86
111
  white-space: normal;
87
- @include transform(scale(0, 0));
88
- @include transition(all 0.3s $timing);
89
- -webkit-transition-property: -webkit-transform;
90
- transition-property: transform;
91
112
  .picker--opened & {
92
- @include transform(scale(1, 1));
113
+ transform: scale(1, 1);
93
114
  }
94
115
  // 480
95
116
  @include responsive(xs) {
@@ -97,7 +118,7 @@
97
118
  }
98
119
  // 992
99
120
  @include responsive(md) {
100
- max-width: (($grid-gutter + $line-height * 1.5 * 7) * 2);
121
+ max-width: (($grid-gutter + $line-height * 2 * 7) * 1.5);
101
122
  }
102
123
  }
103
124
 
@@ -110,11 +131,12 @@
110
131
  margin-top: ($line-height / 4);
111
132
  margin-right: 0;
112
133
  margin-left: 0;
113
- width: 50%;
134
+ width: ($grid-gutter + $line-height * 14);
114
135
  }
115
136
  }
116
137
 
117
138
  .picker__holder {
139
+ backface-visibility: hidden;
118
140
  overflow-x: hidden;
119
141
  overflow-y: auto;
120
142
  position: fixed;
@@ -123,12 +145,11 @@
123
145
  bottom: 0;
124
146
  left: 0;
125
147
  text-align: center;
148
+ transition: background-color 0.3s $timing, top 0s linear 0.3s;
126
149
  white-space: nowrap;
127
150
  width: 100%;
128
151
  -webkit-overflow-scrolling: touch;
129
152
  -ms-overflow-style: -ms-autohiding-scrollbar;
130
- @include backface(hidden);
131
- @include transition(background-color 0.3s $timing, top 0s linear 0.3s);
132
153
  &:after {
133
154
  content: "";
134
155
  display: inline-block;
@@ -140,7 +161,7 @@
140
161
  background-color: rgba(0, 0, 0, 0.5);
141
162
  // position
142
163
  top: 0;
143
- @include transition(background-color 0.3s $timing, top 0s linear 0s);
164
+ transition: background-color 0.3s $timing, top 0s linear 0s;
144
165
  }
145
166
  }
146
167
 
@@ -167,41 +188,51 @@
167
188
  }
168
189
  }
169
190
 
170
- .picker__month-display {
171
- font-size: $font-size-h3;
172
- font-weight: 300;
173
- line-height: $line-height-h3;
174
- padding: ($line-height / 2) $grid-gutter 0;
175
- text-transform: uppercase;
176
- // 992
177
- @include responsive(md) {
178
- padding-top: $line-height;
179
- padding-bottom: (($line-height * 1.5 * 6 + $line-height - $line-height-lg) / 2 - $line-height - $line-height-h3);
180
- }
181
- }
182
-
183
191
  .picker__nav--next,
184
192
  .picker__nav--prev {
185
193
  cursor: pointer;
186
194
  line-height: $line-height;
187
195
  margin-top: ($line-height / -2);
188
- padding: 0 $grid-gutter;
189
196
  position: absolute;
190
197
  top: 50%;
198
+ text-align: center;
199
+ width: ($line-height * 1.5);
191
200
  &:focus,
192
201
  &:hover {
193
202
  color: $link-color;
194
203
  }
204
+ // 480
205
+ @include responsive(xs) {
206
+ width: ($line-height * 1.75);
207
+ }
208
+ // 992
209
+ @include responsive(md) {
210
+ width: ($line-height * 2);
211
+ }
195
212
  }
196
213
 
197
214
  .picker__nav--next {
198
215
  // position
199
216
  right: 0;
217
+ &:before {
218
+ content: "keyboard_arrow_right";
219
+ }
220
+ // 992
221
+ @include responsive(md) {
222
+ right: ($grid-gutter / 2);
223
+ }
200
224
  }
201
225
 
202
226
  .picker__nav--prev {
203
227
  // position
204
228
  left: 0;
229
+ &:before {
230
+ content: "keyboard_arrow_left";
231
+ }
232
+ // 992
233
+ @include responsive(md) {
234
+ left: ($grid-gutter / 2);
235
+ }
205
236
  }
206
237
 
207
238
  .picker__select--month,
@@ -235,7 +266,6 @@
235
266
  @include responsive(md) {
236
267
  float: left;
237
268
  margin: 0;
238
- width: 50%;
239
269
  }
240
270
  }
241
271
 
@@ -255,38 +285,30 @@
255
285
  }
256
286
  // 992
257
287
  @include responsive(md) {
258
- width: ($line-height * 1.5);
288
+ width: ($line-height * 2);
259
289
  &:first-child {
260
290
  padding-left: ($grid-gutter / 2);
261
- width: ($grid-gutter / 2 + $line-height * 1.5);
291
+ width: ($grid-gutter / 2 + $line-height * 2);
262
292
  }
263
293
  &:last-child {
264
294
  padding-right: ($grid-gutter / 2);
265
- width: ($grid-gutter / 2 + $line-height * 1.5);
295
+ width: ($grid-gutter / 2 + $line-height * 2);
266
296
  }
267
297
  }
268
298
  }
269
299
 
270
300
  .picker__weekday {
271
301
  color: $black-hint;
272
- font-weight: 300;
302
+ font-weight: $font-weight-light;
273
303
  }
274
304
 
275
305
  .picker__weekday-display {
276
- background-color: $brand-color-dark-m;
277
- border-radius: 4px 4px 0 0;
278
- padding: ($line-height / 4) $grid-gutter;
279
- }
280
-
281
- .picker__year-display {
282
- color: $brand-color-light;
283
- font-size: $font-size-h3;
284
- font-weight: 300;
285
- line-height: $line-height-h3;
286
- padding: 0 $grid-gutter ($line-height / 2);
306
+ margin-right: ($grid-gutter / 2);
307
+ &:after {
308
+ content: ",";
309
+ }
287
310
  // 992
288
311
  @include responsive(md) {
289
- padding-top: (($line-height * 1.5 * 6 + $line-height - $line-height-lg) / 2 - $line-height - $line-height-h3);
290
- padding-bottom: $line-height;
312
+ display: block;
291
313
  }
292
- }
314
+ }
@@ -8,7 +8,7 @@
8
8
  position: absolute;
9
9
  top: (($input-height - $font-size) / 2);
10
10
  left: 0;
11
- @include transition(color 0.3s $timing, font-size 0.3s $timing, top 0.3s $timing);
11
+ transition: color 0.3s $timing, font-size 0.3s $timing, top 0.3s $timing;
12
12
  .form-group-label [class*="col-"] & {
13
13
  // position
14
14
  left: $grid-gutter;
@@ -61,4 +61,4 @@
61
61
  .form-group-icon.form-group-#{$color} .form-icon-label {
62
62
  color: nth($palette-color, $i);
63
63
  }
64
- }
64
+ }
@@ -16,27 +16,27 @@
16
16
  height: $font-size-h6;
17
17
  margin-right: ($grid-gutter / 2);
18
18
  position: relative;
19
+ transition: background-color 0.3s $timing;
19
20
  vertical-align: middle;
20
21
  width: ($font-size-h4 + ($font-size * 5 - $font-size-h4) / 4);
21
- @include transition(background-color 0.3s $timing);
22
22
  &:after {
23
23
  background-color: $white;
24
24
  border-radius: 50%;
25
+ box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25);
25
26
  content: "";
26
27
  display: block;
27
28
  height: $font-size-h4;
28
29
  position: absolute;
29
30
  top:(($font-size-h4 - $font-size-h6) / -2);
30
31
  left: 0;
32
+ transition: background-color 0.3s $timing, box-shadow 0.15s $timing, left 0.3s $timing;
31
33
  width: $font-size-h4;
32
- @include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25));
33
- @include transition(background-color 0.3s $timing, box-shadow 0.15s $timing, left 0.3s $timing);
34
34
  }
35
35
  input[type="checkbox"]:checked + &,
36
36
  input[type="radio"]:checked + & {
37
- background-color: $brand-color-light-m;
37
+ background-color: lighten($link-color, 15%);
38
38
  &:after {
39
- background-color: $brand-color;
39
+ background-color: $link-color;
40
40
  // position
41
41
  left: (($font-size * 5 - $font-size-h4) / 4);
42
42
  }
@@ -49,28 +49,54 @@
49
49
  }
50
50
  .no-touch & {
51
51
  &:active:after {
52
- @include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1));
52
+ box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1);
53
53
  }
54
54
  }
55
55
  .no-touch input[type="checkbox"]:checked + &,
56
56
  .no-touch input[type="radio"]:checked + & {
57
57
  &:active:after {
58
- @include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($brand-color), green($brand-color), blue($brand-color), 0.25));
58
+ box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($link-color), green($link-color), blue($link-color), 0.25);
59
59
  }
60
60
  }
61
61
  .touch & {
62
- @include transition(background-color 0.3s $timing 0.15s);
62
+ transition: background-color 0.3s $timing 0.15s;
63
63
  &:after {
64
- @include transition(background-color 0.3s $timing 0.15s, box-shadow 0.15s $timing, left 0.3s $timing 0.15s);
64
+ transition: background-color 0.3s $timing 0.15s, box-shadow 0.15s $timing, left 0.3s $timing 0.15s;
65
65
  }
66
66
  &.switch-toggle-on:after {
67
- @include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($brand-color), green($brand-color), blue($brand-color), 0.25));
67
+ box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red($link-color), green($link-color), blue($link-color), 0.25);
68
68
  }
69
69
  }
70
70
  .touch input[type="checkbox"]:checked + &,
71
71
  .touch input[type="radio"]:checked + & {
72
72
  &.switch-toggle-on:after {
73
- @include box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1));
73
+ box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(0, 0, 0, 0.1);
74
+ }
75
+ }
76
+ }
77
+
78
+ // colour
79
+ @each $color in $palette-list {
80
+ $i: index($palette-list, $color);
81
+
82
+ .switch-toggle-#{$color} {
83
+ input[type="checkbox"]:checked + &,
84
+ input[type="radio"]:checked + & {
85
+ background-color: nth($palette-color-light-m, $i);
86
+ &:after {
87
+ background-color: nth($palette-color, $i);
88
+ }
89
+ }
90
+ .no-touch input[type="checkbox"]:checked + &,
91
+ .no-touch input[type="radio"]:checked + & {
92
+ &:active:after {
93
+ box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 0.25);
94
+ }
95
+ }
96
+ .touch & {
97
+ &.switch-toggle-on:after {
98
+ box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.25), 0 0 0 (($font-size * 5 - $font-size-h4) / 4) rgba(red(nth($palette-color, $i)), green(nth($palette-color, $i)), blue(nth($palette-color, $i)), 0.25);
99
+ }
100
+ }
74
101
  }
75
102
  }
76
- }
@@ -80,9 +80,9 @@ legend {
80
80
  height: $input-height;
81
81
  line-height: $line-height;
82
82
  padding: (($input-height - $line-height) / 2) 0 (($input-height - $line-height) / 2 - 1);
83
+ transition: border-bottom-color 0.15s $timing;
83
84
  width: 100%;
84
85
  @include placeholder($black-hint);
85
- @include transition(border-bottom-color 0.15s $timing);
86
86
  &:focus {
87
87
  border-color: $link-color;
88
88
  border-bottom-width: 2px;
@@ -106,7 +106,7 @@ legend {
106
106
  .form-control-default & {
107
107
  border: 1px solid $black-hint;
108
108
  padding: (($input-height - $line-height) / 2 - 1) ($grid-gutter / 2);
109
- @include transition(none);
109
+ transition: none;
110
110
  &:focus {
111
111
  border: 1px solid $link-color;
112
112
  padding: (($input-height - $line-height) / 2 - 1) ($grid-gutter / 2);
@@ -122,7 +122,7 @@ legend {
122
122
  // colour
123
123
  @each $color in $palette-list {
124
124
  $i: index($palette-list, $color);
125
-
125
+
126
126
  .form-group-#{$color} {
127
127
  .form-control,
128
128
  .form-control:focus {
@@ -188,7 +188,7 @@ textarea.form-control {
188
188
  border-bottom: 1px solid $black-hint;
189
189
  display: block;
190
190
  font-size: $font-size;
191
- font-weight: 400;
191
+ font-weight: $font-weight;
192
192
  line-height: $line-height;
193
193
  margin-top: 0;
194
194
  margin-bottom: 0;
@@ -218,7 +218,7 @@ textarea.form-control {
218
218
  .form-help {
219
219
  display: block;
220
220
  font-size: $font-size-h6;
221
- font-weight: 400;
221
+ font-weight: $font-weight;
222
222
  margin-top: ($line-height / 2);
223
223
  margin-bottom: ($line-height / 2);
224
224
  position: relative;
@@ -265,7 +265,7 @@ textarea.form-control {
265
265
  // colour
266
266
  @each $color in $palette-list {
267
267
  $i: index($palette-list, $color);
268
-
268
+
269
269
  .form-group-#{$color} .form-label {
270
270
  color: nth($palette-color, $i);
271
271
  }
@@ -273,4 +273,4 @@ textarea.form-control {
273
273
 
274
274
  .label {
275
275
  margin-bottom: ($line-height / 2);
276
- }
276
+ }
@@ -5,7 +5,7 @@
5
5
  display: inline;
6
6
  font-size: 75%;
7
7
  font-style: normal;
8
- font-weight: 400;
8
+ font-weight: $font-weight;
9
9
  line-height: 1;
10
10
  padding: 0.2em 0.6em;
11
11
  vertical-align: baseline;
@@ -1,4 +1,5 @@
1
1
  .modal {
2
+ backface-visibility: hidden;
2
3
  display: none;
3
4
  overflow: hidden;
4
5
  outline: 0;
@@ -10,7 +11,6 @@
10
11
  z-index: $top-base;
11
12
  -webkit-overflow-scrolling: touch;
12
13
  -ms-overflow-style: -ms-autohiding-scrollbar;
13
- @include backface(hidden);
14
14
  .modal-open & {
15
15
  overflow-x: hidden;
16
16
  overflow-y: auto;
@@ -18,18 +18,18 @@
18
18
  }
19
19
 
20
20
  .modal-backdrop {
21
+ backface-visibility: hidden;
21
22
  background-color: $black;
23
+ opacity: 0;
22
24
  position: fixed;
23
25
  top: 0;
24
26
  right: 0;
25
27
  bottom: 0;
26
28
  left: 0;
29
+ transition: opacity 0.3s $timing;
27
30
  z-index: ($top-base - 1);
28
- @include backface(hidden);
29
- @include opacity(0);
30
- @include transition(opacity 0.3s $timing);
31
31
  &.fade.in {
32
- @include opacity(0.5);
32
+ opacity: 0.5;
33
33
  }
34
34
  }
35
35
 
@@ -55,21 +55,17 @@
55
55
  background-color: $white;
56
56
  border: 1px solid transparent;
57
57
  border-radius: 4px;
58
+ box-shadow: 0 1px 30px rgba(0, 0, 0, 0.5);
58
59
  outline: 0;
59
60
  position: relative;
60
- @include box-shadow(0 1px 30px rgba(0, 0, 0, 0.5));
61
- .modal-uploader & {
62
- height: 100%;
63
- }
64
61
  }
65
62
 
66
63
  .modal-dialog {
67
- margin-right: auto;
68
- margin-left: auto;
69
- padding: ($line-height * 2) $grid-gutter;
64
+ margin: ($line-height * 2) $grid-gutter;
70
65
  position: relative;
71
66
  &.modal-full {
72
67
  height: 100%;
68
+ height: calc(100% - #{$line-height * 4});
73
69
  .modal-content {
74
70
  height: 100%;
75
71
  overflow-x: hidden;
@@ -79,22 +75,25 @@
79
75
  }
80
76
  }
81
77
  .modal.fade & {
82
- @include transform(scale(0, 0));
83
- @include transition(all 0.3s $timing);
84
- -webkit-transition-property: -webkit-transform;
85
- transition-property: transform;
78
+ transform: scale(0, 0);
79
+ transition: all 0.3s $timing;
80
+ transition-property: transform;
86
81
  }
87
82
  .modal.fade.in & {
88
- @include transform(scale(1, 1));
83
+ transform: scale(1, 1);
89
84
  }
90
85
  // 480
91
86
  @include responsive(xs) {
92
87
  &.modal-xs {
93
- width: $screen-xs;
88
+ margin-right: auto;
89
+ margin-left: auto;
90
+ width: ($screen-xs - $grid-gutter * 2);
94
91
  }
95
92
  }
96
93
  // 992
97
94
  @include responsive(md) {
95
+ margin-right: auto;
96
+ margin-left: auto;
98
97
  width: ($screen-md - $grid-gutter * 2);
99
98
  }
100
99
  // 1440
@@ -107,6 +106,10 @@
107
106
  padding-right: ($grid-gutter * 2);
108
107
  padding-left: ($grid-gutter * 2);
109
108
  .btn + .btn {
109
+ margin-right: $grid-gutter;
110
+ }
111
+ .text-right .btn + .btn {
112
+ margin-right: auto;
110
113
  margin-left: $grid-gutter;
111
114
  }
112
115
  }
@@ -133,4 +136,4 @@
133
136
  margin-top: 0;
134
137
  margin-right: ($grid-gutter + 12);
135
138
  margin-bottom: $line-height;
136
- }
139
+ }