scut 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dist/_scut.scss +44 -27
- data/lib/scut.rb +2 -2
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f70f44afec7bb234b517a78a628be7371325121
|
4
|
+
data.tar.gz: bbe7ac461de9efdceb8a37c173f05dcb9d837cc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ec1991f398215e9d2d58f3a87c5f0a46f577dc4f4285f9c55ee36973a7f9269bf32189f3d1de7de9b2e2acd5375de20c2f8380e5316fd41757569a3294cb3ed
|
7
|
+
data.tar.gz: 6454ad69ff8d6f85eaa832a1d1b875362eb423d496b03935cb7c2f54cabb7c4a68d4ed5b9a7d51348072fd06e968c937cf28f6bf0e695139adda512164cc21a8
|
data/dist/_scut.scss
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
* Scut, a collection of Sass utilities to ease and improve our implementations of common style-code patterns.
|
3
|
-
* v0.
|
3
|
+
* v0.9.0
|
4
4
|
* Docs at http://davidtheclark.github.io/scut
|
5
5
|
*/
|
6
6
|
|
@@ -24,15 +24,22 @@
|
|
24
24
|
// SCUT LIST: UNSTYLED
|
25
25
|
// http://davidtheclark.github.io/scut/#list_unstyled
|
26
26
|
|
27
|
-
@mixin scut-list-unstyled
|
27
|
+
@mixin scut-list-unstyled(
|
28
|
+
$no-margin: true
|
29
|
+
) {
|
28
30
|
|
29
31
|
list-style-type: none;
|
30
32
|
padding-left: 0;
|
31
33
|
|
34
|
+
@if $no-margin {
|
35
|
+
margin-top: 0;
|
36
|
+
margin-bottom: 0;
|
37
|
+
}
|
38
|
+
|
32
39
|
}
|
33
40
|
|
34
41
|
%scut-list-unstyled {
|
35
|
-
@include scut-list-unstyled;
|
42
|
+
@include scut-list-unstyled();
|
36
43
|
}
|
37
44
|
|
38
45
|
// SCUT LIST: FLOATED
|
@@ -42,10 +49,11 @@
|
|
42
49
|
|
43
50
|
@mixin scut-list-floated (
|
44
51
|
$space: false,
|
45
|
-
$dir: left
|
52
|
+
$dir: left,
|
53
|
+
$no-margin: true
|
46
54
|
) {
|
47
55
|
|
48
|
-
@include scut-list-unstyled;
|
56
|
+
@include scut-list-unstyled($no-margin);
|
49
57
|
@include scut-clearfix;
|
50
58
|
|
51
59
|
& > li {
|
@@ -152,13 +160,15 @@ $scut-em-base: 16 !default;
|
|
152
160
|
|
153
161
|
// Depends on `scut-strip-unit`.
|
154
162
|
|
163
|
+
$scut-rem-base: 16 !default;
|
164
|
+
|
155
165
|
@function scut-rem (
|
156
166
|
$pixels
|
157
167
|
) {
|
158
168
|
|
159
169
|
$rem-vals: ();
|
160
170
|
@each $val in $pixels {
|
161
|
-
$val-in-rems: scut-strip-unit($val) /
|
171
|
+
$val-in-rems: scut-strip-unit($val) / $scut-rem-base * 1rem;
|
162
172
|
$rem-vals: append($rem-vals, $val-in-rems);
|
163
173
|
}
|
164
174
|
|
@@ -434,7 +444,8 @@ $scut-em-base: 16 !default;
|
|
434
444
|
|
435
445
|
@mixin scut-reset-button {
|
436
446
|
// Reset default button styles, which are never used.
|
437
|
-
button
|
447
|
+
button,
|
448
|
+
input[type="button"] {
|
438
449
|
background: transparent;
|
439
450
|
border: 0;
|
440
451
|
color: inherit;
|
@@ -449,6 +460,10 @@ $scut-em-base: 16 !default;
|
|
449
460
|
-moz-user-select: none;
|
450
461
|
-ms-user-select: none;
|
451
462
|
user-select: none;
|
463
|
+
&::-moz-focus-inner {
|
464
|
+
padding:0;
|
465
|
+
border:0;
|
466
|
+
}
|
452
467
|
}
|
453
468
|
}
|
454
469
|
|
@@ -778,7 +793,8 @@ $scut-em-base: 16 !default;
|
|
778
793
|
@mixin scut-list-custom (
|
779
794
|
$content: "\2022",
|
780
795
|
$marker-width: 0.75em,
|
781
|
-
$pad: 0
|
796
|
+
$pad: 0,
|
797
|
+
$no-margin: false
|
782
798
|
) {
|
783
799
|
|
784
800
|
$content-val: null;
|
@@ -801,6 +817,11 @@ $scut-em-base: 16 !default;
|
|
801
817
|
padding-left: $marker-width + $pad;
|
802
818
|
list-style-type: none;
|
803
819
|
|
820
|
+
@if $no-margin {
|
821
|
+
margin-top: 0;
|
822
|
+
margin-bottom: 0;
|
823
|
+
}
|
824
|
+
|
804
825
|
& > li {
|
805
826
|
position: relative;
|
806
827
|
@if $counter {
|
@@ -828,10 +849,11 @@ $scut-em-base: 16 !default;
|
|
828
849
|
$divider: "|",
|
829
850
|
$space: 0.5em,
|
830
851
|
$dir: left,
|
831
|
-
$height: false
|
852
|
+
$height: false,
|
853
|
+
$no-margin: true
|
832
854
|
) {
|
833
855
|
|
834
|
-
@include scut-list-floated($dir: $dir);
|
856
|
+
@include scut-list-floated($dir: $dir, $no-margin: $no-margin);
|
835
857
|
|
836
858
|
$pseudo: if($dir == left, 'before', 'after');
|
837
859
|
|
@@ -883,10 +905,11 @@ $scut-em-base: 16 !default;
|
|
883
905
|
// Depends on `list-unstyled`.
|
884
906
|
|
885
907
|
@mixin scut-list-inline (
|
886
|
-
$space: false
|
908
|
+
$space: false,
|
909
|
+
$no-margin: true
|
887
910
|
) {
|
888
911
|
|
889
|
-
@include scut-list-unstyled;
|
912
|
+
@include scut-list-unstyled($no-margin);
|
890
913
|
|
891
914
|
& > li {
|
892
915
|
display: inline-block;
|
@@ -911,12 +934,11 @@ $scut-em-base: 16 !default;
|
|
911
934
|
|
912
935
|
@mixin scut-list-punctuated (
|
913
936
|
$divider: ", ",
|
914
|
-
$display: inline
|
937
|
+
$display: inline,
|
938
|
+
$no-margin: true
|
915
939
|
) {
|
916
940
|
|
917
|
-
@include scut-list-unstyled;
|
918
|
-
margin-top: 0;
|
919
|
-
margin-bottom: 0;
|
941
|
+
@include scut-list-unstyled($no-margin);
|
920
942
|
|
921
943
|
& > li {
|
922
944
|
display: $display;
|
@@ -1112,8 +1134,7 @@ $scut-em-base: 16 !default;
|
|
1112
1134
|
// http://davidtheclark.github.io/scut/#ratio-box
|
1113
1135
|
|
1114
1136
|
@mixin scut-ratio-box (
|
1115
|
-
$ratio: 1/1
|
1116
|
-
$inner: ".scut-inner"
|
1137
|
+
$ratio: 1/1
|
1117
1138
|
) {
|
1118
1139
|
|
1119
1140
|
overflow: hidden;
|
@@ -1129,15 +1150,6 @@ $scut-em-base: 16 !default;
|
|
1129
1150
|
padding-top: (1 / $ratio) * 100%;
|
1130
1151
|
}
|
1131
1152
|
|
1132
|
-
// The inner element simply fills up the container.
|
1133
|
-
& > #{$inner} {
|
1134
|
-
position: absolute;
|
1135
|
-
left: 0;
|
1136
|
-
top: 0;
|
1137
|
-
width: 100%;
|
1138
|
-
height: 100%;
|
1139
|
-
}
|
1140
|
-
|
1141
1153
|
}
|
1142
1154
|
|
1143
1155
|
%scut-ratio-box {
|
@@ -1423,6 +1435,11 @@ $scut-whitecircle: "\25cb";
|
|
1423
1435
|
$style: normal
|
1424
1436
|
) {
|
1425
1437
|
|
1438
|
+
@if index('italic' 'oblique', $weight) {
|
1439
|
+
$style: $weight;
|
1440
|
+
$weight: normal;
|
1441
|
+
}
|
1442
|
+
|
1426
1443
|
@font-face {
|
1427
1444
|
font-family: $font-family;
|
1428
1445
|
font-weight: $weight;
|
data/lib/scut.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.2'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 3.2.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.2'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 3.2.0
|
27
33
|
description: A collection of Sass utilities to ease and improve our implementations
|
@@ -32,8 +38,8 @@ executables: []
|
|
32
38
|
extensions: []
|
33
39
|
extra_rdoc_files: []
|
34
40
|
files:
|
35
|
-
- lib/scut.rb
|
36
41
|
- dist/_scut.scss
|
42
|
+
- lib/scut.rb
|
37
43
|
homepage: http://davidtheclark.github.io/scut/
|
38
44
|
licenses:
|
39
45
|
- MIT
|
@@ -44,17 +50,17 @@ require_paths:
|
|
44
50
|
- lib
|
45
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
52
|
requirements:
|
47
|
-
- -
|
53
|
+
- - ">="
|
48
54
|
- !ruby/object:Gem::Version
|
49
55
|
version: '0'
|
50
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- -
|
58
|
+
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '0'
|
55
61
|
requirements: []
|
56
62
|
rubyforge_project: scut
|
57
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.2.0
|
58
64
|
signing_key:
|
59
65
|
specification_version: 4
|
60
66
|
summary: Sass utilities for the frontend laborer.
|