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,102 @@
1
+ @import "compass/css3/transform";
2
+ @import "recipes/shared/pseudo-element";
3
+
4
+ // add http://soiheardyouliekribbon.com/
5
+
6
+ @mixin effect-ribbon-corner($position: 'top left', $width: 10em, $height: 2em, $lines: 1, $skin: 'classic', $width-add: 0, $height-add: 0)
7
+ {
8
+ position: absolute;
9
+ text-align: center;
10
+ box-sizing: border-box;
11
+
12
+ width: $width;
13
+ height: $height;
14
+ line-height: $height / $lines;
15
+
16
+ // @if ($position == top left)
17
+ $position-v: top;
18
+ $position-h: left;
19
+ $angle: -45deg;
20
+ $transform-origin-x: 0;
21
+ $transform-origin-y: 100%;
22
+
23
+ @if ($position == 'top right')
24
+ {
25
+ //$position-v: top;
26
+ $position-h: right;
27
+ $angle: 45deg;
28
+ $transform-origin-x: 100%;
29
+ //$transform-origin-y: 100%;
30
+ }
31
+ @elseif ($position == 'bottom right')
32
+ {
33
+ $position-v: bottom;
34
+ $position-h: right;
35
+ //$angle: -45deg
36
+ $transform-origin-x: 100%;
37
+ $transform-origin-y: 0;
38
+ }
39
+ @elseif ($position == 'bottom left')
40
+ {
41
+ $position-v: bottom;
42
+ //$position-h: left;
43
+ $angle: 45deg;
44
+ //$transform-origin-x: 0;
45
+ $transform-origin-y: 0;
46
+ }
47
+
48
+ @if ($skin == 'classic')
49
+ {
50
+ @extend %effect-ribbon-skin-classic;
51
+ // skin border size to remove;
52
+ $width-add: .1em;
53
+ $height-add: .1em;
54
+ }
55
+ //@elseif ($skin == 'github')
56
+ //{
57
+ // @extend %effect-ribbon-skin-github;
58
+ //}
59
+
60
+ // here is the awesome trick !
61
+ $value: pow($width + $width-add, 2) / 2 ;
62
+ #{$position-v}: sqrt($value) - $height - $height-add;
63
+ #{$position-h}: 0;
64
+
65
+ @include transform(rotate($angle));
66
+ @include transform-origin($transform-origin-x, $transform-origin-y);
67
+ }
68
+
69
+ %effect-ribbon-skin-classic
70
+ {
71
+ color: #fff;
72
+ text-shadow: 0 1px 0 rgba(#000, .8);
73
+
74
+ border: .1em solid #631a15;
75
+ @include background(linear-gradient(rgb(199,59,60),rgb(184,32,31)));
76
+ box-shadow: 0 .2em .6em rgba(#000, .6);
77
+
78
+ // light before(below) dark
79
+ &:before
80
+ {
81
+ border: 1px dashed #da5050;
82
+ margin-top: .1em;
83
+ }
84
+ &:after
85
+ {
86
+ border: 1px dashed #631a15;
87
+ }
88
+
89
+ &:before,
90
+ &:after
91
+ {
92
+ @include pseudo-element(100%, 86%);
93
+ top: 7%;
94
+ border-left: 0;
95
+ border-right: 0;
96
+ }
97
+ }
98
+
99
+ //%effect-ribbon-skin-github
100
+ //{
101
+ //
102
+ //}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Rotate a group of elements as if they were casually tossed on a table
3
+ *
4
+ * @author Mason Wendell http://thecodingdesigner.com
5
+ *
6
+ */
7
+
8
+ @mixin scatter($rotate: 10deg, $variation: 6) {
9
+ $rotate-a: $rotate - $variation;
10
+ $rotate-b: $rotate + $variation;
11
+ $rotate-c: $rotate + ($variation / 2);
12
+ @include rotate($rotate);
13
+ &:nth-of-type(2n+2) {
14
+ @include rotate($rotate-a);
15
+ }
16
+ &:nth-of-type(3n+3) {
17
+ @include rotate($rotate-b);
18
+ }
19
+ &:nth-of-type(5n+5) {
20
+ @include rotate($rotate-c);
21
+ }
22
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Scotch tape effect with pure CSS
3
+ *
4
+ * @thanks Nick La @nickla for original concept
5
+ * @link http://webdesignerwall.com/tutorials/css3-image-styles
6
+ *
7
+ * @author David Kaneda http://www.davidkaneda.com
8
+ *
9
+ */
10
+
11
+ @import "../shared/pseudo-element";
12
+
13
+ $tape-width: 60px !default;
14
+ $tape-height: 25px !default;
15
+ $tape-color: rgb(254,243,127) !default;
16
+ $tape-opacity: .4 !default;
17
+ $tape-angle: -2deg !default;
18
+
19
+ @mixin tape (
20
+ $width: $tape-width,
21
+ $height: $tape-height,
22
+ $color: $tape-color,
23
+ $opacity: $tape-opacity,
24
+ $angle: $tape-angle
25
+ )
26
+ {
27
+ overflow: visible;
28
+ &:after {
29
+ @include pseudo-element($width: $width, $height: $height);
30
+ top: ceil(-$height/2);
31
+ left: 50%;
32
+ margin-left: -$width/2;
33
+
34
+ border: solid 1px darken($color, 10);
35
+
36
+ @include background-gradient(rgba($color, $opacity), $type: matte);
37
+ @include rotate($angle);
38
+ @include box-shadow(
39
+ inset 0 1px 0 rgba(255,255,255,.3),
40
+ 0 1px 0 rgba(0,0,0,.2)
41
+ )
42
+ }
43
+ }
@@ -0,0 +1,79 @@
1
+ //
2
+ // Gravatar recipe
3
+ //
4
+ // This recipe use a gravatar as an element
5
+ //
6
+ // It's not really usable as it could be, @link https://github.com/MoOx/compass-recipes/issues/27
7
+ // But I want something, so use javascript if you can, or helper if you just need one hardcoded gravatar
8
+ //
9
+ // @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
10
+ //
11
+
12
+ @import "recipes/shared/pseudo-element";
13
+
14
+ // default values
15
+ $helper-gravatar-size: 48px !default;
16
+ $helper-gravatar-default: "" !default;
17
+ $helper-gravatar-rating: PG !default;
18
+ $helper-gravatar-ssl: false !default;
19
+
20
+ @mixin helper-gravatar-base(
21
+ $email,
22
+ $size: $helper-gravatar-size,
23
+ $default: $helper-gravatar-default,
24
+ $rating: $helper-gravatar-rating,
25
+ $ssl: $helper-gravatar-ssl
26
+ )
27
+ {
28
+ background-image: gravatar_url(
29
+ $email: unquote($email),
30
+ $size: $size/1px, // to remove px
31
+ $default: unquote($default),
32
+ $rating: $rating,
33
+ $ssl: $ssl
34
+ );
35
+ background-repeat: no-repeat;
36
+ }
37
+
38
+ @mixin helper-gravatar(
39
+ $email,
40
+ $size: $helper-gravatar-size,
41
+ $default: $helper-gravatar-default,
42
+ $rating: $helper-gravatar-rating,
43
+ $ssl: $helper-gravatar-ssl
44
+ )
45
+ {
46
+ width: $size;
47
+ height: $size;
48
+ @include helper-gravatar-base($email, $size, $default, $rating, $ssl);
49
+
50
+ }
51
+
52
+ @mixin helper-gravatar-pseudo(
53
+ $email,
54
+ $size: $helper-gravatar-size,
55
+ $default: $helper-gravatar-default,
56
+ $rating: $helper-gravatar-rating,
57
+ $ssl: $helper-gravatar-ssl
58
+ )
59
+ {
60
+ @include pseudo-element($size, $size, $position: default);
61
+ @include helper-gravatar-base($email, $size, $default, $rating, $ssl);
62
+ }
63
+
64
+ @mixin helper-gravatar-auto(
65
+ $pseudo: before,
66
+ $size: $helper-gravatar-size,
67
+ $default: $helper-gravatar-default,
68
+ $ssl: $helper-gravatar-ssl
69
+ )
70
+ {
71
+ &:#{$pseudo}
72
+ {
73
+ @include pseudo-element($size, $size, $position: default);
74
+ width: $size;
75
+ height: $size;
76
+ background-repeat: no-repeat;
77
+ }
78
+
79
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Shortcuts for Flexible Box Model
3
+ *
4
+ * Usage:
5
+ *
6
+ * SCSS
7
+ * @include box-layout;
8
+ * .mycontainer { @extend .hbox }
9
+ * .mybox { @extend .flex2 }
10
+ *
11
+ * Or in HTML:;
12
+ * <div class="vbox">
13
+ * <div class="flex">
14
+ * ...
15
+ *
16
+ * @autor David Kaneda
17
+ *
18
+ */
19
+
20
+ @mixin flexible-box-layout {
21
+ .box {
22
+ @include display-box;
23
+ @include box-align(stretch);
24
+
25
+ > * {
26
+ display: block;
27
+ @extend .flex-0;
28
+ }
29
+ }
30
+
31
+ .hbox {
32
+ @extend .box;
33
+ @include display-orient(horizontal);
34
+ }
35
+
36
+ .vbox {
37
+ @extend .box;
38
+ @include display-orient(vertical);
39
+ }
40
+
41
+ .reverse {
42
+ @include box-direction(reverse);
43
+ }
44
+
45
+ .flex-0 {
46
+ @include box-flex(0);
47
+ }
48
+
49
+ .flex, .spacer, .flex-1 {
50
+ @include box-flex(1);
51
+ }
52
+
53
+ .flex-2 {
54
+ @include box-flex(2);
55
+ }
56
+
57
+ .start {
58
+ @include box-pack(start);
59
+ }
60
+
61
+ .end {
62
+ @include box-pack(end);
63
+ }
64
+
65
+ .center {
66
+ @include box-pack(center);
67
+ }
68
+ }
@@ -8,7 +8,7 @@
8
8
 
9
9
  @import "recipes/shadow/drop/curled-corners";
10
10
  @import "recipes/shadow/drop/curved";
11
- //@import "recipes/shadow/drop/flying"; // not ready yet
11
+ @import "recipes/shadow/drop/flying"; // not ready yet
12
12
  @import "recipes/shadow/drop/lifted-corners";
13
13
  @import "recipes/shadow/drop/perspective";
14
14
  @import "recipes/shadow/drop/raised";
@@ -23,6 +23,6 @@
23
23
  // Usage
24
24
  body:before
25
25
  {
26
- @include top-shadow;
26
+ @include top-shadow;
27
27
  }
28
28
  */
@@ -7,8 +7,8 @@
7
7
  @mixin drop-shadow-curved($side: 'vertical', $distance: 10px, $box-shadow: 0 0 15px rgba(#000, .6), $radius-1: 10px, $radius-2: 100px)
8
8
  {
9
9
  position: relative;
10
-
11
10
  // vertical by default
11
+
12
12
  //@if ($side == 'vertical')
13
13
  //{
14
14
  $top: $distance;
@@ -18,6 +18,8 @@
18
18
  $border-radius-1: $radius-1;
19
19
  $border-radius-2: $radius-2;
20
20
  //}
21
+
22
+
21
23
  @if ($side == 'left')
22
24
  {
23
25
  $right: 50%;
@@ -60,8 +62,8 @@
60
62
  {
61
63
  content: "";
62
64
  position: absolute;
63
- z-index: -2;
64
-
65
+ z-index: -1;
66
+
65
67
  top: $top;
66
68
  bottom: $bottom;
67
69
  left: $left;
@@ -4,7 +4,12 @@
4
4
  * @thanks Geoffrey Crofte @geoffrey_crofte
5
5
  * @link http://www.creativejuiz.fr/trytotry/css3-box-shadow-after-before/
6
6
  */
7
- @mixin drop-shadow-flying($box-shadow-radius: 10px, $color: #000)
7
+ @mixin drop-shadow-flying(
8
+ $box-shadow-radius: 30px,
9
+ $color: #000,
10
+ $distance: 1em,
11
+ $height: 2px
12
+ )
8
13
  {
9
14
  position: relative;
10
15
 
@@ -14,29 +19,16 @@
14
19
  content: " ";
15
20
  position: absolute;
16
21
  z-index: -2;
17
-
18
- bottom: -1em;
19
- }
20
-
21
- &:before
22
- {
23
- left: 0;
24
- width: 100%;
25
- height: 4%;
26
- background: #AAA;
27
- @include border-radius(140px / 2px);
28
- @include box-shadow(0 0 $box-shadow-radius/2 rgba(#000, .2), 0 0 $box-shadow-radius rgba(#000, .3), 0 0 $box-shadow-radius*1.5 rgba(#000, .4));
22
+ bottom: -$distance;
29
23
  }
30
24
 
31
25
  &:after
32
26
  {
33
- $height: .15em;
34
-
35
- left: 5%;
36
- width: 90%;
27
+ left: 8%;
28
+ width: 84%;
37
29
  height: $height;
38
- background: rgba(#000, .2);
39
- @include border-radius(125px / 1px);
40
- @include box-shadow(0 #{-$height} $box-shadow-radius/2 rgba(#000, .3), 0 #{-$height} $box-shadow-radius*.8 rgba(#000, .2), 0 #{-$height} $box-shadow-radius/2 rgba(#000, .1));
30
+ background: rgba(#000, .3);
31
+ @include border-radius(#{50%} / #{1px});
32
+ @include box-shadow(0 $height $box-shadow-radius/2 rgba(#000, .2), 0 $height $box-shadow-radius rgba(#000, .15));
41
33
  }
42
34
  }
@@ -1,13 +1,15 @@
1
1
  /**
2
2
  * Drop shadow rules required for transform on drop shadow
3
3
  *
4
- * /!\ This is required is you want to apply some transform on the element using drop shadow
4
+ * /!\ This is required if you want to apply some transform on the element using drop shadow
5
5
  *
6
6
  * @thanks Nicolas Gallagher @necolas
7
7
  * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
8
8
  */
9
9
  @mixin drop-shadow-transform-requirement($background: #fff)
10
10
  {
11
+ position: relative;
12
+
11
13
  & > :last-child::before
12
14
  {
13
15
  content: "";
@@ -8,6 +8,7 @@
8
8
  @import "recipes/shape/polygon/parallelogram";
9
9
  @import "recipes/shape/polygon/pentagon";
10
10
  @import "recipes/shape/polygon/rectangle";
11
+ @import "recipes/shape/polygon/rhombus";
11
12
  @import "recipes/shape/polygon/square";
12
13
  @import "recipes/shape/polygon/star";
13
14
  @import "recipes/shape/polygon/trapezoid";