yui-compass-plugin 0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYRIGHT +15 -0
- data/README.markdown +12 -0
- data/lib/yui.rb +2 -0
- data/stylesheets/_yui.sass +8 -0
- data/stylesheets/yui/modules/_base.sass +49 -0
- data/stylesheets/yui/modules/_fonts.sass +42 -0
- data/stylesheets/yui/modules/_grids.sass +349 -0
- data/stylesheets/yui/modules/_reset.sass +47 -0
- data/templates/project/manifest.rb +1 -0
- data/templates/project/screen.sass +4 -0
- data/yui-compass-plugin.gemspec +32 -0
- metadata +94 -0
data/COPYRIGHT
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
Whatever parts of this port of YUI to Sass that are copyrightable, are Copyright (c) 2008, Christopher Eppstein. All Rights Reserved.
|
2
|
+
|
3
|
+
The original CSS required this copyright notice to be present in redistributions, so to be on the safe side:
|
4
|
+
|
5
|
+
Copyright (c) 2008, Yahoo! Inc.
|
6
|
+
All rights reserved.
|
7
|
+
|
8
|
+
Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
9
|
+
|
10
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the
|
11
|
+
following disclaimer.
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
13
|
+
* Neither the name of Yahoo! Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Yahoo! Inc.
|
14
|
+
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.markdown
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
YUI Compass Plugin
|
2
|
+
------------------
|
3
|
+
|
4
|
+
This plugin implements the YUI CSS framework in Sass for use with the Compass Authoring Framework.
|
5
|
+
|
6
|
+
To install, unpack this folder into your project's extension folder.
|
7
|
+
|
8
|
+
You can do this by downloading the zip/tar.gz file for this project or by checking it out from git.
|
9
|
+
|
10
|
+
Your project's extension folder is configurable, but by default it is the `extensions` subfolder within your stand alone project. For rails projects it defaults to `vendor/plugins/compass/extensions`.
|
11
|
+
|
12
|
+
After unpacking, you should rename the folder from `yui-compass-plugin` to just `yui`.
|
data/lib/yui.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
=yui-base
|
2
|
+
body
|
3
|
+
margin: 10px
|
4
|
+
h1
|
5
|
+
font-size: 138.5%
|
6
|
+
h2
|
7
|
+
font-size: 123.1%
|
8
|
+
h3
|
9
|
+
font-size: 108%
|
10
|
+
h1, h2, h3
|
11
|
+
margin: 1em 0
|
12
|
+
h1,h2, h3, h4, h5, h6, strong, dt
|
13
|
+
font-weight: bold
|
14
|
+
optgroup
|
15
|
+
font-weight: normal
|
16
|
+
abbr, acronym
|
17
|
+
border-bottom: 1px dotted black
|
18
|
+
cursor: help
|
19
|
+
em
|
20
|
+
font-style: italic
|
21
|
+
del
|
22
|
+
text-decoration: line-through
|
23
|
+
blockquote, ul, ol, dl
|
24
|
+
margin: 1em
|
25
|
+
ol,ul,dl
|
26
|
+
margin-left: 2em
|
27
|
+
ol li
|
28
|
+
list-style: decimal outside
|
29
|
+
ul li
|
30
|
+
list-style: disc outside
|
31
|
+
dl dd
|
32
|
+
margin-left: 1em
|
33
|
+
th, td
|
34
|
+
border: 1px solid black
|
35
|
+
padding: 0.5em
|
36
|
+
th
|
37
|
+
font-weight: bold
|
38
|
+
text-align: center
|
39
|
+
caption
|
40
|
+
margin-bottom: 0.5em
|
41
|
+
text-align: center
|
42
|
+
sup
|
43
|
+
vertical-align: super
|
44
|
+
sub
|
45
|
+
vertical-align: sub
|
46
|
+
p, fieldset, table, pre
|
47
|
+
margin-bottom: 1em
|
48
|
+
button, input[type="checkbox"], input[type="radio"], input[type="reset"], input[type="submit"]
|
49
|
+
padding: 1px
|
@@ -0,0 +1,42 @@
|
|
1
|
+
$yui-default-base-font-size: 13px !default
|
2
|
+
$yui-default-base-line-height: 1.231 !default
|
3
|
+
$yui-default-font-family: unquote("arial,helvetica,clean,sans-serif") !default
|
4
|
+
|
5
|
+
// Sets the font size specified in pixels using percents so that the base
|
6
|
+
// font size changes and 1em has the correct value. When nesting font size
|
7
|
+
// declarations, within the DOM tree, the base_font_size must be the parent's
|
8
|
+
// effective font-size in pixels.
|
9
|
+
// Usage Examples:
|
10
|
+
// .big
|
11
|
+
// +font-size(16px)
|
12
|
+
// .bigger
|
13
|
+
// +font-size(18px)
|
14
|
+
// .big .bigger
|
15
|
+
// +font-size(18px, 16px)
|
16
|
+
//
|
17
|
+
// For more information see the table found at http://developer.yahoo.com/yui/fonts/#fontsize
|
18
|
+
=font-size($size, $base-font-size: $yui-default-base-font-size)
|
19
|
+
font-size: percentage($size / $base-font-size)
|
20
|
+
|
21
|
+
// Sets the base fonts for a page, this should be mixed into the top level of a stylesheet.
|
22
|
+
=yui-base-fonts($family: $yui-default-font-family, $size: $yui-default-base-font-size, $line-height: $yui-default-base-line-height)
|
23
|
+
body
|
24
|
+
font:
|
25
|
+
size: $size
|
26
|
+
family: $family
|
27
|
+
line-height: $line-height
|
28
|
+
*font-size: small
|
29
|
+
*font: x-small
|
30
|
+
select,
|
31
|
+
input,
|
32
|
+
button,
|
33
|
+
textarea,
|
34
|
+
button
|
35
|
+
font: 99% arial, helvetica, clean, sans-serif
|
36
|
+
table
|
37
|
+
font-size: inherit
|
38
|
+
font: 100%
|
39
|
+
pre, code, kbd, samp, tt
|
40
|
+
font-family: monospace
|
41
|
+
*font-size: 108%
|
42
|
+
line-height: 100%
|
@@ -0,0 +1,349 @@
|
|
1
|
+
// This is a port of YUI Grids version 2.6.0
|
2
|
+
// Note: This is not really tested yet. Use at your own risk.
|
3
|
+
|
4
|
+
@import compass/utilities/general/float.sass
|
5
|
+
@import fonts.sass
|
6
|
+
|
7
|
+
=yui-grids
|
8
|
+
+yui-grids-init
|
9
|
+
+yui-grid-templates
|
10
|
+
+yui-grid-divisions
|
11
|
+
|
12
|
+
=yui-grid-templates
|
13
|
+
#doc
|
14
|
+
+yui-document(750px)
|
15
|
+
#doc2
|
16
|
+
+yui-document(950px)
|
17
|
+
#doc3
|
18
|
+
+yui-document(fluid)
|
19
|
+
#doc4
|
20
|
+
+yui-document(974px)
|
21
|
+
/* Section: Preset Template Rules (.yui-t[1-6])
|
22
|
+
.yui-t1
|
23
|
+
+yui-two-column-left-template(160px)
|
24
|
+
.yui-t2
|
25
|
+
+yui-two-column-left-template(180px)
|
26
|
+
.yui-t3
|
27
|
+
+yui-two-column-left-template(300px)
|
28
|
+
.yui-t4
|
29
|
+
+yui-two-column-right-template(180px)
|
30
|
+
.yui-t5
|
31
|
+
+yui-two-column-right-template(240px)
|
32
|
+
.yui-t6
|
33
|
+
+yui-two-column-right-template(300px)
|
34
|
+
.yui-t7
|
35
|
+
+yui-one-column-template
|
36
|
+
|
37
|
+
=yui-group-clearing
|
38
|
+
zoom: 1
|
39
|
+
&:after
|
40
|
+
content: "."
|
41
|
+
display: block
|
42
|
+
height: 0
|
43
|
+
clear: both
|
44
|
+
visibility: hidden
|
45
|
+
|
46
|
+
=yui-grids-init($header: "#hd", $footer: "#ft", $body: "#bd")
|
47
|
+
/* Section: General Rules
|
48
|
+
body
|
49
|
+
text-align: center
|
50
|
+
@if $header
|
51
|
+
#{$header}
|
52
|
+
+yui-group-clearing
|
53
|
+
@if $footer
|
54
|
+
#{$footer}
|
55
|
+
+yui-group-clearing
|
56
|
+
@if $body
|
57
|
+
#{$body}
|
58
|
+
+yui-group-clearing
|
59
|
+
|
60
|
+
=em-size($style, $px-size, $base-font-size: $yui-default-base-font-size)
|
61
|
+
#{$style}: 1em * $px-size / $base-font-size
|
62
|
+
|
63
|
+
=em-size-hacked($style, $px-size, $base-font-size: $yui-default-base-font-size)
|
64
|
+
+em-size($style, $px-size, $base-font-size)
|
65
|
+
+em-size("*#{$style}", $px-size * 39 / 40, $base-font-size)
|
66
|
+
|
67
|
+
// All documents must have these styles
|
68
|
+
=yui-document-base($min-width: false)
|
69
|
+
margin: auto
|
70
|
+
text-align: left
|
71
|
+
@if $min-width
|
72
|
+
min-width: $min-width
|
73
|
+
|
74
|
+
=yui-block-base
|
75
|
+
position: relative
|
76
|
+
_position: static
|
77
|
+
|
78
|
+
=yui-main-block
|
79
|
+
float: none
|
80
|
+
width: auto
|
81
|
+
|
82
|
+
// Creates a fixed width document container
|
83
|
+
// Pass "fluid" for the width to create a document that grows with the width of the browser.
|
84
|
+
=yui-document($width, $min-width: false, $base-font-size: $yui-default-base-font-size)
|
85
|
+
+yui-document-base($min-width)
|
86
|
+
@if $width == "fluid"
|
87
|
+
margin: auto 10px
|
88
|
+
width: auto
|
89
|
+
@else
|
90
|
+
+em-size-hacked(width, $width, $base-font-size)
|
91
|
+
|
92
|
+
=yui-two-column-left-template($column-width, $main-selector: "#yui-main", $block-selector: ".yui-b", $document-width: 750px, $min-width: false, $base-font-size: $yui-default-base-font-size)
|
93
|
+
+yui-document($document-width, $min-width, $base-font-size)
|
94
|
+
#{$block-selector}
|
95
|
+
+yui-block-base
|
96
|
+
float: left
|
97
|
+
+em-size-hacked(width, $column-width, $base-font-size)
|
98
|
+
#{$main-selector}
|
99
|
+
width: 100%
|
100
|
+
float: right
|
101
|
+
margin-left: -25em
|
102
|
+
#{$block-selector}
|
103
|
+
+yui-main-block
|
104
|
+
+em-size(margin-left, $column-width + 13px, $base-font-size)
|
105
|
+
// t3 is 15px for IE for some reason - seems like this should be some formula based on the column width and not a fixed number - need to do more research
|
106
|
+
@if $column-width > 180px
|
107
|
+
+em-size("*margin-left", ($column-width + 15px) * 39 / 40, $base-font-size)
|
108
|
+
@else
|
109
|
+
+em-size("*margin-left", ($column-width + 14px) * 39 / 40, $base-font-size)
|
110
|
+
|
111
|
+
=yui-two-column-right-template($column-width, $main-selector: "#yui-main", $block-selector: ".yui-b", $document-width: 750px, $min-width: false, $base-font-size: $yui-default-base-font-size)
|
112
|
+
+yui-document($document-width, $min-width, $base-font-size)
|
113
|
+
#{$block-selector}
|
114
|
+
+yui-block-base
|
115
|
+
float: right
|
116
|
+
+em-size-hacked(width, $column-width, $base-font-size)
|
117
|
+
#{$main-selector}
|
118
|
+
width: 100%
|
119
|
+
float: left
|
120
|
+
margin-right: -25em
|
121
|
+
#{$block-selector}
|
122
|
+
+yui-main-block
|
123
|
+
+em-size(margin-right, $column-width + 13px, $base-font-size)
|
124
|
+
// t5 is 15px for IE for some reason - seems like this should be some formula based on the column width and not a fixed number - need to do more research
|
125
|
+
@if $column-width > 180px
|
126
|
+
+em-size("*margin-right", ($column-width + 15px) * 39 / 40, $base-font-size)
|
127
|
+
@else
|
128
|
+
+em-size("*margin-right", ($column-width + 14px) * 39 / 40, $base-font-size)
|
129
|
+
|
130
|
+
=yui-one-column-template($main-selector: "#yui-main", $block-selector: ".yui-b", $document-width: 750px, $min-width: false, $base-font-size: $yui-default-base-font-size)
|
131
|
+
+yui-document($document-width, $min-width, $base-font-size)
|
132
|
+
#{$main-selector}
|
133
|
+
#{$block-selector}
|
134
|
+
+yui-main-block
|
135
|
+
display: block
|
136
|
+
margin: 0 0 1em 0
|
137
|
+
|
138
|
+
=yui-custom-template($main-selector: "#yui-main", $block-selector: ".yui-b")
|
139
|
+
#{$block-selector}
|
140
|
+
+yui-block-base
|
141
|
+
#{$main-selector}
|
142
|
+
width: 100%
|
143
|
+
#{$block-selector}
|
144
|
+
+yui-main-block
|
145
|
+
|
146
|
+
=yui-grid-divisions($unit: ".yui-u", $g-50-50: ".yui-g", $g-33-33-33: ".yui-gb", $g-67-33: ".yui-gc", $g-33-67: ".yui-gd", $g-75-25: ".yui-ge", $g-25-75: ".yui-gf")
|
147
|
+
/* Section: Grids and Nesting Grids
|
148
|
+
/* from #yui-main, .yui-g .yui-u .yui-g
|
149
|
+
#{nest($g-50-50, $unit, $g-50-50)}
|
150
|
+
width: 100%
|
151
|
+
/* Children generally take half the available space
|
152
|
+
#{nest($g-33-33-33, $unit)},
|
153
|
+
#{nest($g-50-50, $g-33-33-33, $unit)},
|
154
|
+
#{nest($g-33-33-33, $g-50-50)},
|
155
|
+
#{nest($g-33-33-33, $g-33-33-33)},
|
156
|
+
#{nest($g-33-33-33, $g-67-33)},
|
157
|
+
#{nest($g-33-33-33, $g-33-67)},
|
158
|
+
#{nest($g-33-33-33, $g-75-25)},
|
159
|
+
#{nest($g-33-33-33, $g-25-75)},
|
160
|
+
#{nest($g-67-33, $unit)},
|
161
|
+
#{nest($g-67-33, $g-50-50)},
|
162
|
+
#{nest($g-33-67, $unit)}
|
163
|
+
float: left
|
164
|
+
/* Float units (and sub grids) to the right
|
165
|
+
#{nest($g-50-50, $unit)},
|
166
|
+
#{nest($g-50-50, $g-50-50)},
|
167
|
+
#{nest($g-50-50, $g-33-33-33)},
|
168
|
+
#{nest($g-50-50, $g-67-33)},
|
169
|
+
#{nest($g-50-50, $g-33-67)},
|
170
|
+
#{nest($g-50-50, $g-75-25)},
|
171
|
+
#{nest($g-50-50, $g-25-75)},
|
172
|
+
#{nest($g-67-33, $unit)},
|
173
|
+
#{nest($g-33-67, $g-50-50)},
|
174
|
+
#{nest($g-50-50, $g-67-33, $unit)},
|
175
|
+
#{nest($g-75-25, $unit)},
|
176
|
+
#{nest($g-75-25, $g-50-50)},
|
177
|
+
#{nest($g-25-75, $g-50-50)},
|
178
|
+
#{nest($g-25-75, $unit)}
|
179
|
+
float: right
|
180
|
+
/* Float units (and sub grids) to the left
|
181
|
+
#{$g-50-50},
|
182
|
+
#{$g-33-33-33},
|
183
|
+
#{$g-67-33},
|
184
|
+
#{$g-33-67},
|
185
|
+
#{$g-75-25},
|
186
|
+
#{$g-25-75},
|
187
|
+
#{nest($g-50-50, $g-67-33)},
|
188
|
+
#{nest($g-50-50, $g-75-25)},
|
189
|
+
#{nest($g-67-33, "div.first")}
|
190
|
+
div.first
|
191
|
+
float: left
|
192
|
+
#{$g-50-50}
|
193
|
+
#{$unit},
|
194
|
+
#{$g-50-50},
|
195
|
+
#{$g-33-33-33},
|
196
|
+
#{$g-67-33},
|
197
|
+
#{$g-33-67},
|
198
|
+
#{$g-75-25},
|
199
|
+
#{$g-25-75}
|
200
|
+
width: 49.1%
|
201
|
+
#{nest($g-33-33-33, $unit)},
|
202
|
+
#{nest($g-50-50, $g-33-33-33, $unit)},
|
203
|
+
#{nest($g-33-33-33, $g-50-50)},
|
204
|
+
#{nest($g-33-33-33, $g-33-33-33)},
|
205
|
+
#{nest($g-33-33-33, $g-67-33)},
|
206
|
+
#{nest($g-33-33-33, $g-33-67)},
|
207
|
+
#{nest($g-33-33-33, $g-75-25)},
|
208
|
+
#{nest($g-33-33-33, $g-25-75)},
|
209
|
+
#{nest($g-67-33, $unit)},
|
210
|
+
#{nest($g-67-33, $g-50-50)},
|
211
|
+
#{nest($g-33-67, $unit)}
|
212
|
+
width: 32%
|
213
|
+
margin-left: 1.99%
|
214
|
+
/* Give IE some extra breathing room for 1/3-based rounding issues
|
215
|
+
#{nest($g-33-33-33, $unit)}
|
216
|
+
*margin-left: 1.9%
|
217
|
+
*width: 31.9%
|
218
|
+
#{nest($g-50-50, $g-33-33-33)},
|
219
|
+
#{$g-33-33-33},
|
220
|
+
#{$g-67-33},
|
221
|
+
#{$g-33-67}
|
222
|
+
div.first
|
223
|
+
margin-left: 0
|
224
|
+
/* Section: Deep Nesting
|
225
|
+
#{$g-50-50},
|
226
|
+
#{$g-33-33-33},
|
227
|
+
#{$g-67-33},
|
228
|
+
#{$g-33-67},
|
229
|
+
#{$g-75-25},
|
230
|
+
#{$g-25-75}
|
231
|
+
#{$g-50-50}
|
232
|
+
#{$unit}
|
233
|
+
width: 49%
|
234
|
+
*width: 48.1%
|
235
|
+
*margin-left: 0
|
236
|
+
#{nest($g-50-50, $g-50-50, $unit)}
|
237
|
+
width: 48.1%
|
238
|
+
#{$g-50-50},
|
239
|
+
#{$g-33-33-33}
|
240
|
+
#{$g-33-33-33}
|
241
|
+
div.first
|
242
|
+
*margin-right: 0
|
243
|
+
*width: 32%
|
244
|
+
_width: 31.7%
|
245
|
+
#{nest($g-50-50, $g-67-33, "div.first")},
|
246
|
+
#{nest($g-67-33, "div.first")},
|
247
|
+
#{nest($g-33-67, $g-50-50)},
|
248
|
+
#{nest($g-33-67, $unit)}
|
249
|
+
width: 66%
|
250
|
+
#{nest($g-33-33-33, $g-50-50, "div.first")}
|
251
|
+
*margin-right: 4%
|
252
|
+
_margin-right: 1.3%
|
253
|
+
#{$g-33-33-33}
|
254
|
+
#{$g-67-33},
|
255
|
+
#{$g-33-67}
|
256
|
+
div.first
|
257
|
+
*margin-right: 0
|
258
|
+
#{$g-33-33-33}
|
259
|
+
#{$g-33-33-33},
|
260
|
+
#{$g-67-33}
|
261
|
+
#{$unit}
|
262
|
+
*margin-left: 1.8%
|
263
|
+
_margin-left: 4%
|
264
|
+
#{nest($g-50-50, $g-33-33-33, $unit)}
|
265
|
+
_margin-left: 1%
|
266
|
+
#{nest($g-33-33-33, $g-33-67, $unit)}
|
267
|
+
*width: 66%
|
268
|
+
_width: 61.2%
|
269
|
+
#{nest($g-33-33-33, $g-33-67, "div.first")}
|
270
|
+
*width: 31%
|
271
|
+
_width: 29.5%
|
272
|
+
#{$g-50-50},
|
273
|
+
#{$g-33-33-33}
|
274
|
+
#{$g-67-33}
|
275
|
+
#{$unit}
|
276
|
+
width: 32%
|
277
|
+
_float: right
|
278
|
+
margin-right: 0
|
279
|
+
_margin-left: 0
|
280
|
+
#{nest($g-33-33-33, $g-67-33, "div.first")}
|
281
|
+
width: 66%
|
282
|
+
*float: left
|
283
|
+
*margin-left: 0
|
284
|
+
#{$g-33-33-33}
|
285
|
+
#{$g-75-25},
|
286
|
+
#{$g-25-75}
|
287
|
+
#{$unit}
|
288
|
+
margin: 0
|
289
|
+
#{nest($g-33-33-33, $g-33-33-33, $unit)}
|
290
|
+
_margin-left: 0.7%
|
291
|
+
#{nest($g-33-33-33, $g-50-50)},
|
292
|
+
#{nest($g-33-33-33, $g-33-33-33)}
|
293
|
+
div.first
|
294
|
+
*margin-left: 0
|
295
|
+
#{$g-67-33},
|
296
|
+
#{$g-33-67}
|
297
|
+
#{$g-50-50}
|
298
|
+
#{$unit}
|
299
|
+
*width: 48.1%
|
300
|
+
*margin-left: 0
|
301
|
+
#{$g-33-67},
|
302
|
+
#{nest($g-33-33-33, $g-33-67)}
|
303
|
+
div.first
|
304
|
+
width: 32%
|
305
|
+
#{nest($g-50-50, $g-33-67, "div.first")}
|
306
|
+
_width: 29.9%
|
307
|
+
#{nest($g-75-25, $unit)},
|
308
|
+
#{nest($g-75-25, $g-50-50)},
|
309
|
+
#{nest($g-25-75, "div.first")}
|
310
|
+
width: 24%
|
311
|
+
#{nest($g-75-25, "div.first")},
|
312
|
+
#{nest($g-25-75, $g-50-50)},
|
313
|
+
#{nest($g-25-75, $unit)}
|
314
|
+
width: 74.2%
|
315
|
+
#{$g-33-33-33}
|
316
|
+
#{$g-75-25},
|
317
|
+
#{$g-25-75}
|
318
|
+
div#{$unit}
|
319
|
+
float: right
|
320
|
+
#{$g-33-33-33}
|
321
|
+
#{$g-75-25},
|
322
|
+
#{$g-25-75}
|
323
|
+
div.first
|
324
|
+
float: left
|
325
|
+
/* Width Accommodation for Nested Contexts
|
326
|
+
#{$g-33-33-33}
|
327
|
+
#{nest($g-75-25, $unit)},
|
328
|
+
#{nest($g-25-75, "div.first")}
|
329
|
+
*width: 24%
|
330
|
+
_width: 20%
|
331
|
+
/* Width Accommodation for Nested Contexts
|
332
|
+
#{$g-33-33-33}
|
333
|
+
#{nest($g-75-25, "div.first")},
|
334
|
+
#{nest($g-25-75, $unit)}
|
335
|
+
*width: 73.5%
|
336
|
+
_width: 65.5%
|
337
|
+
/* Patch for GD within GE
|
338
|
+
#{nest($g-75-25, "div.first", $g-33-67, $unit)}
|
339
|
+
width: 65%
|
340
|
+
#{nest($g-75-25, "div.first", $g-33-67, "div.first")}
|
341
|
+
width: 32%
|
342
|
+
/* @group Clearing
|
343
|
+
#{$g-50-50},
|
344
|
+
#{$g-33-33-33},
|
345
|
+
#{$g-67-33},
|
346
|
+
#{$g-33-67},
|
347
|
+
#{$g-75-25},
|
348
|
+
#{$g-25-75}
|
349
|
+
+yui-group-clearing
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/* Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
2
|
+
* Code licensed under the BSD License:
|
3
|
+
* http://developer.yahoo.net/yui/license.txt
|
4
|
+
* version: 3.0.0pr2
|
5
|
+
|
6
|
+
=reset
|
7
|
+
html
|
8
|
+
color: black
|
9
|
+
background: white
|
10
|
+
body, div, dl, dt, dd, ul, ol, li,
|
11
|
+
h1, h2, h3, h4, h5, h6, pre, code,
|
12
|
+
form, fieldset, legend,input,
|
13
|
+
textarea, p, blockquote, th, td
|
14
|
+
margin: 0
|
15
|
+
padding: 0
|
16
|
+
li
|
17
|
+
list-style: none
|
18
|
+
h1, h2, h3, h4, h5, h6
|
19
|
+
font-size: 100%
|
20
|
+
font-weight: normal
|
21
|
+
code, th, address, caption,
|
22
|
+
cite, dfn, em, strong, var
|
23
|
+
font-style: normal
|
24
|
+
font-weight: normal
|
25
|
+
fieldset, img, abbr, acronym
|
26
|
+
border: 0
|
27
|
+
legend
|
28
|
+
color: black
|
29
|
+
input, textarea, select
|
30
|
+
font-family: inherit
|
31
|
+
font-size: inherit
|
32
|
+
font-weight: inherit
|
33
|
+
*font-size: 100%
|
34
|
+
th, caption
|
35
|
+
text-align: left
|
36
|
+
table
|
37
|
+
border-collapse: collapse
|
38
|
+
border-spacing: 0
|
39
|
+
q
|
40
|
+
&:before, &:after
|
41
|
+
content: ""
|
42
|
+
abbr, acronym
|
43
|
+
font-variant: normal
|
44
|
+
sup
|
45
|
+
vertical-align: text-top
|
46
|
+
sub
|
47
|
+
vertical-align: text-bottom
|
@@ -0,0 +1 @@
|
|
1
|
+
stylesheet 'screen.sass', :media => "screen, projection"
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{yui-compass-plugin}
|
5
|
+
s.version = "0.1"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
|
8
|
+
s.authors = ["Chris Eppstein"]
|
9
|
+
s.date = %q{2010-07-24}
|
10
|
+
s.description = %q{The YUI Compass plugin is a collection of CSS Tools. http://developer.yahoo.com/yui/2/.}
|
11
|
+
s.email = %w{chris@eppsteins.net}
|
12
|
+
s.has_rdoc = false
|
13
|
+
s.files = [
|
14
|
+
"yui-compass-plugin.gemspec",
|
15
|
+
"README.markdown",
|
16
|
+
"COPYRIGHT",
|
17
|
+
"lib/yui.rb",
|
18
|
+
"stylesheets/_yui.sass",
|
19
|
+
"stylesheets/yui/modules/_base.sass",
|
20
|
+
"stylesheets/yui/modules/_fonts.sass",
|
21
|
+
"stylesheets/yui/modules/_grids.sass",
|
22
|
+
"stylesheets/yui/modules/_reset.sass",
|
23
|
+
"templates/project/manifest.rb",
|
24
|
+
"templates/project/screen.sass"
|
25
|
+
]
|
26
|
+
s.homepage = %q{http://github.com/chriseppstein/yui-compass-plugin}
|
27
|
+
s.require_paths = ["lib"]
|
28
|
+
s.rubyforge_project = %q{yui-compass-plugin}
|
29
|
+
s.rubygems_version = %q{1.3.6}
|
30
|
+
s.summary = %q{Compass compatible Sass port of YUI 2.7.}
|
31
|
+
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: yui-compass-plugin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 9
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: "0.1"
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Chris Eppstein
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-07-24 00:00:00 -04:00
|
18
|
+
default_executable:
|
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: 55
|
29
|
+
segments:
|
30
|
+
- 0
|
31
|
+
- 10
|
32
|
+
- 0
|
33
|
+
version: 0.10.0
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
36
|
+
description: The YUI Compass plugin is a collection of CSS Tools. http://developer.yahoo.com/yui/2/.
|
37
|
+
email:
|
38
|
+
- chris@eppsteins.net
|
39
|
+
executables: []
|
40
|
+
|
41
|
+
extensions: []
|
42
|
+
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
45
|
+
files:
|
46
|
+
- yui-compass-plugin.gemspec
|
47
|
+
- README.markdown
|
48
|
+
- COPYRIGHT
|
49
|
+
- lib/yui.rb
|
50
|
+
- stylesheets/_yui.sass
|
51
|
+
- stylesheets/yui/modules/_base.sass
|
52
|
+
- stylesheets/yui/modules/_fonts.sass
|
53
|
+
- stylesheets/yui/modules/_grids.sass
|
54
|
+
- stylesheets/yui/modules/_reset.sass
|
55
|
+
- templates/project/manifest.rb
|
56
|
+
- templates/project/screen.sass
|
57
|
+
has_rdoc: false
|
58
|
+
homepage: http://github.com/chriseppstein/yui-compass-plugin
|
59
|
+
licenses: []
|
60
|
+
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
hash: 17
|
81
|
+
segments:
|
82
|
+
- 1
|
83
|
+
- 3
|
84
|
+
- 5
|
85
|
+
version: 1.3.5
|
86
|
+
requirements: []
|
87
|
+
|
88
|
+
rubyforge_project: yui-compass-plugin
|
89
|
+
rubygems_version: 1.4.1
|
90
|
+
signing_key:
|
91
|
+
specification_version: 3
|
92
|
+
summary: Compass compatible Sass port of YUI 2.7.
|
93
|
+
test_files: []
|
94
|
+
|