piecss 0.1.0.alpha.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +7 -0
  3. data/lib/piecss.rb +6 -0
  4. data/sass/piecss/behavior.scss +11 -0
  5. data/sass/piecss/behavior/anchor.scss +30 -0
  6. data/sass/piecss/behavior/base.scss +4 -0
  7. data/sass/piecss/behavior/base/normalize.scss +458 -0
  8. data/sass/piecss/behavior/base/preset.scss +57 -0
  9. data/sass/piecss/behavior/form.scss +120 -0
  10. data/sass/piecss/behavior/grid.scss +4 -0
  11. data/sass/piecss/behavior/grid/layout.scss +170 -0
  12. data/sass/piecss/behavior/grid/rhythm.scss +54 -0
  13. data/sass/piecss/behavior/list.scss +189 -0
  14. data/sass/piecss/settings.scss +18 -0
  15. data/sass/piecss/settings/base.scss +177 -0
  16. data/sass/piecss/settings/breakpoint.scss +32 -0
  17. data/sass/piecss/settings/constants.scss +147 -0
  18. data/sass/piecss/settings/fonts.scss +31 -0
  19. data/sass/piecss/settings/fonts/_asap.scss +44 -0
  20. data/sass/piecss/settings/fonts/_bree-serif.scss +23 -0
  21. data/sass/piecss/settings/fonts/_example.scss +43 -0
  22. data/sass/piecss/settings/fonts/_lato.scss +32 -0
  23. data/sass/piecss/settings/fonts/_monospace.scss +39 -0
  24. data/sass/piecss/settings/fonts/_pt-sans.scss +40 -0
  25. data/sass/piecss/settings/fonts/_raleway.scss +31 -0
  26. data/sass/piecss/settings/fonts/_righteous.scss +23 -0
  27. data/sass/piecss/settings/fonts/_roboto.scss +34 -0
  28. data/sass/piecss/settings/fonts/_sans-serif.scss +39 -0
  29. data/sass/piecss/settings/fonts/_serif.scss +39 -0
  30. data/sass/piecss/settings/fonts/_sofia-pro.scss +40 -0
  31. data/sass/piecss/settings/fonts/_varela-round.scss +24 -0
  32. data/sass/piecss/settings/fonts/_verdana.scss +40 -0
  33. data/sass/piecss/settings/fonts/icon-fonts/_fontawesome.scss +33 -0
  34. data/sass/piecss/settings/fonts/icon-fonts/_foundation-accessability.scss +75 -0
  35. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_bootstrap.scss +84 -0
  36. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_core.scss +129 -0
  37. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_extras.scss +93 -0
  38. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_icons.scss +381 -0
  39. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_mixins.scss +48 -0
  40. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_path.scss +14 -0
  41. data/sass/piecss/settings/fonts/icon-fonts/fontawesome/_variables.scss +734 -0
  42. data/sass/piecss/settings/fonts/icon-fonts/foundation-accessability/_settings.scss +28 -0
  43. data/sass/piecss/settings/form.scss +664 -0
  44. data/sass/piecss/settings/grid.scss +157 -0
  45. data/sass/piecss/settings/list.scss +216 -0
  46. data/sass/piecss/utilities.scss +16 -0
  47. data/sass/piecss/utilities/README.md +105 -0
  48. data/sass/piecss/utilities/breakpoint.scss +46 -0
  49. data/sass/piecss/utilities/cache.scss +74 -0
  50. data/sass/piecss/utilities/elements.scss +182 -0
  51. data/sass/piecss/utilities/image.scss +58 -0
  52. data/sass/piecss/utilities/layout.scss +367 -0
  53. data/sass/piecss/utilities/list.scss +26 -0
  54. data/sass/piecss/utilities/miscellaneous.scss +260 -0
  55. data/sass/piecss/utilities/rhythm.scss +173 -0
  56. data/sass/piecss/utilities/sides.scss +376 -0
  57. data/sass/piecss/utilities/typography.scss +295 -0
  58. data/sass/piecss/utilities/units.scss +166 -0
  59. data/templates/project/_settings.scss +24 -0
  60. data/templates/project/examples.html +224 -0
  61. data/templates/project/manifest.rb +13 -0
  62. data/templates/project/screen.scss +96 -0
  63. metadata +133 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 944385e7c6a35435a21b9f301fd67a16e9e0a60a
4
+ data.tar.gz: f53fdef473aa505646008c4e56cf2db1c32a75fa
5
+ SHA512:
6
+ metadata.gz: 22aca67be9c0c683ef26c9d9b11e5ce37429b24d4dd3388ce3adcc8c26bd4b0a4fda2e088760d781676ceef4e03fb39b6fec6201355420e83182bbe5e882c6e5
7
+ data.tar.gz: 34d1ee094b8b5afb83038555e689df2ac43f486ff370a62b13b4fd410e82c81632e5731627a1c5bd6e27e342d4f2ecdc4a6a0be1ce948d2622309fa058da826c
data/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Piecss
2
+
3
+ gem install piecss
4
+
5
+ More info can be found here: [http://www.piecss.com](http://www.piecss.com)
6
+
7
+ [![Gem Version](https://badge.fury.io/rb/piecss.svg)](http://badge.fury.io/rb/piecss)
data/lib/piecss.rb ADDED
@@ -0,0 +1,6 @@
1
+ require 'compass'
2
+ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
3
+ Compass::Frameworks.register('piecss',
4
+ :path => extension_path,
5
+ :stylesheets_directory => File.join(extension_path, 'sass'),
6
+ :templates_directory => File.join(extension_path, 'templates'))
@@ -0,0 +1,11 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+
4
+ // ==========================================================================
5
+ // Behavior
6
+ // ==========================================================================
7
+
8
+ @import "behavior/base";
9
+ @import "behavior/grid";
10
+ @import "behavior/form";
11
+ @import "behavior/list";
@@ -0,0 +1,30 @@
1
+ // /*
2
+ // * @copyright Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * @license GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+
6
+
7
+ /*
8
+ -----------------------------------------------------------------------------
9
+ Anchors
10
+ -----------------------------------------------------------------------------
11
+ */
12
+
13
+ // @include anchor("#{$anchor-base-selector}", $color-anchor, $color-anchor--hover, $color-anchor--active, $color-anchor--visited, $anchor-mixin-states);
14
+
15
+ %anchor {
16
+ text-decoration: none;
17
+ &--incognito {
18
+ color: inherit;
19
+ &:hover {
20
+ color: inherit;
21
+ }
22
+ }
23
+ }
24
+
25
+ a {
26
+ @extend %anchor !optional;
27
+ &:hover {
28
+ color: $color-anchor--hover;
29
+ }
30
+ }
@@ -0,0 +1,4 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+ @import "base/normalize";
4
+ @import "base/preset";
@@ -0,0 +1,458 @@
1
+ //*! normalize.css v3.0.1 | MIT License | git.io/normalize *//
2
+
3
+
4
+ /*
5
+ * 1. Apply a natural box layout model to all elements
6
+ * 2. Remove margins from all elements
7
+ * 3. Experimentally align all elements to bottom
8
+ */
9
+
10
+ *,
11
+ *:before,
12
+ *:after {
13
+ -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;
14
+ margin: 0;
15
+ vertical-align: baseline;
16
+ // vertical-align: bottom; this conflicts with radio buttons
17
+ }
18
+
19
+ /*
20
+ * 1. Set base font (family, size, line-height) for conversions to rem and/or em.
21
+ * 2. Set default font family to sans-serif.
22
+ * 3. Prevent iOS text size adjust after orientation change, without disabling
23
+ * user zoom.
24
+ * 4. Set background color.
25
+ */
26
+
27
+ html {
28
+
29
+ $font-style: extract-type-style($default-font);
30
+ $font-variant: extract-type-variant($default-font);
31
+ $font-weight: extract-type-weight($default-font);
32
+ $font-family: extract-type-family($default-font);
33
+
34
+ $font-size: to-unit($default-font-size, 1%, $base-font-size);
35
+ $line-height: to-unit($default-line-height, 1%, $base-font-size);
36
+
37
+ font: #{$font-style} #{$font-variant} #{$font-weight} #{$font-size}/#{$line-height} #{$font-family};
38
+
39
+ -ms-text-size-adjust: 100%; /* 2 */
40
+ -webkit-text-size-adjust: 100%; /* 2 */
41
+ width: 100%;
42
+ background: $color-background;
43
+ }
44
+
45
+ /*
46
+ * Remove default margin.
47
+ */
48
+
49
+ body {
50
+ margin: 0;
51
+ }
52
+
53
+ /* HTML5 display definitions
54
+ ========================================================================== */
55
+
56
+ /*
57
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
58
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
59
+ * Correct `block` display not defined for `main` in IE 11.
60
+ */
61
+
62
+ article,
63
+ aside,
64
+ details,
65
+ figcaption,
66
+ figure,
67
+ footer,
68
+ header,
69
+ hgroup,
70
+ main,
71
+ nav,
72
+ section,
73
+ summary {
74
+ display: block;
75
+ }
76
+
77
+ /*
78
+ * 1. Correct `inline-block` display not defined in IE 8/9.
79
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
80
+ */
81
+
82
+ audio,
83
+ canvas,
84
+ progress,
85
+ video {
86
+ display: inline-block; /* 1 */
87
+ vertical-align: baseline; /* 2 */
88
+ }
89
+
90
+ /*
91
+ * Prevent modern browsers from displaying `audio` without controls.
92
+ * Remove excess height in iOS 5 devices.
93
+ */
94
+
95
+ audio:not([controls]) {
96
+ display: none;
97
+ height: 0;
98
+ }
99
+
100
+ /*
101
+ * Address `[hidden]` styling not present in IE 8/9/10.
102
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
103
+ */
104
+
105
+ [hidden],
106
+ template {
107
+ display: none;
108
+ }
109
+
110
+ /* Links
111
+ ========================================================================== */
112
+
113
+ /*
114
+ * 1. Remove the gray background color from active links in IE 10.
115
+ * 2. Set default anchor colour.
116
+ */
117
+
118
+ a {
119
+ background: transparent;
120
+ color: $color-anchor;
121
+ }
122
+
123
+ /*
124
+ * Improve readability when focused and also mouse hovered in all browsers.
125
+ */
126
+
127
+ a:active,
128
+ a:hover {
129
+ outline: 0;
130
+ }
131
+
132
+ /* Text-level semantics
133
+ ========================================================================== */
134
+
135
+ /*
136
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
137
+ */
138
+
139
+ abbr[title] {
140
+ border-bottom: 1px dotted;
141
+ }
142
+
143
+ /*
144
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
145
+ */
146
+
147
+ b,
148
+ strong {
149
+ font-weight: bold;
150
+ }
151
+
152
+ /*
153
+ * Address styling not present in Safari and Chrome.
154
+ */
155
+
156
+ dfn {
157
+ font-style: italic;
158
+ }
159
+
160
+ /*
161
+ * Address variable `h1` font-size and margin within `section` and `article`
162
+ * contexts in Firefox 4+, Safari, and Chrome.
163
+ */
164
+
165
+ h1 {
166
+ @include font-size(32px);
167
+ @include line-height(2, 32px);
168
+ margin: 0;
169
+ }
170
+
171
+ /*
172
+ * Address styling not present in IE 8/9.
173
+ */
174
+
175
+ mark {
176
+ background: #ff0;
177
+ color: #000;
178
+ }
179
+
180
+ /*
181
+ * Address inconsistent and variable font size in all browsers.
182
+ */
183
+
184
+ small {
185
+ font-size: 80%;
186
+ }
187
+
188
+ /*
189
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
190
+ */
191
+
192
+ sub,
193
+ sup {
194
+ font-size: 75%;
195
+ line-height: 0;
196
+ position: relative;
197
+ vertical-align: baseline;
198
+ }
199
+
200
+ sup {
201
+ top: -0.5em;
202
+ }
203
+
204
+ sub {
205
+ bottom: -0.25em;
206
+ }
207
+
208
+ /* Embedded content
209
+ ========================================================================== */
210
+
211
+ /*
212
+ * Remove border when inside `a` element in IE 8/9/10.
213
+ */
214
+
215
+ img {
216
+ border: 0;
217
+ }
218
+
219
+ /*
220
+ * Correct overflow not hidden in IE 9/10/11.
221
+ */
222
+
223
+ svg:not(:root) {
224
+ overflow: hidden;
225
+ }
226
+
227
+ /* Grouping content
228
+ ========================================================================== */
229
+
230
+ /*
231
+ * Address margin not present in IE 8/9 and Safari.
232
+ */
233
+
234
+ figure {
235
+ margin: 1em 40px;
236
+ }
237
+
238
+ /*
239
+ * Address differences between Firefox and other browsers.
240
+ */
241
+
242
+ hr {
243
+ -moz-box-sizing: content-box;
244
+ box-sizing: content-box;
245
+ height: 0;
246
+ }
247
+
248
+ /*
249
+ * Contain overflow in all browsers.
250
+ */
251
+
252
+ pre {
253
+ overflow: auto;
254
+ }
255
+
256
+ /*
257
+ * Address odd `em`-unit font size rendering in all browsers.
258
+ */
259
+
260
+ code,
261
+ kbd,
262
+ pre,
263
+ samp {
264
+ font-family: monospace, monospace;
265
+ font-size: 1em;
266
+ }
267
+
268
+ /* Forms
269
+ ========================================================================== */
270
+
271
+ /*
272
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
273
+ * styling of `select`, unless a `border` property is set.
274
+ */
275
+
276
+ /*
277
+ * 1. Correct color not being inherited.
278
+ * Known issue: affects color of disabled elements.
279
+ * 2. Correct font properties not being inherited.
280
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
281
+ */
282
+
283
+ button,
284
+ input,
285
+ optgroup,
286
+ select,
287
+ textarea {
288
+ color: inherit; /* 1 */
289
+ font: inherit; /* 2 */
290
+ margin: 0; /* 3 */
291
+ }
292
+
293
+ /*
294
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
295
+ */
296
+
297
+ button {
298
+ overflow: visible;
299
+ }
300
+
301
+ /*
302
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
303
+ * All other form control elements do not inherit `text-transform` values.
304
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
305
+ * Correct `select` style inheritance in Firefox.
306
+ */
307
+
308
+ button,
309
+ select {
310
+ text-transform: none;
311
+ }
312
+
313
+ /*
314
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
315
+ * and `video` controls.
316
+ * 2. Correct inability to style clickable `input` types in iOS.
317
+ * 3. Improve usability and consistency of cursor style between image-type
318
+ * `input` and others.
319
+ */
320
+
321
+ button,
322
+ html input[type="button"], /* 1 */
323
+ input[type="reset"],
324
+ input[type="submit"] {
325
+ -webkit-appearance: button; /* 2 */
326
+ cursor: pointer; /* 3 */
327
+ }
328
+
329
+ /*
330
+ * Re-set default cursor for disabled elements.
331
+ */
332
+
333
+ button[disabled],
334
+ html input[disabled] {
335
+ cursor: default;
336
+ }
337
+
338
+ /*
339
+ * Remove inner padding and border in Firefox 4+.
340
+ */
341
+
342
+ button::-moz-focus-inner,
343
+ input::-moz-focus-inner {
344
+ border: 0;
345
+ padding: 0;
346
+ }
347
+
348
+ /*
349
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
350
+ * the UA stylesheet.
351
+ */
352
+
353
+ input {
354
+ line-height: normal;
355
+ }
356
+
357
+ /*
358
+ * It's recommended that you don't attempt to style these elements.
359
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
360
+ *
361
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
362
+ * 2. Remove excess padding in IE 8/9/10.
363
+ */
364
+
365
+ input[type="checkbox"],
366
+ input[type="radio"] {
367
+ box-sizing: border-box; /* 1 */
368
+ padding: 0; /* 2 */
369
+ }
370
+
371
+ /*
372
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
373
+ * `font-size` values of the `input`, it causes the cursor style of the
374
+ * decrement button to change from `default` to `text`.
375
+ */
376
+
377
+ input[type="number"]::-webkit-inner-spin-button,
378
+ input[type="number"]::-webkit-outer-spin-button {
379
+ height: auto;
380
+ }
381
+
382
+ /*
383
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
384
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
385
+ * (include `-moz` to future-proof).
386
+ */
387
+
388
+ input[type="search"] {
389
+ -webkit-appearance: textfield; /* 1 */
390
+ // -moz-box-sizing: content-box;
391
+ // -webkit-box-sizing: content-box; /* 2 */
392
+ // box-sizing: content-box;
393
+ }
394
+
395
+ /*
396
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
397
+ * Safari (but not Chrome) clips the cancel button when the search input has
398
+ * padding (and `textfield` appearance).
399
+ */
400
+
401
+ input[type="search"]::-webkit-search-cancel-button,
402
+ input[type="search"]::-webkit-search-decoration {
403
+ -webkit-appearance: none;
404
+ }
405
+
406
+ /*
407
+ * Define consistent border, margin, and padding.
408
+ */
409
+
410
+ fieldset {
411
+ border: 1px solid #c0c0c0;
412
+ margin: 0 2px;
413
+ padding: 0.35em 0.625em 0.75em;
414
+ }
415
+
416
+ /*
417
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
418
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
419
+ */
420
+
421
+ legend {
422
+ border: 0; /* 1 */
423
+ padding: 0; /* 2 */
424
+ }
425
+
426
+ /*
427
+ * Remove default vertical scrollbar in IE 8/9/10/11.
428
+ */
429
+
430
+ textarea {
431
+ overflow: auto;
432
+ }
433
+
434
+ /*
435
+ * Don't inherit the `font-weight` (applied by a rule above).
436
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
437
+ */
438
+
439
+ optgroup {
440
+ font-weight: bold;
441
+ }
442
+
443
+ /* Tables
444
+ ========================================================================== */
445
+
446
+ /*
447
+ * Remove most spacing between table cells.
448
+ */
449
+
450
+ table {
451
+ border-collapse: collapse;
452
+ border-spacing: 0;
453
+ }
454
+
455
+ td,
456
+ th {
457
+ padding: 0;
458
+ }