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,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Drop shadow flying
|
3
|
+
//
|
4
|
+
// @thanks Geoffrey Crofte @geoffrey_crofte
|
5
|
+
// @link http://www.creativejuiz.fr/trytotry/css3-box-shadow-after-before/
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin drop-shadow-flying(
|
8
9
|
$box-shadow-radius: 30px,
|
9
10
|
$color: #000,
|
@@ -1,12 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
@
|
1
|
+
////
|
2
|
+
// Drop shadow w/ lifted corners
|
3
|
+
//
|
4
|
+
// @thanks Nicolas Gallagher @necolas
|
5
|
+
// @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
|
6
|
+
// @thanks Matt Hamm @matthamm
|
7
|
+
// @link http://matthamm.com/box-shadow-curl.html
|
8
|
+
///
|
9
|
+
|
10
|
+
@import "compass/css3/box-shadow";
|
11
|
+
|
12
|
+
////
|
13
|
+
// Drop shadow w/ lifted corners parent element. Totally optional.
|
14
|
+
///
|
15
|
+
@mixin drop-shadow-lifted-corners-parent()
|
16
|
+
{
|
17
|
+
position: relative;
|
18
|
+
z-index: 1; /* prevent shadows falling behind containers with backgrounds */
|
19
|
+
margin: 0;
|
20
|
+
}
|
21
|
+
|
22
|
+
@mixin drop-shadow-lifted-corners($height: 16px, $margin: 10px, $angle: 6deg, $color: rgba(#000, .3))
|
8
23
|
{
|
9
24
|
position: relative;
|
25
|
+
@include box-shadow(0 1px $height/4 $color);
|
10
26
|
|
11
27
|
&::before,
|
12
28
|
&::after
|
@@ -15,24 +31,26 @@
|
|
15
31
|
position:absolute;
|
16
32
|
z-index: -2;
|
17
33
|
|
18
|
-
bottom: $
|
34
|
+
bottom: $margin;
|
19
35
|
|
20
|
-
width:
|
21
|
-
height:
|
22
|
-
|
23
|
-
|
36
|
+
width: 70%;
|
37
|
+
height: 55%;
|
38
|
+
max-width: 300px; /* avoid rotation causing ugly appearance at large container widths */
|
39
|
+
max-height: 100px;
|
24
40
|
|
41
|
+
@include box-shadow(0 $height/2 $height $color);
|
25
42
|
}
|
26
43
|
|
27
44
|
&::before
|
28
45
|
{
|
29
46
|
left: $margin;
|
30
|
-
@include transform(rotate(-$angle));
|
47
|
+
@include transform(skew(-$angle*2.5) rotate(-$angle));
|
31
48
|
}
|
32
49
|
|
33
50
|
&::after
|
34
51
|
{
|
35
52
|
right: $margin;
|
36
|
-
|
53
|
+
z-index: -1;
|
54
|
+
@include transform(skew($angle*2.5) rotate($angle));
|
37
55
|
}
|
38
56
|
}
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Drop shadow w/ perspective
|
3
|
+
//
|
4
|
+
// @thanks Nicolas Gallagher @necolas
|
5
|
+
// @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin drop-shadow-perspective($skew: 50deg, $distance-x: 80px, $distance-y: 5px, $box-shadow-radius: 8px, $color: rgba(#000, .4))
|
8
9
|
{
|
9
10
|
position: relative;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Drop shadow raised
|
3
|
+
//
|
4
|
+
// @thanks Nicolas Gallagher @necolas
|
5
|
+
// @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin drop-shadow-raised($height: 10px, $color: #000)
|
8
9
|
{
|
9
10
|
@include box-shadow(
|
@@ -1,11 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
////
|
2
|
+
// Drop shadow rules required for transform on drop shadow
|
3
|
+
//
|
4
|
+
// /!\ This is required if you want to apply some transform on the element using drop shadow
|
5
|
+
//
|
6
|
+
// @thanks Nicolas Gallagher @necolas
|
7
|
+
// @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/
|
8
|
+
///
|
9
|
+
|
9
10
|
@mixin drop-shadow-transform-requirement($background: #fff)
|
10
11
|
{
|
11
12
|
position: relative;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Ellipse
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@import "compass/css3/border-radius";
|
7
8
|
|
8
9
|
@mixin ellipse($width: 200px, $height: 100px)
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@import "recipes/shape/polygon/hexagon";
|
7
8
|
@import "recipes/shape/polygon/octagon";
|
8
9
|
@import "recipes/shape/polygon/parallelogram";
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Symbol
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@import "recipes/shape/symbol/diamond";
|
7
8
|
@import "recipes/shape/symbol/egg";
|
8
9
|
@import "recipes/shape/symbol/heart";
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Hexagon
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin hexagon($width: 100px, $height: 55px, $background-color: transparent)
|
7
8
|
{
|
8
9
|
width: $width;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Octagon
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
6
|
|
7
7
|
//Don't ask me when the coefficient cames from... I just compute then from original code by @chriscoyier
|
8
8
|
@mixin octagon($width: 100px, $height: 100px, $background-color: transparent)
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Pentagon
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin pentagon($width: 100px, $height: 100px, $background-color: transparent)
|
7
8
|
{
|
8
9
|
position: relative;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Rectangle
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin rectangle($width: 100px, $height: 100px, $background: transparent)
|
7
8
|
{
|
8
9
|
width: $width;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Rhombus
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin rhombus($width, $color: #000, $skew: 0deg, $rotate: -45deg)
|
7
8
|
{
|
8
9
|
@include square($width, $color);
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Square
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin square($width: 100px, $background: transparent)
|
7
8
|
{
|
8
9
|
width: $width;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Star
|
3
|
+
//
|
4
|
+
// @todo check if setting a z-index by default is a good thing
|
5
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
6
|
+
///
|
7
7
|
|
8
8
|
// Star (5-points)
|
9
9
|
// @author Kit Macallister
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Trapezoid
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin trapezoid($width: 100px, $height: 100px, $background-color: transparent)
|
7
8
|
{
|
8
9
|
border-bottom: $height solid $background-color;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Polygon/Triangle
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin triangle($direction: top, $width: 1em, $height: 0, $color: #000)
|
7
8
|
{
|
8
9
|
@if ($height == 0)
|
@@ -1,11 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
////
|
2
|
+
// Shape/Symbol/Diamond
|
3
|
+
//
|
4
|
+
// @todo add height support
|
5
|
+
//
|
6
|
+
// @author Alexander Futekov
|
7
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
8
|
+
///
|
9
|
+
|
9
10
|
@mixin diamond($width: 5em, $color: #000)
|
10
11
|
{
|
11
12
|
$half-width: $width/2;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
////
|
2
|
+
// Shape/Symbol/Egg
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
5
|
+
///
|
6
|
+
|
6
7
|
@mixin egg($width: 12em, $height: 18em, $color: #000)
|
7
8
|
{
|
8
9
|
display:block;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Shape/Symbol/Heart
|
3
|
+
//
|
4
|
+
// @author Nicolas Gallagher @necolas
|
5
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin heart($width: 100px, $height: 90px, $background-color: transparent)
|
8
9
|
{
|
9
10
|
position: relative;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Shape/Symbol/Infinity
|
3
|
+
//
|
4
|
+
// @author Nicolas Gallagher @necolas
|
5
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin infinity($width: 212px, $height: 100px, $background-color: transparent)
|
8
9
|
{
|
9
10
|
$coefficient: 2.12;
|
@@ -1,9 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
////
|
2
|
+
// Shape/Symbol/Yin-yang
|
3
|
+
//
|
4
|
+
// @author Alexander Futekov
|
5
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
6
|
+
///
|
7
|
+
|
7
8
|
@mixin yin-yang($width: 10em, $color: #000, $color-alt: #fff)
|
8
9
|
{
|
9
10
|
width: $width*96/100;
|