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.
- data/README.md +39 -26
- data/VERSION +1 -1
- data/lib/compass-recipes/sass_extensions.rb +1 -1
- data/stylesheets/_recipes.scss +6 -3
- data/stylesheets/recipes/_color.scss +17 -21
- data/stylesheets/recipes/_effect.scss +9 -6
- data/stylesheets/recipes/_font.scss +16 -7
- data/stylesheets/recipes/_google-webfont.scss +4 -0
- data/stylesheets/recipes/_icon-font.scss +56 -74
- data/stylesheets/recipes/_icons.scss +6 -0
- data/stylesheets/recipes/_media-queries.scss +8 -14
- data/stylesheets/recipes/_shape.scss +9 -8
- data/stylesheets/recipes/_shared.scss +4 -5
- data/stylesheets/recipes/background/_blueprint-grid.scss +8 -8
- data/stylesheets/recipes/background/_carbon-fiber.scss +8 -9
- data/stylesheets/recipes/background/_checkerboard.scss +9 -9
- data/stylesheets/recipes/background/_cicada.scss +8 -8
- data/stylesheets/recipes/background/_gradients.scss +28 -30
- data/stylesheets/recipes/background/_houndstooth.scss +8 -9
- data/stylesheets/recipes/background/_lined-paper.scss +8 -8
- data/stylesheets/recipes/background/_madras.scss +13 -13
- data/stylesheets/recipes/background/_noise.scss +23 -23
- data/stylesheets/recipes/background/_polka-dot.scss +8 -9
- data/stylesheets/recipes/background/_radial-overlay.scss +5 -5
- data/stylesheets/recipes/background/_rainbow.scss +4 -3
- data/stylesheets/recipes/background/_stripes.scss +14 -14
- data/stylesheets/recipes/background/_tablecloth.scss +8 -9
- data/stylesheets/recipes/background/_tartan.scss +13 -12
- data/stylesheets/recipes/base/_normalize.scss +475 -343
- data/stylesheets/recipes/color/_name.scss +2 -2
- data/stylesheets/recipes/effect/_bevel.scss +4 -0
- data/stylesheets/recipes/effect/_corner-folded.scss +11 -11
- data/stylesheets/recipes/effect/_corners-tucked.scss +7 -8
- data/stylesheets/recipes/effect/_cutout.scss +4 -0
- data/stylesheets/recipes/effect/_folded-corner.scss +10 -10
- data/stylesheets/recipes/effect/_glass.scss +20 -17
- data/stylesheets/recipes/effect/_ribbon.scss +12 -3
- data/stylesheets/recipes/effect/_scatter.scss +5 -6
- data/stylesheets/recipes/effect/_tape.scss +8 -9
- data/stylesheets/recipes/form/element/_inline.scss +8 -7
- data/stylesheets/recipes/helper/_gravatar.scss +3 -3
- data/stylesheets/recipes/layout/_flexible-box-model.scss +17 -18
- data/stylesheets/recipes/layout/_vertical-align.scss +24 -26
- data/stylesheets/recipes/shadow/_drop.scss +8 -8
- data/stylesheets/recipes/shadow/_top-edge.scss +13 -14
- data/stylesheets/recipes/shadow/drop/_curled-corners.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_curved.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_flying.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_lifted-corners.scss +32 -14
- data/stylesheets/recipes/shadow/drop/_perspective.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_raised.scss +7 -6
- data/stylesheets/recipes/shadow/drop/_transform-requirement.scss +9 -8
- data/stylesheets/recipes/shape/_ellipse.scss +6 -5
- data/stylesheets/recipes/shape/_polygon.scss +6 -5
- data/stylesheets/recipes/shape/_symbol.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_hexagon.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_octagon.scss +5 -5
- data/stylesheets/recipes/shape/polygon/_parallelogram.scss +5 -5
- data/stylesheets/recipes/shape/polygon/_pentagon.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_rectangle.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_rhombus.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_square.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_star.scss +6 -6
- data/stylesheets/recipes/shape/polygon/_trapezoid.scss +6 -5
- data/stylesheets/recipes/shape/polygon/_triangle.scss +6 -5
- data/stylesheets/recipes/shape/symbol/_diamond.scss +9 -8
- data/stylesheets/recipes/shape/symbol/_egg.scss +6 -5
- data/stylesheets/recipes/shape/symbol/_heart.scss +7 -6
- data/stylesheets/recipes/shape/symbol/_infinity.scss +7 -6
- data/stylesheets/recipes/shape/symbol/_pacman.scss +6 -5
- data/stylesheets/recipes/shape/symbol/_yin-yang.scss +7 -6
- data/stylesheets/recipes/shared/_clearfix.scss +9 -12
- data/stylesheets/recipes/shared/_pseudo-element.scss +9 -6
- data/stylesheets/recipes/ui/_convex.scss +8 -7
- data/stylesheets/recipes/ui/_glossy.scss +10 -10
- data/stylesheets/recipes/ui/_gradient.scss +8 -7
- data/stylesheets/recipes/ui/_keyboard.scss +11 -12
- data/stylesheets/recipes/ui/_overlay.scss +5 -7
- data/stylesheets/recipes/ui/_separator.scss +8 -8
- data/stylesheets/recipes/ui/helper/_arrow.scss +6 -0
- data/stylesheets/recipes/ui/loader/_pulse.scss +5 -5
- data/stylesheets/recipes/ui/menu/_dropdown.scss +5 -5
- metadata +12 -24
- data/lib/compass-recipes/sass_extensions/highres.rb +0 -31
- data/stylesheets/recipes/animation/_fade.scss +0 -29
- data/stylesheets/recipes/effect/_ribbon-tied.scss +0 -133
- data/stylesheets/recipes/shared/_user-select.scss +0 -6
- data/stylesheets/recipes/ui/_button.scss +0 -122
- data/stylesheets/recipes/ui/button/_state-selectors.scss +0 -40
- data/stylesheets/recipes/ui/button/style/_default.scss +0 -12
- data/stylesheets/recipes/ui/button/style/todo/_bonbon.scss +0 -489
- data/stylesheets/recipes/ui/button/style/todo/_bourbon.scss +0 -169
- data/stylesheets/recipes/ui/button/style/todo/_fancy.sass +0 -178
- data/stylesheets/recipes/ui/button/style/todo/_necolas-animated.scss +0 -81
- data/stylesheets/recipes/ui/button/style/todo/_ubuwaits.scss +0 -654
- data/stylesheets/recipes/ui/helper/_tag.scss +0 -14
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
////
|
2
|
+
// Corner folded with pure CSS
|
3
|
+
//
|
4
|
+
// Known support: Firefox 3.5+, Chrome 4+, Safari 4+, Opera 10+, IE 9+.
|
5
|
+
// IE8 is not supported because it not render properly box-shadow and
|
6
|
+
// pseudo element should be selected with ::element and not :element
|
7
|
+
//
|
8
|
+
// @thanks Nicolas Gallagher @necolas
|
9
|
+
// @link http://nicolasgallagher.com/pure-css-folded-corner-effect/demo/
|
10
|
+
// @todo Nix in .4
|
11
|
+
///
|
12
12
|
|
13
13
|
@import "recipes/effect/folded-corner";
|
14
14
|
|
@@ -1,11 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
*/
|
1
|
+
////
|
2
|
+
// CSS3 Tucked Corners effect
|
3
|
+
//
|
4
|
+
// @thanks Chris Coyier @chriscoyier
|
5
|
+
// @link http://css-tricks.com/snippets/css/tucked-corners/
|
6
|
+
// @author Mason Wendell http://thecodingdesigner.com
|
7
|
+
///
|
9
8
|
|
10
9
|
// $tape-color: the background css property
|
11
10
|
// $inner-element: the selector for the inner element (for bottom corners)
|
@@ -1,13 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
////
|
2
|
+
// Corner folded with pure CSS
|
3
|
+
//
|
4
|
+
// Known support: Firefox 3.5+, Chrome 4+, Safari 4+, Opera 10+, IE 9+.
|
5
|
+
// IE8 is not supported because it not render properly box-shadow and
|
6
|
+
// pseudo element should be selected with ::element and not :element
|
7
|
+
//
|
8
|
+
// @thanks Nicolas Gallagher @necolas
|
9
|
+
// @link http://nicolasgallagher.com/pure-css-folded-corner-effect/demo/
|
10
|
+
///
|
11
11
|
|
12
12
|
@import "recipes/shared/pseudo-element";
|
13
13
|
|
@@ -1,19 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
////
|
2
|
+
// Glass effect
|
3
|
+
// Use this on image for better effect render
|
4
|
+
//
|
5
|
+
// Inspired from Simurai's IMDB redisign
|
6
|
+
//
|
7
|
+
// @link http://archive.simurai.com/lab/imdb/
|
8
|
+
// @thanks Simurai @simurai
|
9
|
+
///
|
10
10
|
|
11
|
-
@import
|
11
|
+
@import "recipes/shared/pseudo-element";
|
12
12
|
|
13
13
|
@mixin effect-glass(
|
14
|
-
$color: #fff,
|
14
|
+
$color: rgba(#fff, .12),
|
15
15
|
$reflectDegree: -45deg,
|
16
|
-
$border-radius:
|
16
|
+
$border-radius: .2em,
|
17
|
+
$border-color: rgba(#000, .2),
|
18
|
+
$size: 50%,
|
19
|
+
$size-fadeout: .5%
|
17
20
|
)
|
18
21
|
{
|
19
22
|
position: relative;
|
@@ -27,13 +30,13 @@
|
|
27
30
|
right: 0;
|
28
31
|
bottom: 0;
|
29
32
|
left: 0;
|
30
|
-
border:
|
33
|
+
border: 1px solid transparent; // transparent fallback
|
34
|
+
border-color: $border-color;
|
31
35
|
@include border-radius($border-radius);
|
32
36
|
@include box-shadow(
|
33
|
-
inset $color 0 0 2px,
|
34
|
-
inset rgba($color
|
37
|
+
inset opacify($color, .6) 0 0 2px, // inner glow
|
38
|
+
inset rgba($color, .4) 0 0 10px // inner glow
|
35
39
|
);
|
36
|
-
@include background(
|
37
|
-
linear-gradient($reflectDegree, rgba($color,.12) 50%, rgba($color, 0) 50.5% ));
|
40
|
+
@include background(linear-gradient($reflectDegree, $color, transparentize($color, .06) $size, transparentize($color, 1) $size + $size-fadeout));
|
38
41
|
}
|
39
42
|
}
|
@@ -1,8 +1,16 @@
|
|
1
|
+
////
|
2
|
+
// Ribbon effect
|
3
|
+
// Transform an element to a "ribbon"
|
4
|
+
// For now ribbon in corner is the only one available
|
5
|
+
//
|
6
|
+
// @todo add something inspired by http://soiheardyouliekribbon.com/
|
7
|
+
//
|
8
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
9
|
+
///
|
10
|
+
|
1
11
|
@import "compass/css3/transform";
|
2
12
|
@import "recipes/shared/pseudo-element";
|
3
13
|
|
4
|
-
// add http://soiheardyouliekribbon.com/
|
5
|
-
|
6
14
|
@mixin effect-ribbon-corner($position: 'top left', $width: 10em, $height: 2em, $lines: 1, $skin: 'classic', $width-add: 0, $height-add: 0)
|
7
15
|
{
|
8
16
|
position: absolute;
|
@@ -72,6 +80,7 @@
|
|
72
80
|
text-shadow: 0 1px 0 rgba(#000, .8);
|
73
81
|
|
74
82
|
border: .1em solid #631a15;
|
83
|
+
background: rgb(199,59,60); //fallback
|
75
84
|
@include background(linear-gradient(rgb(199,59,60),rgb(184,32,31)));
|
76
85
|
box-shadow: 0 .2em .6em rgba(#000, .6);
|
77
86
|
|
@@ -79,7 +88,7 @@
|
|
79
88
|
&:before
|
80
89
|
{
|
81
90
|
border: 1px dashed #da5050;
|
82
|
-
margin-top:
|
91
|
+
margin-top: 1px;
|
83
92
|
}
|
84
93
|
&:after
|
85
94
|
{
|
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
*/
|
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
|
+
///
|
7
6
|
|
8
7
|
@mixin scatter($rotate: 10deg, $variation: 6) {
|
9
8
|
$rotate-a: $rotate - $variation;
|
@@ -1,12 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
*/
|
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
|
+
///
|
10
9
|
|
11
10
|
@import "../shared/pseudo-element";
|
12
11
|
|
@@ -1,10 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
////
|
2
|
+
// Form element inline mixin
|
3
|
+
// This mixin allow you to have a label inline with your input
|
4
|
+
// It's simply based on inline-block behavior
|
5
|
+
//
|
6
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
7
|
+
///
|
8
|
+
|
8
9
|
@mixin form-element-inline($label-width: 8em, $input-width: 20em)
|
9
10
|
{
|
10
11
|
label
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
////
|
2
2
|
// Gravatar recipe
|
3
3
|
//
|
4
4
|
// This recipe use a gravatar as an element
|
@@ -6,8 +6,8 @@
|
|
6
6
|
// It's not really usable as it could be, @link https://github.com/MoOx/compass-recipes/issues/27
|
7
7
|
// But I want something, so use javascript if you can, or helper if you just need one hardcoded gravatar
|
8
8
|
//
|
9
|
-
// @author Maxime Thirouin
|
10
|
-
|
9
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
10
|
+
///
|
11
11
|
|
12
12
|
@import "recipes/shared/pseudo-element";
|
13
13
|
|
@@ -1,21 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
*/
|
1
|
+
////
|
2
|
+
// Shortcuts for Flexible Box Model
|
3
|
+
//
|
4
|
+
// @usage
|
5
|
+
// --sass
|
6
|
+
// @include box-layout;
|
7
|
+
// .mycontainer { @extend .hbox }
|
8
|
+
// .mybox { @extend .flex2 }
|
9
|
+
//
|
10
|
+
// @usage
|
11
|
+
// --html
|
12
|
+
// <div class="vbox">
|
13
|
+
// <div class="flex">
|
14
|
+
// ...
|
15
|
+
//
|
16
|
+
// @autor David Kaneda
|
17
|
+
///
|
19
18
|
|
20
19
|
@mixin flexible-box-layout {
|
21
20
|
.box {
|
@@ -1,29 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
* @autor Maxime Thirouin maxime.thirouin@gmail.com @MoOx
|
26
|
-
*/
|
1
|
+
////
|
2
|
+
// Vertical alignement for page
|
3
|
+
// Inspired by http://css-tricks.com/snippets/css/center-div-with-dynamic-height/
|
4
|
+
//
|
5
|
+
// @usage
|
6
|
+
// --sass
|
7
|
+
// @include vertical-align-requirement;
|
8
|
+
// .v-align-container { @include vertical-align-container }
|
9
|
+
// .v-align-content-container { @include vertical-align-content-container }
|
10
|
+
// .v-align-content { @include vertical-align-content }
|
11
|
+
// --html
|
12
|
+
// <body>
|
13
|
+
// <div class="v-align-container">
|
14
|
+
// <div class="v-align-content-container">
|
15
|
+
// <div class="v-align-content">
|
16
|
+
// Your content !
|
17
|
+
// </div>
|
18
|
+
// </div>
|
19
|
+
// </div>
|
20
|
+
// </body>
|
21
|
+
//
|
22
|
+
// @thanks Chris Coyier @chriscoyier
|
23
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
24
|
+
///
|
27
25
|
|
28
26
|
@mixin vertical-align-requirement
|
29
27
|
{
|
@@ -1,11 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
////
|
2
|
+
// Drop shadow mixins from Nicolas Gallagher demo
|
3
|
+
//
|
4
|
+
// @thanks Nicolas Gallagher @necolas, @simurai, @cameronmoll, @matthamm
|
5
|
+
//
|
6
|
+
// @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
|
7
|
+
///
|
8
|
+
|
9
9
|
@import "recipes/shadow/drop/curled-corners";
|
10
10
|
@import "recipes/shadow/drop/curved";
|
11
11
|
@import "recipes/shadow/drop/flying"; // not ready yet
|
@@ -1,9 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shadow along the top edge of the browser viewport
|
3
|
+
//
|
4
|
+
// @link http://playground.genelocklin.com/depth/
|
5
|
+
///
|
6
6
|
|
7
|
+
////
|
8
|
+
// @usage
|
9
|
+
// body:before
|
10
|
+
// {
|
11
|
+
// @include top-shadow;
|
12
|
+
// }
|
13
|
+
///
|
7
14
|
@mixin top-shadow($height: 1em, $color: rgba(0,0,0,.8), $z-index: 100, $position: fixed)
|
8
15
|
{
|
9
16
|
content: "";
|
@@ -17,12 +24,4 @@
|
|
17
24
|
@include box-shadow(0 0 $height $color);
|
18
25
|
|
19
26
|
z-index: $z-index;
|
20
|
-
}
|
21
|
-
|
22
|
-
/*
|
23
|
-
// Usage
|
24
|
-
body:before
|
25
|
-
{
|
26
|
-
@include top-shadow;
|
27
|
-
}
|
28
|
-
*/
|
27
|
+
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Drop shadow curled
|
3
|
+
//
|
4
|
+
// @thanks Nicolas Gallagher @necolas
|
5
|
+
// @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin drop-shadow-curled-corners($border-radius: 0 0 120px 120px / 0 0 6px 6px, $box-shadow: 0 8px 12px rgba(#000, .5), $skew: 8deg, $rotate: 3deg, $distance: 10px)
|
8
9
|
{
|
9
10
|
position: relative;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Drop shadow curved
|
3
|
+
//
|
4
|
+
// @thanks Nicolas Gallagher @necolas
|
5
|
+
// @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin drop-shadow-curved($side: 'vertical', $distance: 10px, $box-shadow: 0 0 15px rgba(#000, .6), $radius-1: 10px, $radius-2: 100px)
|
8
9
|
{
|
9
10
|
position: relative;
|