singularitygs 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/singularitygs.rb +1 -1
- data/stylesheets/{singularity.sass → singularitygs.sass} +11 -9
- data/stylesheets/singularitygs/_background-grid.sass +19 -0
- data/stylesheets/{singularity → singularitygs}/_column.sass +0 -0
- data/stylesheets/{singularity → singularitygs}/_compound.sass +0 -0
- data/stylesheets/{singularity → singularitygs}/_grid-test.sass +0 -0
- data/stylesheets/{singularity → singularitygs}/_grid.sass +0 -1
- data/stylesheets/{singularity → singularitygs}/_gutter.sass +0 -0
- data/stylesheets/{singularity → singularitygs}/_helpers.sass +5 -3
- data/stylesheets/{singularity → singularitygs}/_mixins.sass +1 -1
- metadata +12 -11
data/lib/singularitygs.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
/*! SINGULARITY -- http://singularity.gs/ */
|
2
|
-
@import
|
3
|
-
|
2
|
+
@import modular-scale
|
4
3
|
|
5
4
|
// Can be a number or a list of non-uniform column widths
|
6
5
|
$columns: 12 !default
|
@@ -12,22 +11,25 @@ $gutter: 2% !default
|
|
12
11
|
$padding: 0 !default
|
13
12
|
|
14
13
|
// Helpers return think like list sums and column counts
|
15
|
-
@import
|
14
|
+
@import singularitygs/helpers
|
16
15
|
|
17
16
|
// Compound grid calculation function
|
18
|
-
@import
|
17
|
+
@import singularitygs/compound
|
19
18
|
|
20
19
|
// Column math is isolated
|
21
|
-
@import
|
20
|
+
@import singularitygs/column
|
22
21
|
|
23
22
|
// Gutter math is isolated
|
24
|
-
@import
|
23
|
+
@import singularitygs/gutter
|
25
24
|
|
26
25
|
// Grid math combines column and gutter math
|
27
|
-
@import
|
26
|
+
@import singularitygs/grid
|
27
|
+
|
28
|
+
// Mixins to write
|
29
|
+
@import singularitygs/mixins
|
28
30
|
|
29
31
|
// Mixins to write
|
30
|
-
@import
|
32
|
+
@import singularitygs/grid-test
|
31
33
|
|
32
34
|
// Mixins to write
|
33
|
-
@import
|
35
|
+
@import singularitygs/background-grid
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// Write stops for single columns
|
2
|
+
@function grid-gradient-stop($location, $columns, $gutter, $color)
|
3
|
+
@if $location == 1
|
4
|
+
@return ($color 0%, $color grid-span(1, 1, $columns, $gutter), transparentize($color, 1) grid-span(1, 1, $columns, $gutter))
|
5
|
+
@if $location == column-count($columns)
|
6
|
+
@return (transparentize($color, 1) grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color 100%)
|
7
|
+
@if $location > 1
|
8
|
+
@return (transparentize($color, 1) grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color grid-span($location - 1, 1, $columns, $gutter) + $gutter, $color grid-span($location, 1, $columns, $gutter), transparentize($color, 1) grid-span($location, 1, $columns, $gutter))
|
9
|
+
|
10
|
+
// Compiling grid stops
|
11
|
+
@function grid-gradient-stops($columns, $gutter, $color)
|
12
|
+
$list: ()
|
13
|
+
@for $i from 1 through column-count($columns)
|
14
|
+
$list: join($list, grid-gradient-stop($i, $columns, $gutter, $color), comma)
|
15
|
+
@return $list
|
16
|
+
|
17
|
+
// Pull in grid stops to make a background gradient
|
18
|
+
=background-grid($columns, $gutter, $color: rgba(#69AEDB, .5))
|
19
|
+
+background(linear-gradient(left, grid-gradient-stops($columns, $gutter, $color)))
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -20,6 +20,8 @@
|
|
20
20
|
@function gutter-context($gutter, $context)
|
21
21
|
@return $gutter * (100% / $context)
|
22
22
|
|
23
|
-
|
24
|
-
|
25
|
-
|
23
|
+
@function repeat($count, $repeat)
|
24
|
+
$list: $repeat
|
25
|
+
@for $i from 2 through $count
|
26
|
+
$list: join($repeat, $list)
|
27
|
+
@return $list
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: singularitygs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Kellum
|
@@ -61,14 +61,15 @@ extra_rdoc_files: []
|
|
61
61
|
|
62
62
|
files:
|
63
63
|
- lib/singularitygs.rb
|
64
|
-
- stylesheets/
|
65
|
-
- stylesheets/
|
66
|
-
- stylesheets/
|
67
|
-
- stylesheets/
|
68
|
-
- stylesheets/
|
69
|
-
- stylesheets/
|
70
|
-
- stylesheets/
|
71
|
-
- stylesheets/
|
64
|
+
- stylesheets/singularitygs.sass
|
65
|
+
- stylesheets/singularitygs/_background-grid.sass
|
66
|
+
- stylesheets/singularitygs/_column.sass
|
67
|
+
- stylesheets/singularitygs/_compound.sass
|
68
|
+
- stylesheets/singularitygs/_grid-test.sass
|
69
|
+
- stylesheets/singularitygs/_grid.sass
|
70
|
+
- stylesheets/singularitygs/_gutter.sass
|
71
|
+
- stylesheets/singularitygs/_helpers.sass
|
72
|
+
- stylesheets/singularitygs/_mixins.sass
|
72
73
|
has_rdoc: true
|
73
74
|
homepage: http://singularity.gs
|
74
75
|
licenses: []
|