boxmodel-rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a90ded08aba90bc8fa13978f64beba039df3b88
4
- data.tar.gz: d3a031a558132a9e35cb6b39b2c762bfa4e157f5
3
+ metadata.gz: a1ab360ba5324a82f8a4f634d63d8ccb536f4a36
4
+ data.tar.gz: 0c7ce044be7f2d73457276f55378d50f38a70719
5
5
  SHA512:
6
- metadata.gz: ca23d28502cf1aafcb5285d641724faa93c4ee5ef112f484d3745c51faf809b48c5f842717700fcd0b4e7dde8b7728144080825690fa8f6d5f2f3ef27fbcf254
7
- data.tar.gz: a26cc0a06f70b6b913c84ffe5dc60f998dc2b51ad105c46dd6a403d5bc3e2b859e2968dc23f4baa2b565fe2ad83ec8301c26a7a40c1ee5be7fab4b409cb54523
6
+ metadata.gz: dc6d3dff385b731f3dfec7d999897dab4e00e790bea820ce50218fda48133f6c3318489e930235e47707e07277777a522ba75c4c579c14d06845bbad4ecd7f8c
7
+ data.tar.gz: bc0bdfb3a181feffd501477df90512e85a54b86dd7369bcf9cf2ee55bd1bc789f097eb7b1133ce67e090a77a075a0fa0c9c64f4f1e8ac81caeac9b50b1500626
data/README.md CHANGED
@@ -25,8 +25,9 @@ Or install it yourself as:
25
25
  In you CSS manifest file add the following line:
26
26
 
27
27
  ```scss
28
- $step: 1;
29
- $maxValue: 5;
28
+ $step: 1;
29
+ $minValue: -10;
30
+ $maxValue: 10;
30
31
  @import 'boxmodel';
31
32
  ```
32
33
 
@@ -44,7 +45,7 @@ The gem creates four types of classes:
44
45
  3. two way classes - e.g. `.m-v-5`, `.p-h-5`
45
46
  4. four way classes - e.g. `m-5`, `p-5`
46
47
 
47
- #### Naming convetions
48
+ #### Naming conventions
48
49
 
49
50
  The naming conventions for this shortcuts are as follows:
50
51
 
@@ -63,6 +64,7 @@ So for example:
63
64
 
64
65
  - `.m-5` - `margin: 5px;`
65
66
  - `.m-b-10` - `margin-bottom: 10px;`
67
+ - `.m-l--7` - `margin-left: -7px;`
66
68
  - `.m-v-10` - `margin-top: 10px; margin-bottom: 10px;`
67
69
 
68
70
  ----
@@ -1,5 +1,5 @@
1
1
  module Boxmodel
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -62,8 +62,9 @@ $maxValue: 40 !default
62
62
  // Four way classes
63
63
  .m-#{$val}
64
64
  margin: $val * 1px !important
65
- .p-#{$val}
66
- padding: $val * 1px !important
65
+ @if $val >= 0
66
+ .p-#{$val}
67
+ padding: $val * 1px !important
67
68
  // One way classes
68
69
  .m-t-#{$val}
69
70
  margin-top: $val * 1px !important
@@ -79,17 +80,18 @@ $maxValue: 40 !default
79
80
  .m-v-#{$val}
80
81
  margin-top: $val * 1px !important
81
82
  margin-bottom: $val * 1px !important
82
- .p-t-#{$val}
83
- padding-top: $val * 1px !important
84
- .p-b-#{$val}
85
- padding-bottom: $val * 1px !important
86
- .p-r-#{$val}
87
- padding-right: $val * 1px !important
88
- .p-l-#{$val}
89
- padding-left: $val * 1px !important
90
- .p-h-#{$val}
91
- padding-left: $val * 1px !important
92
- padding-right: $val * 1px !important
93
- .p-v-#{$val}
94
- padding-top: $val * 1px !important
95
- padding-bottom: $val * 1px !important
83
+ @if $val >= 0
84
+ .p-t-#{$val}
85
+ padding-top: $val * 1px !important
86
+ .p-b-#{$val}
87
+ padding-bottom: $val * 1px !important
88
+ .p-r-#{$val}
89
+ padding-right: $val * 1px !important
90
+ .p-l-#{$val}
91
+ padding-left: $val * 1px !important
92
+ .p-h-#{$val}
93
+ padding-left: $val * 1px !important
94
+ padding-right: $val * 1px !important
95
+ .p-v-#{$val}
96
+ padding-top: $val * 1px !important
97
+ padding-bottom: $val * 1px !important
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxmodel-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Szymon Szeliga