gridle 2.0.4 → 2.0.41

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: dcfa079cf092ca80ec0dc421cbac37026f7c0f37
4
- data.tar.gz: 2ae78f265100dc35593a744bc4588bc96d7d79f2
3
+ metadata.gz: 22c8c6dcfe87502ba4d3092de15ff6ad14b71823
4
+ data.tar.gz: 8b7c785bf1a190e07ca92123aff3b1bb74daad9e
5
5
  SHA512:
6
- metadata.gz: 901acf0fca837f2a181002f21374a345eb7b8f1e80673ed1c6cec632a6147329c43fe6fb6da202b0c0d6a60a91df47733f0e9ef3b491748c5ea7d98006d8996d
7
- data.tar.gz: cb01d68152a8ad7242610aebe74f6ab6f2eb4334869cd2b08d2f39219c550d5b5813797359cd2b85d225103bb85861e6951c660dd28718f4a05762a4554142bb
6
+ metadata.gz: 09ae04c2d4914541b107f25a47f0e357b0156d154f5de857d31836a8495ce0364bebced47cae42f1fd14c6fa92af30716542fe99a4d81734ad00098a9c28cbaf
7
+ data.tar.gz: 75e9f39a47152e52050fcfdf8264a125da199fdfadd362a8534d23c70fb2ae7dd408c86814b0d88ed6495e2a400d9a9f0f820b0f1f3ee8086427282d5f0cbdf5
data/lib/gridle.rb CHANGED
@@ -17,8 +17,8 @@ Compass::Frameworks.register('gridle', :path => extension_path)
17
17
  # a prerelease version
18
18
  # Date is in the form of YYYY-MM-DD
19
19
  module Extension
20
- VERSION = "2.0.4"
21
- DATE = "2015-10-21"
20
+ VERSION = "2.0.41"
21
+ DATE = "2015-10-29"
22
22
  end
23
23
 
24
24
  # This is where any custom SassScript should be placed. The functions will be
@@ -26,7 +26,7 @@
26
26
  padding-right: 0 !important;
27
27
  margin-left: -#{gridle_get_state_var(gutter-left)};
28
28
  margin-right: -#{gridle_get_state_var(gutter-right)};
29
- font-size:0; // to avoid problems with inline-block margins
29
+ // font-size:0; // to avoid problems with inline-block margins
30
30
 
31
31
  // do this only when not in generate phase
32
32
  // mean that we use the mixin directly
@@ -59,7 +59,7 @@
59
59
  padding-right: 0 !important;
60
60
  margin-left: -#{gridle_get_state_var(gutter-left)};
61
61
  margin-right: -#{gridle_get_state_var(gutter-right)};
62
- font-size:0; // to avoid problems with inline-block margins
62
+ // font-size:0; // to avoid problems with inline-block margins
63
63
 
64
64
  // do this only when not in generate phase
65
65
  // mean that we use the mixin directly
@@ -116,27 +116,34 @@
116
116
  $state : default
117
117
  ) {
118
118
  // vars
119
- // $direction : gridle_get_state_var(direction, $state);
119
+ $direction : gridle_get_state_var(direction, $state);
120
120
 
121
121
  // css
122
122
  display:inline-block;
123
123
  min-height:1px;
124
- // @if $direction == rtl {
125
- // float:right;
126
- // // direction:rtl;
127
- // } @else {
128
- // float:left;
129
- // // direction:ltr;
130
- // }
131
- // float:left;
124
+ @if $direction == rtl {
125
+ float:right;
126
+ } @else {
127
+ float:left;
128
+ }
132
129
  @if $gridle-vendor-prefix {
133
130
  -webkit-box-sizing: border-box;
134
131
  -moz-box-sizing: border-box;
135
132
  }
136
- font-size:1rem; // reset the font size
133
+ // font-size:1rem; // reset the font size
137
134
  box-sizing: border-box;
138
135
  vertical-align: top;
139
136
  @include gridle_gutter();
137
+
138
+ // handle direction attribute
139
+ @if gridle_get_state_var(dir-attribute, $state) {
140
+ [dir="rtl"] & {
141
+ float: right;
142
+ }
143
+ [dir="ltr"] & {
144
+ float: left;
145
+ }
146
+ }
140
147
 
141
148
  }
142
149
  @mixin gridle_grid(
@@ -1,9 +1,9 @@
1
1
  // |------------------------------------------------------
2
2
  // |------------------------------------------------------
3
3
  // @created 25.03.13
4
- // @updated 20.10.15
4
+ // @updated 29.10.15
5
5
  // @author Olivier Bossel <olivier.bossel@gmail.com>
6
- // @version 2.0.4
6
+ // @version 2.0.41
7
7
  // |------------------------------------------------------
8
8
  // |------------------------------------------------------
9
9
 
@@ -16,7 +16,7 @@
16
16
  // |------------------------------------------------------
17
17
  // |------------------------------------------------------
18
18
 
19
- $_gridle-version : "2.0.4";
19
+ $_gridle-version : "2.0.41";
20
20
 
21
21
 
22
22
 
@@ -108,7 +108,8 @@
108
108
  $state : gridle_get_state($state);
109
109
 
110
110
  // container
111
- @if $package == container {
111
+ @if $package == container {
112
+
112
113
  @include _gridle_common_container($state);
113
114
  }
114
115
 
@@ -289,11 +290,11 @@
289
290
  // if is an existing gridle state
290
291
  @if gridle_has_state($stateName) {
291
292
  // extend the "at-root" version for the .state-{stateName} classes
292
- @if $states-classes and str-index(#{&}, unquote(".state-#{$_gridle_current_stateName}")) {
293
- @at-root (without: media) {
293
+ @if $states-classes and str-index(#{&}, unquote('.state-#{$_gridle_current_stateName}')) {
294
+ // @at-root (without: media) { // seems not needed here, cause issues with libsass
294
295
  // @debug("%at-root-#{$_gridle_current_stateName}-#{$package}");
295
296
  @extend %at-root-#{$_gridle_current_stateName}-#{$package} !optional;
296
- }
297
+ // }
297
298
  } @else {
298
299
  // extend using the current state name set in each gridle_state call
299
300
  // @debug("%#{$_gridle_current_stateName}-#{$package}");
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Bossel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass