grip-grid-rails 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grip-grid-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/_grip.scss +34 -38
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 385352d1b2aada07fc9437646043174eaff6698e
|
4
|
+
data.tar.gz: cfaf4bc5c0f221b0aa5f0635643ec76ba6a87657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9e69497496195b70380d3271b71295a46bb1af621b0428ec83f98ddc6c54360dc24b9dec4001aa6df5c6ea6784029e95d69ccf69453cdd30c509b543858669f
|
7
|
+
data.tar.gz: 095c2c1be9060aa325e0a30f29ce964b272f5f91e114638f01f6107b915ab831c588d62190380ba7cc46ec1328b0f667bbb5450d810c770fc3247cb8257a6b4b
|
@@ -15,9 +15,9 @@
|
|
15
15
|
// 6. responsive breakpoints. Modify as needed.
|
16
16
|
//
|
17
17
|
$grip-namespace: 'grid' !default; // [1]
|
18
|
-
$grip-gutter:
|
18
|
+
$grip-gutter: 16px !default; // [2]
|
19
19
|
|
20
|
-
$grip-width-class-style: '
|
20
|
+
$grip-width-class-style: 'percentage' !default; // [3]
|
21
21
|
$grip-widths: (2, 3, 4) !default; // [4]
|
22
22
|
|
23
23
|
$grip-enable-responsive: true !default; // [5]
|
@@ -31,17 +31,17 @@ $grip-breakpoints: (
|
|
31
31
|
//
|
32
32
|
// Toggleable grid layout modifiers.
|
33
33
|
//
|
34
|
-
$grip-enable-grid-center:
|
35
|
-
$grip-enable-grid-right:
|
36
|
-
$grip-enable-grid-middle:
|
37
|
-
$grip-enable-grid-bottom:
|
38
|
-
$grip-enable-grid-flush:
|
39
|
-
$grip-enable-grid-tiny:
|
40
|
-
$grip-enable-grid-small:
|
41
|
-
$grip-enable-grid-large:
|
42
|
-
$grip-enable-grid-huge:
|
43
|
-
$grip-enable-grid-auto:
|
44
|
-
$grip-enable-grid-
|
34
|
+
$grip-enable-grid-center: false !default;
|
35
|
+
$grip-enable-grid-right: false !default;
|
36
|
+
$grip-enable-grid-middle: false !default;
|
37
|
+
$grip-enable-grid-bottom: false !default;
|
38
|
+
$grip-enable-grid-flush: false !default;
|
39
|
+
$grip-enable-grid-tiny: false !default;
|
40
|
+
$grip-enable-grid-small: false !default;
|
41
|
+
$grip-enable-grid-large: false !default;
|
42
|
+
$grip-enable-grid-huge: false !default;
|
43
|
+
$grip-enable-grid-auto: false !default;
|
44
|
+
$grip-enable-grid-reverse: false !default;
|
45
45
|
|
46
46
|
|
47
47
|
//
|
@@ -49,6 +49,9 @@ $grip-enable-grid-rev: false !default;
|
|
49
49
|
//
|
50
50
|
$grip-enable-grid-cell-center: false !default;
|
51
51
|
|
52
|
+
$grip-enable-grid-cell-content-center: false !default;
|
53
|
+
$grip-enable-grid-cell-content-right: false !default;
|
54
|
+
|
52
55
|
|
53
56
|
|
54
57
|
|
@@ -233,27 +236,27 @@ $grip-enable-grid-cell-center: false !default;
|
|
233
236
|
|
234
237
|
@if ($grip-enable-grid-tiny) {
|
235
238
|
.#{$grip-namespace}--tiny {
|
236
|
-
margin-left:
|
239
|
+
margin-left: round($grip-gutter / 4) * -1;
|
237
240
|
|
238
241
|
> .#{$grip-namespace}__cell {
|
239
|
-
padding-left: ($grip-gutter / 4);
|
242
|
+
padding-left: round($grip-gutter / 4);
|
240
243
|
}
|
241
244
|
}
|
242
245
|
}
|
243
246
|
|
244
247
|
@if ($grip-enable-grid-small) {
|
245
248
|
.#{$grip-namespace}--small {
|
246
|
-
margin-left:
|
249
|
+
margin-left: round($grip-gutter / 2) * -1;
|
247
250
|
|
248
251
|
> .#{$grip-namespace}__cell {
|
249
|
-
padding-left: ($grip-gutter / 2);
|
252
|
+
padding-left: round($grip-gutter / 2);
|
250
253
|
}
|
251
254
|
}
|
252
255
|
}
|
253
256
|
|
254
257
|
@if ($grip-enable-grid-large) {
|
255
258
|
.#{$grip-namespace}--large {
|
256
|
-
margin-left:
|
259
|
+
margin-left: ($grip-gutter * 2) * -1;
|
257
260
|
|
258
261
|
> .#{$grip-namespace}__cell {
|
259
262
|
padding-left: ($grip-gutter * 2);
|
@@ -263,7 +266,7 @@ $grip-enable-grid-cell-center: false !default;
|
|
263
266
|
|
264
267
|
@if ($grip-enable-grid-huge) {
|
265
268
|
.#{$grip-namespace}--huge {
|
266
|
-
margin-left:
|
269
|
+
margin-left: ($grip-gutter * 4) * -1;
|
267
270
|
|
268
271
|
> .#{$grip-namespace}__cell {
|
269
272
|
padding-left: ($grip-gutter * 4);
|
@@ -279,8 +282,8 @@ $grip-enable-grid-cell-center: false !default;
|
|
279
282
|
}
|
280
283
|
}
|
281
284
|
|
282
|
-
@if ($grip-enable-grid-
|
283
|
-
.#{$grip-namespace}--
|
285
|
+
@if ($grip-enable-grid-reverse) {
|
286
|
+
.#{$grip-namespace}--reverse {
|
284
287
|
direction: rtl;
|
285
288
|
|
286
289
|
> .#{$grip-namespace}__cell {
|
@@ -301,23 +304,16 @@ $grip-enable-grid-cell-center: false !default;
|
|
301
304
|
}
|
302
305
|
}
|
303
306
|
|
307
|
+
@if ($grip-enable-grid-cell-content-center) {
|
308
|
+
.#{$grip-namespace}__cell--content-center > * {
|
309
|
+
display: inline-block;
|
310
|
+
text-align: center;
|
311
|
+
}
|
312
|
+
}
|
304
313
|
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
// #GRID-WIDTHS
|
310
|
-
////////////////////////////////////////
|
311
|
-
//
|
312
|
-
// 1. output default width modifiers
|
313
|
-
// 2. if responsive flag is enabled, add responsive width modifiers
|
314
|
-
//
|
315
|
-
@include grip-create-widths($grip-widths); // [1]
|
316
|
-
|
317
|
-
@if $grip-enable-responsive { // [2]
|
318
|
-
@each $alias, $query in $grip-breakpoints {
|
319
|
-
@media #{$query} {
|
320
|
-
@include grip-create-widths($grip-widths, -at-#{$alias});
|
321
|
-
}
|
314
|
+
@if ($grip-enable-grid-cell-content-right) {
|
315
|
+
.#{$grip-namespace}__cell--content-right > * {
|
316
|
+
display: inline-block;
|
317
|
+
text-align: right;
|
322
318
|
}
|
323
319
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grip-grid-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Curt Howard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A build of the Grip CSS grid system, written by written by Curt Howard,
|
14
14
|
packaged for the Rails asset pipeline.
|