piecss 0.1.0.alpha.01

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,18 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+
4
+ // ==========================================================================
5
+ // Library Presets
6
+ // ==========================================================================
7
+
8
+ @import "settings/constants";
9
+ @import "settings/fonts";
10
+ @import "settings/base";
11
+
12
+ // All below rely on setting in settings/base
13
+ @import "settings/breakpoint";
14
+
15
+ // Relies on setting in settings/breakpoint
16
+ @import "settings/grid";
17
+ @import "settings/form";
18
+ @import "settings/list";
@@ -0,0 +1,177 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+
4
+ /**
5
+ * Compass has deprecated this value. Piecss is still using it.
6
+ *
7
+ * @since 0.1
8
+ *
9
+ * @type {Bool}
10
+ */
11
+
12
+ $legacy-support-for-ie: false;
13
+
14
+ /**
15
+ * Compass has deprecated this value. Piecss is still using it.
16
+ *
17
+ * @since 0.1
18
+ *
19
+ * @type {Bool}
20
+ */
21
+
22
+ $legacy-support-for-mozilla: true;
23
+
24
+ /**
25
+ * The unit to which to-unit() will convert px values. Used in various functions and mixins.
26
+ *
27
+ * @since 0.1
28
+ *
29
+ * @type {Number}
30
+ */
31
+
32
+ $unit: 1em !default;
33
+
34
+ /**
35
+ * If $unit is set to rem, the fallback will be implemented using this unit.
36
+ *
37
+ * @since 0.1
38
+ *
39
+ * @type {Number}
40
+ */
41
+
42
+ $rem-fallback-unit: 1px !default;
43
+
44
+ /**
45
+ * The unit line-heights will be expressed in.
46
+ *
47
+ * @since 0.1
48
+ *
49
+ * @type {Number}
50
+ */
51
+
52
+ $line-height-unit: 1% !default;
53
+
54
+ /**
55
+ * Is used to calculate the project's base font-size, eg the font-size on which all other calculations are based.
56
+ * Note that Chrome has [issues](https://code.google.com/p/chromium/issues/detail?id=320754) when the base font size is smaller than 16px.
57
+ *
58
+ * @since 0.1
59
+ *
60
+ * @type {Number}
61
+ */
62
+
63
+ $base-font-size: 16px !default;
64
+
65
+ /**
66
+ * The default font-size for your project. This is translated to the final unit of output using the [$unit](./#variable-unit) variable.
67
+ *
68
+ * @since 0.1
69
+ *
70
+ * @type {Number}
71
+ */
72
+
73
+ $default-font-size: 16px !default;
74
+
75
+ /**
76
+ * The default line-height for your project. This is translated to the final unit of output using the [$line-height-unit](./#line-height-unit) variable.
77
+ *
78
+ * @since 0.1
79
+ *
80
+ * @type {Number}
81
+ */
82
+
83
+ $default-line-height: 24px !default;
84
+
85
+ /**
86
+ * The default font for your project. It is set in a $font-type list, Piecss has a collection of pre-defined font-types that can be augmented.
87
+ * A font-type is a comma separated list of font-type, font-variant, font-weight and font-family.
88
+ *
89
+ * @todo the comma separated list will be changed to a space separated list, and a Map (both will apply)
90
+ *
91
+ * @since 0.1
92
+ *
93
+ * @type {Number}
94
+ */
95
+
96
+ $default-font: $sans-serif-regular !default;
97
+
98
+ /**
99
+ * The default color for the HTML background.
100
+ *
101
+ * @since 0.1
102
+ *
103
+ * @type {Color}
104
+ */
105
+
106
+ $color-background: $white !default;
107
+
108
+ /**
109
+ * The default color for text.
110
+ *
111
+ * @since 0.1
112
+ *
113
+ * @type {Color}
114
+ */
115
+
116
+ $color-body: $darkslategray !default;
117
+
118
+ /**
119
+ * The default color for anchors.
120
+ *
121
+ * @since 0.1
122
+ *
123
+ * @type {Color}
124
+ */
125
+
126
+ $color-anchor: $blue !default;
127
+
128
+ /**
129
+ * The default color for anchor hover state.
130
+ *
131
+ * @since 0.1
132
+ *
133
+ * @type {Color}
134
+ */
135
+
136
+ $color-anchor--hover: darken($color-anchor, 20%) !default;
137
+
138
+ /**
139
+ * The default color for anchor active state.
140
+ *
141
+ * @since 0.1
142
+ *
143
+ * @type {Color}
144
+ */
145
+
146
+ $color-anchor--active: lighten($color-anchor, 15%) !default;
147
+
148
+ /**
149
+ * The default color for anchor visited state.
150
+ *
151
+ * @since 0.1
152
+ *
153
+ * @type {Color}
154
+ */
155
+
156
+ $color-anchor--visited: darken($color-anchor, 30%) !default;
157
+
158
+ /**
159
+ * The default border-radius. Is used for example by the button and form modules for rounder corners.
160
+ * This ensures that the same border-radius is used accross your project.
161
+ *
162
+ * @since 0.1
163
+ *
164
+ * @type {Number}
165
+ */
166
+
167
+ $corner-radius: 0 !default;
168
+
169
+ /**
170
+ * If true, consistent quote types will be set.
171
+ *
172
+ * @since 0.1
173
+ *
174
+ * @type {Bool}
175
+ */
176
+
177
+ $base-quote-quotes: true !default;
@@ -0,0 +1,32 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+
4
+ /**
5
+ * Breakpoint for smallest handheld devices (phones). Overwrite and augment breakpoint presets as you see fit.
6
+ *
7
+ * @since 0.1
8
+ *
9
+ * @type {String}
10
+ */
11
+
12
+ $small_handheld: "(max-width: #{to-unit(480px,$unit,$default-font-size)})" !default;
13
+
14
+ /**
15
+ * Breakpoint for medium handheld devices (tablets). Overwrite and augment breakpoint presets as you see fit.
16
+ *
17
+ * @since 0.1
18
+ *
19
+ * @type {String}
20
+ */
21
+
22
+ $medium_handheld: "(min-width #{to-unit(481px,$unit,$default-font-size)}) and (max-width #{to-unit(1024px,$unit,$default-font-size)})" !default;
23
+
24
+ /**
25
+ * Breakpoint for small desktop devices. Overwrite and augment breakpoint presets as you see fit.
26
+ *
27
+ * @since 0.1
28
+ *
29
+ * @type {String}
30
+ */
31
+
32
+ $small_desktop: "(min-width: #{to-unit(1024px,$unit,$default-font-size)})" !default;
@@ -0,0 +1,147 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+
4
+ $browser-default-font-size: 16px;
5
+
6
+
7
+ $aliceblue: #f0f8ff;
8
+ $antiquewhite: #faebd7;
9
+ $aqua: #00ffff;
10
+ $aquamarine: #7fffd4;
11
+ $azure: #f0ffff;
12
+ $becca: #639;
13
+ $beige: #f5f5dc;
14
+ $bisque: #ffe4c4;
15
+ $black: #000000;
16
+ $blanchedalmond: #ffebcd;
17
+ $blue: #0000ff;
18
+ $blueviolet: #8a2be2;
19
+ $brown: #a52a2a;
20
+ $burlywood: #deb887;
21
+ $cadetblue: #5f9ea0;
22
+ $chartreuse: #7fff00;
23
+ $chocolate: #d2691e;
24
+ $coral: #ff7f50;
25
+ $cornflowerblue: #6495ed;
26
+ $cornsilk: #fff8dc;
27
+ $crimson: #dc143c;
28
+ $cyan: #00ffff;
29
+ $darkblue: #00008b;
30
+ $darkcyan: #008b8b;
31
+ $darkgoldenrod: #b8860b;
32
+ $darkgray: #a9a9a9;
33
+ $darkgreen: #006400;
34
+ $darkkhaki: #bdb76b;
35
+ $darkmagenta: #8b008b;
36
+ $darkolivegreen: #556b2f;
37
+ $darkorange: #ff8c00;
38
+ $darkorchid: #9932cc;
39
+ $darkred: #8b0000;
40
+ $darksalmon: #e9967a;
41
+ $darkseagreen: #8fbc8f;
42
+ $darkslateblue: #483d8b;
43
+ $darkslategray: #2f4f4f;
44
+ $darkturquoise: #00ced1;
45
+ $darkviolet: #9400d3;
46
+ $deeppink: #ff1493;
47
+ $deepskyblue: #00bfff;
48
+ $dimgray: #696969;
49
+ $dodgerblue: #1e90ff;
50
+ $firebrick: #b22222;
51
+ $floralwhite: #fffaf0;
52
+ $forestgreen: #228b22;
53
+ $fuchsia: #ff00ff;
54
+ $gainsboro: #dcdcdc;
55
+ $ghostwhite: #f8f8ff;
56
+ $gold: #ffd700;
57
+ $goldenrod: #daa520;
58
+ $gray: #808080;
59
+ $green: #008000;
60
+ $greenyellow: #adff2f;
61
+ $honeydew: #f0fff0;
62
+ $hotpink: #ff69b4;
63
+ $indianred : #cd5c5c;
64
+ $indigo : #4b0082;
65
+ $ivory: #fffff0;
66
+ $khaki: #f0e68c;
67
+ $lavender: #e6e6fa;
68
+ $lavenderblush: #fff0f5;
69
+ $lawngreen: #7cfc00;
70
+ $lemonchiffon: #fffacd;
71
+ $lightblue: #add8e6;
72
+ $lightcoral: #f08080;
73
+ $lightcyan: #e0ffff;
74
+ $lightgoldenrodyellow: #fafad2;
75
+ $lightgray: #d3d3d3;
76
+ $lightgreen: #90ee90;
77
+ $lightpink: #ffb6c1;
78
+ $lightsalmon: #ffa07a;
79
+ $lightseagreen: #20b2aa;
80
+ $lightskyblue: #87cefa;
81
+ $lightslategray: #778899;
82
+ $lightsteelblue: #b0c4de;
83
+ $lightyellow: #ffffe0;
84
+ $lime: #00ff00;
85
+ $limegreen: #32cd32;
86
+ $linen: #faf0e6;
87
+ $magenta: #ff00ff;
88
+ $maroon: #800000;
89
+ $mediumaquamarine: #66cdaa;
90
+ $mediumblue: #0000cd;
91
+ $mediumorchid: #ba55d3;
92
+ $mediumpurple: #9370db;
93
+ $mediumseagreen: #3cb371;
94
+ $mediumslateblue: #7b68ee;
95
+ $mediumspringgreen: #00fa9a;
96
+ $mediumturquoise: #48d1cc;
97
+ $mediumvioletred: #c71585;
98
+ $midnightblue: #191970;
99
+ $mintcream: #f5fffa;
100
+ $mistyrose: #ffe4e1;
101
+ $moccasin: #ffe4b5;
102
+ $navajowhite: #ffdead;
103
+ $navy: #000080;
104
+ $oldlace: #fdf5e6;
105
+ $olive: #808000;
106
+ $olivedrab: #6b8e23;
107
+ $orange: #ffa500;
108
+ $orangered: #ff4500;
109
+ $orchid: #da70d6;
110
+ $palegoldenrod: #eee8aa;
111
+ $palegreen: #98fb98;
112
+ $paleturquoise: #afeeee;
113
+ $palevioletred: #db7093;
114
+ $papayawhip: #ffefd5;
115
+ $peachpuff: #ffdab9;
116
+ $peru: #cd853f;
117
+ $pink: #ffc0cb;
118
+ $plum: #dda0dd;
119
+ $powderblue: #b0e0e6;
120
+ $purple: #800080;
121
+ $red: #ff0000;
122
+ $rosybrown: #bc8f8f;
123
+ $royalblue: #4169e1;
124
+ $saddlebrown: #8b4513;
125
+ $salmon: #fa8072;
126
+ $sandybrown: #f4a460;
127
+ $seagreen: #2e8b57;
128
+ $seashell: #fff5ee;
129
+ $sienna: #a0522d;
130
+ $silver: #c0c0c0;
131
+ $skyblue: #87ceeb;
132
+ $slateblue: #6a5acd;
133
+ $slategray: #708090;
134
+ $snow: #fffafa;
135
+ $springgreen: #00ff7f;
136
+ $steelblue: #4682b4;
137
+ $tan: #d2b48c;
138
+ $teal: #008080;
139
+ $thistle: #d8bfd8;
140
+ $tomato: #ff6347;
141
+ $turquoise: #40e0d0;
142
+ $violet: #ee82ee;
143
+ $wheat: #f5deb3;
144
+ $white: #ffffff;
145
+ $whitesmoke: #f5f5f5;
146
+ $yellow: #ffff00;
147
+ $yellowgreen: #9acd32;
@@ -0,0 +1,31 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+
4
+ // ==========================================================================
5
+ // System fonts
6
+ // ==========================================================================
7
+
8
+ @import "fonts/serif";
9
+ @import "fonts/sans-serif";
10
+ @import "fonts/monospace";
11
+ @import "fonts/verdana";
12
+
13
+
14
+ // ==========================================================================
15
+ // Google fonts
16
+ // ==========================================================================
17
+
18
+ @import "fonts/bree-serif";
19
+ @import "fonts/lato";
20
+ @import "fonts/pt-sans";
21
+ @import "fonts/raleway";
22
+ @import "fonts/righteous";
23
+ @import "fonts/roboto";
24
+ @import "fonts/varela-round";
25
+
26
+
27
+ // ==========================================================================
28
+ // Fontspring fonts
29
+ // ==========================================================================
30
+
31
+ @import "fonts/sofia-pro";
@@ -0,0 +1,44 @@
1
+ // Copyright (C) 2014 Babs Gösgens. Licensed under MIT; see LICENSE.txt
2
+
3
+
4
+ // Use this file as a template for creating additional font files
5
+ // Replace the variable names accordingly
6
+
7
+ // Weight reference:
8
+ // 100 ultra-light
9
+ // 200 light
10
+ // 300 book
11
+ // 400 regular, or normal
12
+ // 500 medium
13
+ // 600 semi-bold
14
+ // 700 bold
15
+ // 800 extra-bold
16
+ // 900 heavy, or ultra-bold
17
+
18
+
19
+ // Example
20
+ // Available styles on Google Fonts: 400,700,400italic,700italic
21
+
22
+ $asap-fontface : "Asap";
23
+ $asap-fallback : sans-serif;
24
+ $asap-family : ($asap-fontface, $asap-fallback);
25
+
26
+ // style, variant, weight, family
27
+ $asap-ultra-light : normal normal 400 $asap-family;
28
+ $asap-light : normal normal 400 $asap-family;
29
+ $asap-book : normal normal 400 $asap-family;
30
+ $asap-regular : normal normal 400 $asap-family;
31
+ $asap-medium : normal normal 500 $asap-family;
32
+ $asap-semi-bold : normal normal 700 $asap-family;
33
+ $asap-bold : normal normal 700 $asap-family;
34
+ $asap-extra-bold : normal normal 700 $asap-family;
35
+ $asap-heavy : normal normal 700 $asap-family;
36
+ $asap-ultra-light-italic : italic normal 400 $asap-family;
37
+ $asap-light-italic : italic normal 400 $asap-family;
38
+ $asap-book-italic : italic normal 400 $asap-family;
39
+ $asap-regular-italic : italic normal 400 $asap-family;
40
+ $asap-medium-italic : italic normal 700 $asap-family;
41
+ $asap-semi-bold-italic : italic normal 700 $asap-family;
42
+ $asap-bold-italic : italic normal 700 $asap-family;
43
+ $asap-extra-bold-italic : italic normal 700 $asap-family;
44
+ $asap-heavy-italic : italic normal 700 $asap-family;