compass-recipes 0.3.0.alpha.1 → 0.3.0.alpha.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. data/README.md +39 -26
  2. data/VERSION +1 -1
  3. data/lib/compass-recipes/sass_extensions.rb +1 -1
  4. data/stylesheets/_recipes.scss +6 -3
  5. data/stylesheets/recipes/_color.scss +17 -21
  6. data/stylesheets/recipes/_effect.scss +9 -6
  7. data/stylesheets/recipes/_font.scss +16 -7
  8. data/stylesheets/recipes/_google-webfont.scss +4 -0
  9. data/stylesheets/recipes/_icon-font.scss +56 -74
  10. data/stylesheets/recipes/_icons.scss +6 -0
  11. data/stylesheets/recipes/_media-queries.scss +8 -14
  12. data/stylesheets/recipes/_shape.scss +9 -8
  13. data/stylesheets/recipes/_shared.scss +4 -5
  14. data/stylesheets/recipes/background/_blueprint-grid.scss +8 -8
  15. data/stylesheets/recipes/background/_carbon-fiber.scss +8 -9
  16. data/stylesheets/recipes/background/_checkerboard.scss +9 -9
  17. data/stylesheets/recipes/background/_cicada.scss +8 -8
  18. data/stylesheets/recipes/background/_gradients.scss +28 -30
  19. data/stylesheets/recipes/background/_houndstooth.scss +8 -9
  20. data/stylesheets/recipes/background/_lined-paper.scss +8 -8
  21. data/stylesheets/recipes/background/_madras.scss +13 -13
  22. data/stylesheets/recipes/background/_noise.scss +23 -23
  23. data/stylesheets/recipes/background/_polka-dot.scss +8 -9
  24. data/stylesheets/recipes/background/_radial-overlay.scss +5 -5
  25. data/stylesheets/recipes/background/_rainbow.scss +4 -3
  26. data/stylesheets/recipes/background/_stripes.scss +14 -14
  27. data/stylesheets/recipes/background/_tablecloth.scss +8 -9
  28. data/stylesheets/recipes/background/_tartan.scss +13 -12
  29. data/stylesheets/recipes/base/_normalize.scss +475 -343
  30. data/stylesheets/recipes/color/_name.scss +2 -2
  31. data/stylesheets/recipes/effect/_bevel.scss +4 -0
  32. data/stylesheets/recipes/effect/_corner-folded.scss +11 -11
  33. data/stylesheets/recipes/effect/_corners-tucked.scss +7 -8
  34. data/stylesheets/recipes/effect/_cutout.scss +4 -0
  35. data/stylesheets/recipes/effect/_folded-corner.scss +10 -10
  36. data/stylesheets/recipes/effect/_glass.scss +20 -17
  37. data/stylesheets/recipes/effect/_ribbon.scss +12 -3
  38. data/stylesheets/recipes/effect/_scatter.scss +5 -6
  39. data/stylesheets/recipes/effect/_tape.scss +8 -9
  40. data/stylesheets/recipes/form/element/_inline.scss +8 -7
  41. data/stylesheets/recipes/helper/_gravatar.scss +3 -3
  42. data/stylesheets/recipes/layout/_flexible-box-model.scss +17 -18
  43. data/stylesheets/recipes/layout/_vertical-align.scss +24 -26
  44. data/stylesheets/recipes/shadow/_drop.scss +8 -8
  45. data/stylesheets/recipes/shadow/_top-edge.scss +13 -14
  46. data/stylesheets/recipes/shadow/drop/_curled-corners.scss +7 -6
  47. data/stylesheets/recipes/shadow/drop/_curved.scss +7 -6
  48. data/stylesheets/recipes/shadow/drop/_flying.scss +7 -6
  49. data/stylesheets/recipes/shadow/drop/_lifted-corners.scss +32 -14
  50. data/stylesheets/recipes/shadow/drop/_perspective.scss +7 -6
  51. data/stylesheets/recipes/shadow/drop/_raised.scss +7 -6
  52. data/stylesheets/recipes/shadow/drop/_transform-requirement.scss +9 -8
  53. data/stylesheets/recipes/shape/_ellipse.scss +6 -5
  54. data/stylesheets/recipes/shape/_polygon.scss +6 -5
  55. data/stylesheets/recipes/shape/_symbol.scss +6 -5
  56. data/stylesheets/recipes/shape/polygon/_hexagon.scss +6 -5
  57. data/stylesheets/recipes/shape/polygon/_octagon.scss +5 -5
  58. data/stylesheets/recipes/shape/polygon/_parallelogram.scss +5 -5
  59. data/stylesheets/recipes/shape/polygon/_pentagon.scss +6 -5
  60. data/stylesheets/recipes/shape/polygon/_rectangle.scss +6 -5
  61. data/stylesheets/recipes/shape/polygon/_rhombus.scss +6 -5
  62. data/stylesheets/recipes/shape/polygon/_square.scss +6 -5
  63. data/stylesheets/recipes/shape/polygon/_star.scss +6 -6
  64. data/stylesheets/recipes/shape/polygon/_trapezoid.scss +6 -5
  65. data/stylesheets/recipes/shape/polygon/_triangle.scss +6 -5
  66. data/stylesheets/recipes/shape/symbol/_diamond.scss +9 -8
  67. data/stylesheets/recipes/shape/symbol/_egg.scss +6 -5
  68. data/stylesheets/recipes/shape/symbol/_heart.scss +7 -6
  69. data/stylesheets/recipes/shape/symbol/_infinity.scss +7 -6
  70. data/stylesheets/recipes/shape/symbol/_pacman.scss +6 -5
  71. data/stylesheets/recipes/shape/symbol/_yin-yang.scss +7 -6
  72. data/stylesheets/recipes/shared/_clearfix.scss +9 -12
  73. data/stylesheets/recipes/shared/_pseudo-element.scss +9 -6
  74. data/stylesheets/recipes/ui/_convex.scss +8 -7
  75. data/stylesheets/recipes/ui/_glossy.scss +10 -10
  76. data/stylesheets/recipes/ui/_gradient.scss +8 -7
  77. data/stylesheets/recipes/ui/_keyboard.scss +11 -12
  78. data/stylesheets/recipes/ui/_overlay.scss +5 -7
  79. data/stylesheets/recipes/ui/_separator.scss +8 -8
  80. data/stylesheets/recipes/ui/helper/_arrow.scss +6 -0
  81. data/stylesheets/recipes/ui/loader/_pulse.scss +5 -5
  82. data/stylesheets/recipes/ui/menu/_dropdown.scss +5 -5
  83. metadata +12 -24
  84. data/lib/compass-recipes/sass_extensions/highres.rb +0 -31
  85. data/stylesheets/recipes/animation/_fade.scss +0 -29
  86. data/stylesheets/recipes/effect/_ribbon-tied.scss +0 -133
  87. data/stylesheets/recipes/shared/_user-select.scss +0 -6
  88. data/stylesheets/recipes/ui/_button.scss +0 -122
  89. data/stylesheets/recipes/ui/button/_state-selectors.scss +0 -40
  90. data/stylesheets/recipes/ui/button/style/_default.scss +0 -12
  91. data/stylesheets/recipes/ui/button/style/todo/_bonbon.scss +0 -489
  92. data/stylesheets/recipes/ui/button/style/todo/_bourbon.scss +0 -169
  93. data/stylesheets/recipes/ui/button/style/todo/_fancy.sass +0 -178
  94. data/stylesheets/recipes/ui/button/style/todo/_necolas-animated.scss +0 -81
  95. data/stylesheets/recipes/ui/button/style/todo/_ubuwaits.scss +0 -654
  96. data/stylesheets/recipes/ui/helper/_tag.scss +0 -14
@@ -1,4 +1,4 @@
1
- //
1
+ ////
2
2
  // Micro clearfix hack
3
3
  //
4
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.
@@ -6,8 +6,11 @@
6
6
  //
7
7
  // @thanks Nicolas Gallagher @necolas
8
8
  // @link http://nicolasgallagher.com/micro-clearfix-hack/
9
- //
9
+ ///
10
+
11
+ @import "compass/utilities/general/hacks";
10
12
 
13
+ // can be included as is
11
14
  @mixin clearfix-hack
12
15
  {
13
16
  // For modern browsers
@@ -24,22 +27,16 @@
24
27
  clear: both;
25
28
  }
26
29
 
27
- //For IE 6/7 (trigger hasLayout)
28
- &
29
- {
30
- zoom: 1;
31
- }
30
+ @include has-layout;
32
31
  }
33
32
 
34
- $clearfix-class: 'clearfix' !default;
35
- $clearfix-silent: true !default;
36
-
37
- %#{$clearfix-class}
33
+ %clearfix-hack
38
34
  {
39
35
  @include clearfix-hack;
40
36
  }
41
37
 
38
+ // or can be used like this
42
39
  @mixin clearfix
43
40
  {
44
- @extend %#{$clearfix-class};
41
+ @extend %clearfix-hack;
45
42
  }
@@ -1,9 +1,12 @@
1
- /**
2
- * Note IE7/6 doesn't understand pseudo element as ::before and ::after
3
- * IE8 need to have :before and not ::before
4
- * So use only : and not :: if you want to support IE8
5
- * IE9 Webkit Firefox Opera understand ::
6
- */
1
+ ////
2
+ // Pseudo element helper
3
+ //
4
+ // Note IE7/6 doesn't understand pseudo element as ::before and ::after
5
+ // IE8 need to have :before and not ::before
6
+ // So use only : and not :: if you want to support IE8
7
+ // IE9 Webkit Firefox Opera understand ::
8
+ ///
9
+
7
10
  @mixin pseudo-element($width: 0, $height: auto, $content: "", $position: absolute, $display: block)
8
11
  {
9
12
  content: $content;
@@ -1,10 +1,11 @@
1
- /**
2
- * UI convex effect from one color
3
- *
4
- * @todo merge with ui-button ?
5
- *
6
- * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
7
- */
1
+ ////
2
+ // UI convex effect from one color
3
+ //
4
+ // @todo merge with ui-button ?
5
+ //
6
+ // @author Maxime Thirouin m@moox.fr @MoOx
7
+ ///
8
+
8
9
  @mixin ui-convex($color: #ddd, $button-effect: true, $opacity-top: .5, $opacity-bottom: 0, $color-mix: #fff)
9
10
  {
10
11
  background: $color; // fallback
@@ -1,15 +1,15 @@
1
- /**
2
- * UI Glossy helper
3
- *
4
- * @deprecated
5
- * @todo Remove in 0.4
6
- * @see background/gradients
7
- *
8
- * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
9
- */
1
+ ////
2
+ // UI Glossy helper
3
+ //
4
+ // @deprecated
5
+ // @todo Remove in 0.4
6
+ // @see background/gradients
7
+ //
8
+ // @author Maxime Thirouin m@moox.fr @MoOx
9
+ ///
10
+
10
11
  @mixin ui-glossy($color: #000, $opacity: .6, $border-width: .1em, $border-color-top: rgba(255,255,255,.5), $border-color-bottom: rgba(85,85,85,.6))
11
12
  {
12
-
13
13
  @warn '@mixin ui-glossy has been deprecated: Use background-gradient mixin/functions instead.';
14
14
 
15
15
  border-left: 0;
@@ -1,10 +1,11 @@
1
- /**
2
- * UI simple gradient from one color
3
- *
4
- * @todo merge with ui-button ?
5
- *
6
- * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
7
- */
1
+ ////
2
+ // UI simple gradient from one color
3
+ //
4
+ // @todo merge with ui-button ?
5
+ //
6
+ // @author Maxime Thirouin m@moox.fr @MoOx
7
+ ///
8
+
8
9
  @mixin ui-gradient($color: #ddd, $lighten-top: 10%, $darken-bottom: 10%)
9
10
  {
10
11
  @include ui-gradient-from-middle($color, $lighten-top, $darken-bottom);
@@ -1,12 +1,14 @@
1
- /**
2
- * Keyboard key touch
3
- * A simple stylesheet for rendering beautiful keyboard-style elements.
1
+ ////
2
+ // Keyboard key touch
3
+ // A simple stylesheet for rendering beautiful keyboard-style elements.
4
+ //
5
+ // @author Michael Hüneburg http://michaelhue.com/keyscss
6
+ // @link https://github.com/michaelhue/keyscss (commit 76bb603e921d0145362e0f60eabb79d4f69cbda0)
7
+ //
8
+ // @author Maxime Thirouin m@moox.fr @MoOx
9
+ ///
4
10
 
5
- * @author Michael Hüneburg http://michaelhue.com/keyscss
6
- * @link https://github.com/michaelhue/keyscss (commit 76bb603e921d0145362e0f60eabb79d4f69cbda0)
7
- *
8
- * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com
9
- */
11
+ @import "compass/css3/user-interface";
10
12
 
11
13
  // Base style, essential for every key
12
14
  @mixin ui-keyboard-key-requirements($font-size: .85em, $line-height: 1, $font-family: "Lucida Grande")
@@ -22,10 +24,7 @@
22
24
  display: inline-block;
23
25
  text-decoration: none;
24
26
  cursor: default;
25
- -moz-user-select: none;
26
- -webkit-user-select: none;
27
- user-select: none;
28
- //@include user-select(none);
27
+ @include user-select(none);
29
28
 
30
29
  &[title]
31
30
  {
@@ -1,8 +1,8 @@
1
- /**
2
- * Ui background overlay inspired by Google Chrome modal overlay
3
- *
4
- * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com
5
- */
1
+ ////
2
+ // Ui background overlay inspired by Google Chrome modal overlay
3
+ //
4
+ // @author Maxime Thirouin m@moox.fr @MoOx
5
+ ///
6
6
 
7
7
  @import "recipes/background/radial-overlay";
8
8
 
@@ -16,7 +16,5 @@
16
16
 
17
17
  z-index: $z-index;
18
18
 
19
-
20
-
21
19
  @include background-radial-overlay;
22
20
  }
@@ -1,11 +1,11 @@
1
- /**
2
- * <hr /> separator style
3
- *
4
- * @author Chris Coyier @chriscoyier
5
- * @link http://jsfiddle.net/chriscoyier/GaEzp/35/
6
- *
7
- * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com
8
- */
1
+ ////
2
+ // <hr /> separator style
3
+ //
4
+ // @author Chris Coyier @chriscoyier
5
+ // @link http://jsfiddle.net/chriscoyier/GaEzp/35/
6
+ //
7
+ // @author Maxime Thirouin m@moox.fr @MoOx
8
+ ///
9
9
 
10
10
  @mixin ui-separator-gradient($color: rgba(#000, .75), $color-alt: rgba(#000, 0), $height: 1px)
11
11
  {
@@ -1,3 +1,9 @@
1
+ ////
2
+ // UI Arrow helper
3
+ //
4
+ // @author Maxime Thirouin m@moox.fr @MoOx
5
+ ///
6
+
1
7
  @import "recipes/shape/polygon/triangle";
2
8
  @import "recipes/shared/pseudo-element";
3
9
 
@@ -1,8 +1,8 @@
1
- /**
2
- * CSS pulse loader
3
- *
4
- * @author Maxime Thirouin maxime.thirouin@gmail.com
5
- */
1
+ ////
2
+ // CSS pulse loader
3
+ //
4
+ // @author Maxime Thirouin m@moox.fr @MoOx
5
+ ///
6
6
 
7
7
  @import "recipes/animation";
8
8
 
@@ -1,8 +1,8 @@
1
- /**
2
- * Menu dropdown helper
3
- *
4
- * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com
5
- */
1
+ ////
2
+ // Menu dropdown helper
3
+ //
4
+ // @author Maxime Thirouin m@moox.fr @MoOx
5
+ ///
6
6
 
7
7
  // this mixin have to be used with a js for dropdown menu behavior
8
8
  // (display onhover with a timeout like 500ms for better UX)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: -3702664338
4
+ hash: -3702664344
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 1
12
- version: 0.3.0.alpha.1
11
+ - 2
12
+ version: 0.3.0.alpha.2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Maxime Thirouin
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2012-03-14 00:00:00 Z
21
+ date: 2012-04-11 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: sass
@@ -28,14 +28,14 @@ dependencies:
28
28
  requirements:
29
29
  - - ~>
30
30
  - !ruby/object:Gem::Version
31
- hash: -3702664282
31
+ hash: -3702664228
32
32
  segments:
33
33
  - 3
34
34
  - 2
35
35
  - 0
36
36
  - alpha
37
- - 93
38
- version: 3.2.0.alpha.93
37
+ - 96
38
+ version: 3.2.0.alpha.96
39
39
  type: :runtime
40
40
  version_requirements: *id001
41
41
  - !ruby/object:Gem::Dependency
@@ -46,11 +46,12 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- hash: 19
49
+ hash: 45
50
50
  segments:
51
51
  - 0
52
52
  - 12
53
- version: "0.12"
53
+ - 1
54
+ version: 0.12.1
54
55
  type: :runtime
55
56
  version_requirements: *id002
56
57
  description: "A Compass extension to have some sass/compass recipes ready to use ! "
@@ -122,7 +123,6 @@ files:
122
123
  - lib/compass-recipes/sass_extensions/_error.rb
123
124
  - lib/compass-recipes/sass_extensions/background_noise.rb
124
125
  - lib/compass-recipes/sass_extensions/gravatar.rb
125
- - lib/compass-recipes/sass_extensions/highres.rb
126
126
  - lib/compass-recipes/sass_extensions/math.rb
127
127
  - lib/compass-recipes/sass_extensions.rb
128
128
  - lib/compass-recipes.rb
@@ -130,6 +130,7 @@ files:
130
130
  - templates/gravatar/gravatar.js
131
131
  - templates/gravatar/manifest.rb
132
132
  - templates/gravatar/md5.js
133
+ - templates/icon-fonts/manifest.rb
133
134
  - templates/icon-fonts/fonts/icons/entypo/entypo-webfont.eot
134
135
  - templates/icon-fonts/fonts/icons/entypo/entypo-webfont.svg
135
136
  - templates/icon-fonts/fonts/icons/entypo/entypo-webfont.ttf
@@ -184,7 +185,6 @@ files:
184
185
  - templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.svg
185
186
  - templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.ttf
186
187
  - templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.woff
187
- - templates/icon-fonts/manifest.rb
188
188
  - stylesheets/_recipes.scss
189
189
  - stylesheets/recipes/_animation.scss
190
190
  - stylesheets/recipes/_background.scss
@@ -203,7 +203,6 @@ files:
203
203
  - stylesheets/recipes/_shared.scss
204
204
  - stylesheets/recipes/_ui.scss
205
205
  - stylesheets/recipes/animation/_animation.scss
206
- - stylesheets/recipes/animation/_fade.scss
207
206
  - stylesheets/recipes/animation/_keyframes.scss
208
207
  - stylesheets/recipes/animation/_timing-function.scss
209
208
  - stylesheets/recipes/background/_blueprint-grid.scss
@@ -229,7 +228,6 @@ files:
229
228
  - stylesheets/recipes/effect/_cutout.scss
230
229
  - stylesheets/recipes/effect/_folded-corner.scss
231
230
  - stylesheets/recipes/effect/_glass.scss
232
- - stylesheets/recipes/effect/_ribbon-tied.scss
233
231
  - stylesheets/recipes/effect/_ribbon.scss
234
232
  - stylesheets/recipes/effect/_scatter.scss
235
233
  - stylesheets/recipes/effect/_tape.scss
@@ -272,8 +270,6 @@ files:
272
270
  - stylesheets/recipes/shared/_clearfix.scss
273
271
  - stylesheets/recipes/shared/_list-inline-block.scss
274
272
  - stylesheets/recipes/shared/_pseudo-element.scss
275
- - stylesheets/recipes/shared/_user-select.scss
276
- - stylesheets/recipes/ui/_button.scss
277
273
  - stylesheets/recipes/ui/_convex.scss
278
274
  - stylesheets/recipes/ui/_glossy.scss
279
275
  - stylesheets/recipes/ui/_gradient.scss
@@ -283,15 +279,7 @@ files:
283
279
  - stylesheets/recipes/ui/_overlay.scss
284
280
  - stylesheets/recipes/ui/_separator.scss
285
281
  - stylesheets/recipes/ui/border/_bevel.scss
286
- - stylesheets/recipes/ui/button/_state-selectors.scss
287
- - stylesheets/recipes/ui/button/style/_default.scss
288
- - stylesheets/recipes/ui/button/style/todo/_bonbon.scss
289
- - stylesheets/recipes/ui/button/style/todo/_bourbon.scss
290
- - stylesheets/recipes/ui/button/style/todo/_fancy.sass
291
- - stylesheets/recipes/ui/button/style/todo/_necolas-animated.scss
292
- - stylesheets/recipes/ui/button/style/todo/_ubuwaits.scss
293
282
  - stylesheets/recipes/ui/helper/_arrow.scss
294
- - stylesheets/recipes/ui/helper/_tag.scss
295
283
  - stylesheets/recipes/ui/loader/_pulse.scss
296
284
  - stylesheets/recipes/ui/menu/_dropdown.scss
297
285
  homepage: http://moox.github.com/compass-recipes
@@ -325,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
325
313
  requirements: []
326
314
 
327
315
  rubyforge_project: compass-recipes
328
- rubygems_version: 1.8.15
316
+ rubygems_version: 1.8.18
329
317
  signing_key:
330
318
  specification_version: 3
331
319
  summary: Recipes for Compass
@@ -1,31 +0,0 @@
1
- ##
2
- #
3
- # High res helper for Compass
4
- #
5
- # Copyright 2012, Joe Lambert.
6
- # Free to use under the MIT license.
7
- # http://joelambert.mit-license.org/
8
- #
9
- ##
10
-
11
- module Sass::Script::Functions
12
-
13
- def file_exists(filename)
14
- if Compass.configuration.images_path
15
- path = File.join(Compass.configuration.images_path, filename.value)
16
- else
17
- path = File.join(Compass.configuration.project_path, filename.value)
18
- end
19
- Sass::Script::Bool.new(File.exists?(path))
20
- end
21
-
22
- def highres_filename(filename, coefficient)
23
- parts = filename.value.split('.')
24
- ext = parts.pop
25
- f = parts.pop
26
- f += "@" + coefficient + "x"
27
- parts.push(f)
28
- parts.push(ext)
29
- Sass::Script::String.new(parts.join('.'))
30
- end
31
- end
@@ -1,29 +0,0 @@
1
- @include keyframes(fade-in)
2
- {
3
- 0% {
4
- opacity: 0;
5
- }
6
- 100% {
7
- opacity: 1;
8
- }
9
- }
10
-
11
- @mixin fade-in
12
- {
13
- // @todo ?
14
- }
15
-
16
- @include keyframes(fade-out)
17
- {
18
- 0% {
19
- opacity: 1;
20
- }
21
- 100% {
22
- opacity: 0;
23
- }
24
- }
25
-
26
- @mixin fade-out
27
- {
28
- // @todo ?
29
- }
@@ -1,133 +0,0 @@
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
- }