flexbox_sass_rails 0.2.3 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bac61c948bc66815f6c4e1e3ba3b39da05d56e6
|
4
|
+
data.tar.gz: 69fd41028f4da5274fecd39e7dedcfa6fe6616d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5003c63ba87ea3c75caee7974dc19ec00372cf2d6b43e84ad1e5857f10cb12b38b7afe9c55de1b1d93895bc2680638cc62ab93fbe0b533c5fe1eea0544040f26
|
7
|
+
data.tar.gz: c4aa7de7b0efae656a499546dda7e90b14e43b95df166dfec2712bbc7c2538bc7ec2c58f67af2ffe48eb323e78f7ddafa80265560507c6948a4df40afa18bb5e
|
@@ -7,3 +7,8 @@ $fb-layout-sm: 600px !default;
|
|
7
7
|
$fb-layout-md: 960px !default;
|
8
8
|
$fb-layout-lg: 1280px !default;
|
9
9
|
$fb-layout-xl: 1920px !default;
|
10
|
+
|
11
|
+
$fb-layout-xs-max: $fb-layout-sm - 1 !default;
|
12
|
+
$fb-layout-sm-max: $fb-layout-md - 1 !default;
|
13
|
+
$fb-layout-md-max: $fb-layout-lg - 1 !default;
|
14
|
+
$fb-layout-lg-max: $fb-layout-xl - 1 !default;
|
@@ -41,6 +41,9 @@
|
|
41
41
|
@mixin fb-layout-wrap {
|
42
42
|
flex-wrap: wrap;
|
43
43
|
}
|
44
|
+
@mixin fb-layout-no-wrap {
|
45
|
+
flex-wrap: nowrap;
|
46
|
+
}
|
44
47
|
|
45
48
|
// Flex
|
46
49
|
|
@@ -140,10 +143,16 @@
|
|
140
143
|
order: $amount;
|
141
144
|
}
|
142
145
|
|
146
|
+
// Hide
|
147
|
+
|
148
|
+
@mixin fb-hide {
|
149
|
+
display: none;
|
150
|
+
}
|
151
|
+
|
143
152
|
// Responsivity mixin
|
144
153
|
// ==========================================================================
|
145
154
|
|
146
|
-
@mixin fb-responsivity
|
155
|
+
@mixin fb-responsivity($size: null){
|
147
156
|
|
148
157
|
// Add size
|
149
158
|
|
@@ -178,6 +187,10 @@
|
|
178
187
|
@include fb-layout-wrap;
|
179
188
|
}
|
180
189
|
|
190
|
+
.fb-layout#{$output}-no-wrap{
|
191
|
+
@include fb-layout-no-wrap;
|
192
|
+
}
|
193
|
+
|
181
194
|
// Flex
|
182
195
|
|
183
196
|
// Placeholders
|
@@ -399,6 +412,14 @@
|
|
399
412
|
}
|
400
413
|
}
|
401
414
|
|
415
|
+
// Hide
|
416
|
+
|
417
|
+
// Output
|
418
|
+
|
419
|
+
.fb-hide#{$output} {
|
420
|
+
@include fb-hide;
|
421
|
+
}
|
422
|
+
|
402
423
|
}
|
403
424
|
|
404
425
|
// Styles output
|
@@ -408,24 +429,48 @@
|
|
408
429
|
@include fb-layout-fill;
|
409
430
|
}
|
410
431
|
|
411
|
-
@include fb-responsivity
|
432
|
+
@include fb-responsivity();
|
433
|
+
|
434
|
+
@media (max-width: $fb-layout-lg-max) {
|
435
|
+
@include fb-responsivity(lt-xl);
|
436
|
+
}
|
437
|
+
|
438
|
+
@media (max-width: $fb-layout-md-max) {
|
439
|
+
@include fb-responsivity(lt-lg);
|
440
|
+
}
|
441
|
+
|
442
|
+
@media (max-width: $fb-layout-sm-max) {
|
443
|
+
@include fb-responsivity(lt-md);
|
444
|
+
}
|
445
|
+
|
446
|
+
@media (min-width: $fb-layout-sm) {
|
447
|
+
@include fb-responsivity(gt-xs);
|
448
|
+
}
|
449
|
+
|
450
|
+
@media (min-width: $fb-layout-md) {
|
451
|
+
@include fb-responsivity(gt-sm);
|
452
|
+
}
|
453
|
+
|
454
|
+
@media (min-width: $fb-layout-lg) {
|
455
|
+
@include fb-responsivity(gt-md);
|
456
|
+
}
|
412
457
|
|
413
458
|
@media (min-width: $fb-layout-xl) {
|
414
|
-
@include fb-responsivity
|
459
|
+
@include fb-responsivity(xl);
|
415
460
|
}
|
416
461
|
|
417
|
-
@media (min-width: $fb-layout-lg) and (max-width: ($fb-layout-
|
418
|
-
@include fb-responsivity
|
462
|
+
@media (min-width: $fb-layout-lg) and (max-width: ($fb-layout-lg-max)) {
|
463
|
+
@include fb-responsivity(lg);
|
419
464
|
}
|
420
465
|
|
421
|
-
@media (min-width: $fb-layout-md) and (max-width: ($fb-layout-
|
422
|
-
@include fb-responsivity
|
466
|
+
@media (min-width: $fb-layout-md) and (max-width: ($fb-layout-md-max)) {
|
467
|
+
@include fb-responsivity(md);
|
423
468
|
}
|
424
469
|
|
425
|
-
@media (min-width: $fb-layout-sm) and (max-width: ($fb-layout-
|
426
|
-
@include fb-responsivity
|
470
|
+
@media (min-width: $fb-layout-sm) and (max-width: ($fb-layout-sm-max)) {
|
471
|
+
@include fb-responsivity(sm);
|
427
472
|
}
|
428
473
|
|
429
|
-
@media (max-width: ($fb-layout-
|
430
|
-
@include fb-responsivity
|
474
|
+
@media (max-width: ($fb-layout-xs-max)) {
|
475
|
+
@include fb-responsivity(xs);
|
431
476
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexbox_sass_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Cerny
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|