pure-sass 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Guardfile +1 -0
- data/README.md +10 -1
- data/Rakefile +72 -10
- data/app/assets/stylesheets/pure/all.css.scss +7 -0
- data/app/assets/stylesheets/pure/base/normalize-context.css.scss +233 -0
- data/app/assets/stylesheets/pure/base/{normalize.css.sass → normalize.css.scss} +307 -204
- data/app/assets/stylesheets/pure/base.css.scss +2 -0
- data/app/assets/stylesheets/pure/buttons/buttons-core.css.scss +27 -0
- data/app/assets/stylesheets/pure/buttons/buttons-theme.css.scss +110 -0
- data/app/assets/stylesheets/pure/buttons/buttons.css.scss +83 -0
- data/app/assets/stylesheets/pure/buttons.css.scss +3 -0
- data/app/assets/stylesheets/pure/defaults.css.scss +44 -0
- data/app/assets/stylesheets/pure/forms/{forms-core.css.sass → forms-core.css.scss} +91 -74
- data/app/assets/stylesheets/pure/forms/forms-r.css.scss +31 -0
- data/app/assets/stylesheets/pure/forms/forms-theme.css.scss +362 -0
- data/app/assets/stylesheets/pure/forms/forms.css.scss +167 -0
- data/app/assets/stylesheets/pure/forms.css.scss +4 -0
- data/app/assets/stylesheets/pure/grids/grids-core.css.scss +24 -0
- data/app/assets/stylesheets/pure/grids/grids-r.css.scss +54 -0
- data/app/assets/stylesheets/pure/grids/grids-units.css.scss +147 -0
- data/app/assets/stylesheets/pure/grids.css.scss +3 -0
- data/app/assets/stylesheets/pure/lists/lists-theme.css.scss +241 -0
- data/app/assets/stylesheets/pure/menus/menus-core.css.scss +111 -0
- data/app/assets/stylesheets/pure/menus/menus-paginator.css.scss +31 -0
- data/app/assets/stylesheets/pure/menus/menus-r.css.scss +14 -0
- data/app/assets/stylesheets/pure/menus/menus.css.scss +78 -0
- data/app/assets/stylesheets/pure/menus.css.scss +4 -0
- data/app/assets/stylesheets/pure/tables/tables-theme.css.scss +72 -0
- data/app/assets/stylesheets/pure/tables/tables.css.scss +82 -0
- data/app/assets/stylesheets/pure/tables.css.scss +2 -0
- data/lib/pure/sass/default_translation.rb +28 -0
- data/lib/pure/sass/translation.rb +24 -0
- data/lib/pure/sass/version.rb +1 -1
- data/lib/pure/sass.rb +2 -0
- data/pure-sass.gemspec +2 -1
- data/spec/acceptance/sass_spec.rb +10 -0
- data/spec/fixtures/buttons.css.handlebars +110 -0
- data/spec/fixtures/form.css.handlebars +362 -0
- data/spec/fixtures/list.css.handlebars +241 -0
- data/spec/fixtures/table.css.handlebars +72 -0
- data/spec/lib/pure/sass/default_translation_spec.rb +18 -0
- data/spec/lib/pure/sass/translation_spec.rb +19 -0
- data/spec/sass_importer.rb +14 -0
- data/spec/spec_helper.rb +2 -1
- metadata +78 -28
- data/app/assets/stylesheets/pure/all.css.sass +0 -7
- data/app/assets/stylesheets/pure/base/normalize-context.css.sass +0 -152
- data/app/assets/stylesheets/pure/base.css.sass +0 -2
- data/app/assets/stylesheets/pure/buttons/buttons-core.css.sass +0 -23
- data/app/assets/stylesheets/pure/buttons/buttons.css.sass +0 -103
- data/app/assets/stylesheets/pure/buttons.css.sass +0 -2
- data/app/assets/stylesheets/pure/defaults.css.sass +0 -0
- data/app/assets/stylesheets/pure/forms/forms-r.css.sass +0 -22
- data/app/assets/stylesheets/pure/forms/forms.css.sass +0 -128
- data/app/assets/stylesheets/pure/forms.css.sass +0 -3
- data/app/assets/stylesheets/pure/grids/grids-core.css.sass +0 -26
- data/app/assets/stylesheets/pure/grids/grids-r.css.sass +0 -34
- data/app/assets/stylesheets/pure/grids/grids-units.css.sass +0 -93
- data/app/assets/stylesheets/pure/grids.css.sass +0 -3
- data/app/assets/stylesheets/pure/menus/menus-core.css.sass +0 -99
- data/app/assets/stylesheets/pure/menus/menus-paginator.css.sass +0 -24
- data/app/assets/stylesheets/pure/menus/menus-r.css.sass +0 -8
- data/app/assets/stylesheets/pure/menus/menus.css.sass +0 -65
- data/app/assets/stylesheets/pure/menus.css.sass +0 -4
- data/app/assets/stylesheets/pure/tables/tables.css.sass +0 -68
- data/app/assets/stylesheets/pure/tables.css.sass +0 -1
- data/spec/assets_spec.rb +0 -21
@@ -0,0 +1,241 @@
|
|
1
|
+
|
2
|
+
/* from YUICSS list-core.css */
|
3
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu ul {
|
4
|
+
position: absolute;
|
5
|
+
visibility: hidden;
|
6
|
+
}
|
7
|
+
|
8
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu{{yuiCssPrefix}}menu-open {
|
9
|
+
visibility: visible;
|
10
|
+
z-index: 2;
|
11
|
+
width: 100%;
|
12
|
+
}
|
13
|
+
|
14
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu ul {
|
15
|
+
left: -10000px;
|
16
|
+
list-style: none;
|
17
|
+
margin: 0;
|
18
|
+
padding: 0;
|
19
|
+
top: -10000px;
|
20
|
+
z-index: 1;
|
21
|
+
}
|
22
|
+
|
23
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu > ul { position: relative; }
|
24
|
+
|
25
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-open > ul {
|
26
|
+
left: 0;
|
27
|
+
top: 0;
|
28
|
+
visibility: visible;
|
29
|
+
}
|
30
|
+
|
31
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu li { position: relative; }
|
32
|
+
|
33
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu a, {{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu {{yuiCssPrefix}}menu-heading {
|
34
|
+
display: block;
|
35
|
+
color: inherit;
|
36
|
+
line-height: 1.5em;
|
37
|
+
padding: {{menuItemPadding}};
|
38
|
+
text-decoration: none;
|
39
|
+
white-space: nowrap;
|
40
|
+
}
|
41
|
+
|
42
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu{{yuiCssPrefix}}menu-horizontal > {{yuiCssPrefix}}menu-heading {
|
43
|
+
display: inline-block;
|
44
|
+
margin: 0;
|
45
|
+
zoom: 1;
|
46
|
+
*display: inline;
|
47
|
+
vertical-align: middle;
|
48
|
+
}
|
49
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu{{yuiCssPrefix}}menu-horizontal > ul {
|
50
|
+
display: inline-block;
|
51
|
+
zoom: 1;
|
52
|
+
*display: inline;
|
53
|
+
vertical-align: middle;
|
54
|
+
}
|
55
|
+
|
56
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu li a { {{menuItemPadding}}; }
|
57
|
+
|
58
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-can-have-children > {{yuiCssPrefix}}menu-label:after {
|
59
|
+
content: '\25B8';
|
60
|
+
float: right;
|
61
|
+
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'DejaVu Sans', sans-serif; /* These specific fonts have the Unicode char we need. */
|
62
|
+
margin-right: -20px;
|
63
|
+
margin-top: -1px;
|
64
|
+
}
|
65
|
+
|
66
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-can-have-children > {{yuiCssPrefix}}menu-label {
|
67
|
+
padding-right:30px;
|
68
|
+
}
|
69
|
+
|
70
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-separator {
|
71
|
+
background-color: {{separator}};
|
72
|
+
display: block;
|
73
|
+
height: 1px;
|
74
|
+
font-size: 0;
|
75
|
+
margin: 7px 2px;
|
76
|
+
overflow: hidden;
|
77
|
+
}
|
78
|
+
|
79
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-hidden { display: none; }
|
80
|
+
|
81
|
+
/* FIXED MENU */
|
82
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-fixed {
|
83
|
+
position: fixed;
|
84
|
+
top:0;
|
85
|
+
left:0;
|
86
|
+
width: 100%;
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
/* HORIZONTAL MENU CODE */
|
91
|
+
|
92
|
+
/* Initial menus should be inline-block so that they are horizontal */
|
93
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-horizontal li {
|
94
|
+
display: inline-block;
|
95
|
+
zoom: 1;
|
96
|
+
*display: inline;
|
97
|
+
vertical-align: middle;
|
98
|
+
}
|
99
|
+
|
100
|
+
/* Submenus should still be display:block; */
|
101
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-horizontal li li {
|
102
|
+
display: block;
|
103
|
+
}
|
104
|
+
|
105
|
+
/* Content after should be down arrow */
|
106
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-horizontal > {{yuiCssPrefix}}menu-children > {{yuiCssPrefix}}menu-can-have-children > {{yuiCssPrefix}}menu-label:after {
|
107
|
+
content: "\25BE";
|
108
|
+
}
|
109
|
+
/*Add extra padding to elements that have the arrow so that the hover looks nice */
|
110
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-horizontal > {{yuiCssPrefix}}menu-children > {{yuiCssPrefix}}menu-can-have-children > {{yuiCssPrefix}}menu-label {
|
111
|
+
padding-right:30px;
|
112
|
+
}/* end from yuicss/list-core.css *******************************************/
|
113
|
+
/* from yuicss list-paginator.css */
|
114
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator {
|
115
|
+
list-style: none;
|
116
|
+
margin: 0;
|
117
|
+
padding: 0;
|
118
|
+
}
|
119
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator li {
|
120
|
+
display: inline-block;
|
121
|
+
*display: inline;
|
122
|
+
/* IE 7 inline-block hack */
|
123
|
+
*zoom: 1;
|
124
|
+
margin: 0 -0.35em 0 0;
|
125
|
+
}
|
126
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator {{yuiCssPrefix}}button {
|
127
|
+
border-radius: 0;
|
128
|
+
padding: 0.8em 1.4em;
|
129
|
+
vertical-align: top;
|
130
|
+
height: 1.1em;
|
131
|
+
}
|
132
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator {{yuiCssPrefix}}button:focus {
|
133
|
+
outline-style: none;
|
134
|
+
}
|
135
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator .prev, {{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator .next {
|
136
|
+
/*color: #C0C1C3; allow yui3-button to color text*/
|
137
|
+
}
|
138
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator .prev {
|
139
|
+
border-radius: {{paginatorRadiusPrev}};
|
140
|
+
}
|
141
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}paginator .next {
|
142
|
+
border-radius: {{paginatorRadiusNext}};
|
143
|
+
}
|
144
|
+
/* end from YUICSS list-paginator.css ******************************/
|
145
|
+
/* from YUICSS list.css *******************************************/
|
146
|
+
/* MAIN MENU STYLING */
|
147
|
+
|
148
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu{{yuiCssPrefix}}menu-open,
|
149
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu{{yuiCssPrefix}}menu-horizontal li {{yuiCssPrefix}}menu-children {
|
150
|
+
background: {{menuBackground}}; /* Old browsers */
|
151
|
+
border-radius: {{borderRadius}};
|
152
|
+
border: 1px solid {{menuBorder}};
|
153
|
+
}
|
154
|
+
|
155
|
+
/* remove borders for horizontal menus */
|
156
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu{{yuiCssPrefix}}menu-horizontal {
|
157
|
+
border: none;
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
/* LINK STYLES */
|
163
|
+
|
164
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu a {
|
165
|
+
border: 1px solid transparent;
|
166
|
+
border-left: none;
|
167
|
+
border-right: none;
|
168
|
+
|
169
|
+
}
|
170
|
+
|
171
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu a,
|
172
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu {{yuiCssPrefix}}menu-can-have-children > li:after {
|
173
|
+
color: {{menuText}};
|
174
|
+
}
|
175
|
+
|
176
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu {{yuiCssPrefix}}menu-can-have-children > li:hover:after {
|
177
|
+
color: {{menuHoverText}};
|
178
|
+
}
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
/* HOVER STATES */
|
183
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu li a:hover {
|
184
|
+
background: {{menuHoverBackground}};
|
185
|
+
}
|
186
|
+
|
187
|
+
/* DISABLED STATES */
|
188
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu li{{yuiCssPrefix}}menu-disabled a:hover {
|
189
|
+
background: {{menuBackground}};
|
190
|
+
color: {{menuTextDisabled}};
|
191
|
+
}
|
192
|
+
|
193
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu {{yuiCssPrefix}}menu-disabled > a {
|
194
|
+
background-image: none;
|
195
|
+
border-color: transparent;
|
196
|
+
cursor: default;
|
197
|
+
}
|
198
|
+
|
199
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu {{yuiCssPrefix}}menu-disabled > a,
|
200
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu {{yuiCssPrefix}}menu-can-have-children{{yuiCssPrefix}}menu-disabled > a:after {
|
201
|
+
color: {{menuTextDisabled}};
|
202
|
+
}
|
203
|
+
|
204
|
+
/* HEADINGS */
|
205
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu {{yuiCssPrefix}}menu-heading {
|
206
|
+
color: {{headingText}};
|
207
|
+
text-transform: uppercase;
|
208
|
+
font-size:90%;
|
209
|
+
margin-top:0.5em;
|
210
|
+
}
|
211
|
+
|
212
|
+
|
213
|
+
/* SELECTED MENU ITEM */
|
214
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu li{{yuiCssPrefix}}menu-selected a {
|
215
|
+
background-color: {{menuSelectedBackground}};
|
216
|
+
color: {{menuSelectedText}};
|
217
|
+
}
|
218
|
+
|
219
|
+
/* FIXED MENU */
|
220
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu{{yuiCssPrefix}}menu-open{{yuiCssPrefix}}menu-fixed {
|
221
|
+
border: none;
|
222
|
+
border-bottom: 1px solid {{fixedMenuBorderBottom}};
|
223
|
+
}
|
224
|
+
/* end from YUICSS list.css ***********************************/
|
225
|
+
/* from YUICSS list-responsive.css ****************************/
|
226
|
+
/* RESPONSIVE */
|
227
|
+
|
228
|
+
@media (max-width: 480px) {
|
229
|
+
|
230
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-horizontal {
|
231
|
+
width:100%;
|
232
|
+
}
|
233
|
+
|
234
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}menu-children li {
|
235
|
+
display: block;
|
236
|
+
border-bottom:1px solid block;
|
237
|
+
}
|
238
|
+
|
239
|
+
}
|
240
|
+
/* end from list-responsive.css ******************/
|
241
|
+
|
@@ -0,0 +1,72 @@
|
|
1
|
+
|
2
|
+
/* foundational CSS */
|
3
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table {
|
4
|
+
/* Remove spacing between table cells (from Normalize.css) */
|
5
|
+
border-collapse: separate;
|
6
|
+
border-spacing: 0;
|
7
|
+
empty-cells: show;
|
8
|
+
border: 1px solid {{border}};
|
9
|
+
}
|
10
|
+
|
11
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table caption {
|
12
|
+
color: {{captionText}};
|
13
|
+
font: italic 85%/1 arial, sans-serif;
|
14
|
+
padding: 1em 0;
|
15
|
+
text-align: center;
|
16
|
+
}
|
17
|
+
|
18
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table td,
|
19
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table th {
|
20
|
+
border-left: 1px solid {{border}};/* inner column border */
|
21
|
+
border-width: 0 0 0 1px;
|
22
|
+
font-size: inherit;
|
23
|
+
margin: 0;
|
24
|
+
overflow: visible; /*to make ths where the title is really long work*/
|
25
|
+
padding: {{cellPadding}}; /* cell padding */
|
26
|
+
}
|
27
|
+
|
28
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table td:first-child,
|
29
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table th:first-child {
|
30
|
+
border-left-width: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table thead {
|
34
|
+
background-color: {{headBackground}};
|
35
|
+
color: {{headText}};
|
36
|
+
text-align: left;
|
37
|
+
vertical-align: bottom;
|
38
|
+
white-space: nowrap;
|
39
|
+
}
|
40
|
+
|
41
|
+
/*
|
42
|
+
striping:
|
43
|
+
even - #fff (white)
|
44
|
+
odd - #edf5ff (light blue)
|
45
|
+
*/
|
46
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table td {
|
47
|
+
background-color: {{cellBackground}};
|
48
|
+
color: {{cellText}};
|
49
|
+
}
|
50
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table-odd td {
|
51
|
+
background-color: {{cellOddBackground}};
|
52
|
+
color: {{cellOddText}};
|
53
|
+
}
|
54
|
+
|
55
|
+
/* BORDERED TABLES */
|
56
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table-bordered td {
|
57
|
+
border-bottom:1px solid {{border}};
|
58
|
+
}
|
59
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table-bordered tbody > tr:last-child td,
|
60
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table-horizontal tbody > tr:last-child td {
|
61
|
+
border-bottom-width: 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
/* HORIZONTAL BORDERED TABLES */
|
65
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table-horizontal td,
|
66
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table-horizontal th {
|
67
|
+
border-width: 0 0 1px 0;
|
68
|
+
border-bottom:1px solid {{border}};
|
69
|
+
}
|
70
|
+
{{yuiCssPrefix}}{{skinName}} {{yuiCssPrefix}}table-horizontal tbody > tr:last-child td {
|
71
|
+
border-bottom-width: 0;
|
72
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Pure::Sass::DefaultTranslation do
|
4
|
+
let(:trans) { Pure::Sass::DefaultTranslation.new }
|
5
|
+
subject { trans }
|
6
|
+
|
7
|
+
it { should respond_to(:yuiCssPrefix) }
|
8
|
+
it { should respond_to(:prefix) }
|
9
|
+
it { should respond_to(:skinName) }
|
10
|
+
|
11
|
+
|
12
|
+
describe "#method_missing" do
|
13
|
+
context "when calling #iCantBelieveThisWorksYo" do
|
14
|
+
subject { trans.iCantBelieveThisWorksYo }
|
15
|
+
it { should eq('$i-cant-believe-this-works-yo')}
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'tempfile'
|
3
|
+
|
4
|
+
describe Pure::Sass::Translation do
|
5
|
+
|
6
|
+
let(:path) { Tempfile.new(['foo', '.handlebars']).path }
|
7
|
+
subject { Pure::Sass::Translation.new(path) }
|
8
|
+
|
9
|
+
it { should respond_to(:path) }
|
10
|
+
it { should respond_to(:render) }
|
11
|
+
|
12
|
+
describe 'rendering' do
|
13
|
+
let(:fixture) { File.expand_path("../../../../fixtures/buttons.css.handlebars", __FILE__) }
|
14
|
+
let(:output) { Tempfile.new(['foo', 'scss']).path }
|
15
|
+
|
16
|
+
subject { Pure::Sass::Translation.new(fixture).render(output) }
|
17
|
+
specify { expect { subject }.not_to raise_error }
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class SassImporter < Sass::Importers::Filesystem
|
2
|
+
def extensions
|
3
|
+
{
|
4
|
+
'css' => :scss,
|
5
|
+
'css.scss' => :scss,
|
6
|
+
'css.sass' => :sass,
|
7
|
+
'css.erb' => :scss,
|
8
|
+
'scss.erb' => :scss,
|
9
|
+
'sass.erb' => :sass,
|
10
|
+
'css.scss.erb' => :scss,
|
11
|
+
'css.sass.erb' => :sass
|
12
|
+
}.merge!(super)
|
13
|
+
end
|
14
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require '
|
1
|
+
require 'bundler'
|
2
|
+
Bundler.require
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pure-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Harton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
@@ -109,6 +109,20 @@ dependencies:
|
|
109
109
|
- - '>='
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: nokogiri
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
127
|
name: bundler
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,6 +137,20 @@ dependencies:
|
|
123
137
|
- - ~>
|
124
138
|
- !ruby/object:Gem::Version
|
125
139
|
version: '1.3'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: flavour_saver
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ~>
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 0.3.1
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ~>
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.3.1
|
126
154
|
- !ruby/object:Gem::Dependency
|
127
155
|
name: sprockets
|
128
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,39 +175,54 @@ extra_rdoc_files: []
|
|
147
175
|
files:
|
148
176
|
- .gitignore
|
149
177
|
- .gitmodules
|
178
|
+
- .ruby-gemset
|
179
|
+
- .ruby-version
|
150
180
|
- .travis.yml
|
151
181
|
- Gemfile
|
152
182
|
- Guardfile
|
153
183
|
- LICENSE.txt
|
154
184
|
- README.md
|
155
185
|
- Rakefile
|
156
|
-
- app/assets/stylesheets/pure/all.css.
|
157
|
-
- app/assets/stylesheets/pure/base.css.
|
158
|
-
- app/assets/stylesheets/pure/base/normalize-context.css.
|
159
|
-
- app/assets/stylesheets/pure/base/normalize.css.
|
160
|
-
- app/assets/stylesheets/pure/buttons.css.
|
161
|
-
- app/assets/stylesheets/pure/buttons/buttons-core.css.
|
162
|
-
- app/assets/stylesheets/pure/buttons/buttons.css.
|
163
|
-
- app/assets/stylesheets/pure/
|
164
|
-
- app/assets/stylesheets/pure/
|
165
|
-
- app/assets/stylesheets/pure/forms
|
166
|
-
- app/assets/stylesheets/pure/forms/forms-
|
167
|
-
- app/assets/stylesheets/pure/forms/forms.css.
|
168
|
-
- app/assets/stylesheets/pure/
|
169
|
-
- app/assets/stylesheets/pure/
|
170
|
-
- app/assets/stylesheets/pure/grids
|
171
|
-
- app/assets/stylesheets/pure/grids/grids-
|
172
|
-
- app/assets/stylesheets/pure/
|
173
|
-
- app/assets/stylesheets/pure/
|
174
|
-
- app/assets/stylesheets/pure/
|
175
|
-
- app/assets/stylesheets/pure/menus
|
176
|
-
- app/assets/stylesheets/pure/menus/menus.css.
|
177
|
-
- app/assets/stylesheets/pure/
|
178
|
-
- app/assets/stylesheets/pure/
|
186
|
+
- app/assets/stylesheets/pure/all.css.scss
|
187
|
+
- app/assets/stylesheets/pure/base.css.scss
|
188
|
+
- app/assets/stylesheets/pure/base/normalize-context.css.scss
|
189
|
+
- app/assets/stylesheets/pure/base/normalize.css.scss
|
190
|
+
- app/assets/stylesheets/pure/buttons.css.scss
|
191
|
+
- app/assets/stylesheets/pure/buttons/buttons-core.css.scss
|
192
|
+
- app/assets/stylesheets/pure/buttons/buttons-theme.css.scss
|
193
|
+
- app/assets/stylesheets/pure/buttons/buttons.css.scss
|
194
|
+
- app/assets/stylesheets/pure/defaults.css.scss
|
195
|
+
- app/assets/stylesheets/pure/forms.css.scss
|
196
|
+
- app/assets/stylesheets/pure/forms/forms-core.css.scss
|
197
|
+
- app/assets/stylesheets/pure/forms/forms-r.css.scss
|
198
|
+
- app/assets/stylesheets/pure/forms/forms-theme.css.scss
|
199
|
+
- app/assets/stylesheets/pure/forms/forms.css.scss
|
200
|
+
- app/assets/stylesheets/pure/grids.css.scss
|
201
|
+
- app/assets/stylesheets/pure/grids/grids-core.css.scss
|
202
|
+
- app/assets/stylesheets/pure/grids/grids-r.css.scss
|
203
|
+
- app/assets/stylesheets/pure/grids/grids-units.css.scss
|
204
|
+
- app/assets/stylesheets/pure/lists/lists-theme.css.scss
|
205
|
+
- app/assets/stylesheets/pure/menus.css.scss
|
206
|
+
- app/assets/stylesheets/pure/menus/menus-core.css.scss
|
207
|
+
- app/assets/stylesheets/pure/menus/menus-paginator.css.scss
|
208
|
+
- app/assets/stylesheets/pure/menus/menus-r.css.scss
|
209
|
+
- app/assets/stylesheets/pure/menus/menus.css.scss
|
210
|
+
- app/assets/stylesheets/pure/tables.css.scss
|
211
|
+
- app/assets/stylesheets/pure/tables/tables-theme.css.scss
|
212
|
+
- app/assets/stylesheets/pure/tables/tables.css.scss
|
179
213
|
- lib/pure/sass.rb
|
214
|
+
- lib/pure/sass/default_translation.rb
|
215
|
+
- lib/pure/sass/translation.rb
|
180
216
|
- lib/pure/sass/version.rb
|
181
217
|
- pure-sass.gemspec
|
182
|
-
- spec/
|
218
|
+
- spec/acceptance/sass_spec.rb
|
219
|
+
- spec/fixtures/buttons.css.handlebars
|
220
|
+
- spec/fixtures/form.css.handlebars
|
221
|
+
- spec/fixtures/list.css.handlebars
|
222
|
+
- spec/fixtures/table.css.handlebars
|
223
|
+
- spec/lib/pure/sass/default_translation_spec.rb
|
224
|
+
- spec/lib/pure/sass/translation_spec.rb
|
225
|
+
- spec/sass_importer.rb
|
183
226
|
- spec/spec_helper.rb
|
184
227
|
homepage: ''
|
185
228
|
licenses:
|
@@ -201,10 +244,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
244
|
version: '0'
|
202
245
|
requirements: []
|
203
246
|
rubyforge_project:
|
204
|
-
rubygems_version: 2.0.
|
247
|
+
rubygems_version: 2.0.3
|
205
248
|
signing_key:
|
206
249
|
specification_version: 4
|
207
250
|
summary: Yahoo's purecss ported to SASS
|
208
251
|
test_files:
|
209
|
-
- spec/
|
252
|
+
- spec/acceptance/sass_spec.rb
|
253
|
+
- spec/fixtures/buttons.css.handlebars
|
254
|
+
- spec/fixtures/form.css.handlebars
|
255
|
+
- spec/fixtures/list.css.handlebars
|
256
|
+
- spec/fixtures/table.css.handlebars
|
257
|
+
- spec/lib/pure/sass/default_translation_spec.rb
|
258
|
+
- spec/lib/pure/sass/translation_spec.rb
|
259
|
+
- spec/sass_importer.rb
|
210
260
|
- spec/spec_helper.rb
|
@@ -1,152 +0,0 @@
|
|
1
|
-
/* THIS FILE IS GENERATED BY A BUILD SCRIPT - DO NOT EDIT!
|
2
|
-
|
3
|
-
.pure
|
4
|
-
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary
|
5
|
-
display: block
|
6
|
-
audio, canvas, video
|
7
|
-
display: inline-block
|
8
|
-
audio:not([controls])
|
9
|
-
display: none
|
10
|
-
height: 0
|
11
|
-
[hidden]
|
12
|
-
display: none
|
13
|
-
font-size: 100%
|
14
|
-
-ms-text-size-adjust: 100%
|
15
|
-
-webkit-text-size-adjust: 100%
|
16
|
-
font-family: sans-serif
|
17
|
-
button, input, select, textarea
|
18
|
-
font-family: sans-serif
|
19
|
-
body
|
20
|
-
margin: 0
|
21
|
-
a
|
22
|
-
&:focus
|
23
|
-
outline: thin dotted
|
24
|
-
&:active, &:hover
|
25
|
-
outline: 0
|
26
|
-
h1
|
27
|
-
font-size: 2em
|
28
|
-
margin: 0.67em 0
|
29
|
-
h2
|
30
|
-
font-size: 1.5em
|
31
|
-
margin: 0.83em 0
|
32
|
-
h3
|
33
|
-
font-size: 1.17em
|
34
|
-
margin: 1em 0
|
35
|
-
h4
|
36
|
-
font-size: 1em
|
37
|
-
margin: 1.33em 0
|
38
|
-
h5
|
39
|
-
font-size: 0.83em
|
40
|
-
margin: 1.67em 0
|
41
|
-
h6
|
42
|
-
font-size: 0.67em
|
43
|
-
margin: 2.33em 0
|
44
|
-
abbr[title]
|
45
|
-
border-bottom: 1px dotted
|
46
|
-
b, strong
|
47
|
-
font-weight: bold
|
48
|
-
blockquote
|
49
|
-
margin: 1em 40px
|
50
|
-
dfn
|
51
|
-
font-style: italic
|
52
|
-
hr
|
53
|
-
-moz-box-sizing: content-box
|
54
|
-
box-sizing: content-box
|
55
|
-
height: 0
|
56
|
-
mark
|
57
|
-
background: #ff0
|
58
|
-
color: #000
|
59
|
-
p, pre
|
60
|
-
margin: 1em 0
|
61
|
-
code, kbd, pre, samp
|
62
|
-
font-family: monospace , serif
|
63
|
-
_font-family: 'courier new' , monospace
|
64
|
-
font-size: 1em
|
65
|
-
pre
|
66
|
-
white-space: pre
|
67
|
-
white-space: pre-wrap
|
68
|
-
word-wrap: break-word
|
69
|
-
q
|
70
|
-
quotes: none
|
71
|
-
&:before, &:after
|
72
|
-
content: ''
|
73
|
-
content: none
|
74
|
-
small
|
75
|
-
font-size: 80%
|
76
|
-
sub
|
77
|
-
font-size: 75%
|
78
|
-
line-height: 0
|
79
|
-
position: relative
|
80
|
-
vertical-align: baseline
|
81
|
-
sup
|
82
|
-
font-size: 75%
|
83
|
-
line-height: 0
|
84
|
-
position: relative
|
85
|
-
vertical-align: baseline
|
86
|
-
top: -0.5em
|
87
|
-
sub
|
88
|
-
bottom: -0.25em
|
89
|
-
dl, menu, ol, ul
|
90
|
-
margin: 1em 0
|
91
|
-
dd
|
92
|
-
margin: 0 0 0 40px
|
93
|
-
menu, ol, ul
|
94
|
-
padding: 0 0 0 40px
|
95
|
-
nav
|
96
|
-
ul, ol
|
97
|
-
list-style: none
|
98
|
-
list-style-image: none
|
99
|
-
img
|
100
|
-
border: 0
|
101
|
-
-ms-interpolation-mode: bicubic
|
102
|
-
svg:not(:root)
|
103
|
-
overflow: hidden
|
104
|
-
figure, form
|
105
|
-
margin: 0
|
106
|
-
fieldset
|
107
|
-
border: 1px solid #c0c0c0
|
108
|
-
margin: 0 2px
|
109
|
-
padding: 0.35em 0.625em 0.75em
|
110
|
-
legend
|
111
|
-
border: 0
|
112
|
-
padding: 0
|
113
|
-
white-space: normal
|
114
|
-
button, input, select, textarea
|
115
|
-
font-size: 100%
|
116
|
-
margin: 0
|
117
|
-
vertical-align: baseline
|
118
|
-
button, input
|
119
|
-
line-height: normal
|
120
|
-
button, select
|
121
|
-
text-transform: none
|
122
|
-
button
|
123
|
-
-webkit-appearance: button
|
124
|
-
cursor: pointer
|
125
|
-
input
|
126
|
-
&[type="button"], &[type="reset"], &[type="submit"]
|
127
|
-
-webkit-appearance: button
|
128
|
-
cursor: pointer
|
129
|
-
button[disabled]
|
130
|
-
cursor: default
|
131
|
-
input
|
132
|
-
&[disabled]
|
133
|
-
cursor: default
|
134
|
-
&[type="checkbox"], &[type="radio"]
|
135
|
-
box-sizing: border-box
|
136
|
-
padding: 0
|
137
|
-
&[type="search"]
|
138
|
-
-webkit-appearance: textfield
|
139
|
-
-moz-box-sizing: content-box
|
140
|
-
-webkit-box-sizing: content-box
|
141
|
-
box-sizing: content-box
|
142
|
-
&::-webkit-search-cancel-button, &::-webkit-search-decoration
|
143
|
-
-webkit-appearance: none
|
144
|
-
button::-moz-focus-inner, input::-moz-focus-inner
|
145
|
-
border: 0
|
146
|
-
padding: 0
|
147
|
-
textarea
|
148
|
-
overflow: auto
|
149
|
-
vertical-align: top
|
150
|
-
table
|
151
|
-
border-collapse: collapse
|
152
|
-
border-spacing: 0
|