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.
- checksums.yaml +4 -4
- data/dist/_scut.scss +36 -36
- data/lib/scut.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4ef2e95dadad2f73d33141fe11981b7dd09b084
|
4
|
+
data.tar.gz: 122385c7377b8444c895d32fcba730dd7e1753c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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