compass-pattern-primer 0.2.8 → 0.3.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +2 -1
  3. data/README.md +86 -46
  4. data/lib/compass-pattern-primer.rb +2 -2
  5. data/stylesheets/compass-pattern-primer/_reset.scss +0 -9
  6. data/stylesheets/compass-pattern-primer/partials/_colors.scss +2 -4
  7. data/stylesheets/compass-pattern-primer/reset/_reset.scss +2 -19
  8. data/stylesheets/compass-pattern-primer/reset/libraries/_eric_meyer_reset.scss +1 -51
  9. data/stylesheets/compass-pattern-primer/reset/libraries/_formalize.scss +1 -378
  10. data/stylesheets/compass-pattern-primer/reset/libraries/_normalize.scss +1 -935
  11. data/templates/adactio/config.rb +28 -0
  12. data/templates/adactio/manifest.rb +67 -0
  13. data/templates/project/config.rb +29 -0
  14. data/templates/project/manifest.rb +67 -26
  15. data/templates/shared/patterns/blockquote.html +3 -0
  16. data/templates/shared/patterns/colorguide.html +34 -0
  17. data/templates/shared/patterns/feedback-error-new.html +3 -0
  18. data/templates/shared/patterns/feedback-error.html +3 -0
  19. data/templates/shared/patterns/feedback-new.html +3 -0
  20. data/templates/shared/patterns/feedback-warning.html +3 -0
  21. data/templates/shared/patterns/feedback.html +3 -0
  22. data/templates/shared/patterns/form-buttons-active.html +3 -0
  23. data/templates/shared/patterns/form-buttons-all.html +4 -0
  24. data/templates/shared/patterns/form-buttons-cancel.html +3 -0
  25. data/templates/shared/patterns/form-buttons-disabled.html +3 -0
  26. data/templates/shared/patterns/form-buttons-new.html +3 -0
  27. data/templates/shared/patterns/form-buttons.html +3 -0
  28. data/templates/shared/patterns/form-checkbox.html +1 -0
  29. data/templates/shared/patterns/form-email.html +2 -0
  30. data/templates/shared/patterns/form-number.html +2 -0
  31. data/templates/shared/patterns/form-select.html +3 -0
  32. data/templates/shared/patterns/form-text.html +2 -0
  33. data/templates/shared/patterns/form-textarea.html +2 -0
  34. data/templates/shared/patterns/form-url.html +2 -0
  35. data/templates/shared/patterns/headers.html +6 -0
  36. data/templates/shared/patterns/heading-1-p.html +8 -0
  37. data/templates/shared/patterns/heading-1.html +1 -0
  38. data/templates/shared/patterns/heading-2-p.html +8 -0
  39. data/templates/shared/patterns/heading-2.html +1 -0
  40. data/templates/shared/patterns/heading-3-p.html +8 -0
  41. data/templates/shared/patterns/heading-3.html +1 -0
  42. data/templates/shared/patterns/heading-4-p.html +8 -0
  43. data/templates/shared/patterns/heading-4.html +1 -0
  44. data/templates/shared/patterns/heading-5-p.html +8 -0
  45. data/templates/shared/patterns/heading-5.html +1 -0
  46. data/templates/shared/patterns/heading-6-p.html +8 -0
  47. data/templates/shared/patterns/heading-6.html +1 -0
  48. data/templates/shared/patterns/list-ordered.html +5 -0
  49. data/templates/shared/patterns/list-unordered.html +5 -0
  50. data/templates/shared/patterns/pagination-first.html +12 -0
  51. data/templates/shared/patterns/pagination-last.html +12 -0
  52. data/templates/shared/patterns/pagination.html +12 -0
  53. data/templates/shared/patterns/text-new.html +67 -0
  54. data/templates/shared/patterns/text.html +1 -0
  55. data/templates/shared/php/adactio-pattern-primer.php +52 -0
  56. data/templates/shared/php/pattern-primer.php +35 -0
  57. data/templates/{project → shared/sass}/base/_page.scss +0 -0
  58. data/templates/shared/sass/global-adactio.scss +41 -0
  59. data/templates/{project → shared/sass}/global.scss +2 -12
  60. data/templates/{project → shared/sass}/layout/_page.scss +0 -0
  61. data/templates/{project → shared/sass}/modules/_footer.scss +0 -0
  62. data/templates/{project → shared/sass}/modules/_header.scss +0 -0
  63. data/templates/{project → shared/sass}/partials/_browsers.scss +0 -0
  64. data/templates/{project → shared/sass}/partials/_colors.scss +0 -0
  65. data/templates/{project → shared/sass}/partials/_extendables.scss +0 -0
  66. data/templates/{project → shared/sass}/partials/_functions.scss +0 -0
  67. data/templates/{project → shared/sass}/partials/_mixins.scss +0 -0
  68. data/templates/shared/sass/partials/_variables-adactio.scss +3 -0
  69. data/templates/{project → shared/sass}/partials/_variables.scss +0 -0
  70. data/templates/{project → shared/sass}/partials/variables/base/_page.scss +0 -0
  71. data/templates/{project → shared/sass}/partials/variables/layout/_breakpoints.scss +0 -0
  72. data/templates/{project → shared/sass}/partials/variables/layout/_page.scss +0 -0
  73. data/templates/{project → shared/sass}/partials/variables/modules/_footer.scss +0 -0
  74. data/templates/{project → shared/sass}/partials/variables/modules/_header.scss +0 -0
  75. data/templates/{project → shared/sass}/partials/variables/state/_footer.scss +0 -0
  76. data/templates/{project → shared/sass}/partials/variables/state/_header.scss +0 -0
  77. data/templates/{project → shared/sass}/partials/variables/state/_page.scss +0 -0
  78. data/templates/{project → shared/sass}/partials/variables/theme/_overrides.scss +0 -0
  79. data/templates/{project → shared/sass}/partials/variables/theme/_page.scss +0 -0
  80. data/templates/shared/sass/pattern-primer.scss +25 -0
  81. data/templates/{project → shared/sass}/state/_footer.scss +0 -0
  82. data/templates/{project → shared/sass}/state/_header.scss +0 -0
  83. data/templates/{project → shared/sass}/state/_page.scss +0 -0
  84. data/templates/{project → shared/sass}/theme/_page.scss +0 -0
  85. data/templates/static/config.rb +29 -0
  86. data/templates/static/manifest.rb +65 -0
  87. data/templates/{project → static}/pattern-primer.html +8 -9
  88. metadata +109 -29
@@ -1,378 +1 @@
1
- $legacy-support-for-ie6: true !default;
2
-
3
- @import "compass/css3";
4
-
5
- @mixin formalize() {
6
-
7
- // FORMALIZE
8
- // Note: This file is dependent on Sass and Compass.
9
- // Sass = http://sass-lang.com
10
- // Compass = http://compass-style.org
11
-
12
- // `Widths
13
- //----------------------------------------------------------------------------------------------------
14
-
15
- .input_tiny {
16
- width: 50px;
17
- }
18
-
19
- .input_small {
20
- width: 100px;
21
- }
22
-
23
- .input_medium {
24
- width: 150px;
25
- }
26
-
27
- .input_large {
28
- width: 200px;
29
- }
30
-
31
- .input_xlarge {
32
- width: 250px;
33
- }
34
-
35
- .input_xxlarge {
36
- width: 300px;
37
- }
38
-
39
- .input_full {
40
- width: 100%;
41
- }
42
-
43
- // Added via JS to <textarea> and class="input-full".
44
- // Applies only to IE7. Other browsers don't need it.
45
-
46
- .input_full_wrap {
47
- display: block;
48
- padding-right: 8px;
49
- }
50
-
51
- // `UI Consistency
52
- //----------------------------------------------------------------------------------------------------
53
-
54
- input[type="search"]::-webkit-search-decoration {
55
- display: none;
56
- }
57
-
58
- input,
59
- button,
60
- a.button,
61
- select,
62
- textarea {
63
- // Suppress red glow that Firefox
64
- // adds to form fields by default.
65
- &:invalid {
66
- @include box-shadow(none);
67
- }
68
- // Add blue glow.
69
- &:focus {
70
- @include box-shadow(#0066ff 0 0 5px 0);
71
- // for Opera
72
- z-index: 1;
73
- }
74
- }
75
-
76
- input[type="file"],
77
- input[type="radio"],
78
- input[type="checkbox"] {
79
- &:focus,
80
- &:active {
81
- @include box-shadow(none);
82
- }
83
- }
84
-
85
- button,
86
- a.button,
87
- input[type="reset"],
88
- input[type="submit"],
89
- input[type="button"] {
90
- -webkit-appearance: none;
91
- @include border-radius(4px);
92
- @include background-clip(padding-box);
93
- background: #ddd;
94
- @include background-image(linear-gradient(white, #dddddd));
95
- border: 1px solid;
96
- border-color: #dddddd #bbbbbb #999999;
97
- cursor: pointer;
98
- color: #333333;
99
- display: inline-block;
100
- // Helvetica Neue present, because it works better
101
- // for line-height on buttons than Arial, on OS X.
102
- font: bold 12px / 1.3 "Helvetica Neue", Arial, "Liberation Sans", FreeSans, sans-serif;
103
- outline: 0;
104
- overflow: visible;
105
- margin: 0;
106
- padding: 3px 10px;
107
- text-shadow: white 0 1px 1px;
108
- text-decoration: none;
109
- vertical-align: top;
110
- width: auto;
111
- &:hover {
112
- @include background-image(linear-gradient(white, #eeeeee 1px, #cccccc));
113
- }
114
- &:active {
115
- @include background-image(linear-gradient(white, #dddddd 1px, #eeeeee));
116
- @include box-shadow(inset rgba(black, 0.25) 0 1px 2px 0);
117
- border-color: #999999 #bbbbbb #dddddd;
118
- }
119
- // IE7
120
- *padding-top: 2px;
121
- *padding-bottom: 0;
122
- // Kill phantom spacing and dotted
123
- // border that appears in Firefox.
124
- &::-moz-focus-inner {
125
- border: 0;
126
- padding: 0;
127
- }
128
- }
129
-
130
- a.button {
131
- // IE7
132
- *padding-bottom: 3px;
133
- }
134
-
135
- button {
136
- // IE7
137
- *padding-top: 1px;
138
- *padding-bottom: 1px;
139
- }
140
-
141
- textarea,
142
- select,
143
- input[type="date"],
144
- input[type="datetime"],
145
- input[type="datetime-local"],
146
- input[type="email"],
147
- input[type="month"],
148
- input[type="number"],
149
- input[type="password"],
150
- input[type="search"],
151
- input[type="tel"],
152
- input[type="text"],
153
- input[type="time"],
154
- input[type="url"],
155
- input[type="week"] {
156
- @include box-sizing(border-box);
157
- @include background-clip(padding-box);
158
- @include border-radius(0);
159
- -webkit-appearance: none;
160
- background-color: white;
161
- border: 1px solid;
162
- border-color: #848484 #c1c1c1 #e1e1e1;
163
- color: black;
164
- outline: 0;
165
- margin: 0;
166
- padding: 2px 3px;
167
- text-align: left;
168
- font-size: 13px;
169
- // Leaving out Helvetica Neue, to not throw off size="..."
170
- // on inputs. Arial is more reliable, on Windows and OS X.
171
- font-family: Arial, "Liberation Sans", FreeSans, sans-serif;
172
- height: 1.8em;
173
- vertical-align: top;
174
- // IE7
175
- *padding-top: 2px;
176
- *padding-bottom: 1px;
177
- *height: auto;
178
- &[disabled] {
179
- background-color: #eeeeee;
180
- }
181
- }
182
-
183
- button[disabled],
184
- input[disabled],
185
- select[disabled],
186
- select[disabled] option,
187
- select[disabled] optgroup,
188
- textarea[disabled],
189
- a.button_disabled {
190
- @include box-shadow(none);
191
- -moz-user-select: -moz-none;
192
- -webkit-user-select: none;
193
- -khtml-user-select: none;
194
- user-select: none;
195
- color: #888888;
196
- cursor: default;
197
- }
198
-
199
- // Separate rule for Firefox.
200
- // Separate rule for IE, too.
201
- // Cannot stack with WebKit's.
202
- input::-webkit-input-placeholder,
203
- textarea::-webkit-input-placeholder {
204
- color: #888888;
205
- }
206
-
207
- input:-moz-placeholder,
208
- textarea:-moz-placeholder {
209
- color: #888888;
210
- }
211
-
212
- input.placeholder_text,
213
- textarea.placeholder_text {
214
- color: #888888;
215
- }
216
-
217
- textarea,
218
- select[size],
219
- select[multiple] {
220
- height: auto;
221
- }
222
-
223
- // Set height back to normal,
224
- // for Opera, WebKit, and IE.
225
- select[size="0"],
226
- select[size="1"] {
227
- height: 1.8em;
228
- // IE7
229
- *height: auto;
230
- }
231
-
232
- // Tweaks for Safari + Chrome.
233
- @media (-webkit-min-device-pixel-ratio: 0) {
234
- select[size],
235
- select[multiple],
236
- select[multiple][size] {
237
- background-image: none;
238
- padding-right: 3px;
239
- }
240
- select,
241
- select[size="0"],
242
- select[size="1"] {
243
- // Base64 encoded "../images/select_arrow.gif"
244
- background-image: url(data:image/png;base64,R0lGODlhDQAEAIAAAAAAAP8A/yH5BAEHAAEALAAAAAANAAQAAAILhA+hG5jMDpxvhgIAOw==);
245
- background-repeat: no-repeat;
246
- background-position: right center;
247
- padding-right: 20px;
248
- }
249
- ::-webkit-validation-bubble-message {
250
- -webkit-box-shadow: none;
251
- box-shadow: none;
252
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #666666), color-stop(1, black));
253
- border: 1px solid;
254
- border-color: #747474 #5e5e5e #4f4f4f;
255
- color: white;
256
- font: 13px / 17px "Lucida Grande", Arial, "Liberation Sans", FreeSans, sans-serif;
257
- overflow: hidden;
258
- padding: 15px 15px 17px;
259
- text-shadow: black 0 0 1px;
260
- height: 16px;
261
- }
262
- ::-webkit-validation-bubble-arrow,
263
- ::-webkit-validation-bubble-top-outer-arrow,
264
- ::-webkit-validation-bubble-top-inner-arrow {
265
- -webkit-box-shadow: none;
266
- box-shadow: none;
267
- background: #666666;
268
- border: 0;
269
- }
270
- }
271
-
272
- textarea {
273
- min-height: 40px;
274
- overflow: auto;
275
- resize: vertical;
276
- width: 100%;
277
- }
278
-
279
- optgroup {
280
- color: black;
281
- font-style: normal;
282
- font-weight: normal;
283
- // Font family repeated, for Firefox.
284
- font-family: Arial, "Liberation Sans", FreeSans, sans-serif;
285
- // Kill phantom spacing and dotted
286
- // border that appears in Firefox.
287
- &::-moz-focus-inner {
288
- border: 0;
289
- padding: 0;
290
- }
291
- }
292
-
293
- @if $legacy-support-for-ie6 {
294
-
295
- // Note: This file is dependent on Sass and Compass.
296
- // Sass = http://sass-lang.com
297
- // Compass = http://compass-style.org
298
-
299
- // `IE6
300
- //----------------------------------------------------------------------------------------------------
301
-
302
- // Everything below this line is for IE6.
303
- // Delete it if you don't support it! :)
304
-
305
- // Classes are added dynamically via JS,
306
- // because IE6 doesn't support attribute
307
- // selectors: .ie6_button, .ie6_input, etc.
308
-
309
- // Note: These style rules are somewhat
310
- // duplicated because IE6 bombs out when
311
- // it sees attribute selectors. Example:
312
-
313
- // .ie6_button {
314
- // This works in IE6.
315
- // }
316
-
317
- // .ie6_button,
318
- // input[type=submit] {
319
- // This doesn't work.
320
- // }
321
-
322
- .ie6_button,
323
- * html button,
324
- * html a.button {
325
- //background: #dddddd image-url("button.png") repeat-x;
326
- background: #dddddd;
327
- border: 1px solid;
328
- border-color: #dddddd #bbbbbb #999999;
329
- cursor: pointer;
330
- color: #333333;
331
- font: bold 12px / 1.2 Arial, sans-serif;
332
- padding: 2px 10px 0px;
333
- text-decoration: none;
334
- overflow: visible;
335
- vertical-align: top;
336
- width: auto;
337
- }
338
-
339
- * html a.button {
340
- position: relative;
341
- top: 3px;
342
- padding-bottom: 2px;
343
- }
344
-
345
- * html button {
346
- padding-top: 1px;
347
- padding-bottom: 1px;
348
- }
349
-
350
- .ie6_input,
351
- * html textarea,
352
- * html select {
353
- background: white;
354
- border: 1px solid;
355
- border-color: #848484 #c1c1c1 #e1e1e1;
356
- color: black;
357
- padding: 2px 3px 1px;
358
- font-size: 13px;
359
- font-family: Arial, sans-serif;
360
- vertical-align: top;
361
- }
362
-
363
- * html select {
364
- margin-top: 1px;
365
- }
366
-
367
- .placeholder_text,
368
- .ie6_input_disabled,
369
- .ie6_button_disabled {
370
- color: #888888;
371
- }
372
-
373
- .ie6_input_disabled {
374
- background: #eeeeee;
375
- }
376
-
377
- }
378
- }
1
+ @import "formalize";