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
@@ -1 +1,6 @@
1
- @import "recipes/effect/glass";
1
+ @import "effect/glass";
2
+ @import "effect/cutout";
3
+ @import "effect/bevel";
4
+ @import "effect/tape";
5
+ @import "effect/corner-folded";
6
+ @import "effect/folded-corner";
@@ -0,0 +1,32 @@
1
+ //
2
+ // Font face mixin to import a pack generated from fontsquirrel.com
3
+ // include .eot (ie), .svg (iphone), .ttf & .woff
4
+ //
5
+ // @link http://www.fontsquirrel.com/fontface/generator
6
+ // @link http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax
7
+ //
8
+ // @author Maxime Thirouin m@moox.fr
9
+ //
10
+
11
+ @import "compass/css3/font-face";
12
+
13
+ @mixin font-face-kit($font-name, $font-id, $font-file-suffix: auto, $font-dir: auto)
14
+ {
15
+ @if ($font-file-suffix == auto)
16
+ {
17
+ $font-file-suffix: $font-name + '-webfont';
18
+ }
19
+ @if ($font-dir == auto)
20
+ {
21
+ $font-dir: $font-name;
22
+ }
23
+ @include font-face(
24
+ "#{$font-name}",
25
+ font-files(
26
+ "#{$font-dir}/#{$font-file-suffix}.eot?#iefix",
27
+ "#{$font-dir}/#{$font-file-suffix}.woff",
28
+ "#{$font-dir}/#{$font-file-suffix}.ttf",
29
+ "#{$font-dir}/#{$font-file-suffix}.svg##{$font-id}"
30
+ )
31
+ );
32
+ }
@@ -0,0 +1,15 @@
1
+ $google-font-name: false !default;
2
+ $google-font-weights: false !default;
3
+
4
+ @if $google-font-name and $google-font-weights {
5
+ @include google-webfont($google-font-name, $google-font-weights);
6
+ }
7
+
8
+ @mixin google-webfont(
9
+ $font-name,
10
+ $font-weights: 500
11
+ ) {
12
+ // @debug join($font-name,'', '|');
13
+
14
+ @import url("//fonts.googleapis.com/css?family=#{$font-name}:#{$font-weights}");
15
+ }
@@ -0,0 +1,224 @@
1
+
2
+ @import 'compass';
3
+ @import "compass/typography/text/replacement";
4
+
5
+ @import 'shared';
6
+ @import 'font';
7
+
8
+ @import 'background/gradients';
9
+
10
+ // @todo add http://fortaweso.me/font-awesome
11
+
12
+ /**
13
+ * @class font Icon
14
+ * Great to use with the some pictos fonts
15
+ */
16
+
17
+ $icon-font-class-suffix: "icon-font" !default;
18
+ $icon-font-base-class: ".#{$icon-font-class-suffix}-base" !default;
19
+
20
+ /**
21
+ * @cfg {color} $icon-font-base-color
22
+ * The default color of icons when using the {@link #icon-font} mixin.
23
+ *
24
+ * Defaults to `white`.
25
+ */
26
+ $icon-font-base-color: #999 !default;
27
+
28
+ /**
29
+ * @cfg {color} $icon-font-default-stroke
30
+ * The default color to use on the border of icons, when using the {@link #icon-font} mixin.
31
+ *
32
+ * Defaults to `null`.
33
+ */
34
+ $icon-font-default-stroke: darken($icon-font-base-color, 10) !default;
35
+
36
+ $icon-font-highlight-color: #3778E5 !default;
37
+
38
+ /**
39
+ * @cfg {string} $icon-font-default-gradient
40
+ * The default gradient to use when using the {@link #icon-font} mixin.
41
+ *
42
+ * Defaults to `matte`.
43
+ */
44
+ $icon-font-default-gradient: matte !default;
45
+
46
+ // Base style for pseudo-selectors
47
+ // @todo Doc me yo
48
+
49
+ #{$icon-font-base-class}
50
+ {
51
+ @silent;
52
+ color: transparent;
53
+ @include background-clip(text);
54
+ position: absolute;
55
+ top: 0;
56
+ left: 0;
57
+ text-indent: 0;
58
+ @include text-shadow(none);
59
+ @include user-select(none);
60
+ }
61
+
62
+ // http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax
63
+
64
+ @mixin icon-font-face($font-name, $font-id, $font-file-suffix: auto, $font-dir: auto)
65
+ {
66
+ @include font-face-kit($font-name, $font-id, $font-file-suffix, $font-dir);
67
+
68
+ .#{$icon-font-class-suffix}-#{$font-name}
69
+ {
70
+ font-family: #{$font-name};
71
+ @extend #{$icon-font-base-class};
72
+ }
73
+ }
74
+
75
+ @mixin icon-font-face-entypo() { @include icon-font-face(entypo, EntypoRegular, entypo-webfont, icons/entypo); }
76
+ @mixin icon-font-face-heydings() { @include icon-font-face(heydings, HeydingsCommonIconsRegular, heydings_icons-webfont, icons/heydings); }
77
+ @mixin icon-font-face-heydings_controls() { @include icon-font-face(heydings_controls, HeydingsControlsRegular, heydings_controls-webfont, icons/heydings-controls); }
78
+ @mixin icon-font-face-iconic_fill() { @include icon-font-face(iconic_fill, IconicFill, iconic_fill, icons/iconic); }
79
+ @mixin icon-font-face-iconic_stroke() { @include icon-font-face(iconic_stroke, IconicStroke, iconic_stroke, icons/iconic); }
80
+ @mixin icon-font-face-icomoon() { @include icon-font-face(icomoon, IcoMoonRegular, icomoon, icons/icomoon); }
81
+ @mixin icon-font-face-modern-pictograms() { @include icon-font-face(modern-pictograms, ModernPictogramsNormal, modernpics-webfont, icons/modern-pictograms);}
82
+ @mixin icon-font-face-socialico() { @include icon-font-face(socialico, SocialicoRegular, socialico-webfont, icons/socialico); }
83
+ @mixin icon-font-face-websymbols() { @include icon-font-face(websymbols, WebSymbolsRegular, websymbols-regular-webfont, icons/websymbols); }
84
+
85
+ /**
86
+ * Includes a character into the specified selector, styled as an icon.
87
+ *
88
+ * @include icon-font('a');
89
+ *
90
+ * @param {color} $color
91
+ * The color of the icon. Defaults to {@link #$icon-font-default-background $icon-font-default-background}.
92
+ *
93
+ * @param {measurement} $size
94
+ * The size of the icon
95
+ *
96
+ * @param {color} $stroke
97
+ * The color of the border. Defautls to {@link #$icon-font-default-border $icon-font-default-border}.
98
+ *
99
+ * @param {boolean} $include-staes
100
+ * True to include states for hover and active. Defaults to `true`.
101
+ */
102
+ @mixin icon-font(
103
+ $character: attr(data-icon),
104
+ $size: 48px,
105
+ $class: 'base',
106
+
107
+ $color: $icon-font-base-color,
108
+ $color-hover: $icon-font-highlight-color,
109
+ $color-active: darken($color-hover, 7%),
110
+
111
+ $glow: null,
112
+ $glow-hover: $icon-font-highlight-color 0 0 10px,
113
+ $glow-active: $glow-hover,
114
+
115
+ $shadow: rgba(#000, .5) 0 1px 3px, // Shadow doesn't change, but hover does
116
+
117
+ $stroke: false,
118
+ $stroke-hover: 1px darken($color-hover, 5),
119
+ $stroke-active: 1px darken($color-active, 5),
120
+
121
+ $gradient: $icon-font-default-gradient,
122
+ $gradient-hover: $gradient,
123
+ $gradient-active: recessed,
124
+
125
+ $include-states: true,
126
+ $hidetext: true
127
+ ) {
128
+ position: relative;
129
+ @include background-clip(text);
130
+ overflow: visible;
131
+ display: inline-block;
132
+
133
+ // icon are square
134
+ width: $size;
135
+ line-height: $size;
136
+ height: $size;
137
+
138
+ @if ($hidetext == true)
139
+ {
140
+ text-indent: -9999px;
141
+ //@include hide-text();
142
+ }
143
+
144
+ @if $stroke
145
+ {
146
+ -webkit-text-stroke: if($stroke == true, darken($color, 10), $stroke);
147
+ text-stroke: if($stroke == true, darken($color, 10), $stroke);
148
+ }
149
+
150
+ &:after,
151
+ &:before
152
+ {
153
+ @extend .#{$icon-font-class-suffix}-#{$class};
154
+ font-size: $size;
155
+ content: $character;
156
+
157
+ @include background-gradient($color, $gradient);
158
+ }
159
+
160
+ &:before
161
+ {
162
+ // @include background-clip(padding-box);
163
+ background: none;
164
+ @include text-shadow($shadow);
165
+ }
166
+
167
+ @if $include-states {
168
+ &:hover {
169
+ @if $stroke-hover and $stroke {
170
+ -webkit-text-stroke: $stroke-hover;
171
+ text-stroke: $stroke-hover;
172
+ }
173
+
174
+ &:before {
175
+ @include text-shadow($shadow, $glow-hover);
176
+ }
177
+ &:after {
178
+ @include background-gradient($color-hover, $gradient-hover);
179
+ }
180
+ }
181
+ &:active {
182
+ @if $stroke-active and $stroke {
183
+ -webkit-text-stroke: $stroke-active;
184
+ text-stroke: $stroke-active;
185
+ }
186
+ &:before {
187
+ @include text-shadow($shadow, $glow-active);
188
+ }
189
+ &:after {
190
+ @include background-gradient($color-active, $gradient-active);
191
+ }
192
+ }
193
+ }
194
+ }
195
+
196
+ $icon-font-attr-name: data-icon !default;
197
+ $icon-font-attr-default-pseudo: before !default;
198
+
199
+ @mixin icon-font-attr-rules()
200
+ {
201
+ [data-icon]
202
+ {
203
+ &:#{$icon-font-from-attr-default-pseudo}
204
+ {
205
+ content: attr($icon-font-attr-name);
206
+ }
207
+ }
208
+
209
+ [data-icon-before]
210
+ {
211
+ &:before
212
+ {
213
+ content: attr($icon-font-attr-name);
214
+ }
215
+ }
216
+
217
+ [data-icon-after]
218
+ {
219
+ &:after
220
+ {
221
+ content: attr($icon-font-attr-name);
222
+ }
223
+ }
224
+ }
@@ -6,8 +6,13 @@
6
6
  vertical-align: middle;
7
7
  }
8
8
 
9
- @mixin icon-inline($side: left, $width: 24px, $height: auto, $background-position: 2px 50%, $display: inline-block)
10
- {
9
+ @mixin icon-inline(
10
+ $side: left,
11
+ $width: 24px,
12
+ $height: auto,
13
+ $background-position: 2px 50%,
14
+ $display: inline-block
15
+ ) {
11
16
  @if $height == auto
12
17
  {
13
18
  $height: $width;
@@ -18,12 +23,12 @@
18
23
  line-height: $height;
19
24
  }
20
25
 
21
- @mixin icon-left($width: 24px, $height: auto, $background-position: 2px 50%, $display: inline-block)
22
- {
23
- @include icon-inline(left, $width, $height, $background-position, $display);
24
- }
26
+ @mixin icon-left($width: 24px, $height: auto, $background-position: 2px 50%, $display: inline-block)
27
+ {
28
+ @include icon-inline(left, $width, $height, $background-position, $display);
29
+ }
25
30
 
26
- @mixin icon-right($width: 24px, $height: auto, $background-position: 100% 50%, $display: inline-block)
27
- {
28
- @include icon-inline(right, $width, $height, $background-position, $display);
29
- }
31
+ @mixin icon-right($width: 24px, $height: auto, $background-position: 100% 50%, $display: inline-block)
32
+ {
33
+ @include icon-inline(right, $width, $height, $background-position, $display);
34
+ }
@@ -0,0 +1,72 @@
1
+ //
2
+ // Predefined Media Queries Mixins
3
+ //
4
+ // @require sass-3.2 (you need eventually to do "sudo gem install sass --pre")
5
+ //
6
+ // @author Maxime Thirouin <maxime.thirouin@gmail.com>
7
+ //
8
+
9
+ // sizes
10
+ $media-query-width-xxl: 1824px !default; // eg. oversized luxury screen
11
+ $media-query-width-xl: 1382px !default; // eg. high-res. PC browser
12
+ $media-query-width-l: 992px !default; // 1024 eg. common resolution PC
13
+ $media-query-width-m: 768px !default; // eg. portrait iPad
14
+ $media-query-width-s: 600px !default; // eg. Kindle
15
+ $media-query-width-xs: 480px !default; // eg. landscape iPhone
16
+ $media-query-width-xxs: 320px !default; // eg. portrait iPhone
17
+
18
+ // size: exclusive queries
19
+ @mixin media-xxl { @media (min-width: $media-query-width-xxl) { @content } }
20
+ // this syntax do not work for now
21
+ //@mixin media-xl { @media (min-width: $media-query-width-xl) and (max-width: $media-query-width-xxl - 1px) { @content } }
22
+ //@mixin media-l { @media (min-width: $media-query-width-l) and (max-width: $media-query-width-xl - 1px) { @content } }
23
+ //@mixin media-m { @media (min-width: $media-query-width-m) and (max-width: $media-query-width-l - 1px) { @content } }
24
+ //@mixin media-s { @media (min-width: $media-query-width-s) and (max-width: $media-query-width-m - 1px) { @content } }
25
+ //@mixin media-xs { @media (min-width: $media-query-width-xs) and (max-width: $media-query-width-s - 1px) { @content } }
26
+ //@mixin media-xxs { @media (min-width: $media-query-width-xxs) and (max-width: $media-query-width-xs - 1px) { @content } }
27
+ @mixin media-xl { $max: $media-query-width-xxl - 1px; @media (min-width: $media-query-width-xl) and (max-width: $max) { @content } }
28
+ @mixin media-l { $max: $media-query-width-xl - 1px; @media (min-width: $media-query-width-l) and (max-width: $max) { @content } }
29
+ @mixin media-m { $max: $media-query-width-l - 1px; @media (min-width: $media-query-width-m) and (max-width: $max) { @content } }
30
+ @mixin media-s { $max: $media-query-width-m - 1px; @media (min-width: $media-query-width-s) and (max-width: $max) { @content } }
31
+ @mixin media-xs { $max: $media-query-width-s - 1px; @media (min-width: $media-query-width-xs) and (max-width: $max) { @content } }
32
+ @mixin media-xxs { @media (max-width: $media-query-width-xs) { @content } }
33
+
34
+ // size: min/max queries
35
+ @mixin media-xxl-max { @media (max-width: $media-query-width-xxl) { @content } }
36
+ @mixin media-xl-max { @media (max-width: $media-query-width-xl) { @content } }
37
+ @mixin media-l-max { @media (max-width: $media-query-width-l) { @content } }
38
+ @mixin media-m-max { @media (max-width: $media-query-width-m) { @content } }
39
+ @mixin media-s-max { @media (max-width: $media-query-width-s) { @content } }
40
+ @mixin media-xs-max { @media (max-width: $media-query-width-xs) { @content } }
41
+ @mixin media-xxs-max { @media (max-width: $media-query-width-xxs) { @content } }
42
+
43
+ @mixin media-xxl-min { @media (min-width: $media-query-width-xxl) { @content } }
44
+ @mixin media-xl-min { @media (min-width: $media-query-width-xl) { @content } }
45
+ @mixin media-l-min { @media (min-width: $media-query-width-l) { @content } }
46
+ @mixin media-m-min { @media (min-width: $media-query-width-m) { @content } }
47
+ @mixin media-s-min { @media (min-width: $media-query-width-s) { @content } }
48
+ @mixin media-xs-min { @media (min-width: $media-query-width-xs) { @content } }
49
+ @mixin media-xxs-min { @media (min-width: $media-query-width-xxs) { @content } }
50
+
51
+ // @todo add/review more verbose mixins ?
52
+
53
+ // orientation (horizontal & vertical)
54
+ @mixin media-portrait { @media (orientation:portrait) { @content } }
55
+ @mixin media-landscape { @media (orientation:landscape) { @content } }
56
+ // shortcuts
57
+ @mixin media-h { @include media-portrait { @content } }
58
+ @mixin media-v { @include media-landscape { @content } }
59
+
60
+ // high resolution screen
61
+ @mixin media-highres($coefficient: 2)
62
+ {
63
+ $oCoef: $coefficient*2;
64
+ @media
65
+ (-webkit-min-device-pixel-ratio: $coefficient),
66
+ (-moz-min-device-pixel-ratio: $coefficient),
67
+ (-o-min-device-pixel-ratio: $oCoef/2),
68
+ (min-device-pixel-ratio: $coefficient)
69
+ {
70
+ @content;
71
+ }
72
+ }
@@ -1,4 +1,5 @@
1
- @import "recipes/shared/block-inline-block";
2
- @import "recipes/shared/clearfix";
3
- @import "recipes/shared/list-inline-block";
4
- @import "recipes/shared/pseudo-element";
1
+ @import "shared/block-inline-block";
2
+ @import "shared/clearfix";
3
+ @import "shared/list-inline-block";
4
+ @import "shared/pseudo-element";
5
+ @import "shared/user-select";
@@ -1,5 +1,8 @@
1
- @import "recipes/ui/border/bevel";
2
1
  @import "recipes/ui/convex";
3
2
  @import "recipes/ui/glossy";
4
3
  @import "recipes/ui/gradient";
5
- @import "recipes/ui/menu-dropdown";
4
+ @import "recipes/ui/helper";
5
+ @import "recipes/ui/keyboard";
6
+ @import "recipes/ui/menu";
7
+ @import "recipes/ui/overlay";
8
+ @import "recipes/ui/separator";
@@ -0,0 +1,145 @@
1
+ // taken from bourbon
2
+
3
+ // http://www.w3.org/TR/css3-animations/#the-animation-name-property-
4
+ // Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
5
+
6
+ // Official animation shorthand property.
7
+ @mixin animation ($animation-1,
8
+ $animation-2: false, $animation-3: false,
9
+ $animation-4: false, $animation-5: false,
10
+ $animation-6: false, $animation-7: false,
11
+ $animation-8: false, $animation-9: false)
12
+ {
13
+ $full: compact($animation-1, $animation-2, $animation-3, $animation-4,
14
+ $animation-5, $animation-6, $animation-7, $animation-8, $animation-9);
15
+
16
+ -webkit-animation: $full;
17
+ -moz-animation: $full;
18
+ animation: $full;
19
+ }
20
+
21
+ // Individual Animation Properties
22
+ @mixin animation-name ($name-1,
23
+ $name-2: false, $name-3: false,
24
+ $name-4: false, $name-5: false,
25
+ $name-6: false, $name-7: false,
26
+ $name-8: false, $name-9: false)
27
+ {
28
+ $full: compact($name-1, $name-2, $name-3, $name-4,
29
+ $name-5, $name-6, $name-7, $name-8, $name-9);
30
+
31
+ -webkit-animation-name: $full;
32
+ -moz-animation-name: $full;
33
+ animation-name: $full;
34
+ }
35
+
36
+
37
+ @mixin animation-duration ($time-1: 0,
38
+ $time-2: false, $time-3: false,
39
+ $time-4: false, $time-5: false,
40
+ $time-6: false, $time-7: false,
41
+ $time-8: false, $time-9: false)
42
+ {
43
+ $full: compact($time-1, $time-2, $time-3, $time-4,
44
+ $time-5, $time-6, $time-7, $time-8, $time-9);
45
+
46
+ -webkit-animation-duration: $full;
47
+ -moz-animation-duration: $full;
48
+ animation-duration: $full;
49
+ }
50
+
51
+
52
+ @mixin animation-timing-function ($motion-1: ease,
53
+ // ease | linear | ease-in | ease-out | ease-in-out
54
+ $motion-2: false, $motion-3: false,
55
+ $motion-4: false, $motion-5: false,
56
+ $motion-6: false, $motion-7: false,
57
+ $motion-8: false, $motion-9: false)
58
+ {
59
+ $full: compact($motion-1, $motion-2, $motion-3, $motion-4,
60
+ $motion-5, $motion-6, $motion-7, $motion-8, $motion-9);
61
+
62
+ -webkit-animation-timing-function: $full;
63
+ -moz-animation-timing-function: $full;
64
+ animation-timing-function: $full;
65
+ }
66
+
67
+
68
+ @mixin animation-iteration-count ($value-1: 1,
69
+ // infinite | <number>
70
+ $value-2: false, $value-3: false,
71
+ $value-4: false, $value-5: false,
72
+ $value-6: false, $value-7: false,
73
+ $value-8: false, $value-9: false)
74
+ {
75
+ $full: compact($value-1, $value-2, $value-3, $value-4,
76
+ $value-5, $value-6, $value-7, $value-8, $value-9);
77
+
78
+ -webkit-animation-iteration-count: $full;
79
+ -moz-animation-iteration-count: $full;
80
+ animation-iteration-count: $full;
81
+ }
82
+
83
+
84
+ @mixin animation-direction ($direction-1: normal,
85
+ // normal | alternate
86
+ $direction-2: false, $direction-3: false,
87
+ $direction-4: false, $direction-5: false,
88
+ $direction-6: false, $direction-7: false,
89
+ $direction-8: false, $direction-9: false)
90
+ {
91
+ $full: compact($direction-1, $direction-2, $direction-3, $direction-4,
92
+ $direction-5, $direction-6, $direction-7, $direction-8, $direction-9);
93
+
94
+ -webkit-animation-direction: $full;
95
+ -moz-animation-direction: $full;
96
+ animation-direction: $full;
97
+ }
98
+
99
+
100
+ @mixin animation-play-state ($state-1: running,
101
+ // running | paused
102
+ $state-2: false, $state-3: false,
103
+ $state-4: false, $state-5: false,
104
+ $state-6: false, $state-7: false,
105
+ $state-8: false, $state-9: false)
106
+ {
107
+ $full: compact($state-1, $state-2, $state-3, $state-4,
108
+ $state-5, $state-6, $state-7, $state-8, $state-9);
109
+
110
+ -webkit-animation-play-state: $full;
111
+ -moz-animation-play-state: $full;
112
+ animation-play-state: $full;
113
+ }
114
+
115
+
116
+ @mixin animation-delay ($time-1: 0,
117
+ $time-2: false, $time-3: false,
118
+ $time-4: false, $time-5: false,
119
+ $time-6: false, $time-7: false,
120
+ $time-8: false, $time-9: false)
121
+ {
122
+ $full: compact($time-1, $time-2, $time-3, $time-4,
123
+ $time-5, $time-6, $time-7, $time-8, $time-9);
124
+
125
+ -webkit-animation-delay: $full;
126
+ -moz-animation-delay: $full;
127
+ animation-delay: $full;
128
+ }
129
+
130
+
131
+ @mixin animation-fill-mode ($mode-1: none,
132
+ // http://goo.gl/l6ckm
133
+ // none | forwards | backwards | both
134
+ $mode-2: false, $mode-3: false,
135
+ $mode-4: false, $mode-5: false,
136
+ $mode-6: false, $mode-7: false,
137
+ $mode-8: false, $mode-9: false)
138
+ {
139
+ $full: compact($mode-1, $mode-2, $mode-3, $mode-4,
140
+ $mode-5, $mode-6, $mode-7, $mode-8, $mode-9);
141
+
142
+ -webkit-animation-fill-mode: $full;
143
+ -moz-animation-fill-mode: $full;
144
+ animation-fill-mode: $full;
145
+ }