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
@@ -3,5 +3,9 @@
3
3
  *
4
4
  * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
5
5
  */
6
+ @import "recipes/shape/symbol/diamond";
7
+ @import "recipes/shape/symbol/egg";
6
8
  @import "recipes/shape/symbol/heart";
7
- @import "recipes/shape/symbol/infinity";
9
+ @import "recipes/shape/symbol/infinity";
10
+ @import "recipes/shape/symbol/pacman";
11
+ @import "recipes/shape/symbol/yin-yang";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Shape/Polygon/Rhombus
3
+ *
4
+ * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
5
+ */
6
+ @mixin rhombus($width, $color: #000, $skew: 0deg, $rotate: -45deg)
7
+ {
8
+ @include square($width, $color);
9
+ @include transform(rotate($rotate) skew($skew, $skew));
10
+ }
@@ -1,44 +1,22 @@
1
1
  /**
2
2
  * Shape/Polygon/Star
3
3
  *
4
+ * @todo check if setting a z-index by default is a good thing
4
5
  * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
5
6
  */
6
7
 
7
- // Star (6-points)
8
- @mixin star-6($width: $width, $background-color: transparent)
9
- {
10
- width: 0;
11
- height: 0;
12
- border-left: $width/2 solid transparent;
13
- border-right: $width/2 solid transparent;
14
- border-bottom: $width solid $background-color;
15
- position: relative;
16
-
17
- &:after
18
- {
19
- content: "";
20
- position: absolute;
21
- width: 0;
22
- height: 0;
23
-
24
- border-left: $width/2 solid transparent;
25
- border-right: $width/2 solid transparent;
26
- border-top: $width solid $background-color;
27
-
28
- top: $width*0.3;
29
- left: -$width/2;
30
- }
31
- }
32
-
33
8
  // Star (5-points)
34
- @mixin star-5($width: $width, $background-color: transparent)
9
+ // @author Kit Macallister
10
+ // @link http://kitmacallister.com/2011/css-only-5-point-star/
11
+ @mixin star-5($width: $width, $background-color: transparent, $z-index: 0)
35
12
  {
36
- margin: $width/2 0;
13
+ margin-top: $width/2;
14
+ margin-bottom: $width/2;
37
15
  position: relative;
38
16
  display: block;
39
17
  width: 0;
40
18
  height: 0;
41
-
19
+
42
20
  border-right: $width solid transparent;
43
21
  border-bottom: $width*0.7 solid $background-color;
44
22
  border-left: $width solid transparent;
@@ -52,6 +30,7 @@
52
30
  display: block;
53
31
  width: 0;
54
32
  height: 0;
33
+ z-index: $z-index - 1;
55
34
  }
56
35
 
57
36
  &:before
@@ -73,4 +52,93 @@
73
52
  border-left: $width solid transparent;
74
53
  @include transform(rotate(-70deg));
75
54
  }
55
+ }
56
+
57
+ // Star (6-points)
58
+ @mixin star-6($width: $width, $background-color: transparent, $z-index: 0)
59
+ {
60
+ width: 0;
61
+ height: 0;
62
+ border-left: $width/2 solid transparent;
63
+ border-right: $width/2 solid transparent;
64
+ border-bottom: $width solid $background-color;
65
+ position: relative;
66
+ z-index: $z-index;
67
+
68
+ &:after
69
+ {
70
+ content: "";
71
+ position: absolute;
72
+ width: 0;
73
+ height: 0;
74
+ z-index: $z-index - 1;
75
+
76
+ border-left: $width/2 solid transparent;
77
+ border-right: $width/2 solid transparent;
78
+ border-top: $width solid $background-color;
79
+
80
+ top: $width*0.3;
81
+ left: - $width /2;
82
+ }
83
+ }
84
+
85
+ // @author Alan Johnson
86
+ // @link http://commondream.net/post/8848553728/pure-css-badges
87
+ // @todo maybe improve this to be able to include text without the transform()
88
+ @mixin star-8($width: 8em, $color: #000, $z-index: 0)
89
+ {
90
+ &,
91
+ &:before,
92
+ {
93
+ @include square($width, $color);
94
+ }
95
+
96
+ position: relative;
97
+ text-align: center;
98
+ @include transform(rotate(20deg));
99
+ z-index: $z-index;
100
+
101
+ &:before
102
+ {
103
+ content: "";
104
+ position: absolute;
105
+ top: 0;
106
+ left: 0;
107
+ @include transform(rotate(135deg));
108
+ z-index: $z-index - 1;
109
+ }
110
+ }
111
+
112
+ @mixin star-12($width: 8em, $color: #000, $z-index: 0)
113
+ {
114
+ &,
115
+ &:before,
116
+ &:after
117
+ {
118
+ @include square($width, $color);
119
+ }
120
+
121
+ position: relative;
122
+ text-align: center;
123
+ z-index: $z-index;
124
+
125
+ &:before,
126
+ &:after
127
+ {
128
+ content: "";
129
+ position: absolute;
130
+ top: 0;
131
+ left: 0;
132
+ z-index: $z-index - 1;
133
+ }
134
+
135
+ &:before
136
+ {
137
+ @include transform(rotate(30deg));
138
+ }
139
+
140
+ &:after
141
+ {
142
+ @include transform(rotate(60deg));
143
+ }
76
144
  }
@@ -9,10 +9,10 @@
9
9
  {
10
10
  $height: $width;
11
11
  }
12
-
12
+
13
13
  width: 0;
14
14
  height: 0;
15
-
15
+
16
16
  @if ($direction == 'top')
17
17
  {
18
18
  border-left: $width solid transparent;
@@ -54,9 +54,9 @@
54
54
  @elseif ($direction == 'bottom-left')
55
55
  {
56
56
  border-top: $width solid transparent;
57
- border-bottom: $width solid $color;
57
+ border-bottom: $width solid $color;
58
58
  border-left: $width solid $color;
59
- border-right: $width solid transparent;
59
+ border-right: $width solid transparent;
60
60
  }
61
61
  @elseif ($direction == 'bottom-right')
62
62
  {
@@ -65,4 +65,9 @@
65
65
  border-bottom: $width solid $color;
66
66
  border-right: $width solid $color;
67
67
  }
68
+ @else
69
+ {
70
+ // https://gist.github.com/1671259
71
+ @warn "#{error("The direction used does not exist")}";
72
+ }
68
73
  }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Shape/Symbol/Diamond
3
+ *
4
+ * @todo add height support
5
+ *
6
+ * @author Alexander Futekov
7
+ * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
8
+ */
9
+ @mixin diamond($width: 5em, $color: #000)
10
+ {
11
+ $half-width: $width/2;
12
+ border-style: solid;
13
+ border-color: transparent transparent $color transparent;
14
+
15
+ border-width: 0 $half-width $half-width $half-width;
16
+ height: 0;
17
+ width: $width;
18
+ position: relative;
19
+ margin: $half-width/5*2 0 $width 0;
20
+
21
+ &:after
22
+ {
23
+ content: "";
24
+ position: absolute;
25
+ top: $half-width;
26
+ left: -$half-width;
27
+ width: 0;
28
+ height: 0;
29
+ border-style: solid;
30
+ border-color: $color transparent transparent transparent;
31
+ border-width: $half-width/5*7 $width 0 $width;
32
+ }
33
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Shape/Symbol/Egg
3
+ *
4
+ * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
5
+ */
6
+ @mixin egg($width: 12em, $height: 18em, $color: #000)
7
+ {
8
+ display:block;
9
+ width: $width;
10
+ height: $height;
11
+ background-color: $color;
12
+ @include border-radius(50% 50% 50% 50% / 60% 60% 40% 40%);
13
+ }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Shape/Symbol/Heart
3
- *
3
+ *
4
+ * @author Nicolas Gallagher @necolas
4
5
  * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
5
6
  */
6
7
  @mixin heart($width: 100px, $height: 90px, $background-color: transparent)
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Shape/Symbol/Infinity
3
- *
3
+ *
4
+ * @author Nicolas Gallagher @necolas
4
5
  * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
5
6
  */
6
7
  @mixin infinity($width: 212px, $height: 100px, $background-color: transparent)
@@ -29,6 +30,7 @@
29
30
  height: $height*.6;
30
31
  border: $height*.2 solid $background-color;
31
32
  }
33
+
32
34
  $radius: $height/2;
33
35
  &:before
34
36
  {
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Shape/Symbol/Pacman
3
+ *
4
+ * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
5
+ */
6
+ @mixin pacman($width: 6em, $color: #000)
7
+ {
8
+ width: 0;
9
+ height: 0;
10
+ border-right: $width solid transparent;
11
+ border-top: $width solid $color;
12
+ border-left: $width solid $color;
13
+ border-bottom: $width solid $color;
14
+ border-top-left-radius: $width;
15
+ border-top-right-radius: $width;
16
+ border-bottom-left-radius: $width;
17
+ border-bottom-right-radius: $width;
18
+ }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Shape/Symbol/Yin-yang
3
+ *
4
+ * @author Alexander Futekov
5
+ * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
6
+ */
7
+ @mixin yin-yang($width: 10em, $color: #000, $color-alt: #fff)
8
+ {
9
+ width: $width*96/100;
10
+ height: $width*48/100;
11
+ background: $color-alt;
12
+ border-color: $color;
13
+ border-style: solid;
14
+ $twopercente: $width*2/100;
15
+ border-width: $twopercente $twopercente $width*5/10 $twopercente;
16
+ position: relative;
17
+
18
+ &,
19
+ &:before,
20
+ &:after
21
+ {
22
+ @include border-radius(100%);
23
+ }
24
+
25
+ &:before,
26
+ &:after
27
+ {
28
+ content: "";
29
+ position: absolute;
30
+ top: 50%;
31
+ border: $width*18/100 solid;
32
+ width: $width*12/100;
33
+ height: $width*12/100;
34
+ }
35
+
36
+ &:before
37
+ {
38
+ left: 0;
39
+ background: $color-alt;
40
+ border-color: $color;
41
+ }
42
+
43
+ &:after
44
+ {
45
+ left: 50%;
46
+ background: $color;
47
+ border-color: $color-alt;
48
+ }
49
+ }
@@ -1,26 +1,27 @@
1
- /**
2
- * Micro clearfix hack
3
- *
4
- * The clearfix hack is a popular way to clear floats without resorting to using presentational markup. This article presents an update to the clearfix method that further reduces the amount of CSS required.
5
- * Known support: Firefox 2+, Safari 2+, Chrome, Opera 9.27+, IE 6+, IE Mac.
6
- *
7
- * @thanks Nicolas Gallagher @necolas
8
- * @link http://nicolasgallagher.com/micro-clearfix-hack/
9
- */
10
- @mixin clearfix
1
+ //
2
+ // Micro clearfix hack
3
+ //
4
+ // The clearfix hack is a popular way to clear floats without resorting to using presentational markup.This article presents an update to the clearfix method that further reduces the amount of CSS required.
5
+ // Known support: Firefox 2+, Safari 2+, Chrome, Opera 9.27+, IE 6+, IE Mac.
6
+ //
7
+ // @thanks Nicolas Gallagher @necolas
8
+ // @link http://nicolasgallagher.com/micro-clearfix-hack/
9
+ //
10
+
11
+ @mixin clearfix-hack
11
12
  {
12
13
  // For modern browsers
13
14
  &:before,
14
15
  &:after
15
16
  {
16
- content:"";
17
- display:block;
18
- overflow:hidden;
17
+ content: "";
18
+ display: block;
19
+ overflow: hidden;
19
20
  }
20
21
 
21
22
  &:after
22
23
  {
23
- clear:both;
24
+ clear: both;
24
25
  }
25
26
 
26
27
  //For IE 6/7 (trigger hasLayout)
@@ -28,4 +29,17 @@
28
29
  {
29
30
  zoom: 1;
30
31
  }
32
+ }
33
+
34
+ $clearfix-class: 'clearfix' !default;
35
+ $clearfix-silent: true !default;
36
+
37
+ %#{$clearfix-class}
38
+ {
39
+ @include clearfix-hack;
40
+ }
41
+
42
+ @mixin clearfix
43
+ {
44
+ @extend %#{$clearfix-class};
31
45
  }
@@ -4,12 +4,21 @@
4
4
  * So use only : and not :: if you want to support IE8
5
5
  * IE9 Webkit Firefox Opera understand ::
6
6
  */
7
- @mixin pseudo-element($width: 0, $height: auto, $content: "")
7
+ @mixin pseudo-element($width: 0, $height: auto, $content: "", $position: absolute, $display: block)
8
8
  {
9
9
  content: $content;
10
- position: absolute;
11
- display: block;
12
- width: $width; // default 0 is for ff3 positionning
10
+ @if ($position != default)
11
+ {
12
+ position: $position;
13
+ }
14
+ @if ($display != default)
15
+ {
16
+ display: $display;
17
+ }
18
+
19
+ @if ($width != auto) {
20
+ width: $width; // default 0 is for ff3 positionning
21
+ }
13
22
 
14
23
  @if ($height != auto)
15
24
  {