singularitygs 1.7.1 → 1.8.0

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: 2c13925734a691be21c44a3c8924392f5e501108
4
- data.tar.gz: 7bcb24054bc50934c442404641c5a3d72e024968
3
+ metadata.gz: 32900e9747039e5e2fca5da66fcd6d4375302ada
4
+ data.tar.gz: 532df1e717e2bf95f17e327db75eb5da2c965c84
5
5
  SHA512:
6
- metadata.gz: babfb40149299e02494404f3caea1e2b127179a56c31c6693a231fa3d4ab9e7f4bd120634395c584434bff033c2288208a284cc054e1b9445ef9abc555d36bb5
7
- data.tar.gz: 0b8e341cf455385a2bef6218411d2557ea42580e9ea52c22468add36e859d347964ae4ae640fca110d1c106a99181fbfa62c5145a9b1a4a9b558d4fd4eaa0471
6
+ metadata.gz: 7de953ab1247699622747a12ab20a75f579fe04b70ba64621faff299f9004056c292563c65ef3fe7894000e876c71a86406ca3ba168bdf9f16977749c1f9d7cb
7
+ data.tar.gz: de8b80ad8abf4a73d1197b9dffc7f1162036492f11b988c5019b1cb15b85711cb9b2705d62bc5c2b89e1f71ddea247465cdd808d6d8a0d1daf6183a8553988df
@@ -12,6 +12,6 @@ else
12
12
  end
13
13
 
14
14
  module SingularityGS
15
- VERSION = "1.7.1"
16
- DATE = "2016-12-07"
15
+ VERSION = "1.8.0"
16
+ DATE = "2017-04-23"
17
17
  end
@@ -0,0 +1,141 @@
1
+ @import 'breakpoint';
2
+
3
+ @function _css-gridtemplate-conversion($grid) {
4
+ @if type-of($grid) == 'number' or length($grid) == 1 {
5
+ @return unquote('repeat(#{$grid}, 1fr)');
6
+ }
7
+ @else if type-of($grid) == 'list' or length($grid) > 1 {
8
+ $holder: '';
9
+ @each $column in $grid {
10
+ @if unitless($column) {
11
+ $holder: $holder + '#{$column}fr ';
12
+ }
13
+ @else {
14
+ $holder: $holder + $column + ' ';
15
+ }
16
+ }
17
+
18
+ $holder: str-slice($holder, 0, str-length($holder) - 1);
19
+
20
+ @return unquote($holder);
21
+ }
22
+
23
+ @return $grid;
24
+ }
25
+
26
+ @function _css-grid-gap-conversion($gutter) {
27
+ @if unitless(nth($gutter, 1)) {
28
+ @return unquote('#{$gutter}fr');
29
+ }
30
+
31
+ @return $gutter;
32
+ }
33
+
34
+ @mixin _css-grid-container-padding-conversation($style) {
35
+ @if length($style) == 1 {
36
+ $style: nth($style, 1);
37
+ }
38
+
39
+ @if str-index($style, 'split') != null {
40
+ $gutter: find-gutter() / 2;
41
+ $padding: _css-grid-gap-conversion($gutter);
42
+
43
+ padding: {
44
+ left: $padding;
45
+ right: $padding;
46
+ }
47
+ }
48
+ @else {
49
+ padding: {
50
+ left: 0;
51
+ right: 0;
52
+ }
53
+ }
54
+ }
55
+
56
+ @mixin grid-container() {
57
+ $grids: sgs-get('grids');
58
+ $gutters: sgs-get('gutters');
59
+ $gutter-styles: sgs-get('gutter styles');
60
+
61
+ @supports (display: grid) {
62
+ display: grid;
63
+
64
+ // Build Column Templates
65
+ @each $mq, $grid in $grids {
66
+ @if $mq == -1px {
67
+ grid-template-columns: _css-gridtemplate-conversion($grid);
68
+ }
69
+ @else {
70
+ @include mq($mq) {
71
+ grid-template-columns: _css-gridtemplate-conversion($grid);
72
+ }
73
+ }
74
+ }
75
+
76
+ // Build Gaps
77
+ @each $mq, $gutter in $gutters {
78
+ @if $mq == -1px {
79
+ grid-gap: _css-grid-gap-conversion($gutter);
80
+ }
81
+ @else {
82
+ @include mq($mq) {
83
+ grid-gap: _css-grid-gap-conversion($gutter);
84
+ }
85
+ }
86
+ }
87
+
88
+ // Build Padding
89
+ @each $mq, $style in $gutter-styles {
90
+ @if $mq == -1px {
91
+ @include _css-grid-container-padding-conversation($style);
92
+ }
93
+ @else {
94
+ @include mq($mq) {
95
+ @include _css-grid-container-padding-conversation($style);
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ @mixin css-grid-span($Span, $Location: false) {
103
+ $grid: find-grid();
104
+
105
+ @if type-of($grid) == 'number' or length($grid) == 1 {
106
+ // If we have a symmetric grid _and_ no location, Float Span makes most sense
107
+ @if $Location == false {
108
+ @include float-span($Span, $Location);
109
+ }
110
+ // If we have an symmetric grid _and_ a location, Isolation Span makes most sense
111
+ @else {
112
+ @include isolation-span($Span, $Location);
113
+ }
114
+ }
115
+ @else if type-of($grid) == 'list' or length($grid) > 1 {
116
+ $calc: false;
117
+ @each $column in $grid {
118
+ @if not unitless($column) {
119
+ $calc: true;
120
+ }
121
+ }
122
+
123
+ // If we have an asymmetric grid _and_ it includes united numbers, needs to be Calc
124
+ @if ($calc) {
125
+ @include calc-span($Span, $Location);
126
+ }
127
+ // If we have an asymmetric grid _and_ it doesn't include united numbers, Islotion's better
128
+ @else {
129
+ @include isolation-span($Span, $Location);
130
+ }
131
+ }
132
+
133
+ @supports (display: grid) {
134
+ @if $Location {
135
+ grid-columns: $Location / span $Span;
136
+ }
137
+ @else {
138
+ grid-columns: span $Span;
139
+ }
140
+ }
141
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singularitygs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Kellum
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-07 00:00:00.000000000 Z
12
+ date: 2017-04-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -50,6 +50,7 @@ files:
50
50
  - lib/singularitygs.rb
51
51
  - stylesheets/_singularitygs.scss
52
52
  - stylesheets/singularitygs/_api.scss
53
+ - stylesheets/singularitygs/_css-grid.scss
53
54
  - stylesheets/singularitygs/_grids.scss
54
55
  - stylesheets/singularitygs/_gutter-styles.scss
55
56
  - stylesheets/singularitygs/_gutters.scss
@@ -84,11 +85,9 @@ files:
84
85
  - stylesheets/singularitygs/math/_context.scss
85
86
  - stylesheets/singularitygs/math/_grid.scss
86
87
  - stylesheets/singularitygs/math/_gutters.scss
87
- - stylesheets/singularitygs/npm-debug.log
88
88
  homepage: http://singularity.gs
89
89
  licenses:
90
90
  - MIT
91
- - GPL-3.0
92
91
  metadata: {}
93
92
  post_install_message:
94
93
  rdoc_options: []
@@ -1,32 +0,0 @@
1
- 0 info it worked if it ends with ok
2
- 1 verbose cli [ '/Users/samrichard/.nvm/versions/node/v4.2.4/bin/node',
3
- 1 verbose cli '/Users/samrichard/.nvm/versions/node/v4.2.4/bin/npm',
4
- 1 verbose cli 'publish' ]
5
- 2 info using npm@2.14.12
6
- 3 info using node@v4.2.4
7
- 4 verbose publish [ '.' ]
8
- 5 silly cache add args [ '.', null ]
9
- 6 verbose cache add spec .
10
- 7 silly cache add parsed spec Result {
11
- 7 silly cache add raw: '.',
12
- 7 silly cache add scope: null,
13
- 7 silly cache add name: null,
14
- 7 silly cache add rawSpec: '.',
15
- 7 silly cache add spec: '/Users/samrichard/Development/Singularity/stylesheets/singularitygs',
16
- 7 silly cache add type: 'local' }
17
- 8 error addLocal Could not install /Users/samrichard/Development/Singularity/stylesheets/singularitygs
18
- 9 verbose stack Error: EISDIR: illegal operation on a directory, read
19
- 9 verbose stack at Error (native)
20
- 10 verbose cwd /Users/samrichard/Development/Singularity/stylesheets/singularitygs
21
- 11 error Darwin 15.3.0
22
- 12 error argv "/Users/samrichard/.nvm/versions/node/v4.2.4/bin/node" "/Users/samrichard/.nvm/versions/node/v4.2.4/bin/npm" "publish"
23
- 13 error node v4.2.4
24
- 14 error npm v2.14.12
25
- 15 error code EISDIR
26
- 16 error errno -21
27
- 17 error syscall read
28
- 18 error eisdir EISDIR: illegal operation on a directory, read
29
- 18 error eisdir This is most likely not a problem with npm itself
30
- 18 error eisdir and is related to npm not being able to find a package.json in
31
- 18 error eisdir a package you are trying to install.
32
- 19 verbose exit [ -21, true ]