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,47 @@
|
|
1
|
+
/**
|
2
|
+
* Background noise recipe
|
3
|
+
*
|
4
|
+
* This recipe use a sass function to generate a .png file
|
5
|
+
*
|
6
|
+
* Inspired by a jQuery plugin "Noisy" by Daniel Rapp @DanielRapp
|
7
|
+
* @link https://github.com/DanielRapp/Noisy
|
8
|
+
*
|
9
|
+
* Converted using Sass by Aaron Russell @aaronrussell & Philipp Bosch @philippbosch
|
10
|
+
* @link https://gist.github.com/1021332
|
11
|
+
*
|
12
|
+
* Ported to a sass gem by Antti Salonen @antsa
|
13
|
+
* @link https://github.com/antsa/sassy_noise
|
14
|
+
*
|
15
|
+
* Mixin: background-noise
|
16
|
+
* Function: background_noise
|
17
|
+
*
|
18
|
+
* @author Daniel Rapp @DanielRapp
|
19
|
+
* @author Aaron Russell @aaronrussell
|
20
|
+
* @author Philipp Bosch @philippbosch
|
21
|
+
* @author Antti Salonen @antsa
|
22
|
+
* @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx
|
23
|
+
*/
|
24
|
+
|
25
|
+
@import "compass/css3/images";
|
26
|
+
|
27
|
+
// default values
|
28
|
+
$background-noise-intensity: 0.5 !default;
|
29
|
+
$background-noise-opacity: 0.12 !default;
|
30
|
+
$background-noise-size: 200 !default;
|
31
|
+
$background-noise-monochrome: true !default;
|
32
|
+
|
33
|
+
@mixin background-noise(
|
34
|
+
$intensity: $background-noise-intensity,
|
35
|
+
$opacity: $background-noise-opacity,
|
36
|
+
$size: $background-noise-size,
|
37
|
+
$monochrome: $background-noise-monochrome
|
38
|
+
)
|
39
|
+
{
|
40
|
+
background-image: background_noise(
|
41
|
+
$intensity: $intensity,
|
42
|
+
$opacity: $opacity,
|
43
|
+
$size: $size,
|
44
|
+
$monochrome: $monochrome
|
45
|
+
);
|
46
|
+
background-repeat: repeat;
|
47
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
*
|
3
|
+
* Polkadot background pattern
|
4
|
+
*
|
5
|
+
* @link http://lea.verou.me/css3patterns/#polka-dot
|
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-polka-dot($bg-color: black, $dot-color: white, $size: 15%, $spacing: 60px) {
|
14
|
+
$transparent: rgba(black, 0);
|
15
|
+
background-color: $bg-color;
|
16
|
+
@include background-image(
|
17
|
+
radial-gradient(
|
18
|
+
$dot-color $size,
|
19
|
+
$transparent $size + 1
|
20
|
+
),
|
21
|
+
radial-gradient(
|
22
|
+
$dot-color $size,
|
23
|
+
$transparent $size + 1
|
24
|
+
)
|
25
|
+
);
|
26
|
+
background-size: $spacing $spacing;
|
27
|
+
background-position: 0 0, ($spacing / 2) ($spacing / 2);
|
28
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Background overlay inspired by Google Chrome modal overlay
|
3
|
+
*
|
4
|
+
* @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com
|
5
|
+
*/
|
6
|
+
|
7
|
+
@import "compass/css3/images";
|
8
|
+
|
9
|
+
@mixin background-radial-overlay(
|
10
|
+
$background-color: rgba(#000, .7),
|
11
|
+
$foreground-color: rgba(#7f7f7f, .5),
|
12
|
+
$radial-change-color-distance: 35%)
|
13
|
+
{
|
14
|
+
@include background-image(radial-gradient($foreground-color, $foreground-color $radial-change-color-distance, $background-color));
|
15
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
//
|
2
|
+
// Rainbow gradient function & background mixin
|
3
|
+
//
|
4
|
+
// @author Maxime Thirouin m@moox.fr
|
5
|
+
//
|
6
|
+
@import "recipes/color/name";
|
7
|
+
|
8
|
+
@mixin background-rainbow($alpha: 1, $from: left)
|
9
|
+
{
|
10
|
+
@include background-image(linear-gradient-rainbow($alpha, $from));
|
11
|
+
}
|
12
|
+
|
13
|
+
@function linear-gradient-rainbow($alpha: 1, $from: left)
|
14
|
+
{
|
15
|
+
$alpha: 1 - $alpha;
|
16
|
+
$percentage: 100%/6; // 7 colors, so 6 gaps
|
17
|
+
@return linear-gradient(
|
18
|
+
$from,
|
19
|
+
transparentize($red, $alpha),
|
20
|
+
transparentize($orange, $alpha) $percentage,
|
21
|
+
transparentize($yellow, $alpha) $percentage * 2,
|
22
|
+
transparentize($green, $alpha) $percentage * 3,
|
23
|
+
transparentize($blue, $alpha) $percentage * 4,
|
24
|
+
transparentize($indigo, $alpha) $percentage * 5,
|
25
|
+
transparentize($violet, $alpha)
|
26
|
+
);
|
27
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* Striped background patterns
|
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/#horizontal-stripes
|
10
|
+
* @link http://lea.verou.me/css3patterns/#vertical-stripes
|
11
|
+
*
|
12
|
+
* @author Lea Verou http://lea.verou.me/ for the original pattern
|
13
|
+
* @author Mason Wendell mason@canarypromo.com @canarymason for the sass mixin
|
14
|
+
*/
|
15
|
+
|
16
|
+
@import "compass/css3/images";
|
17
|
+
|
18
|
+
@mixin background-stripes-straight($dir: left, $bg-color: gray, $stripe-color: rgba(white, 0.5), $size: 50px) {
|
19
|
+
$transparent: rgba(black, 0);
|
20
|
+
background-color: $bg-color;
|
21
|
+
@include background-image(
|
22
|
+
linear-gradient(
|
23
|
+
$dir,
|
24
|
+
$transparent 50%,
|
25
|
+
$stripe-color 50%
|
26
|
+
)
|
27
|
+
);
|
28
|
+
background-size: $size $size;
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
@mixin background-diagonal-stripes($dir: 45deg, $bg-color: gray, $stripe-color: rgba(white, 0.5), $size: 50px) {
|
33
|
+
$transparent: rgba(black, 0);
|
34
|
+
background-color: $bg-color;
|
35
|
+
@include background-image(
|
36
|
+
repeating-linear-gradient(
|
37
|
+
$dir,
|
38
|
+
$transparent,
|
39
|
+
$transparent $size / 2,
|
40
|
+
$stripe-color $size / 2,
|
41
|
+
$stripe-color $size
|
42
|
+
)
|
43
|
+
);
|
44
|
+
}
|
45
|
+
|
46
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
*
|
3
|
+
* Tablecloth background pattern
|
4
|
+
*
|
5
|
+
* @link http://lea.verou.me/css3patterns/#tablecloth
|
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-tablecloth($bg-color: white, $stripe-color: rgba(200,0,0,.5), $size: 50px) {
|
14
|
+
$transparent: rgba(black, 0);
|
15
|
+
background-color: $bg-color;
|
16
|
+
@include background-image(
|
17
|
+
linear-gradient(
|
18
|
+
0,
|
19
|
+
$stripe-color 50%,
|
20
|
+
$transparent 50%
|
21
|
+
),
|
22
|
+
linear-gradient(
|
23
|
+
$stripe-color 50%,
|
24
|
+
$transparent 50%
|
25
|
+
)
|
26
|
+
);
|
27
|
+
background-size: $size $size;
|
28
|
+
}
|
29
|
+
|
30
|
+
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/**
|
2
|
+
*
|
3
|
+
* Before compass 0.11.5, you need to add
|
4
|
+
* Compass::BrowserSupport.add_support("repeating-linear-gradient", "webkit", "moz", "o", "ms")
|
5
|
+
* To your configuration (config.rb)
|
6
|
+
* @see https://github.com/chriseppstein/compass/issues/401
|
7
|
+
*
|
8
|
+
* @link http://lea.verou.me/css3patterns/#tartan
|
9
|
+
*
|
10
|
+
* @author Marta Armada http://swwweet.com/ for the original pattern
|
11
|
+
* @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx for the sass mixin
|
12
|
+
*/
|
13
|
+
|
14
|
+
@import "compass/css3/images";
|
15
|
+
|
16
|
+
@mixin background-tartan($background-color: hsl(2, 57%, 40%))
|
17
|
+
{
|
18
|
+
$transparent: rgba(#fff, 0);
|
19
|
+
|
20
|
+
background-color: $background-color;
|
21
|
+
@include background-image(
|
22
|
+
repeating-linear-gradient(
|
23
|
+
$transparent,
|
24
|
+
$transparent 50px,
|
25
|
+
rgba(#000,.4) 50px,
|
26
|
+
rgba(#000,.4) 53px,
|
27
|
+
$transparent 53px,
|
28
|
+
$transparent 63px,
|
29
|
+
rgba(#000,.4) 63px,
|
30
|
+
rgba(#000,.4) 66px,
|
31
|
+
$transparent 66px,
|
32
|
+
$transparent 116px,
|
33
|
+
rgba(#000,.5) 116px,
|
34
|
+
rgba(#000,.5) 166px,
|
35
|
+
rgba(#fff,.2) 166px,
|
36
|
+
rgba(#fff,.2) 169px,
|
37
|
+
rgba(#000,.5) 169px,
|
38
|
+
rgba(#000,.5) 179px,
|
39
|
+
rgba(#fff,.2) 179px,
|
40
|
+
rgba(#fff,.2) 182px,
|
41
|
+
rgba(#000,.5) 182px,
|
42
|
+
rgba(#000,.5) 232px,
|
43
|
+
$transparent 232px
|
44
|
+
),
|
45
|
+
repeating-linear-gradient(
|
46
|
+
180deg,
|
47
|
+
// same as above, just with 180deg
|
48
|
+
$transparent,
|
49
|
+
$transparent 50px,
|
50
|
+
rgba(#000,.4) 50px,
|
51
|
+
rgba(#000,.4) 53px,
|
52
|
+
$transparent 53px,
|
53
|
+
$transparent 63px,
|
54
|
+
rgba(#000,.4) 63px,
|
55
|
+
rgba(#000,.4) 66px,
|
56
|
+
$transparent 66px,
|
57
|
+
$transparent 116px,
|
58
|
+
rgba(#000,.5) 116px,
|
59
|
+
rgba(#000,.5) 166px,
|
60
|
+
rgba(#fff,.2) 166px,
|
61
|
+
rgba(#fff,.2) 169px,
|
62
|
+
rgba(#000,.5) 169px,
|
63
|
+
rgba(#000,.5) 179px,
|
64
|
+
rgba(#fff,.2) 179px,
|
65
|
+
rgba(#fff,.2) 182px,
|
66
|
+
rgba(#000,.5) 182px,
|
67
|
+
rgba(#000,.5) 232px,
|
68
|
+
$transparent 232px
|
69
|
+
),
|
70
|
+
repeating-linear-gradient(
|
71
|
+
-35deg,
|
72
|
+
$transparent,
|
73
|
+
$transparent 2px,
|
74
|
+
rgba(#000,.2) 2px,
|
75
|
+
rgba(#000,.2) 3px,
|
76
|
+
$transparent 3px,
|
77
|
+
$transparent 5px,
|
78
|
+
rgba(#000,.2) 5px
|
79
|
+
)
|
80
|
+
);
|
81
|
+
}
|
@@ -0,0 +1,455 @@
|
|
1
|
+
/**
|
2
|
+
* Normalize.css
|
3
|
+
* Opposite approche from CSS reset
|
4
|
+
*
|
5
|
+
* Based on normalize.css commit 9576d48fc234c5224b1fc4dccba2f5965243843d
|
6
|
+
*
|
7
|
+
* @link http://github.com/necolas/normalize.css
|
8
|
+
*/
|
9
|
+
|
10
|
+
/*! normalize.css 2011-07-12T10:51 UTC · http://github.com/necolas/normalize.css */
|
11
|
+
|
12
|
+
/* =============================================================================
|
13
|
+
HTML5 element display
|
14
|
+
========================================================================== */
|
15
|
+
@mixin base-normalize-html5
|
16
|
+
{
|
17
|
+
/*
|
18
|
+
* Corrects block display not defined in IE6/7/8/9 & FF3
|
19
|
+
*/
|
20
|
+
|
21
|
+
article,
|
22
|
+
aside,
|
23
|
+
details,
|
24
|
+
figcaption,
|
25
|
+
figure,
|
26
|
+
footer,
|
27
|
+
header,
|
28
|
+
hgroup,
|
29
|
+
nav,
|
30
|
+
section {
|
31
|
+
display: block;
|
32
|
+
}
|
33
|
+
|
34
|
+
/*
|
35
|
+
* Corrects inline-block display not defined in IE6/7/8/9 & FF3
|
36
|
+
* Known limitation: IE6 will not apply style for 'audio[controls]'
|
37
|
+
*/
|
38
|
+
|
39
|
+
audio[controls],
|
40
|
+
canvas,
|
41
|
+
video {
|
42
|
+
display: inline-block;
|
43
|
+
*display: inline;
|
44
|
+
*zoom: 1;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
/* =============================================================================
|
49
|
+
Base
|
50
|
+
========================================================================== */
|
51
|
+
@mixin base-normalize-page
|
52
|
+
{
|
53
|
+
/*
|
54
|
+
* 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
|
55
|
+
* http://clagnut.com/blog/348/#c790
|
56
|
+
* 2. Keeps page centred in all browsers regardless of content height
|
57
|
+
* 3. Removes Android and iOS tap highlight color to prevent entire container being highlighted
|
58
|
+
* www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
|
59
|
+
* 4. Prevents iOS text size adjust after orientation change, without disabling user zoom
|
60
|
+
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
|
61
|
+
*/
|
62
|
+
|
63
|
+
html {
|
64
|
+
font-size: 100%; /* 1 */
|
65
|
+
overflow-y: scroll; /* 2 */
|
66
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0); /* 3 */
|
67
|
+
-webkit-text-size-adjust: 100%; /* 4 */
|
68
|
+
-ms-text-size-adjust: 100%; /* 4 */
|
69
|
+
}
|
70
|
+
|
71
|
+
/*
|
72
|
+
* Addresses margins handled incorrectly in IE6/7
|
73
|
+
*/
|
74
|
+
|
75
|
+
body {
|
76
|
+
margin: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
/*
|
80
|
+
* Addresses font-family inconsistency between 'textarea' and other form elements.
|
81
|
+
*/
|
82
|
+
|
83
|
+
body,
|
84
|
+
button,
|
85
|
+
input,
|
86
|
+
select,
|
87
|
+
textarea {
|
88
|
+
font-family: sans-serif;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
/* =============================================================================
|
93
|
+
Links
|
94
|
+
========================================================================== */
|
95
|
+
@mixin base-normalize-links
|
96
|
+
{
|
97
|
+
a {
|
98
|
+
color: #00e;
|
99
|
+
}
|
100
|
+
|
101
|
+
a:visited {
|
102
|
+
color: #551a8b;
|
103
|
+
}
|
104
|
+
|
105
|
+
/*
|
106
|
+
* Addresses outline displayed oddly in Chrome
|
107
|
+
*/
|
108
|
+
|
109
|
+
a:focus {
|
110
|
+
outline: thin dotted;
|
111
|
+
}
|
112
|
+
|
113
|
+
/*
|
114
|
+
* Improves readability when focused and also mouse hovered in all browsers
|
115
|
+
* people.opera.com/patrickl/experiments/keyboard/test
|
116
|
+
*/
|
117
|
+
|
118
|
+
a:hover,
|
119
|
+
a:active {
|
120
|
+
outline: 0;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
/* =============================================================================
|
125
|
+
Typography
|
126
|
+
========================================================================== */
|
127
|
+
@mixin base-normalize-typography
|
128
|
+
{
|
129
|
+
/*
|
130
|
+
* Addresses styling not present in IE7/8/9, S5, Chrome
|
131
|
+
*/
|
132
|
+
|
133
|
+
abbr[title] {
|
134
|
+
border-bottom: 1px dotted;
|
135
|
+
}
|
136
|
+
|
137
|
+
/*
|
138
|
+
* Addresses style set to 'bolder' in FF3/4, S4/5, Chrome
|
139
|
+
*/
|
140
|
+
|
141
|
+
b,
|
142
|
+
strong {
|
143
|
+
font-weight: bold;
|
144
|
+
}
|
145
|
+
|
146
|
+
blockquote {
|
147
|
+
margin: 1em 40px;
|
148
|
+
}
|
149
|
+
|
150
|
+
/*
|
151
|
+
* Addresses styling not present in S5, Chrome
|
152
|
+
*/
|
153
|
+
|
154
|
+
dfn {
|
155
|
+
font-style: italic;
|
156
|
+
}
|
157
|
+
|
158
|
+
/*
|
159
|
+
* Addresses styling not present in IE6/7/8/9
|
160
|
+
*/
|
161
|
+
|
162
|
+
mark {
|
163
|
+
background: #ff0;
|
164
|
+
color: #000;
|
165
|
+
}
|
166
|
+
|
167
|
+
/*
|
168
|
+
* Corrects font family set oddly in IE6, S5, Chrome
|
169
|
+
* en.wikipedia.org/wiki/User:Davidgothberg/Test59
|
170
|
+
*/
|
171
|
+
|
172
|
+
pre,
|
173
|
+
code,
|
174
|
+
kbd,
|
175
|
+
samp {
|
176
|
+
font-family: monospace, monospace;
|
177
|
+
_font-family: 'courier new', monospace;
|
178
|
+
font-size: 1em;
|
179
|
+
}
|
180
|
+
|
181
|
+
/*
|
182
|
+
* Improves readability of pre-formatted text in all browsers
|
183
|
+
*/
|
184
|
+
|
185
|
+
pre {
|
186
|
+
white-space: pre;
|
187
|
+
white-space: pre-wrap;
|
188
|
+
word-wrap: break-word;
|
189
|
+
}
|
190
|
+
|
191
|
+
/*
|
192
|
+
* 1. Addresses CSS quotes not supported in IE6/7
|
193
|
+
* 2. Addresses quote property not supported in S4
|
194
|
+
*/
|
195
|
+
|
196
|
+
/* 1 */
|
197
|
+
|
198
|
+
q {
|
199
|
+
quotes: none;
|
200
|
+
}
|
201
|
+
|
202
|
+
/* 2 */
|
203
|
+
|
204
|
+
q:before,
|
205
|
+
q:after {
|
206
|
+
content: '';
|
207
|
+
content: none;
|
208
|
+
}
|
209
|
+
|
210
|
+
small {
|
211
|
+
font-size: 75%;
|
212
|
+
}
|
213
|
+
|
214
|
+
/*
|
215
|
+
* Prevents sub and sup affecting line-height in all browsers
|
216
|
+
* gist.github.com/413930
|
217
|
+
*/
|
218
|
+
|
219
|
+
sub,
|
220
|
+
sup {
|
221
|
+
font-size: 75%;
|
222
|
+
line-height: 0;
|
223
|
+
position: relative;
|
224
|
+
vertical-align: baseline;
|
225
|
+
}
|
226
|
+
|
227
|
+
sup {
|
228
|
+
top: -0.5em;
|
229
|
+
}
|
230
|
+
|
231
|
+
sub {
|
232
|
+
bottom: -0.25em;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
/* =============================================================================
|
237
|
+
Lists
|
238
|
+
========================================================================== */
|
239
|
+
@mixin base-normalize-lists
|
240
|
+
{
|
241
|
+
ul,
|
242
|
+
ol {
|
243
|
+
margin: 1em 0;
|
244
|
+
padding: 0 0 0 40px;
|
245
|
+
}
|
246
|
+
|
247
|
+
dd {
|
248
|
+
margin: 0 0 0 40px;
|
249
|
+
}
|
250
|
+
|
251
|
+
nav ul,
|
252
|
+
nav ol {
|
253
|
+
list-style: none;
|
254
|
+
}
|
255
|
+
}
|
256
|
+
|
257
|
+
/* =============================================================================
|
258
|
+
Embedded content
|
259
|
+
========================================================================== */
|
260
|
+
@mixin base-normalize-embed
|
261
|
+
{
|
262
|
+
/*
|
263
|
+
* 1. Removes border when inside 'a' element in IE6/7/8/9
|
264
|
+
* 2. Improves image quality when scaled in IE7
|
265
|
+
* code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
|
266
|
+
*/
|
267
|
+
|
268
|
+
img {
|
269
|
+
border: 0; /* 1 */
|
270
|
+
-ms-interpolation-mode: bicubic; /* 2 */
|
271
|
+
}
|
272
|
+
|
273
|
+
/*
|
274
|
+
* Corrects overflow displayed oddly in IE9
|
275
|
+
*/
|
276
|
+
|
277
|
+
svg:not(:root) {
|
278
|
+
overflow: hidden;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
/* =============================================================================
|
283
|
+
Figures
|
284
|
+
========================================================================== */
|
285
|
+
@mixin base-normalize-figures
|
286
|
+
{
|
287
|
+
/*
|
288
|
+
* Addresses margin not present in IE6/7/8/9, S5, O11
|
289
|
+
*/
|
290
|
+
|
291
|
+
figure {
|
292
|
+
margin: 0;
|
293
|
+
}
|
294
|
+
}
|
295
|
+
|
296
|
+
/* =============================================================================
|
297
|
+
Forms
|
298
|
+
========================================================================== */
|
299
|
+
@mixin base-normalize-forms
|
300
|
+
{
|
301
|
+
/*
|
302
|
+
* Corrects margin displayed oddly in IE6/7
|
303
|
+
*/
|
304
|
+
|
305
|
+
form {
|
306
|
+
margin: 0;
|
307
|
+
}
|
308
|
+
|
309
|
+
/*
|
310
|
+
* Define consistent margin and padding
|
311
|
+
*/
|
312
|
+
|
313
|
+
fieldset {
|
314
|
+
margin: 0 2px;
|
315
|
+
padding: 0.35em 0.625em 0.75em;
|
316
|
+
}
|
317
|
+
|
318
|
+
/*
|
319
|
+
* 1. Corrects color not being inherited in IE6/7/8/9
|
320
|
+
* 2. Corrects alignment displayed oddly in IE6/7
|
321
|
+
*/
|
322
|
+
|
323
|
+
legend {
|
324
|
+
border: 0; /* 1 */
|
325
|
+
*margin-left: -7px; /* 2 */
|
326
|
+
}
|
327
|
+
|
328
|
+
/*
|
329
|
+
* 1. Corrects font size not being inherited in all browsers
|
330
|
+
* 2. Addresses margins set differently in IE6/7, F3/4, S5, Chrome
|
331
|
+
* 3. Improves appearance and consistency in all browsers
|
332
|
+
*/
|
333
|
+
|
334
|
+
button,
|
335
|
+
input,
|
336
|
+
select,
|
337
|
+
textarea {
|
338
|
+
font-size: 100%; /* 1 */
|
339
|
+
margin: 0; /* 2 */
|
340
|
+
vertical-align: baseline; /* 3 */
|
341
|
+
*vertical-align: middle; /* 3 */
|
342
|
+
}
|
343
|
+
|
344
|
+
/*
|
345
|
+
* 1. Addresses FF3/4 setting line-height using !important in the UA stylesheet
|
346
|
+
* 2. Corrects inner spacing displayed oddly in IE6/7
|
347
|
+
*/
|
348
|
+
|
349
|
+
button,
|
350
|
+
input {
|
351
|
+
line-height: normal; /* 1 */
|
352
|
+
*overflow: visible; /* 2 */
|
353
|
+
}
|
354
|
+
|
355
|
+
/*
|
356
|
+
* Corrects overlap and whitespace issue for buttons and inputs in IE6/7
|
357
|
+
* Known issue: reintroduces inner spacing
|
358
|
+
*/
|
359
|
+
|
360
|
+
table button,
|
361
|
+
table input {
|
362
|
+
*overflow: auto;
|
363
|
+
}
|
364
|
+
|
365
|
+
/*
|
366
|
+
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
|
367
|
+
* 2. Corrects inability to style clickable 'input' types in iOS
|
368
|
+
*/
|
369
|
+
|
370
|
+
button,
|
371
|
+
html input[type="button"],
|
372
|
+
input[type="reset"],
|
373
|
+
input[type="submit"] {
|
374
|
+
cursor: pointer; /* 1 */
|
375
|
+
-webkit-appearance: button; /* 2 */
|
376
|
+
}
|
377
|
+
|
378
|
+
/*
|
379
|
+
* Addresses box sizing set to content-box in IE8/9
|
380
|
+
*/
|
381
|
+
|
382
|
+
input[type="checkbox"],
|
383
|
+
input[type="radio"] {
|
384
|
+
box-sizing: border-box;
|
385
|
+
}
|
386
|
+
|
387
|
+
/*
|
388
|
+
* 1. Addresses appearance set to searchfield in S5, Chrome
|
389
|
+
* 2. Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof)
|
390
|
+
*/
|
391
|
+
|
392
|
+
input[type="search"] {
|
393
|
+
-webkit-appearance: textfield; /* 1 */
|
394
|
+
-moz-box-sizing: content-box;
|
395
|
+
-webkit-box-sizing: content-box; /* 2 */
|
396
|
+
box-sizing: content-box;
|
397
|
+
}
|
398
|
+
|
399
|
+
/*
|
400
|
+
* Corrects inner padding displayed oddly in S5, Chrome on OSX
|
401
|
+
*/
|
402
|
+
|
403
|
+
input[type="search"]::-webkit-search-decoration {
|
404
|
+
-webkit-appearance: none;
|
405
|
+
}
|
406
|
+
|
407
|
+
/*
|
408
|
+
* Corrects inner padding and border displayed oddly in FF3/4
|
409
|
+
* www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
|
410
|
+
*/
|
411
|
+
|
412
|
+
button::-moz-focus-inner,
|
413
|
+
input::-moz-focus-inner {
|
414
|
+
border: 0;
|
415
|
+
padding: 0;
|
416
|
+
}
|
417
|
+
|
418
|
+
/*
|
419
|
+
* 1. Removes default vertical scrollbar in IE6/7/8/9
|
420
|
+
* 2. Improves readability and alignment in all browsers
|
421
|
+
*/
|
422
|
+
|
423
|
+
textarea {
|
424
|
+
overflow: auto; /* 1 */
|
425
|
+
vertical-align: top; /* 2 */
|
426
|
+
}
|
427
|
+
}
|
428
|
+
|
429
|
+
/* =============================================================================
|
430
|
+
Tables
|
431
|
+
========================================================================== */
|
432
|
+
@mixin base-normalize-table
|
433
|
+
{
|
434
|
+
/*
|
435
|
+
* Remove most spacing between table cells
|
436
|
+
*/
|
437
|
+
|
438
|
+
table {
|
439
|
+
border-collapse: collapse;
|
440
|
+
border-spacing: 0;
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
@mixin base-normalize
|
445
|
+
{
|
446
|
+
@include base-normalize-html5;
|
447
|
+
@include base-normalize-page;
|
448
|
+
@include base-normalize-links;
|
449
|
+
@include base-normalize-typography;
|
450
|
+
@include base-normalize-lists;
|
451
|
+
@include base-normalize-embed;
|
452
|
+
@include base-normalize-figures;
|
453
|
+
@include base-normalize-forms;
|
454
|
+
@include base-normalize-table;
|
455
|
+
}
|