stitch 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +25 -0
- data/README.md +14 -58
- data/Rakefile +1 -2
- data/lib/stitch/version.rb +1 -1
- data/stitch.gemspec +3 -0
- data/stylesheets/stitch/_patterns.scss +3 -0
- data/stylesheets/stitch/_reset.scss +315 -0
- data/stylesheets/stitch/_utilities.scss +41 -0
- data/stylesheets/stitch/patterns/_animation.scss +2 -0
- data/stylesheets/stitch/{helpers → patterns}/_css3.scss +104 -32
- data/stylesheets/stitch/patterns/_layout.scss +3 -1
- data/stylesheets/stitch/patterns/_text.scss +5 -1
- data/stylesheets/stitch/patterns/accessibility/_hide-content.scss +2 -2
- data/stylesheets/stitch/patterns/animation/_hardware-acceleration.scss +6 -0
- data/stylesheets/stitch/patterns/animation/_timing-functions.scss +60 -0
- data/stylesheets/stitch/patterns/forms/_search-fields.scss +1 -1
- data/stylesheets/stitch/patterns/images/_image-replace.scss +5 -4
- data/stylesheets/stitch/patterns/layout/_center.scss +3 -3
- data/stylesheets/stitch/patterns/layout/_clear-floats.scss +12 -18
- data/stylesheets/stitch/patterns/layout/_columns.scss +10 -0
- data/stylesheets/stitch/patterns/layout/_force-scrollbars.scss +1 -1
- data/stylesheets/stitch/patterns/layout/_media.scss +6 -5
- data/stylesheets/stitch/patterns/layout/_simple-gradient.scss +11 -0
- data/stylesheets/stitch/patterns/legacy/_inline-block.scss +10 -10
- data/stylesheets/stitch/patterns/text/.sass-cache/920421d458a84b7a73054dd233bdbe8adead02f9/_rem.scssc +0 -0
- data/stylesheets/stitch/patterns/text/_font-stacks.scss +15 -0
- data/stylesheets/stitch/patterns/text/_hyphens.scss +7 -0
- data/stylesheets/stitch/patterns/text/_justify.scss +4 -0
- data/stylesheets/stitch/patterns/text/_rem.scss +3 -0
- metadata +34 -25
- data/stylesheets/stitch/_helpers.scss +0 -1
- data/stylesheets/stitch/reset/_desktop.scss +0 -243
- data/templates/project/layouts/desktop/_copy.scss +0 -140
- data/templates/project/layouts/desktop/_forms.scss +0 -3
- data/templates/project/layouts/desktop/_functions.scss +0 -3
- data/templates/project/layouts/desktop/_global.scss +0 -52
- data/templates/project/layouts/desktop/_layout.scss +0 -4
- data/templates/project/layouts/desktop/_modules.scss +0 -4
- data/templates/project/layouts/desktop/master.scss +0 -18
- data/templates/project/layouts/mobile/_global.scss +0 -3
- data/templates/project/layouts/mobile/master.scss +0 -2
- data/templates/project/layouts/print/_global.scss +0 -6
- data/templates/project/layouts/print/_layout.scss +0 -0
- data/templates/project/layouts/print/master.scss +0 -2
- data/templates/project/legacy.scss +0 -4
- data/templates/project/manifest.rb +0 -31
- data/templates/project/master.scss +0 -8
@@ -4,24 +4,18 @@
|
|
4
4
|
* @see http://nicolasgallagher.com/micro-clearfix-hack/
|
5
5
|
*/
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
content:"";
|
13
|
-
display:block;
|
14
|
-
}
|
15
|
-
&::after {
|
16
|
-
clear:both;
|
17
|
-
}
|
18
|
-
zoom:1;
|
7
|
+
.__clearfix {
|
8
|
+
&::before,
|
9
|
+
&::after {
|
10
|
+
content:"";
|
11
|
+
display:table;
|
19
12
|
}
|
20
|
-
|
21
|
-
|
22
|
-
content:"";
|
23
|
-
display:block;
|
24
|
-
clear:both;
|
25
|
-
}
|
13
|
+
&::after {
|
14
|
+
clear:both;
|
26
15
|
}
|
16
|
+
zoom:1;
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin clear-floats {
|
20
|
+
@extend .__clearfix;
|
27
21
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
Shorthand for CSS columns
|
3
|
+
@include text-columns(3,20px);
|
4
|
+
*/
|
5
|
+
@mixin text-columns($count:2,$gap:20px,$width:auto,$rule:none) {
|
6
|
+
@include column-count($count);
|
7
|
+
@include column-gap($count);
|
8
|
+
@include column-width($width);
|
9
|
+
@include column-rule($rule);
|
10
|
+
}
|
@@ -11,13 +11,14 @@
|
|
11
11
|
</div>
|
12
12
|
*/
|
13
13
|
|
14
|
-
@mixin
|
15
|
-
#{unquote($
|
14
|
+
@mixin media-block($position: left, $spacing:0, $media: '.media', $block: '.block') {
|
15
|
+
#{unquote($media)} {
|
16
16
|
float:$position;
|
17
|
-
|
17
|
+
@if $spacing > 0 {
|
18
|
+
margin-#{opposite-position($position)}:$spacing;
|
19
|
+
}
|
18
20
|
}
|
19
|
-
#{unquote($
|
21
|
+
#{unquote($block)} {
|
20
22
|
overflow:hidden;
|
21
|
-
float:none;
|
22
23
|
}
|
23
24
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
/*
|
2
2
|
Cross-browser inline-block.
|
3
|
+
@see http://www.quirksmode.org/css/display.html
|
3
4
|
*/
|
5
|
+
.__inline-block {
|
6
|
+
display:inline-block;
|
7
|
+
|
8
|
+
/* IE7 fix */
|
9
|
+
*display:inline;
|
10
|
+
*zoom:1;
|
11
|
+
}
|
12
|
+
|
4
13
|
@mixin inline-block {
|
5
|
-
|
6
|
-
*display : inline;
|
7
|
-
}
|
8
|
-
display : -moz-inline-box;
|
9
|
-
-moz-box-orient : vertical;
|
10
|
-
display : inline-block;
|
11
|
-
vertical-align : middle;
|
12
|
-
& {
|
13
|
-
*vertical-align : auto;
|
14
|
-
}
|
14
|
+
@extend .__inline-block;
|
15
15
|
}
|
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
These provide basic font stacks with fallbacks. You can add your own fonts to the stack
|
3
|
+
*/
|
4
|
+
|
5
|
+
@mixin sans-serif($prepend:false) {
|
6
|
+
font-family: join($prepend,"Helvetica Neue", Helvetica, Arial, sans-serif);
|
7
|
+
}
|
8
|
+
|
9
|
+
@mixin serif($prepend:false) {
|
10
|
+
font-family: join($prepend,"Georgia", Times New Roman, Times, sans-serif);
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin monospace($prepend:false) {
|
14
|
+
font-family: join($prepend,"Monaco", Courier New, monospace);
|
15
|
+
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stitch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.3
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Anthony Short
|
@@ -15,9 +15,22 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
dependencies:
|
20
|
-
|
18
|
+
date: 2011-08-21 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: compass
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
version: "0"
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
21
34
|
description: A framework for Compass that provides mixins for common CSS patterns to minimize the amount of CSS writing we have to do and gives our stylesheets more meaning.
|
22
35
|
email:
|
23
36
|
- antshort@gmail.com
|
@@ -30,15 +43,18 @@ extra_rdoc_files: []
|
|
30
43
|
files:
|
31
44
|
- .gitignore
|
32
45
|
- Gemfile
|
46
|
+
- Gemfile.lock
|
33
47
|
- README.md
|
34
48
|
- Rakefile
|
35
49
|
- lib/stitch.rb
|
36
50
|
- lib/stitch/version.rb
|
37
51
|
- stitch.gemspec
|
38
|
-
- stylesheets/stitch/_helpers.scss
|
39
52
|
- stylesheets/stitch/_patterns.scss
|
40
|
-
- stylesheets/stitch/
|
53
|
+
- stylesheets/stitch/_reset.scss
|
54
|
+
- stylesheets/stitch/_utilities.scss
|
41
55
|
- stylesheets/stitch/patterns/_accessibility.scss
|
56
|
+
- stylesheets/stitch/patterns/_animation.scss
|
57
|
+
- stylesheets/stitch/patterns/_css3.scss
|
42
58
|
- stylesheets/stitch/patterns/_forms.scss
|
43
59
|
- stylesheets/stitch/patterns/_images.scss
|
44
60
|
- stylesheets/stitch/patterns/_layout.scss
|
@@ -47,35 +63,28 @@ files:
|
|
47
63
|
- stylesheets/stitch/patterns/_print.scss
|
48
64
|
- stylesheets/stitch/patterns/_text.scss
|
49
65
|
- stylesheets/stitch/patterns/accessibility/_hide-content.scss
|
66
|
+
- stylesheets/stitch/patterns/animation/_hardware-acceleration.scss
|
67
|
+
- stylesheets/stitch/patterns/animation/_timing-functions.scss
|
50
68
|
- stylesheets/stitch/patterns/forms/_search-fields.scss
|
51
69
|
- stylesheets/stitch/patterns/images/_image-rendering.scss
|
52
70
|
- stylesheets/stitch/patterns/images/_image-replace.scss
|
53
71
|
- stylesheets/stitch/patterns/layout/_center.scss
|
54
72
|
- stylesheets/stitch/patterns/layout/_clear-floats.scss
|
73
|
+
- stylesheets/stitch/patterns/layout/_columns.scss
|
55
74
|
- stylesheets/stitch/patterns/layout/_force-scrollbars.scss
|
56
75
|
- stylesheets/stitch/patterns/layout/_media.scss
|
76
|
+
- stylesheets/stitch/patterns/layout/_simple-gradient.scss
|
57
77
|
- stylesheets/stitch/patterns/legacy/_has-layout.scss
|
58
78
|
- stylesheets/stitch/patterns/legacy/_inline-block.scss
|
59
79
|
- stylesheets/stitch/patterns/mobile/_fixed-text.scss
|
60
80
|
- stylesheets/stitch/patterns/print/_append-content.scss
|
61
81
|
- stylesheets/stitch/patterns/print/_text.scss
|
82
|
+
- stylesheets/stitch/patterns/text/.sass-cache/920421d458a84b7a73054dd233bdbe8adead02f9/_rem.scssc
|
83
|
+
- stylesheets/stitch/patterns/text/_font-stacks.scss
|
84
|
+
- stylesheets/stitch/patterns/text/_hyphens.scss
|
85
|
+
- stylesheets/stitch/patterns/text/_justify.scss
|
86
|
+
- stylesheets/stitch/patterns/text/_rem.scss
|
62
87
|
- stylesheets/stitch/patterns/text/_text-rendering.scss
|
63
|
-
- stylesheets/stitch/reset/_desktop.scss
|
64
|
-
- templates/project/layouts/desktop/_copy.scss
|
65
|
-
- templates/project/layouts/desktop/_forms.scss
|
66
|
-
- templates/project/layouts/desktop/_functions.scss
|
67
|
-
- templates/project/layouts/desktop/_global.scss
|
68
|
-
- templates/project/layouts/desktop/_layout.scss
|
69
|
-
- templates/project/layouts/desktop/_modules.scss
|
70
|
-
- templates/project/layouts/desktop/master.scss
|
71
|
-
- templates/project/layouts/mobile/_global.scss
|
72
|
-
- templates/project/layouts/mobile/master.scss
|
73
|
-
- templates/project/layouts/print/_global.scss
|
74
|
-
- templates/project/layouts/print/_layout.scss
|
75
|
-
- templates/project/layouts/print/master.scss
|
76
|
-
- templates/project/legacy.scss
|
77
|
-
- templates/project/manifest.rb
|
78
|
-
- templates/project/master.scss
|
79
88
|
homepage: https://github.com/anthonyshort/stitch-css
|
80
89
|
licenses: []
|
81
90
|
|
@@ -105,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
114
|
requirements: []
|
106
115
|
|
107
116
|
rubyforge_project: stitch
|
108
|
-
rubygems_version: 1.
|
117
|
+
rubygems_version: 1.8.8
|
109
118
|
signing_key:
|
110
119
|
specification_version: 3
|
111
120
|
summary: A CSS pattern framework for Compass
|
@@ -1 +0,0 @@
|
|
1
|
-
@import 'helpers/css';
|
@@ -1,243 +0,0 @@
|
|
1
|
-
/* Block Elements
|
2
|
-
---------------------------------------- */
|
3
|
-
/*
|
4
|
-
Reset all COMMON block elements.
|
5
|
-
If you're using uncommon or invalid elements you will need to reset them yourself
|
6
|
-
*/
|
7
|
-
address,
|
8
|
-
article,
|
9
|
-
aside,
|
10
|
-
audio,
|
11
|
-
blockquote,
|
12
|
-
body,
|
13
|
-
button,
|
14
|
-
dd,
|
15
|
-
details,
|
16
|
-
div,
|
17
|
-
dl,
|
18
|
-
dt,
|
19
|
-
fieldset,
|
20
|
-
figcaption,
|
21
|
-
figure,
|
22
|
-
footer,
|
23
|
-
form,
|
24
|
-
h1,
|
25
|
-
h2,
|
26
|
-
h3,
|
27
|
-
h4,
|
28
|
-
h5,
|
29
|
-
h6,
|
30
|
-
header,
|
31
|
-
hgroup,
|
32
|
-
hr,
|
33
|
-
input,
|
34
|
-
label,
|
35
|
-
legend,
|
36
|
-
li,
|
37
|
-
nav,
|
38
|
-
ol,
|
39
|
-
p,
|
40
|
-
pre,
|
41
|
-
section,
|
42
|
-
select,
|
43
|
-
table,
|
44
|
-
textarea,
|
45
|
-
th,
|
46
|
-
td,
|
47
|
-
ul,
|
48
|
-
video
|
49
|
-
{
|
50
|
-
margin : 0;
|
51
|
-
padding : 0;
|
52
|
-
border : 0;
|
53
|
-
background : none;
|
54
|
-
}
|
55
|
-
|
56
|
-
/* Forms
|
57
|
-
---------------------------------------- */
|
58
|
-
input,
|
59
|
-
label,
|
60
|
-
select,
|
61
|
-
button,
|
62
|
-
textarea {
|
63
|
-
display : inline-block;
|
64
|
-
vertical-align : middle;
|
65
|
-
white-space : normal;
|
66
|
-
}
|
67
|
-
|
68
|
-
/* Hand cursor on clickable input elements */
|
69
|
-
label,
|
70
|
-
input[type=button],
|
71
|
-
input[type=submit],
|
72
|
-
button {
|
73
|
-
cursor: pointer;
|
74
|
-
}
|
75
|
-
|
76
|
-
/*
|
77
|
-
Form elements have different box-sizing models by default.
|
78
|
-
This will fix form styling woes across webkit, gecko and trident
|
79
|
-
*/
|
80
|
-
input,
|
81
|
-
textarea {
|
82
|
-
-webkit-box-sizing : content-box;
|
83
|
-
-moz-box-sizing : content-box;
|
84
|
-
box-sizing : content-box;
|
85
|
-
}
|
86
|
-
|
87
|
-
button,
|
88
|
-
input[type=reset],
|
89
|
-
input[type=button],
|
90
|
-
input[type=submit],
|
91
|
-
input[type=checkbox],
|
92
|
-
input[type=radio],
|
93
|
-
select {
|
94
|
-
-webkit-box-sizing : border-box;
|
95
|
-
-moz-box-sizing : border-box;
|
96
|
-
box-sizing : border-box;
|
97
|
-
}
|
98
|
-
|
99
|
-
/* Standardize radio and checkbox sizes */
|
100
|
-
input[type=checkbox],
|
101
|
-
input[type=radio] {
|
102
|
-
width : 13px;
|
103
|
-
height : 13px;
|
104
|
-
}
|
105
|
-
|
106
|
-
/*
|
107
|
-
Make buttons play nice in IE:
|
108
|
-
@see www.viget.com/inspire/styling-the-button-element-in-internet-explorer/
|
109
|
-
*/
|
110
|
-
button,
|
111
|
-
input[type="reset"],
|
112
|
-
input[type="button"],
|
113
|
-
input[type="submit"] {
|
114
|
-
overflow : visible;
|
115
|
-
width : auto;
|
116
|
-
}
|
117
|
-
|
118
|
-
/* Turn off scroll bars in IE unless needed */
|
119
|
-
textarea {
|
120
|
-
overflow : auto;
|
121
|
-
}
|
122
|
-
|
123
|
-
/* HTML5 elements
|
124
|
-
---------------------------------------- */
|
125
|
-
/*
|
126
|
-
So that browsers render the new elements correctly. Only block elements need to be worried about as browsers render unknown elements as inline by default.
|
127
|
-
*/
|
128
|
-
article, aside, details, figcaption, figure,
|
129
|
-
footer, header, hgroup, menu, nav, section {
|
130
|
-
display:block
|
131
|
-
}
|
132
|
-
|
133
|
-
/* Text Elements
|
134
|
-
---------------------------------------- */
|
135
|
-
/*
|
136
|
-
Reset all COMMON text elements.
|
137
|
-
If you're using uncommon or invalid elements you have to reset them yourself
|
138
|
-
*/
|
139
|
-
a,
|
140
|
-
abbr,
|
141
|
-
b,
|
142
|
-
body,
|
143
|
-
br,
|
144
|
-
cite,
|
145
|
-
code,
|
146
|
-
dfn,
|
147
|
-
em,
|
148
|
-
h1,
|
149
|
-
h2,
|
150
|
-
h3,
|
151
|
-
h4,
|
152
|
-
h5,
|
153
|
-
h6,
|
154
|
-
img,
|
155
|
-
input,
|
156
|
-
kbd,
|
157
|
-
label,
|
158
|
-
mark,
|
159
|
-
pre,
|
160
|
-
q,
|
161
|
-
samp,
|
162
|
-
select,
|
163
|
-
small,
|
164
|
-
span,
|
165
|
-
strong,
|
166
|
-
sub,
|
167
|
-
sup,
|
168
|
-
textarea,
|
169
|
-
var
|
170
|
-
{
|
171
|
-
font-size : 100%;
|
172
|
-
font-family : sans-serif;
|
173
|
-
font-style : normal;
|
174
|
-
font-weight : normal;
|
175
|
-
font-variant : normal;
|
176
|
-
color : #000;
|
177
|
-
vertical-align : baseline;
|
178
|
-
text-decoration : none;
|
179
|
-
}
|
180
|
-
|
181
|
-
blockquote:before,
|
182
|
-
blockquote:after,
|
183
|
-
q:before,
|
184
|
-
q:after {
|
185
|
-
content: "";
|
186
|
-
content: none;
|
187
|
-
}
|
188
|
-
|
189
|
-
/*
|
190
|
-
Make lists display inline and not like list items
|
191
|
-
You must explicitly declare lists in copy to look the way they do
|
192
|
-
It will save you a whole lot of code
|
193
|
-
*/
|
194
|
-
li {
|
195
|
-
list-style: none;
|
196
|
-
display: block;
|
197
|
-
}
|
198
|
-
|
199
|
-
/*
|
200
|
-
Make links look like normal text. This way you don't need to
|
201
|
-
override styles when you create buttons and wrap blocks in links
|
202
|
-
*/
|
203
|
-
a {
|
204
|
-
&:hover,
|
205
|
-
&:active {
|
206
|
-
outline: none;
|
207
|
-
}
|
208
|
-
}
|
209
|
-
|
210
|
-
/* Set sub, sup without affecting line-height: gist.github.com/413930 */
|
211
|
-
sub,sup {
|
212
|
-
font-size: 75%;
|
213
|
-
line-height: 0;
|
214
|
-
position: relative;
|
215
|
-
}
|
216
|
-
|
217
|
-
sup {
|
218
|
-
top: -0.5em;
|
219
|
-
}
|
220
|
-
|
221
|
-
sub {
|
222
|
-
bottom: -0.25em;
|
223
|
-
}
|
224
|
-
|
225
|
-
/* Tables
|
226
|
-
---------------------------------------- */
|
227
|
-
table {
|
228
|
-
border-collapse: collapse;
|
229
|
-
border-spacing: 0;
|
230
|
-
}
|
231
|
-
|
232
|
-
/* Media
|
233
|
-
---------------------------------------- */
|
234
|
-
/* Nicer image sizing in IE */
|
235
|
-
img {
|
236
|
-
-ms-interpolation-mode: bicubic
|
237
|
-
}
|
238
|
-
|
239
|
-
/* fluid images and objects */
|
240
|
-
img,object,embed,video {
|
241
|
-
max-width:100%;
|
242
|
-
display:block;
|
243
|
-
}
|