compass-recipes 0.2.2 → 0.3.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. data/LICENSE +6 -2
  2. data/README.md +103 -29
  3. data/VERSION +1 -1
  4. data/fonts/icons/entypo/entypo-webfont.eot +0 -0
  5. data/fonts/icons/entypo/entypo-webfont.svg +198 -0
  6. data/fonts/icons/entypo/entypo-webfont.ttf +0 -0
  7. data/fonts/icons/entypo/entypo-webfont.woff +0 -0
  8. data/fonts/icons/heydings-controls/SIL Open Font License 1.1.txt +91 -0
  9. data/fonts/icons/heydings-controls/demo.html +33 -0
  10. data/fonts/icons/heydings-controls/heydings_controls-webfont.eot +0 -0
  11. data/fonts/icons/heydings-controls/heydings_controls-webfont.svg +85 -0
  12. data/fonts/icons/heydings-controls/heydings_controls-webfont.ttf +0 -0
  13. data/fonts/icons/heydings-controls/heydings_controls-webfont.woff +0 -0
  14. data/fonts/icons/heydings-controls/stylesheet.css +16 -0
  15. data/fonts/icons/heydings/SIL Open Font License 1.1.txt +91 -0
  16. data/fonts/icons/heydings/demo.html +33 -0
  17. data/fonts/icons/heydings/heydings_icons-webfont.eot +0 -0
  18. data/fonts/icons/heydings/heydings_icons-webfont.svg +94 -0
  19. data/fonts/icons/heydings/heydings_icons-webfont.ttf +0 -0
  20. data/fonts/icons/heydings/heydings_icons-webfont.woff +0 -0
  21. data/fonts/icons/heydings/stylesheet.css +16 -0
  22. data/fonts/icons/icomoon/License.txt +1 -0
  23. data/fonts/icons/icomoon/Read Me.txt +5 -0
  24. data/fonts/icons/icomoon/icomoon.eot +0 -0
  25. data/fonts/icons/icomoon/icomoon.svg +35 -0
  26. data/fonts/icons/icomoon/icomoon.ttf +0 -0
  27. data/fonts/icons/icomoon/icomoon.woff +0 -0
  28. data/fonts/icons/iconic/SIL Open Font License 1.1.txt +91 -0
  29. data/fonts/icons/iconic/demo.html +38 -0
  30. data/fonts/icons/iconic/iconic_fill.eot +0 -0
  31. data/fonts/icons/iconic/iconic_fill.svg +475 -0
  32. data/fonts/icons/iconic/iconic_fill.ttf +0 -0
  33. data/fonts/icons/iconic/iconic_fill.woff +0 -0
  34. data/fonts/icons/iconic/iconic_stroke.eot +0 -0
  35. data/fonts/icons/iconic/iconic_stroke.svg +492 -0
  36. data/fonts/icons/iconic/iconic_stroke.ttf +0 -0
  37. data/fonts/icons/iconic/iconic_stroke.woff +0 -0
  38. data/fonts/icons/iconic/stylesheet.css +28 -0
  39. data/fonts/icons/modern-pictograms/Modern Pictograms SIL OFL Font License 1.1.txt +94 -0
  40. data/fonts/icons/modern-pictograms/demo.html +33 -0
  41. data/fonts/icons/modern-pictograms/modernpics-webfont.eot +0 -0
  42. data/fonts/icons/modern-pictograms/modernpics-webfont.svg +136 -0
  43. data/fonts/icons/modern-pictograms/modernpics-webfont.ttf +0 -0
  44. data/fonts/icons/modern-pictograms/modernpics-webfont.woff +0 -0
  45. data/fonts/icons/modern-pictograms/stylesheet.css +16 -0
  46. data/fonts/icons/socialico/FFF_EULA_license.pdf +0 -0
  47. data/fonts/icons/socialico/Socialico-webfont.otf +0 -0
  48. data/fonts/icons/socialico/socialico-webfont.eot +0 -0
  49. data/fonts/icons/socialico/socialico-webfont.svg +123 -0
  50. data/fonts/icons/socialico/socialico-webfont.ttf +0 -0
  51. data/fonts/icons/socialico/socialico-webfont.woff +0 -0
  52. data/fonts/icons/websymbols/OFL-FAQ.txt +369 -0
  53. data/fonts/icons/websymbols/OFL.txt +97 -0
  54. data/fonts/icons/websymbols/websymbols-regular-webfont.eot +0 -0
  55. data/fonts/icons/websymbols/websymbols-regular-webfont.svg +108 -0
  56. data/fonts/icons/websymbols/websymbols-regular-webfont.ttf +0 -0
  57. data/fonts/icons/websymbols/websymbols-regular-webfont.woff +0 -0
  58. data/lib/compass-recipes.rb +3 -0
  59. data/lib/compass-recipes/sass_extensions.rb +13 -0
  60. data/lib/compass-recipes/sass_extensions/_error.rb +9 -0
  61. data/lib/compass-recipes/sass_extensions/background_noise.rb +48 -0
  62. data/lib/compass-recipes/sass_extensions/gravatar.rb +60 -0
  63. data/lib/compass-recipes/sass_extensions/highres.rb +31 -0
  64. data/lib/compass-recipes/sass_extensions/math.rb +8 -0
  65. data/stylesheets/_recipes.scss +7 -3
  66. data/stylesheets/recipes/_animation.scss +3 -0
  67. data/stylesheets/recipes/_background.scss +15 -0
  68. data/stylesheets/recipes/_base.scss +1 -0
  69. data/stylesheets/recipes/_color.scss +171 -0
  70. data/stylesheets/recipes/_effect.scss +6 -1
  71. data/stylesheets/recipes/_font.scss +32 -0
  72. data/stylesheets/recipes/_google-webfont.scss +15 -0
  73. data/stylesheets/recipes/_icon-font.scss +224 -0
  74. data/stylesheets/recipes/_icons.scss +15 -10
  75. data/stylesheets/recipes/_media-queries.scss +72 -0
  76. data/stylesheets/recipes/_shared.scss +5 -4
  77. data/stylesheets/recipes/_ui.scss +5 -2
  78. data/stylesheets/recipes/animation/_animation.scss +145 -0
  79. data/stylesheets/recipes/animation/_fade.scss +29 -0
  80. data/stylesheets/recipes/animation/_keyframes.scss +17 -0
  81. data/stylesheets/recipes/animation/_timing-function.scss +29 -0
  82. data/stylesheets/recipes/background/_blueprint-grid.scss +52 -0
  83. data/stylesheets/recipes/background/_carbon-fiber.scss +33 -0
  84. data/stylesheets/recipes/background/_checkerboard.scss +61 -0
  85. data/stylesheets/recipes/background/_cicada.scss +42 -0
  86. data/stylesheets/recipes/background/_gradients.scss +81 -0
  87. data/stylesheets/recipes/background/_houndstooth.scss +51 -0
  88. data/stylesheets/recipes/background/_lined-paper.scss +30 -0
  89. data/stylesheets/recipes/background/_madras.scss +84 -0
  90. data/stylesheets/recipes/background/_noise.scss +47 -0
  91. data/stylesheets/recipes/background/_polka-dot.scss +28 -0
  92. data/stylesheets/recipes/background/_radial-overlay.scss +15 -0
  93. data/stylesheets/recipes/background/_rainbow.scss +27 -0
  94. data/stylesheets/recipes/background/_stripes.scss +46 -0
  95. data/stylesheets/recipes/background/_tablecloth.scss +30 -0
  96. data/stylesheets/recipes/background/_tartan.scss +81 -0
  97. data/stylesheets/recipes/base/_normalize.scss +455 -0
  98. data/stylesheets/recipes/color/_name.scss +151 -0
  99. data/stylesheets/recipes/effect/_bevel.scss +37 -0
  100. data/stylesheets/recipes/effect/_corner-folded.scss +26 -0
  101. data/stylesheets/recipes/effect/_corners-tucked.scss +48 -0
  102. data/stylesheets/recipes/effect/_cutout.scss +20 -0
  103. data/stylesheets/recipes/{enhancement/_corner-folded.scss → effect/_folded-corner.scss} +7 -1
  104. data/stylesheets/recipes/effect/_glass.scss +22 -9
  105. data/stylesheets/recipes/effect/_ribbon-tied.scss +133 -0
  106. data/stylesheets/recipes/effect/_ribbon.scss +102 -0
  107. data/stylesheets/recipes/effect/_scatter.scss +22 -0
  108. data/stylesheets/recipes/effect/_tape.scss +43 -0
  109. data/stylesheets/recipes/helper/_gravatar.scss +79 -0
  110. data/stylesheets/recipes/layout/_flexible-box-model.scss +68 -0
  111. data/stylesheets/recipes/shadow/_drop.scss +1 -1
  112. data/stylesheets/recipes/shadow/_top-edge.scss +1 -1
  113. data/stylesheets/recipes/shadow/drop/_curved.scss +5 -3
  114. data/stylesheets/recipes/shadow/drop/_flying.scss +12 -20
  115. data/stylesheets/recipes/shadow/drop/_transform-requirement.scss +3 -1
  116. data/stylesheets/recipes/shape/_polygon.scss +1 -0
  117. data/stylesheets/recipes/shape/_symbol.scss +5 -1
  118. data/stylesheets/recipes/shape/polygon/_rhombus.scss +10 -0
  119. data/stylesheets/recipes/shape/polygon/_star.scss +97 -29
  120. data/stylesheets/recipes/shape/polygon/_triangle.scss +9 -4
  121. data/stylesheets/recipes/shape/symbol/_diamond.scss +33 -0
  122. data/stylesheets/recipes/shape/symbol/_egg.scss +13 -0
  123. data/stylesheets/recipes/shape/symbol/_heart.scss +2 -1
  124. data/stylesheets/recipes/shape/symbol/_infinity.scss +3 -1
  125. data/stylesheets/recipes/shape/symbol/_pacman.scss +18 -0
  126. data/stylesheets/recipes/shape/symbol/_yin-yang.scss +49 -0
  127. data/stylesheets/recipes/shared/_clearfix.scss +28 -14
  128. data/stylesheets/recipes/shared/_pseudo-element.scss +13 -4
  129. data/stylesheets/recipes/shared/_user-select.scss +6 -0
  130. data/stylesheets/recipes/ui/_button.scss +122 -0
  131. data/stylesheets/recipes/ui/_convex.scss +8 -1
  132. data/stylesheets/recipes/ui/_glossy.scss +13 -12
  133. data/stylesheets/recipes/ui/_gradient.scss +4 -0
  134. data/stylesheets/recipes/ui/_helper.scss +1 -0
  135. data/stylesheets/recipes/ui/_keyboard.scss +106 -0
  136. data/stylesheets/recipes/ui/_menu.scss +1 -0
  137. data/stylesheets/recipes/ui/_overlay.scss +22 -0
  138. data/stylesheets/recipes/ui/_separator.scss +37 -0
  139. data/stylesheets/recipes/ui/border/_bevel.scss +3 -0
  140. data/stylesheets/recipes/ui/button/_state-selectors.scss +40 -0
  141. data/stylesheets/recipes/ui/button/style/_default.scss +12 -0
  142. data/stylesheets/recipes/ui/button/style/todo/_bonbon.scss +489 -0
  143. data/stylesheets/recipes/ui/button/style/todo/_bourbon.scss +169 -0
  144. data/stylesheets/recipes/ui/button/style/todo/_fancy.sass +178 -0
  145. data/stylesheets/recipes/ui/button/style/todo/_necolas-animated.scss +81 -0
  146. data/stylesheets/recipes/ui/button/style/todo/_ubuwaits.scss +654 -0
  147. data/stylesheets/recipes/ui/helper/_arrow.scss +72 -0
  148. data/stylesheets/recipes/ui/helper/_tag.scss +14 -0
  149. data/stylesheets/recipes/ui/loader/_pulse.scss +124 -0
  150. data/stylesheets/recipes/ui/{_menu-dropdown.scss → menu/_dropdown.scss} +11 -3
  151. data/templates/gravatar/getElementsByClassName.js +23 -0
  152. data/templates/gravatar/gravatar.js +117 -0
  153. data/templates/gravatar/manifest.rb +19 -0
  154. data/templates/gravatar/md5.js +14 -0
  155. data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.eot +0 -0
  156. data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.svg +198 -0
  157. data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.ttf +0 -0
  158. data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.woff +0 -0
  159. data/templates/icon-fonts/fonts/icons/heydings-controls/SIL Open Font License 1.1.txt +91 -0
  160. data/templates/icon-fonts/fonts/icons/heydings-controls/demo.html +33 -0
  161. data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.eot +0 -0
  162. data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.svg +85 -0
  163. data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.ttf +0 -0
  164. data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.woff +0 -0
  165. data/templates/icon-fonts/fonts/icons/heydings-controls/stylesheet.css +16 -0
  166. data/templates/icon-fonts/fonts/icons/heydings/SIL Open Font License 1.1.txt +91 -0
  167. data/templates/icon-fonts/fonts/icons/heydings/demo.html +33 -0
  168. data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.eot +0 -0
  169. data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.svg +94 -0
  170. data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.ttf +0 -0
  171. data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.woff +0 -0
  172. data/templates/icon-fonts/fonts/icons/heydings/stylesheet.css +16 -0
  173. data/templates/icon-fonts/fonts/icons/icomoon/License.txt +1 -0
  174. data/templates/icon-fonts/fonts/icons/icomoon/Read Me.txt +5 -0
  175. data/templates/icon-fonts/fonts/icons/icomoon/icomoon.eot +0 -0
  176. data/templates/icon-fonts/fonts/icons/icomoon/icomoon.svg +35 -0
  177. data/templates/icon-fonts/fonts/icons/icomoon/icomoon.ttf +0 -0
  178. data/templates/icon-fonts/fonts/icons/icomoon/icomoon.woff +0 -0
  179. data/templates/icon-fonts/fonts/icons/iconic/SIL Open Font License 1.1.txt +91 -0
  180. data/templates/icon-fonts/fonts/icons/iconic/demo.html +38 -0
  181. data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.eot +0 -0
  182. data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.svg +475 -0
  183. data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.ttf +0 -0
  184. data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.woff +0 -0
  185. data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.eot +0 -0
  186. data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.svg +492 -0
  187. data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.ttf +0 -0
  188. data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.woff +0 -0
  189. data/templates/icon-fonts/fonts/icons/iconic/stylesheet.css +28 -0
  190. data/templates/icon-fonts/fonts/icons/modern-pictograms/Modern Pictograms SIL OFL Font License 1.1.txt +94 -0
  191. data/templates/icon-fonts/fonts/icons/modern-pictograms/demo.html +33 -0
  192. data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.eot +0 -0
  193. data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.svg +136 -0
  194. data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.ttf +0 -0
  195. data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.woff +0 -0
  196. data/templates/icon-fonts/fonts/icons/modern-pictograms/stylesheet.css +16 -0
  197. data/templates/icon-fonts/fonts/icons/socialico/FFF_EULA_license.pdf +0 -0
  198. data/templates/icon-fonts/fonts/icons/socialico/Socialico-webfont.otf +0 -0
  199. data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.eot +0 -0
  200. data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.svg +123 -0
  201. data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.ttf +0 -0
  202. data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.woff +0 -0
  203. data/templates/icon-fonts/fonts/icons/websymbols/OFL-FAQ.txt +369 -0
  204. data/templates/icon-fonts/fonts/icons/websymbols/OFL.txt +97 -0
  205. data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.eot +0 -0
  206. data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.svg +108 -0
  207. data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.ttf +0 -0
  208. data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.woff +0 -0
  209. data/templates/icon-fonts/manifest.rb +17 -0
  210. metadata +225 -20
  211. data/stylesheets/recipes/_enhancement.scss +0 -1
  212. data/stylesheets/recipes/_pattern.scss +0 -0
@@ -0,0 +1,151 @@
1
+ //
2
+ // Colors name definitions
3
+ //
4
+
5
+ $aliceblue:#f0f8ff;
6
+ $antiquewhite:#faebd7;
7
+ $aqua:#00ffff;
8
+ $aquamarine:#7fffd4;
9
+ $azure:#f0ffff;
10
+ $beige:#f5f5dc;
11
+ $bisque:#ffe4c4;
12
+ $black:#000000;
13
+ $blanchedalmond:#ffebcd;
14
+ $blue:#0000ff;
15
+ $blueviolet:#8a2be2;
16
+ $brown:#a52a2a;
17
+ $burlywood:#deb887;
18
+ $cadetblue:#5f9ea0;
19
+ $chartreuse:#7fff00;
20
+ $chocolate:#d2691e;
21
+ $coral:#ff7f50;
22
+ $cornflowerblue:#6495ed;
23
+ $cornsilk:#fff8dc;
24
+ $crimson:#dc143c;
25
+ $cyan:#00ffff;
26
+ $darkblue:#00008b;
27
+ $darkcyan:#008b8b;
28
+ $darkgoldenrod:#b8860b;
29
+ $darkgray:#a9a9a9;
30
+ $darkgrey:#a9a9a9;
31
+ $darkgreen:#006400;
32
+ $darkkhaki:#bdb76b;
33
+ $darkmagenta:#8b008b;
34
+ $darkolivegreen:#556b2f;
35
+ $darkorange:#ff8c00;
36
+ $darkorchid:#9932cc;
37
+ $darkred:#8b0000;
38
+ $darksalmon:#e9967a;
39
+ $darkseagreen:#8fbc8f;
40
+ $darkslateblue:#483d8b;
41
+ $darkslategray:#2f4f4f;
42
+ $darkslategrey:#2f4f4f;
43
+ $darkturquoise:#00ced1;
44
+ $darkviolet:#9400d3;
45
+ $deeppink:#ff1493;
46
+ $deepskyblue:#00bfff;
47
+ $dimgray:#696969;
48
+ $dimgrey:#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
+ $grey:#808080;
60
+ $green:#008000;
61
+ $greenyellow:#adff2f;
62
+ $honeydew:#f0fff0;
63
+ $hotpink:#ff69b4;
64
+ $indianred:#cd5c5c;
65
+ $indigo:#4b0082;
66
+ $ivory:#fffff0;
67
+ $khaki:#f0e68c;
68
+ $lavender:#e6e6fa;
69
+ $lavenderblush:#fff0f5;
70
+ $lawngreen:#7cfc00;
71
+ $lemonchiffon:#fffacd;
72
+ $lightblue:#add8e6;
73
+ $lightcoral:#f08080;
74
+ $lightcyan:#e0ffff;
75
+ $lightgoldenrodyellow:#fafad2;
76
+ $lightgreen:#90ee90;
77
+ $lightgray:#d3d3d3;
78
+ $lightgrey:#d3d3d3;
79
+ $lightpink:#ffb6c1;
80
+ $lightsalmon:#ffa07a;
81
+ $lightseagreen:#20b2aa;
82
+ $lightskyblue:#87cefa;
83
+ $lightslategray:#778899;
84
+ $lightslategrey:#778899;
85
+ $lightsteelblue:#b0c4de;
86
+ $lightyellow:#ffffe0;
87
+ $lime:#00ff00;
88
+ $limegreen:#32cd32;
89
+ $linen:#faf0e6;
90
+ $magenta:#ff00ff;
91
+ $maroon:#800000;
92
+ $mediumaquamarine:#66cdaa;
93
+ $mediumblue:#0000cd;
94
+ $mediumorchid:#ba55d3;
95
+ $mediumpurple:#9370db;
96
+ $mediumseagreen:#3cb371;
97
+ $mediumslateblue:#7b68ee;
98
+ $mediumspringgreen:#00fa9a;
99
+ $mediumturquoise:#48d1cc;
100
+ $mediumvioletred:#c71585;
101
+ $midnightblue:#191970;
102
+ $mintcream:#f5fffa;
103
+ $mistyrose:#ffe4e1;
104
+ $moccasin:#ffe4b5;
105
+ $navajowhite:#ffdead;
106
+ $navy:#000080;
107
+ $oldlace:#fdf5e6;
108
+ $olive:#808000;
109
+ $olivedrab:#6b8e23;
110
+ $orange:#ffa500;
111
+ $orangered:#ff4500;
112
+ $orchid:#da70d6;
113
+ $palegoldenrod:#eee8aa;
114
+ $palegreen:#98fb98;
115
+ $paleturquoise:#afeeee;
116
+ $palevioletred:#db7093;
117
+ $papayawhip:#ffefd5;
118
+ $peachpuff:#ffdab9;
119
+ $peru:#cd853f;
120
+ $pink:#ffc0cb;
121
+ $plum:#dda0dd;
122
+ $powderblue:#b0e0e6;
123
+ $purple:#800080;
124
+ $red:#ff0000;
125
+ $rosybrown:#bc8f8f;
126
+ $royalblue:#4169e1;
127
+ $saddlebrown:#8b4513;
128
+ $salmon:#fa8072;
129
+ $sandybrown:#f4a460;
130
+ $seagreen:#2e8b57;
131
+ $seashell:#fff5ee;
132
+ $sienna:#a0522d;
133
+ $silver:#c0c0c0;
134
+ $skyblue:#87ceeb;
135
+ $slateblue:#6a5acd;
136
+ $slategray:#708090;
137
+ $slategrey:#708090;
138
+ $snow:#fffafa;
139
+ $springgreen:#00ff7f;
140
+ $steelblue:#4682b4;
141
+ $tan:#d2b48c;
142
+ $teal:#008080;
143
+ $thistle:#d8bfd8;
144
+ $tomato:#ff6347;
145
+ $turquoise:#40e0d0;
146
+ $violet:#ee82ee;
147
+ $wheat:#f5deb3;
148
+ $white:#ffffff;
149
+ $whitesmoke:#f5f5f5;
150
+ $yellow:#ffff00;
151
+ $yellowgreen:#9acd32;
@@ -0,0 +1,37 @@
1
+ $bevel-base-color: rgba(#333, .5) !default;
2
+ $bevel-size: 5px !default;
3
+ $bevel-contrast: 8% !default;
4
+ $bevel-border-width: 1px !default;
5
+ $bevel-blur: 0 !default;
6
+
7
+ @mixin bevel
8
+ {
9
+ @include bevel-border;
10
+ @include bevel-shadow;
11
+ }
12
+
13
+ @mixin bevel-border(
14
+ $base-color: $bevel-base-color,
15
+ $border-width: $bevel-border-width,
16
+ $contrast: $bevel-contrast
17
+ )
18
+ {
19
+ border: $border-width solid $base-color;
20
+ border-top-color: lighten($base-color, $contrast);
21
+ border-bottom-color: darken($base-color, $contrast);
22
+ }
23
+
24
+ // @todo: $direction
25
+
26
+ @mixin bevel-shadow(
27
+ $size: $bevel-size,
28
+ $blur: $bevel-blur
29
+ )
30
+ {
31
+ @include box-shadow(
32
+ inset 0 0 (1px + $blur) rgba(#000, .8),
33
+ inset 0 2px $blur rgba(#fff, .5),
34
+ inset 0 (-$size) $blur rgba(#000, .6),
35
+ inset 0 (-$size - 1px - $blur) $blur rgba(#fff, .3)
36
+ );
37
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Corner folded with pure CSS
3
+ *
4
+ * Known support: Firefox 3.5+, Chrome 4+, Safari 4+, Opera 10+, IE 9+.
5
+ * IE8 is not supported because it not render properly box-shadow and
6
+ * pseudo element should be selected with ::element and not :element
7
+ *
8
+ * @thanks Nicolas Gallagher @necolas
9
+ * @link http://nicolasgallagher.com/pure-css-folded-corner-effect/demo/
10
+ * @todo Nix in .4
11
+ */
12
+
13
+ @import "recipes/effect/folded-corner";
14
+
15
+ @mixin effect-corner-folded(
16
+ $position: top-right,
17
+ $color: #ddd,
18
+ $background-color: #fff,
19
+ $width: 1em,
20
+ $border-radius: .3em,
21
+ $box-shadow: rgba(0, 0, 0, .3) 0 0 .6em)
22
+ {
23
+ @warn 'Deprecated, please use folded-corner mixin instead.';
24
+
25
+ @include folded-corner($position, $color, $background-color, $width, $border-radius, $box-shadow);
26
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * CSS3 Tucked Corners effect
3
+ *
4
+ * @thanks Chris Coyier @chriscoyier
5
+ * @link http://css-tricks.com/snippets/css/tucked-corners/
6
+ * @author Mason Wendell http://thecodingdesigner.com
7
+ *
8
+ */
9
+
10
+ // $tape-color: the background css property
11
+ // $inner-element: the selector for the inner element (for bottom corners)
12
+ @mixin corners-tucked($tape-color: white, $height: 50px, $width: 100px, $inner-element: "span.bottom-corners") {
13
+ position: relative;
14
+ @include box-sizing(border-box);
15
+ &:after, &:before, #{$inner-element}:after, #{$inner-element}:before {
16
+ position: absolute;
17
+ content: "";
18
+ z-index: 10;
19
+ background: $tape-color;
20
+ height: $height;
21
+ width: $width;
22
+ @include box-shadow(rgba(black, 0.5) 0 6px 9px -8px); }
23
+ &:after {
24
+ top: -($height * 0.5);
25
+ left: -($width * 0.5);
26
+ @include rotate(-45deg); }
27
+ &:before {
28
+ top: -($height * 0.5);
29
+ right: -($width * 0.5);
30
+ @include rotate(45deg); }
31
+ #{$inner-element} {
32
+ display: block;
33
+ position: relative;
34
+ width: 100%;
35
+ @include box-sizing(border-box);
36
+ &:after {
37
+ bottom: -($height * 0.5);
38
+ left: -($width * 0.5);
39
+ @include rotate(-135deg); }
40
+ &:before {
41
+ bottom: -($height * 0.5);
42
+ right: -($width * 0.5);
43
+ @include rotate(135deg); } } }
44
+
45
+
46
+ @mixin corners-taped($tape-color: rgba(white, 0.5), $height: 50px, $width: 100px, $inner-element: "span.bottom-corners") {
47
+ @include corners-tucked($tape-color, $height, $width, $inner-element);
48
+ }
@@ -0,0 +1,20 @@
1
+ $cutout-size: 5px !default;
2
+ $cutout-blur: 5px !default;
3
+
4
+ @mixin cutout(
5
+ $size: 5px,
6
+ $blur: 5px
7
+ )
8
+ {
9
+ @include box-shadow(cutout($size, $blur))
10
+ }
11
+
12
+ @function cutout(
13
+ $depth: 5px,
14
+ $blur: 5px
15
+ ) {
16
+ @return
17
+ 0 1px 0 rgba(255,255,255,.2),
18
+ inset 0 $depth ($blur) rgba(0,0,0,.6),
19
+ inset 0 1px $blur rgba(0,0,0,.6)
20
+ }
@@ -11,7 +11,13 @@
11
11
 
12
12
  @import "recipes/shared/pseudo-element";
13
13
 
14
- @mixin corner-folded($position: top-right, $color: #ddd, $background-color: #fff, $width: 1em, $border-radius: .3em, $box-shadow: rgba(0, 0, 0, .3) 0 0 .6em)
14
+ @mixin folded-corner (
15
+ $position: top-right,
16
+ $color: #ddd,
17
+ $background-color: #fff,
18
+ $width: 1em,
19
+ $border-radius: .3em,
20
+ $box-shadow: rgba(0, 0, 0, .3) 0 0 .6em)
15
21
  {
16
22
  position: relative;
17
23
  overflow: hidden;
@@ -2,25 +2,38 @@
2
2
  * Glass effect
3
3
  * Use this on image for better effect render
4
4
  *
5
- * Inspired from Simurai's Imdb redisign
5
+ * Inspired from Simurai's IMDB redisign
6
6
  *
7
7
  * @link http://lab.simurai.com/redesign/imdb
8
8
  * @thanks Simurai @simurai
9
9
  */
10
- @mixin effect-glass($color: #fff, $reflectDegree: -45deg, $border-radius: 4px)
10
+
11
+ @import '../shared/pseudo-element';
12
+
13
+ @mixin effect-glass(
14
+ $color: #fff,
15
+ $reflectDegree: -45deg,
16
+ $border-radius: 4px
17
+ )
11
18
  {
12
19
  position: relative;
13
20
  @include border-radius($border-radius);
14
21
 
15
- &:before
22
+ &:after
16
23
  {
17
- content: "";
18
- position:absolute;
19
- z-index: 1; // really need that ?
20
- top: 0; right: 0; bottom: 0; left: 0;
24
+ @include pseudo-element($width: auto);
25
+ overflow: hidden;
26
+ top: 0;
27
+ right: 0;
28
+ bottom: 0;
29
+ left: 0;
21
30
  border: transparent solid 1px;
22
31
  @include border-radius($border-radius);
23
- @include box-shadow(inset $color 0 0 2px, inset rgba($color,.4) 0 5px 10px);
24
- @include background(linear-gradient($reflectDegree, rgba($color,.12) 50%, rgba($color, 0) 50.5% ));
32
+ @include box-shadow(
33
+ inset $color 0 0 2px,
34
+ inset rgba($color,.4) 0 5px 10px
35
+ );
36
+ @include background(
37
+ linear-gradient($reflectDegree, rgba($color,.12) 50%, rgba($color, 0) 50.5% ));
25
38
  }
26
39
  }
@@ -0,0 +1,133 @@
1
+ // <div class="tied"><span class="ribbon-bump"><span class="ribbon-band">Hi There</span></span></div>
2
+ // .tied { @include effect-ribbon-tied() }
3
+
4
+ @mixin effect-ribbon-tied($ribbon-bump: '.ribbon-bump', $ribbon-band: '.ribbon-band')
5
+ {
6
+ // http://jsfiddle.net/Calou/juQ9n/
7
+ div {
8
+ width: 500px;
9
+ height: 200px;
10
+ background-color: #ded8c5;
11
+ margin: 0 auto;
12
+ padding: 20px 0px;
13
+ -webkit-transition: .2s;
14
+ }
15
+
16
+ & {
17
+ position: relative;
18
+ width: 100%;
19
+ margin: 0;
20
+ }
21
+
22
+ &:before,
23
+ & #{$ribbon-bump}:before {
24
+ content: '';
25
+ position: absolute;
26
+ bottom: -23px;
27
+ border: 24px solid #c45045;
28
+ }
29
+
30
+ &:before {
31
+ left: -54px;
32
+ border-left-color: transparent;
33
+ -webkit-transform: rotate(-16deg);
34
+ }
35
+ .oldie &:before {
36
+ left: -48px;
37
+ }
38
+
39
+ & #{$ribbon-bump}:before {
40
+ right: -54px;
41
+ border-right-color: transparent;
42
+ -webkit-transform: rotate(16deg);
43
+ z-index: -1;
44
+ }
45
+ .oldie & #{$ribbon-bump}:before {
46
+ right: -48px;
47
+ }
48
+
49
+ & #{$ribbon-bump}:after,
50
+ & #{$ribbon-band}:after {
51
+ content: '';
52
+ position: absolute;
53
+ border-style: solid;
54
+ bottom: -16px;
55
+ z-index: 0;
56
+ }
57
+
58
+ & #{$ribbon-bump}:after {
59
+ right: -16px;
60
+ border-color: transparent transparent transparent #a33d33;
61
+ border-width: 0 0 16px 16px;
62
+ }
63
+
64
+ & #{$ribbon-band}:after {
65
+ left: 0;
66
+ border-color: transparent #a33d33 transparent transparent;
67
+ border-width: 0 16px 16px 0;
68
+ }
69
+
70
+ & #{$ribbon-band} {
71
+ display: block;
72
+ position: relative;
73
+ width: 100%;
74
+ left: -16px;
75
+ padding: 0 16px 16px;
76
+ background: #d0726a;
77
+
78
+ background-image: -webkit-linear-gradient(#d0726a, #c7574d);
79
+
80
+ -webkit-border-top-left-radius: 50% 16px;
81
+ -webkit-border-top-right-radius: 50% 16px;
82
+
83
+ text-align: center;
84
+ font: 28px/48px Museo, cursive;
85
+ font-weight: 700;
86
+ text-decoration: none;
87
+ text-transform: upperppercase;
88
+ color: #fff;
89
+ text-shadow: 0 1px 1px rgba(163, 61, 51, .8), 0 2px 1px rgba(163, 61, 51, .6);
90
+ }
91
+ .oldie & #{$ribbon-band} {
92
+ padding: 0 16px;
93
+ *left: 0px;
94
+ *padding: 0;
95
+
96
+ }
97
+
98
+ & #{$ribbon-band} {
99
+ left: 0;
100
+ margin: 0 -16px;
101
+ width: auto;
102
+ }
103
+
104
+ & #{$ribbon-band}::selection { background-color: #a33d33; }
105
+ & #{$ribbon-band}::-moz-selection { background-color: #a33d33; }
106
+
107
+ & #{$ribbon-band}:before,
108
+ &:after {
109
+ content: '';
110
+ position: absolute;
111
+ height: 16px;
112
+ left: 0;
113
+ bottom: 0;
114
+ -webkit-border-top-left-radius: 50% 16px;
115
+ -webkit-border-top-right-radius: 50% 16px;
116
+ box-shadow: #{$ribbon-bump}nset 0 2px 3px rgba(0, 0, 0, .3);
117
+ }
118
+ .oldie & #{$ribbon-band}:before,
119
+ .oldie &:after {
120
+ content: none;
121
+ }
122
+
123
+ & #{$ribbon-band}:before {
124
+ width: 100%;
125
+ background: #a33d33;
126
+ }
127
+
128
+ &:after {
129
+ width: 100%;
130
+ background: #ded8c5;
131
+ z-index: 1;
132
+ }
133
+ }