singularity-extras 0.0.1 → 0.0.2
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.
- data/lib/singularity-extras.rb +1 -1
- data/stylesheets/_singularity-extras.scss +2 -1
- data/stylesheets/singularity-extras/_layouts.scss +1 -0
- data/stylesheets/singularity-extras/generators/_compound.scss +1 -1
- data/stylesheets/singularity-extras/generators/_ratio.scss +1 -1
- data/stylesheets/singularity-extras/layouts/_layout.scss +28 -0
- metadata +4 -2
data/lib/singularity-extras.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
@import "layouts/layout";
|
@@ -32,7 +32,7 @@
|
|
32
32
|
// add the counter value to the compound grid list, reset counter
|
33
33
|
// this marks where one column ends and a new one begins
|
34
34
|
@if $add-col {
|
35
|
-
$compound-grid: join($compound-grid, $compound-counter
|
35
|
+
$compound-grid: join($compound-grid, $compound-counter);
|
36
36
|
$compound-counter: 1;
|
37
37
|
}
|
38
38
|
// if no column is added, bump up counter
|
@@ -0,0 +1,28 @@
|
|
1
|
+
//////////////////////////////
|
2
|
+
// Wrapper mixin for overriding the global contexts as a block
|
3
|
+
//////////////////////////////
|
4
|
+
@mixin layout($grid: false, $gutter: false, $output-style: false) {
|
5
|
+
// Private holder for current global context
|
6
|
+
$layout-private-grid-holder: $grids;
|
7
|
+
$layout-private-gutter-holder: $gutters;
|
8
|
+
$layout-private-output-holder: $output;
|
9
|
+
|
10
|
+
// Overides current global contexts, but only if needed
|
11
|
+
@if $grid != false {
|
12
|
+
$grids: $grid;
|
13
|
+
}
|
14
|
+
@if $gutter != false {
|
15
|
+
$gutters: $gutter;
|
16
|
+
}
|
17
|
+
@if $output-style != false {
|
18
|
+
$output: $output-style;
|
19
|
+
}
|
20
|
+
|
21
|
+
// All the things!
|
22
|
+
@content;
|
23
|
+
|
24
|
+
// Resets global contexts
|
25
|
+
$grids: $layout-private-grid-holder;
|
26
|
+
$gutters: $layout-private-gutter-holder;
|
27
|
+
$output: $layout-private-output-holder;
|
28
|
+
}
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Scott Kellum
|
@@ -74,6 +74,7 @@ files:
|
|
74
74
|
- stylesheets/_singularity-extras.scss
|
75
75
|
- stylesheets/singularity-extras/_generators.scss
|
76
76
|
- stylesheets/singularity-extras/_helpers.scss
|
77
|
+
- stylesheets/singularity-extras/_layouts.scss
|
77
78
|
- stylesheets/singularity-extras/_output.scss
|
78
79
|
- stylesheets/singularity-extras/generators/_compound.scss
|
79
80
|
- stylesheets/singularity-extras/generators/_ratio-spiral.scss
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- stylesheets/singularity-extras/helpers/_list-sum.scss
|
82
83
|
- stylesheets/singularity-extras/helpers/_repeat.scss
|
83
84
|
- stylesheets/singularity-extras/helpers/_reverse.scss
|
85
|
+
- stylesheets/singularity-extras/layouts/_layout.scss
|
84
86
|
has_rdoc: true
|
85
87
|
homepage: http://singularity.gs
|
86
88
|
licenses: []
|