tartan-grid 0.0.6 → 0.0.7
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 +4 -4
- data/app/assets/stylesheets/_functions.scss +9 -9
- data/app/assets/stylesheets/_grid.scss +9 -9
- data/lib/tartan/version.rb +1 -1
- 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: 696d37c06bd03f8059c0fd5ffdf10a244167da26
|
4
|
+
data.tar.gz: a3e9359dfa9330ed30877658a5efc1387357af57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3453ce6030608b92ba67b8a5a41203775af56a764694d046151e3b582ed15b0142c46e0462d27d667b2469eb591f7dd022d3c766774d0f0d104a4ac49b8c8c32
|
7
|
+
data.tar.gz: 3c794ffc5d2924d4a670e5eb266f96e24d6ed3e5fbaa83448df32a5b7e6ffb2f4f59ffa7d907c35e496984d3e7095a5c07028b9a56d5bd54205876fd20117b84
|
@@ -1,19 +1,19 @@
|
|
1
|
-
@function columns-width($columns) {
|
1
|
+
@function tartan-columns-width($columns) {
|
2
2
|
@return ($columns * $tartan-column-width) + ($columns - 1) * $tartan-gutter-width;
|
3
3
|
}
|
4
4
|
|
5
|
-
@function columns($columns, $context: $tartan-column-count) {
|
6
|
-
@return relative-width(columns-width($columns), $context)
|
5
|
+
@function tartan-columns($columns, $context: $tartan-column-count) {
|
6
|
+
@return tartan-relative-width(tartan-columns-width($columns), $context)
|
7
7
|
}
|
8
8
|
|
9
|
-
@function gutter($context: $tartan-column-count) {
|
10
|
-
@return relative-width($tartan-gutter-width, $context);
|
9
|
+
@function tartan-gutter($context: $tartan-column-count) {
|
10
|
+
@return tartan-relative-width($tartan-gutter-width, $context);
|
11
11
|
}
|
12
12
|
|
13
|
-
@function container-outer-width() {
|
14
|
-
@return columns-width($tartan-column-count);
|
13
|
+
@function tartan-container-outer-width() {
|
14
|
+
@return tartan-columns-width($tartan-column-count);
|
15
15
|
}
|
16
16
|
|
17
|
-
@function relative-width($width, $context: $tartan-column-count) {
|
18
|
-
@return percentage($width / columns-width($context));
|
17
|
+
@function tartan-relative-width($width, $context: $tartan-column-count) {
|
18
|
+
@return percentage($width / tartan-columns-width($context));
|
19
19
|
}
|
@@ -5,11 +5,11 @@
|
|
5
5
|
@include clearfix;
|
6
6
|
|
7
7
|
margin: 0 auto;
|
8
|
-
max-width: container-outer-width();
|
9
|
-
width: columns(12) - gutter() * 2;
|
8
|
+
max-width: tartan-container-outer-width();
|
9
|
+
width: tartan-columns(12) - tartan-gutter() * 2;
|
10
10
|
|
11
11
|
@if $tartan-fluid == false {
|
12
|
-
min-width: container-outer-width() + $tartan-gutter-width * 2;
|
12
|
+
min-width: tartan-container-outer-width() + $tartan-gutter-width * 2;
|
13
13
|
padding: 0 $tartan-gutter-width;
|
14
14
|
}
|
15
15
|
|
@@ -38,9 +38,9 @@
|
|
38
38
|
float: left;
|
39
39
|
}
|
40
40
|
|
41
|
-
margin-right: gutter($context);
|
42
|
-
margin-bottom: gutter($context);
|
43
|
-
width: columns($columns, $context);
|
41
|
+
margin-right: tartan-gutter($context);
|
42
|
+
margin-bottom: tartan-gutter($context);
|
43
|
+
width: tartan-columns($columns, $context);
|
44
44
|
vertical-align: top;
|
45
45
|
|
46
46
|
@if $columns == $context {
|
@@ -57,7 +57,7 @@
|
|
57
57
|
}
|
58
58
|
|
59
59
|
@mixin push-columns($columns: 1, $context: $tartan-column-count, $type: margin) {
|
60
|
-
#{$type}-left: columns($columns, $context) + gutter($context);
|
60
|
+
#{$type}-left: tartan-columns($columns, $context) + tartan-gutter($context);
|
61
61
|
|
62
62
|
@if $type == padding {
|
63
63
|
@include box-sizing(content-box);
|
@@ -65,7 +65,7 @@
|
|
65
65
|
}
|
66
66
|
|
67
67
|
@mixin bumper($columns: 1, $context: $tartan-column-count, $type: margin) {
|
68
|
-
#{$type}-right: columns($columns, $context) + gutter($context);
|
68
|
+
#{$type}-right: tartan-columns($columns, $context) + tartan-gutter($context);
|
69
69
|
|
70
70
|
@if $type == padding {
|
71
71
|
@include box-sizing(content-box);
|
@@ -83,5 +83,5 @@
|
|
83
83
|
|
84
84
|
@mixin no-omega($context: $tartan-column-count) {
|
85
85
|
float: left;
|
86
|
-
margin-right: gutter($context);
|
86
|
+
margin-right: tartan-gutter($context);
|
87
87
|
}
|
data/lib/tartan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tartan-grid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Clem
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|