scut 0.10.0 → 0.10.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/dist/_scut.scss +36 -36
  3. data/lib/scut.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef09a6e68cff3e8fba825df4be0a71ffbafdb66f
4
- data.tar.gz: 3b238b0fb1399f2364a43cf2c2c9143612b86837
3
+ metadata.gz: f4ef2e95dadad2f73d33141fe11981b7dd09b084
4
+ data.tar.gz: 122385c7377b8444c895d32fcba730dd7e1753c6
5
5
  SHA512:
6
- metadata.gz: 3932f976acfa4cdfac010e24c58b01cfa5980f1f6c344d76601c1f3fc1dfad53d7bb9c40f48ff66069db9c44220318b55b37b7254f82f3b83e06dadb6d920ec2
7
- data.tar.gz: 77f58707d684145cb2ad16d28763fdc8250b239bb9eefb4d769b54b3d72b7d15a017560d70fcb39816da97d31f6682f5949fd5a2e1e9ff4d65839d41325961c3
6
+ metadata.gz: 44fc1a94fb884bfc10ff4369474d2a810bba2c7c6ad8f449089a3ab449389176619676a62c6fe2edc686d07db57cdfc869ef99ec0b207c48d91707b729f303b5
7
+ data.tar.gz: 3e50b50162e464bdf067f667c33be93b59b68cfdfea3a5306d21c3f21cd0f4ec1aaf1783db3db462aec77f0995b93acad274f5e33dc8fae18279480b67fcea13
data/dist/_scut.scss CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Scut, a collection of Sass utilities
3
3
  * to ease and improve our implementations of common style-code patterns.
4
- * v0.10.0
4
+ * v0.10.1
5
5
  * Docs at http://davidtheclark.github.io/scut
6
6
  */
7
7
 
@@ -71,6 +71,41 @@
71
71
  @include scut-list-floated;
72
72
  }
73
73
 
74
+ // SCUT POSITIONING: COORDINATES
75
+ // http://davidtheclark.github.io/scut/#positioning_coordinates
76
+
77
+ @function scut-autoOrValue ($val) {
78
+ @if $val == a or $val == auto {
79
+ @return auto;
80
+ }
81
+ @else {
82
+ @return $val;
83
+ }
84
+ }
85
+
86
+ @mixin scut-coords (
87
+ $coordinates: n n n n
88
+ ) {
89
+
90
+ $top: nth($coordinates, 1);
91
+ $right: nth($coordinates, 2);
92
+ $bottom: nth($coordinates, 3);
93
+ $left: nth($coordinates, 4);
94
+
95
+ @if $top != n {
96
+ top: scut-autoOrValue($top);
97
+ }
98
+ @if $right != n {
99
+ right: scut-autoOrValue($right);
100
+ }
101
+ @if $bottom != n {
102
+ bottom: scut-autoOrValue($bottom);
103
+ }
104
+ @if $left != n {
105
+ left: scut-autoOrValue($left);
106
+ }
107
+
108
+ }
74
109
  // SCUT STRIP UNIT
75
110
  // http://davidtheclark.github.io/scut/#strip_unit
76
111
 
@@ -941,41 +976,6 @@ $scut-rem-base: 16 !default;
941
976
  %scut-absolute {
942
977
  @include scut-absolute;
943
978
  }
944
- // SCUT POSITIONING: COORDINATES
945
- // http://davidtheclark.github.io/scut/#positioning_coordinates
946
-
947
- @function scut-autoOrValue ($val) {
948
- @if $val == a or $val == auto {
949
- @return auto;
950
- }
951
- @else {
952
- @return $val;
953
- }
954
- }
955
-
956
- @mixin scut-coords (
957
- $coordinates: n n n n
958
- ) {
959
-
960
- $top: nth($coordinates, 1);
961
- $right: nth($coordinates, 2);
962
- $bottom: nth($coordinates, 3);
963
- $left: nth($coordinates, 4);
964
-
965
- @if $top != n {
966
- top: scut-autoOrValue($top);
967
- }
968
- @if $right != n {
969
- right: scut-autoOrValue($right);
970
- }
971
- @if $bottom != n {
972
- bottom: scut-autoOrValue($bottom);
973
- }
974
- @if $left != n {
975
- left: scut-autoOrValue($left);
976
- }
977
-
978
- }
979
979
  // SCUT POSITIONING: FIXED
980
980
  // http://davidtheclark.github.io/scut/#positioning_fixed
981
981
 
data/lib/scut.rb CHANGED
@@ -5,6 +5,6 @@ stylesheets_dir = File.join(base_directory, 'dist')
5
5
  Compass::Frameworks.register('Scut', :stylesheets_directory => stylesheets_dir)
6
6
 
7
7
  module Scut
8
- VERSION = "0.10.0"
8
+ VERSION = "0.10.1"
9
9
  DATE = "2014-03-14"
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Clark