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.
- data/LICENSE +6 -2
- data/README.md +103 -29
- data/VERSION +1 -1
- data/fonts/icons/entypo/entypo-webfont.eot +0 -0
- data/fonts/icons/entypo/entypo-webfont.svg +198 -0
- data/fonts/icons/entypo/entypo-webfont.ttf +0 -0
- data/fonts/icons/entypo/entypo-webfont.woff +0 -0
- data/fonts/icons/heydings-controls/SIL Open Font License 1.1.txt +91 -0
- data/fonts/icons/heydings-controls/demo.html +33 -0
- data/fonts/icons/heydings-controls/heydings_controls-webfont.eot +0 -0
- data/fonts/icons/heydings-controls/heydings_controls-webfont.svg +85 -0
- data/fonts/icons/heydings-controls/heydings_controls-webfont.ttf +0 -0
- data/fonts/icons/heydings-controls/heydings_controls-webfont.woff +0 -0
- data/fonts/icons/heydings-controls/stylesheet.css +16 -0
- data/fonts/icons/heydings/SIL Open Font License 1.1.txt +91 -0
- data/fonts/icons/heydings/demo.html +33 -0
- data/fonts/icons/heydings/heydings_icons-webfont.eot +0 -0
- data/fonts/icons/heydings/heydings_icons-webfont.svg +94 -0
- data/fonts/icons/heydings/heydings_icons-webfont.ttf +0 -0
- data/fonts/icons/heydings/heydings_icons-webfont.woff +0 -0
- data/fonts/icons/heydings/stylesheet.css +16 -0
- data/fonts/icons/icomoon/License.txt +1 -0
- data/fonts/icons/icomoon/Read Me.txt +5 -0
- data/fonts/icons/icomoon/icomoon.eot +0 -0
- data/fonts/icons/icomoon/icomoon.svg +35 -0
- data/fonts/icons/icomoon/icomoon.ttf +0 -0
- data/fonts/icons/icomoon/icomoon.woff +0 -0
- data/fonts/icons/iconic/SIL Open Font License 1.1.txt +91 -0
- data/fonts/icons/iconic/demo.html +38 -0
- data/fonts/icons/iconic/iconic_fill.eot +0 -0
- data/fonts/icons/iconic/iconic_fill.svg +475 -0
- data/fonts/icons/iconic/iconic_fill.ttf +0 -0
- data/fonts/icons/iconic/iconic_fill.woff +0 -0
- data/fonts/icons/iconic/iconic_stroke.eot +0 -0
- data/fonts/icons/iconic/iconic_stroke.svg +492 -0
- data/fonts/icons/iconic/iconic_stroke.ttf +0 -0
- data/fonts/icons/iconic/iconic_stroke.woff +0 -0
- data/fonts/icons/iconic/stylesheet.css +28 -0
- data/fonts/icons/modern-pictograms/Modern Pictograms SIL OFL Font License 1.1.txt +94 -0
- data/fonts/icons/modern-pictograms/demo.html +33 -0
- data/fonts/icons/modern-pictograms/modernpics-webfont.eot +0 -0
- data/fonts/icons/modern-pictograms/modernpics-webfont.svg +136 -0
- data/fonts/icons/modern-pictograms/modernpics-webfont.ttf +0 -0
- data/fonts/icons/modern-pictograms/modernpics-webfont.woff +0 -0
- data/fonts/icons/modern-pictograms/stylesheet.css +16 -0
- data/fonts/icons/socialico/FFF_EULA_license.pdf +0 -0
- data/fonts/icons/socialico/Socialico-webfont.otf +0 -0
- data/fonts/icons/socialico/socialico-webfont.eot +0 -0
- data/fonts/icons/socialico/socialico-webfont.svg +123 -0
- data/fonts/icons/socialico/socialico-webfont.ttf +0 -0
- data/fonts/icons/socialico/socialico-webfont.woff +0 -0
- data/fonts/icons/websymbols/OFL-FAQ.txt +369 -0
- data/fonts/icons/websymbols/OFL.txt +97 -0
- data/fonts/icons/websymbols/websymbols-regular-webfont.eot +0 -0
- data/fonts/icons/websymbols/websymbols-regular-webfont.svg +108 -0
- data/fonts/icons/websymbols/websymbols-regular-webfont.ttf +0 -0
- data/fonts/icons/websymbols/websymbols-regular-webfont.woff +0 -0
- data/lib/compass-recipes.rb +3 -0
- data/lib/compass-recipes/sass_extensions.rb +13 -0
- data/lib/compass-recipes/sass_extensions/_error.rb +9 -0
- data/lib/compass-recipes/sass_extensions/background_noise.rb +48 -0
- data/lib/compass-recipes/sass_extensions/gravatar.rb +60 -0
- data/lib/compass-recipes/sass_extensions/highres.rb +31 -0
- data/lib/compass-recipes/sass_extensions/math.rb +8 -0
- data/stylesheets/_recipes.scss +7 -3
- data/stylesheets/recipes/_animation.scss +3 -0
- data/stylesheets/recipes/_background.scss +15 -0
- data/stylesheets/recipes/_base.scss +1 -0
- data/stylesheets/recipes/_color.scss +171 -0
- data/stylesheets/recipes/_effect.scss +6 -1
- data/stylesheets/recipes/_font.scss +32 -0
- data/stylesheets/recipes/_google-webfont.scss +15 -0
- data/stylesheets/recipes/_icon-font.scss +224 -0
- data/stylesheets/recipes/_icons.scss +15 -10
- data/stylesheets/recipes/_media-queries.scss +72 -0
- data/stylesheets/recipes/_shared.scss +5 -4
- data/stylesheets/recipes/_ui.scss +5 -2
- data/stylesheets/recipes/animation/_animation.scss +145 -0
- data/stylesheets/recipes/animation/_fade.scss +29 -0
- data/stylesheets/recipes/animation/_keyframes.scss +17 -0
- data/stylesheets/recipes/animation/_timing-function.scss +29 -0
- data/stylesheets/recipes/background/_blueprint-grid.scss +52 -0
- data/stylesheets/recipes/background/_carbon-fiber.scss +33 -0
- data/stylesheets/recipes/background/_checkerboard.scss +61 -0
- data/stylesheets/recipes/background/_cicada.scss +42 -0
- data/stylesheets/recipes/background/_gradients.scss +81 -0
- data/stylesheets/recipes/background/_houndstooth.scss +51 -0
- data/stylesheets/recipes/background/_lined-paper.scss +30 -0
- data/stylesheets/recipes/background/_madras.scss +84 -0
- data/stylesheets/recipes/background/_noise.scss +47 -0
- data/stylesheets/recipes/background/_polka-dot.scss +28 -0
- data/stylesheets/recipes/background/_radial-overlay.scss +15 -0
- data/stylesheets/recipes/background/_rainbow.scss +27 -0
- data/stylesheets/recipes/background/_stripes.scss +46 -0
- data/stylesheets/recipes/background/_tablecloth.scss +30 -0
- data/stylesheets/recipes/background/_tartan.scss +81 -0
- data/stylesheets/recipes/base/_normalize.scss +455 -0
- data/stylesheets/recipes/color/_name.scss +151 -0
- data/stylesheets/recipes/effect/_bevel.scss +37 -0
- data/stylesheets/recipes/effect/_corner-folded.scss +26 -0
- data/stylesheets/recipes/effect/_corners-tucked.scss +48 -0
- data/stylesheets/recipes/effect/_cutout.scss +20 -0
- data/stylesheets/recipes/{enhancement/_corner-folded.scss → effect/_folded-corner.scss} +7 -1
- data/stylesheets/recipes/effect/_glass.scss +22 -9
- data/stylesheets/recipes/effect/_ribbon-tied.scss +133 -0
- data/stylesheets/recipes/effect/_ribbon.scss +102 -0
- data/stylesheets/recipes/effect/_scatter.scss +22 -0
- data/stylesheets/recipes/effect/_tape.scss +43 -0
- data/stylesheets/recipes/helper/_gravatar.scss +79 -0
- data/stylesheets/recipes/layout/_flexible-box-model.scss +68 -0
- data/stylesheets/recipes/shadow/_drop.scss +1 -1
- data/stylesheets/recipes/shadow/_top-edge.scss +1 -1
- data/stylesheets/recipes/shadow/drop/_curved.scss +5 -3
- data/stylesheets/recipes/shadow/drop/_flying.scss +12 -20
- data/stylesheets/recipes/shadow/drop/_transform-requirement.scss +3 -1
- data/stylesheets/recipes/shape/_polygon.scss +1 -0
- data/stylesheets/recipes/shape/_symbol.scss +5 -1
- data/stylesheets/recipes/shape/polygon/_rhombus.scss +10 -0
- data/stylesheets/recipes/shape/polygon/_star.scss +97 -29
- data/stylesheets/recipes/shape/polygon/_triangle.scss +9 -4
- data/stylesheets/recipes/shape/symbol/_diamond.scss +33 -0
- data/stylesheets/recipes/shape/symbol/_egg.scss +13 -0
- data/stylesheets/recipes/shape/symbol/_heart.scss +2 -1
- data/stylesheets/recipes/shape/symbol/_infinity.scss +3 -1
- data/stylesheets/recipes/shape/symbol/_pacman.scss +18 -0
- data/stylesheets/recipes/shape/symbol/_yin-yang.scss +49 -0
- data/stylesheets/recipes/shared/_clearfix.scss +28 -14
- data/stylesheets/recipes/shared/_pseudo-element.scss +13 -4
- data/stylesheets/recipes/shared/_user-select.scss +6 -0
- data/stylesheets/recipes/ui/_button.scss +122 -0
- data/stylesheets/recipes/ui/_convex.scss +8 -1
- data/stylesheets/recipes/ui/_glossy.scss +13 -12
- data/stylesheets/recipes/ui/_gradient.scss +4 -0
- data/stylesheets/recipes/ui/_helper.scss +1 -0
- data/stylesheets/recipes/ui/_keyboard.scss +106 -0
- data/stylesheets/recipes/ui/_menu.scss +1 -0
- data/stylesheets/recipes/ui/_overlay.scss +22 -0
- data/stylesheets/recipes/ui/_separator.scss +37 -0
- data/stylesheets/recipes/ui/border/_bevel.scss +3 -0
- data/stylesheets/recipes/ui/button/_state-selectors.scss +40 -0
- data/stylesheets/recipes/ui/button/style/_default.scss +12 -0
- data/stylesheets/recipes/ui/button/style/todo/_bonbon.scss +489 -0
- data/stylesheets/recipes/ui/button/style/todo/_bourbon.scss +169 -0
- data/stylesheets/recipes/ui/button/style/todo/_fancy.sass +178 -0
- data/stylesheets/recipes/ui/button/style/todo/_necolas-animated.scss +81 -0
- data/stylesheets/recipes/ui/button/style/todo/_ubuwaits.scss +654 -0
- data/stylesheets/recipes/ui/helper/_arrow.scss +72 -0
- data/stylesheets/recipes/ui/helper/_tag.scss +14 -0
- data/stylesheets/recipes/ui/loader/_pulse.scss +124 -0
- data/stylesheets/recipes/ui/{_menu-dropdown.scss → menu/_dropdown.scss} +11 -3
- data/templates/gravatar/getElementsByClassName.js +23 -0
- data/templates/gravatar/gravatar.js +117 -0
- data/templates/gravatar/manifest.rb +19 -0
- data/templates/gravatar/md5.js +14 -0
- data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.svg +198 -0
- data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.woff +0 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/SIL Open Font License 1.1.txt +91 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/demo.html +33 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.svg +85 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/heydings_controls-webfont.woff +0 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/stylesheet.css +16 -0
- data/templates/icon-fonts/fonts/icons/heydings/SIL Open Font License 1.1.txt +91 -0
- data/templates/icon-fonts/fonts/icons/heydings/demo.html +33 -0
- data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.svg +94 -0
- data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.woff +0 -0
- data/templates/icon-fonts/fonts/icons/heydings/stylesheet.css +16 -0
- data/templates/icon-fonts/fonts/icons/icomoon/License.txt +1 -0
- data/templates/icon-fonts/fonts/icons/icomoon/Read Me.txt +5 -0
- data/templates/icon-fonts/fonts/icons/icomoon/icomoon.eot +0 -0
- data/templates/icon-fonts/fonts/icons/icomoon/icomoon.svg +35 -0
- data/templates/icon-fonts/fonts/icons/icomoon/icomoon.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/icomoon/icomoon.woff +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/SIL Open Font License 1.1.txt +91 -0
- data/templates/icon-fonts/fonts/icons/iconic/demo.html +38 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.eot +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.svg +475 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.woff +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.eot +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.svg +492 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_stroke.woff +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/stylesheet.css +28 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/Modern Pictograms SIL OFL Font License 1.1.txt +94 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/demo.html +33 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.svg +136 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.woff +0 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/stylesheet.css +16 -0
- data/templates/icon-fonts/fonts/icons/socialico/FFF_EULA_license.pdf +0 -0
- data/templates/icon-fonts/fonts/icons/socialico/Socialico-webfont.otf +0 -0
- data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.svg +123 -0
- data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/socialico/socialico-webfont.woff +0 -0
- data/templates/icon-fonts/fonts/icons/websymbols/OFL-FAQ.txt +369 -0
- data/templates/icon-fonts/fonts/icons/websymbols/OFL.txt +97 -0
- data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.svg +108 -0
- data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.ttf +0 -0
- data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.woff +0 -0
- data/templates/icon-fonts/manifest.rb +17 -0
- metadata +225 -20
- data/stylesheets/recipes/_enhancement.scss +0 -1
- data/stylesheets/recipes/_pattern.scss +0 -0
@@ -0,0 +1,29 @@
|
|
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
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
|
2
|
+
// Timing functions are the same as demo'ed here: http://jqueryui.com/demos/effect/easing.html
|
3
|
+
|
4
|
+
// EASE IN
|
5
|
+
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
|
6
|
+
$ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
|
7
|
+
$ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
|
8
|
+
$ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
|
9
|
+
$ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
|
10
|
+
$ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
|
11
|
+
$ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);
|
12
|
+
|
13
|
+
// EASE OUT
|
14
|
+
$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
|
15
|
+
$ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
|
16
|
+
$ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
|
17
|
+
$ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
|
18
|
+
$ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
|
19
|
+
$ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
|
20
|
+
$ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
|
21
|
+
|
22
|
+
// EASE IN OUT
|
23
|
+
$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
|
24
|
+
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
25
|
+
$ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
|
26
|
+
$ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
|
27
|
+
$ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
|
28
|
+
$ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
|
29
|
+
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
|
@@ -0,0 +1,52 @@
|
|
1
|
+
/**
|
2
|
+
* Blueprint grid background pattern
|
3
|
+
*
|
4
|
+
* @link http://lea.verou.me/css3patterns/#blueprint-grid
|
5
|
+
*
|
6
|
+
* @author Lea Verou http://lea.verou.me/ for the original pattern
|
7
|
+
* @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx for the sass mixin
|
8
|
+
*/
|
9
|
+
|
10
|
+
@import "compass/css3/images";
|
11
|
+
|
12
|
+
@mixin background-blueprint-grid(
|
13
|
+
$background-color: #2574b0,
|
14
|
+
$foreground-color: rgba(#fff, .2),
|
15
|
+
$foreground-color-alt: rgba(#fff, .1),
|
16
|
+
$width: 100px,
|
17
|
+
$width-alt: 20px,
|
18
|
+
$border-width: 1px,
|
19
|
+
$border-width-alt: 1px)
|
20
|
+
{
|
21
|
+
background-color: $background-color;
|
22
|
+
|
23
|
+
$transparent: transparentize($foreground-color, 1);
|
24
|
+
|
25
|
+
// cannot use 0 (sass_extensions error) for horizontal linear-gradient, so we use keyword 'left'
|
26
|
+
@include background-image(
|
27
|
+
// big square
|
28
|
+
linear-gradient($foreground-color $border-width, $transparent $border-width),
|
29
|
+
linear-gradient(left, $foreground-color $border-width, $transparent $border-width),
|
30
|
+
|
31
|
+
// tiny square
|
32
|
+
linear-gradient($foreground-color-alt $border-width-alt, $transparent $border-width-alt),
|
33
|
+
linear-gradient(left, $foreground-color-alt $border-width-alt, $transparent $border-width-alt)
|
34
|
+
);
|
35
|
+
|
36
|
+
background-size:
|
37
|
+
// big square
|
38
|
+
$width $width,
|
39
|
+
$width $width,
|
40
|
+
// tiny square
|
41
|
+
$width-alt $width-alt,
|
42
|
+
$width-alt $width-alt
|
43
|
+
;
|
44
|
+
|
45
|
+
// to replace the grid correctly
|
46
|
+
background-position:
|
47
|
+
-#{$border-width} -#{$border-width},
|
48
|
+
-#{$border-width} -#{$border-width},
|
49
|
+
-#{$border-width-alt} -#{$border-width-alt},
|
50
|
+
-#{$border-width-alt} -#{$border-width-alt}
|
51
|
+
;
|
52
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* Carbon Fiber background pattern
|
3
|
+
*
|
4
|
+
* @author Lea Verou http://lea.verou.me/ for the original pattern
|
5
|
+
* @author David Kaneda http://www.davidkaneda.com/ for the Sass mixin
|
6
|
+
*
|
7
|
+
* @link http://lea.verou.me/css3patterns/
|
8
|
+
*
|
9
|
+
*/
|
10
|
+
|
11
|
+
@import "compass/css3/images";
|
12
|
+
|
13
|
+
$background-carbon-fiber-base-color: #222 !default;
|
14
|
+
|
15
|
+
@mixin background-carbon-fiber(
|
16
|
+
$background-color: $background-carbon-fiber-base-color,
|
17
|
+
$dot-color: scale-lightness($background-color, -50),
|
18
|
+
$highlight-color: rgba(#fff, .1),
|
19
|
+
$spacing-size: 16px,
|
20
|
+
$dot-size: 2px
|
21
|
+
) {
|
22
|
+
@include background-image(
|
23
|
+
radial-gradient($dot-color $dot-size, rgba(darken($dot-color, 5), 0) $dot-size + 1),
|
24
|
+
radial-gradient($dot-color $dot-size, rgba(darken($dot-color, 5), 0) $dot-size + 1),
|
25
|
+
radial-gradient($highlight-color $dot-size, rgba(#fff, 0) $dot-size + 1px),
|
26
|
+
radial-gradient($highlight-color $dot-size, rgba(#fff, 0) $dot-size + 1px)
|
27
|
+
);
|
28
|
+
|
29
|
+
background-repeat: repeat;
|
30
|
+
background-position: 0 0, $spacing-size/2 $spacing-size/2, 0 1px, $spacing-size/2 $spacing-size/2 + 1px;
|
31
|
+
background-color: $background-color;
|
32
|
+
background-size: $spacing-size $spacing-size;
|
33
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
/**
|
2
|
+
* Checkerboard background pattern
|
3
|
+
*
|
4
|
+
* @link http://lea.verou.me/css3patterns/#checkerboard
|
5
|
+
* @link http://lea.verou.me/css3patterns/#diagonal-checkerboard
|
6
|
+
*
|
7
|
+
* @author Lea Verou http://lea.verou.me/ for the original pattern
|
8
|
+
* @author Mason Wendell mason@canarypromo.com @canarymason for the sass mixin
|
9
|
+
*/
|
10
|
+
|
11
|
+
@import "compass/css3/images";
|
12
|
+
|
13
|
+
@mixin background-checkerboard($bg-color: #eee, $box-color: black, $size: 60px) {
|
14
|
+
$transparent: rgba(black, 0);
|
15
|
+
background-color: $bg-color;
|
16
|
+
@include background-image(
|
17
|
+
linear-gradient(
|
18
|
+
45deg,
|
19
|
+
$box-color 25%,
|
20
|
+
$transparent 25%,
|
21
|
+
$transparent 75%,
|
22
|
+
$box-color 75%,
|
23
|
+
$box-color
|
24
|
+
),
|
25
|
+
linear-gradient(
|
26
|
+
45deg,
|
27
|
+
$box-color 25%,
|
28
|
+
$transparent 25%,
|
29
|
+
$transparent 75%,
|
30
|
+
$box-color 75%,
|
31
|
+
$box-color
|
32
|
+
)
|
33
|
+
);
|
34
|
+
background-size: $size $size;
|
35
|
+
background-position: 0 0, ($size / 2) ($size / 2);
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
@mixin background-checkerboard-diagonal($bg-color: #eee, $box-color: black, $size: 60px) {
|
40
|
+
$transparent: rgba(black, 0);
|
41
|
+
background-color: $bg-color;
|
42
|
+
@include background-image(
|
43
|
+
linear-gradient(
|
44
|
+
45deg,
|
45
|
+
$box-color 25%,
|
46
|
+
$transparent 25%,
|
47
|
+
$transparent 75%,
|
48
|
+
$box-color 75%,
|
49
|
+
$box-color
|
50
|
+
),
|
51
|
+
linear-gradient(
|
52
|
+
-45deg,
|
53
|
+
$box-color 25%,
|
54
|
+
$transparent 25%,
|
55
|
+
$transparent 75%,
|
56
|
+
$box-color 75%,
|
57
|
+
$box-color
|
58
|
+
)
|
59
|
+
);
|
60
|
+
background-size:$size $size;
|
61
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/**
|
2
|
+
* Cicada background pattern
|
3
|
+
*
|
4
|
+
* @link http://lea.verou.me/css3patterns/#cicada-stripes
|
5
|
+
*
|
6
|
+
* @author Randy Merril http://forthedeveloper.com/ for the original pattern
|
7
|
+
* @author Mason Wendell mason@canarypromo.com @canarymason for the sass mixin
|
8
|
+
*/
|
9
|
+
|
10
|
+
@import "compass/css3/images";
|
11
|
+
|
12
|
+
@mixin background-stripes-cicada($bg-color: gray, $stripe-color: white, $dir: left) {
|
13
|
+
$transparent: rgba(black, 0);
|
14
|
+
$stripe-color1: rgba($stripe-color, 0.07);
|
15
|
+
$stripe-color2: rgba($stripe-color, 0.13);
|
16
|
+
$stripe-color3: rgba($stripe-color, 0.17);
|
17
|
+
$stripe-color4: rgba($stripe-color, 0.19);
|
18
|
+
background-color: $bg-color;
|
19
|
+
@include background-image(
|
20
|
+
linear-gradient(
|
21
|
+
$dir,
|
22
|
+
$stripe-color1 50%,
|
23
|
+
$transparent 50%
|
24
|
+
),
|
25
|
+
linear-gradient(
|
26
|
+
$dir,
|
27
|
+
$stripe-color2 50%,
|
28
|
+
$transparent 50%
|
29
|
+
),
|
30
|
+
linear-gradient(
|
31
|
+
$dir,
|
32
|
+
$transparent 50%,
|
33
|
+
$stripe-color3 50%
|
34
|
+
),
|
35
|
+
linear-gradient(
|
36
|
+
$dir,
|
37
|
+
$transparent 50%,
|
38
|
+
$stripe-color4 50%
|
39
|
+
)
|
40
|
+
);
|
41
|
+
background-size: 13px, 29px, 37px, 53px;
|
42
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/**
|
2
|
+
*
|
3
|
+
* @class Gradients
|
4
|
+
* @author David Kaneda http://www.davidkaneda.com/
|
5
|
+
*
|
6
|
+
*/
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Adds a background gradient into a specified selector.
|
10
|
+
*
|
11
|
+
* @include background-gradient(#444, 'glossy');
|
12
|
+
*
|
13
|
+
* You can also use color-stops if you want full control of the gradient:
|
14
|
+
*
|
15
|
+
* @include background-gradient(#444, color-stops(#333, #222, #111));
|
16
|
+
*
|
17
|
+
* @param {color} $bg-color
|
18
|
+
* The base color of the gradient.
|
19
|
+
*
|
20
|
+
* @param {string/list} $type
|
21
|
+
* The style of the gradient, one of five pre-defined options: matte, bevel, glossy, recessed, or linear:
|
22
|
+
*
|
23
|
+
* @include background-gradient(red, 'glossy');
|
24
|
+
*
|
25
|
+
* It can also accept a list of color-stop values:;
|
26
|
+
*
|
27
|
+
* @include background-gradient(black, color-stops(#333, #111, #000));
|
28
|
+
*
|
29
|
+
* @param {string} $direction
|
30
|
+
* The direction of the gradient.
|
31
|
+
*/
|
32
|
+
|
33
|
+
@import "compass/css3/images";
|
34
|
+
|
35
|
+
@mixin background-gradient($bg-color, $type: null, $direction: top) {
|
36
|
+
background-image: none;
|
37
|
+
background-color: $bg-color;
|
38
|
+
|
39
|
+
@if $type != null and $bg-color != transparent {
|
40
|
+
// Color stops provided
|
41
|
+
@if type-of($type) == "list" {
|
42
|
+
@include background-image(linear-gradient($direction, $type));
|
43
|
+
}
|
44
|
+
|
45
|
+
// Default gradients
|
46
|
+
@else if $type == bevel {
|
47
|
+
@include background-image(bevel-gradient($bg-color, $direction));
|
48
|
+
} @else if $type == glossy {
|
49
|
+
@include background-image(glossy-gradient($bg-color, $direction));
|
50
|
+
} @else if $type == recessed {
|
51
|
+
@include background-image(recessed-gradient($bg-color, $direction));
|
52
|
+
} @else if $type == linear {
|
53
|
+
@include background-image(linear-gradient($direction, color_stops(lighten($bg-color, 5%), darken($bg-color, 10%))));
|
54
|
+
} @else if $type == matte {
|
55
|
+
@include background-image(matte-gradient($bg-color, $direction));
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
// These are functions so they can be combined together with background-image()// ie. @include background-image(background_noise(), glossy-gradient());
|
61
|
+
|
62
|
+
@function bevel-gradient($bg-color: $base-color, $direction: top) {
|
63
|
+
@return linear-gradient($direction, color_stops(
|
64
|
+
lighten($bg-color, 15%),
|
65
|
+
lighten($bg-color, 8%) 30%,
|
66
|
+
$bg-color 65%,
|
67
|
+
darken($bg-color, 6%)
|
68
|
+
));
|
69
|
+
}
|
70
|
+
|
71
|
+
@function glossy-gradient($bg-color: $base-color, $direction: top) {
|
72
|
+
@return linear-gradient($direction, color_stops(lighten($bg-color, 15%), lighten($bg-color, 5%) 50%, $bg-color 51%, darken($bg-color, 5%)));
|
73
|
+
}
|
74
|
+
|
75
|
+
@function recessed-gradient($bg-color: $base-color, $direction: top) {
|
76
|
+
@return linear-gradient($direction, color_stops(darken($bg-color, 10%), darken($bg-color, 5%) 10%, $bg-color 65%, lighten($bg-color, .5%)));
|
77
|
+
}
|
78
|
+
|
79
|
+
@function matte-gradient($bg-color: $base-color, $direction: top) {
|
80
|
+
@return linear-gradient($direction, color_stops(lighten($bg-color, 15%), lighten($bg-color, 5%) 3%, darken($bg-color, 5%)));
|
81
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/**
|
2
|
+
*
|
3
|
+
* Houndstooth background pattern
|
4
|
+
*
|
5
|
+
* @link http://lea.verou.me/css3patterns/#houndstooth
|
6
|
+
*
|
7
|
+
* @author Antoine Bernier http://abernier.name for the original pattern
|
8
|
+
* @author Mason Wendell mason@canarypromo.com @canarymason for the sass mixin
|
9
|
+
*/
|
10
|
+
|
11
|
+
@import "compass/css3/images";
|
12
|
+
|
13
|
+
@mixin background-houndstooth($color-1: white, $color-2: black, $size: 2em) {
|
14
|
+
$transparent: rgba(black, 0);
|
15
|
+
background-color: $color-1;
|
16
|
+
@include background-image(
|
17
|
+
linear-gradient(
|
18
|
+
-45deg,
|
19
|
+
$color-1 25%,
|
20
|
+
$transparent 25%,
|
21
|
+
$transparent 75%,
|
22
|
+
$color-2 75%,
|
23
|
+
$color-2
|
24
|
+
),
|
25
|
+
linear-gradient(
|
26
|
+
-45deg,
|
27
|
+
$color-2 25%,
|
28
|
+
$transparent 25%,
|
29
|
+
$transparent 75%,
|
30
|
+
$color-1 75%,
|
31
|
+
$color-1
|
32
|
+
),
|
33
|
+
linear-gradient(
|
34
|
+
45deg,
|
35
|
+
$color-2 17%,
|
36
|
+
$transparent 17%,
|
37
|
+
$transparent 25%,
|
38
|
+
$color-2 25%,
|
39
|
+
$color-2 36%,
|
40
|
+
$transparent 36%,
|
41
|
+
$transparent 64%,
|
42
|
+
$color-2 64%,
|
43
|
+
$color-2 75%,
|
44
|
+
$transparent 75%,
|
45
|
+
$transparent 83%,
|
46
|
+
$color-2 83%
|
47
|
+
)
|
48
|
+
);
|
49
|
+
background-size: $size $size;
|
50
|
+
background-position: 0 0, ($size / 2) ($size / 2), ($size / 2) ($size / 2)
|
51
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Lined paper background pattern
|
3
|
+
*
|
4
|
+
* @link http://lea.verou.me/css3patterns/#lined-paper
|
5
|
+
*
|
6
|
+
* @author Sarah Backhouse http://www.jadu.net/ for the original pattern
|
7
|
+
* @author Mason Wendell mason@canarypromo.com @canarymason for the sass mixin
|
8
|
+
*/
|
9
|
+
|
10
|
+
@import "compass/css3/images";
|
11
|
+
|
12
|
+
@mixin background-lined-paper($bg-color: white, $rule-color: #eeeeee, $guide-color: #abced4, $baseline: 1.5em, $margin: 79px) {
|
13
|
+
$transparent: rgba(black, 0);
|
14
|
+
background-color: $bg-color;
|
15
|
+
@include background-image(
|
16
|
+
linear-gradient(
|
17
|
+
left,
|
18
|
+
$transparent $margin,
|
19
|
+
$guide-color $margin,
|
20
|
+
$guide-color $margin + 3,
|
21
|
+
$transparent $margin + 3
|
22
|
+
),
|
23
|
+
linear-gradient(
|
24
|
+
top,
|
25
|
+
$rule-color 0.05em,
|
26
|
+
$transparent 0.05em
|
27
|
+
)
|
28
|
+
);
|
29
|
+
background-size: 100% $baseline;
|
30
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
/**
|
2
|
+
* Madras background pattern
|
3
|
+
*
|
4
|
+
* Before compass 0.11.5, you need to add
|
5
|
+
* Compass::BrowserSupport.add_support("repeating-linear-gradient", "webkit", "moz", "o", "ms")
|
6
|
+
* To your configuration (config.rb)
|
7
|
+
* @see https://github.com/chriseppstein/compass/issues/401
|
8
|
+
*
|
9
|
+
* @link http://lea.verou.me/css3patterns/#madras
|
10
|
+
*
|
11
|
+
* @author Divya Manian http://nimbupani.com/ for the original pattern
|
12
|
+
* @author Mason Wendell mason@canarypromo.com @canarymason for the sass mixin
|
13
|
+
*/
|
14
|
+
|
15
|
+
@import "compass/css3/images";
|
16
|
+
|
17
|
+
@mixin background-madras($bg-color: hsl(34, 53%, 82%), $color1: $bg-color, $color2: $bg-color, $color3: $bg-color) {
|
18
|
+
$transparent: rgba(black, 0);
|
19
|
+
// calculate colors if specific colors aren't passed in
|
20
|
+
@if ($color1 == $bg-color){
|
21
|
+
$color1: change-color(rgba(complement($bg-color), 1), $saturation: 65%, $lightness: 10%, $alpha: 0.5);
|
22
|
+
}
|
23
|
+
@if ($color2 == $bg-color){
|
24
|
+
$color2: adjust-color(rgba($bg-color, 1), $hue: -30, $lightness: -20%, $alpha: -0.5);
|
25
|
+
}
|
26
|
+
@if ($color3 == $bg-color){
|
27
|
+
$color3: adjust-color(rgba($bg-color, 1), $saturation: 35%, $lightness: -20%, $alpha: -0.5);
|
28
|
+
}
|
29
|
+
background-color: $bg-color;
|
30
|
+
@include background-image(
|
31
|
+
repeating-linear-gradient(
|
32
|
+
45deg,
|
33
|
+
transparent 5px,
|
34
|
+
$color1 5px,
|
35
|
+
$color1 10px,
|
36
|
+
$transparent 10px,
|
37
|
+
$transparent 35px,
|
38
|
+
$color2 35px,
|
39
|
+
$color2 40px,
|
40
|
+
$color1 40px,
|
41
|
+
$color1 50px,
|
42
|
+
$transparent 50px,
|
43
|
+
$transparent 60px,
|
44
|
+
$color2 60px,
|
45
|
+
$color2 70px,
|
46
|
+
$color3 70px,
|
47
|
+
$color3 80px,
|
48
|
+
$transparent 80px,
|
49
|
+
$transparent 90px,
|
50
|
+
$color2 90px,
|
51
|
+
$color2 110px,
|
52
|
+
$transparent 110px,
|
53
|
+
$transparent 120px,
|
54
|
+
$color1 120px,
|
55
|
+
$color1 140px
|
56
|
+
),
|
57
|
+
repeating-linear-gradient(
|
58
|
+
135deg,
|
59
|
+
transparent 5px,
|
60
|
+
$color1 5px,
|
61
|
+
$color1 10px,
|
62
|
+
$transparent 10px,
|
63
|
+
$transparent 35px,
|
64
|
+
$color2 35px,
|
65
|
+
$color2 40px,
|
66
|
+
$color1 40px,
|
67
|
+
$color1 50px,
|
68
|
+
$transparent 50px,
|
69
|
+
$transparent 60px,
|
70
|
+
$color2 60px,
|
71
|
+
$color2 70px,
|
72
|
+
$color3 70px,
|
73
|
+
$color3 80px,
|
74
|
+
$transparent 80px,
|
75
|
+
$transparent 90px,
|
76
|
+
$color2 90px,
|
77
|
+
$color2 110px,
|
78
|
+
$transparent 110px,
|
79
|
+
$transparent 140px,
|
80
|
+
$color1 140px,
|
81
|
+
$color1 160px
|
82
|
+
)
|
83
|
+
);
|
84
|
+
}
|