better_styles 0.0.0.335 → 0.0.0.336

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTMwMGMyNDdjMmQyZjQxOTdhMzYyNzBiYmMwODdhZDQ0OTViMzQ4Yw==
4
+ YzYzNzAxY2VmMTUwZGM4ZjA3NmFkMmRmNWJkOWQ0ZWIwYzA0MzAwNg==
5
5
  data.tar.gz: !binary |-
6
- NTkyMGQ2ZGM3Y2Y1YmMxMjYyYWRiMzhjZmU3NDMxOGE1ZDYzOGQ3MQ==
6
+ MDNhMTBkNmNkZWU5ZjY2YTIyNGJiZTJmMzI1NTI1ZmI1OTE3NzgwNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTU3M2Y2ZGIzMmIyYmQ1NWQyMTdlM2Y5ZDMwOGZhZDk1MjgwYzIzYjViNDc3
10
- ZWY5NDM4OTgyMTQ5Y2IyMmE4MzFkMjhiMGVhYTY4ZWI4YTIxYTYwZGU1ZmY0
11
- OWYwNzQ2ZTQwYmM3MTJhYjM0MTQwZDJkNTg3NDA0YjAyNjY2YzI=
9
+ YjMxMmQwYTE4MTE5MTQ5ZmZiMTMzMjgxMzZlM2M2OTFjNDAzNTVhOGQ0ZmIw
10
+ NTc3ODc4ODliZjJiNzVkM2E4NjlhMzY3MjNiMTEwNDc5YTgzNDQwMjE5YmVi
11
+ ZjFlZTEwZmUyZDU3NmE0M2YyZDNiNmFlMDk2N2M4MTIyZDkwM2Y=
12
12
  data.tar.gz: !binary |-
13
- MjFhYzEyZTRhNTVjYzA5N2IyZDlmZmJlNTZjZGJkOTA2YjdhMDcyYTcwN2Y5
14
- NzNkNGEyOWVkMmY0YzhiNGJiNjkzZGM4YjZiMzJiMThmM2M3MTM0OWQyZmRi
15
- NmI3YWM5M2U0YWJmZWU2NmM1Y2FlYzI1YzNiMzgyZTY3OGMwNmI=
13
+ ZTY3Y2I1NDY0ZGIwNjFmNzMxZjg4Yjc2NTk4NDBiMDRlYTZlOGUxMDAzZDQ5
14
+ Y2UwOWY5YWU0NWU3ZjVmOTYyNjE5YTYzNzVlNWY5MzY1NTA5NTUzYjZlNGM5
15
+ ZTM4ZDc3NGQ5Mjc3Mjg0YTZlZTk2M2FlYTQ4ZDBjMTQ5Y2I4MzA=
@@ -1,43 +1,46 @@
1
- // before sm
1
+ $responsive-steps: (
2
+ xs: 0,
3
+ sm: 576px,
4
+ md: 768px,
5
+ lg: 992px,
6
+ xl: 1200px,
7
+ xxl: 2000px
8
+ ) !default;
9
+
10
+
2
11
  @mixin responsiveStep-xs {
3
- @include media-breakpoint-up(xs) { @content; }
12
+ @media only screen and (min-width: map-get($responsive-steps, xs)) { @content; }
4
13
  }
5
14
  @mixin responsiveStep-sm {
6
- @include media-breakpoint-up(sm) { @content; }
15
+ @media only screen and (min-width: map-get($responsive-steps, sm)) { @content; }
7
16
  }
8
17
  @mixin responsiveStep-md {
9
- @include media-breakpoint-up(md) { @content; }
18
+ @media only screen and (min-width: map-get($responsive-steps, md)) { @content; }
10
19
  }
11
20
  @mixin responsiveStep-lg {
12
- @include media-breakpoint-up(lg) { @content; }
21
+ @media only screen and (min-width: map-get($responsive-steps, lg)) { @content; }
13
22
  }
14
23
  @mixin responsiveStep-xl {
15
- @media only screen and (min-width: 1600px) {
16
- @content;
17
- }
24
+ @media only screen and (min-width: map-get($responsive-steps, xl)) { @content; }
18
25
  }
19
26
  @mixin responsiveStep-xxl {
20
- @media only screen and (min-width: 2000px) {
21
- @content;
22
- }
27
+ @media only screen and (min-width: map-get($responsive-steps, xxl)) { @content; }
23
28
  }
24
29
 
25
30
 
26
31
 
27
32
  @mixin responsiveStep-xs-only {
28
- @include media-breakpoint-only(xs) { @content; }
33
+ @media only screen and (max-width: map-get($responsive-steps, xs)) { @content; }
29
34
  }
30
35
  @mixin responsiveStep-sm-only {
31
- @include media-breakpoint-only(sm) { @content; }
36
+ @media only screen and (min-width: map-get($responsive-steps, sm)) and (max-width: map-get($responsive-steps, md) - 1) { @content; }
32
37
  }
33
38
  @mixin responsiveStep-md-only {
34
- @include media-breakpoint-only(md) { @content; }
39
+ @media only screen and (min-width: map-get($responsive-steps, md)) and (max-width: map-get($responsive-steps, lg) - 1) { @content; }
35
40
  }
36
41
  @mixin responsiveStep-lg-only {
37
- @include media-breakpoint-only(lg) { @content; }
42
+ @media only screen and (min-width: map-get($responsive-steps, lg)) and (max-width: map-get($responsive-steps, xl) - 1) { @content; }
38
43
  }
39
44
  @mixin responsiveStep-xl-only {
40
- @media only screen and (min-width: 1600px) and (max-width: 1999px) {
41
- @content;
42
- }
45
+ @media only screen and (min-width: map-get($responsive-steps, xl)) and (max-width: map-get($responsive-steps, xxl) - 1) { @content; }
43
46
  }
@@ -1,3 +1,3 @@
1
1
  module BetterStyles
2
- VERSION = '0.0.0.335'
2
+ VERSION = '0.0.0.336'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_styles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.335
4
+ version: 0.0.0.336
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel