cactu 0.0.14 → 0.0.15

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: 5d6d9b4dceb4d845b935573b36f969b941643c57
4
- data.tar.gz: 718b1273024d42acd63e4191cde8b51bcf6a35c3
3
+ metadata.gz: 6a633d3218d93f2a829f7a40975ac28393c77dc0
4
+ data.tar.gz: e8cb975a4ee059f05c82cc75a84f086cb0e82447
5
5
  SHA512:
6
- metadata.gz: c42fe46549f428cbb543d1c5f8806d993643dc5551a235f929adffef6d293671fec8c7921750717b1f056ac1893e39b2927d7048d558528be949b3d0c88ca0ba
7
- data.tar.gz: 5eeeb2233283ffcceed695ce0dcaebd5e1fa72c2396015f8178f50e4f9dc3d2d8fd03b3aaeda57a269e6fb5de583dc480dd40aa53d9081259aa2441fd2262869
6
+ metadata.gz: 651bda78c05e7190c159be46ca938439e70f67bb347535e825b1e9e408d3b525ab1b4f4ba0c01ac0ca83cd32f99921baac518c5dd08c41801c37e666ce518f84
7
+ data.tar.gz: e011481423409a35fa17dd0898a146d72872e3603a0bb9de884743c49922417fc18d662afb4d11bd413551592dd4c9b87ca79a14dadf6661fa4dc716b074fdb8
@@ -2,6 +2,9 @@
2
2
  // CONFIG/VARIABLES
3
3
  // --------------------------------------------------
4
4
 
5
+ //Grid
6
+ $max-cols: 12;
7
+
5
8
  // Colors
6
9
  $green: #6bb130;
7
10
  $yellow: #e9b70b;
@@ -11,7 +11,7 @@
11
11
  @return ($column * $max_cols) + ($gutter * $max_cols);
12
12
  }
13
13
 
14
- @function fluid_width_column($num, $size, $gutter, $max_cols: 12) {
14
+ @function fluid_width_column($num, $size, $gutter, $max_cols: $max-cols) {
15
15
  $col_width: width_column($num, $size, $gutter);
16
16
  $sizer: grid_size($size, $gutter, $max_cols);
17
17
 
@@ -19,10 +19,7 @@
19
19
  }
20
20
 
21
21
  @function gutter_columns($column, $gutter, $max_cols) {
22
- $gt: $gutter / 2;
23
- $gs: 1200px;
24
-
25
- @return percentage($gt / $gs);
22
+ @return percentage(($gutter / 2) / grid_size($size, $gutter, $max_cols));
26
23
  }
27
24
 
28
25
  @function numbers($number) {
@@ -3,7 +3,7 @@
3
3
  // --------------------------------------------------
4
4
 
5
5
 
6
- @mixin grid_generator($size_col: 0, $gutter: 0, $max_cols: 12) {
6
+ @mixin grid_generator($size_col: 0, $gutter: 0, $max_cols: $max-cols) {
7
7
  @if $size_col == 0 and $gutter == 0 {
8
8
  .row {
9
9
  margin: 0 5%;
@@ -61,7 +61,7 @@
61
61
  }
62
62
  }
63
63
 
64
- @mixin grid_offset($size_col, $gutter, $max_cols: 12) {
64
+ @mixin grid_offset($size_col, $gutter, $max_cols: $max-cols) {
65
65
  @for $i from 1 through $max_cols - 1 {
66
66
  $offset: ($i * $size_col) + ($i * $gutter) + ($gutter / 2);
67
67
  $sizer: grid_size($size_col, $gutter, $max_cols);
@@ -69,7 +69,7 @@
69
69
  }
70
70
  }
71
71
 
72
- @mixin grid_centered($size_col, $gutter, $max_cols: 12) {
72
+ @mixin grid_centered($size_col, $gutter, $max_cols: $max-cols) {
73
73
  @for $i from 1 through $max_cols - 1 {
74
74
  $col_width: width_column($i, $size_col, $gutter);
75
75
  $sizer: grid_size($size_col, $gutter, $max_cols);
data/lib/cactu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cactu
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cactu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Mendoza