compass-recipes 0.3.0.alpha.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +24 -27
- data/VERSION +1 -1
- data/lib/compass-recipes/sass_extensions.rb +1 -1
- data/stylesheets/_recipes.scss +3 -3
- data/stylesheets/recipes/_background.scss +10 -9
- data/stylesheets/recipes/_color.scss +23 -9
- data/stylesheets/recipes/_font.scss +12 -16
- data/stylesheets/recipes/_icon-font.scss +253 -168
- data/stylesheets/recipes/_image.scss +36 -0
- data/stylesheets/recipes/_media-queries.scss +24 -62
- data/stylesheets/recipes/_text.scss +1 -0
- data/stylesheets/recipes/_ui.scss +2 -2
- data/stylesheets/recipes/_utilities.scss +6 -0
- data/stylesheets/recipes/background/{_cicada.scss → _cicada-stripes.scss} +1 -1
- data/stylesheets/recipes/background/_gradients.scss +25 -16
- data/stylesheets/recipes/background/_metal.scss +57 -0
- data/stylesheets/recipes/color/_scheme.scss +8 -0
- data/stylesheets/recipes/color/scheme/_analog.scss +11 -0
- data/stylesheets/recipes/color/scheme/_complementary.scss +21 -0
- data/stylesheets/recipes/color/scheme/_split.scss +11 -0
- data/stylesheets/recipes/color/scheme/_subtle.scss +21 -0
- data/stylesheets/recipes/color/scheme/_tetra.scss +11 -0
- data/stylesheets/recipes/color/scheme/_triad.scss +11 -0
- data/stylesheets/recipes/effect/_corners-tucked.scss +2 -1
- data/stylesheets/recipes/effect/_folded-corner.scss +3 -3
- data/stylesheets/recipes/effect/_glass.scss +3 -3
- data/stylesheets/recipes/effect/_ribbon.scss +32 -25
- data/stylesheets/recipes/effect/_tape.scss +4 -4
- data/stylesheets/recipes/helper/_gravatar.scss +3 -5
- data/stylesheets/recipes/image/_dimensions.scss +69 -0
- data/stylesheets/recipes/image/_inline.scss +12 -0
- data/stylesheets/recipes/image/_sprite.scss +57 -0
- data/stylesheets/recipes/layout/_vertical-align.scss +19 -60
- data/stylesheets/recipes/layout/vertical-align/_block.scss +67 -0
- data/stylesheets/recipes/media-queries/_orientation.scss +21 -0
- data/stylesheets/recipes/media-queries/_resolution.scss +47 -0
- data/stylesheets/recipes/media-queries/_size.scss +81 -0
- data/stylesheets/recipes/media-queries/size/_height.scss +29 -0
- data/stylesheets/recipes/media-queries/size/_width.scss +31 -0
- data/stylesheets/recipes/shadow/drop/_lifted-corners.scss +39 -35
- data/stylesheets/recipes/shadow/drop/_transform-requirement.scss +3 -3
- data/stylesheets/recipes/shape/polygon/_triangle.scss +92 -64
- data/stylesheets/recipes/text/_gradient.scss +12 -0
- data/stylesheets/recipes/ui/_tooltip.scss +144 -0
- data/stylesheets/recipes/ui/menu/_dropdown.scss +1 -1
- data/stylesheets/recipes/{shared → utilities}/_block-inline-block.scss +0 -0
- data/stylesheets/recipes/{shared → utilities}/_clearfix.scss +0 -0
- data/stylesheets/recipes/{shared → utilities}/_list-inline-block.scss +2 -2
- data/stylesheets/recipes/utilities/_position.scss +13 -0
- data/stylesheets/recipes/utilities/_pseudo-element.scss +23 -0
- data/stylesheets/recipes/utilities/_relative-position.scss +85 -0
- data/templates/gravatar/README.md +36 -0
- data/templates/gravatar/gravatar.js +102 -105
- data/templates/gravatar/manifest.rb +3 -2
- data/templates/icon-fonts/README.md +149 -0
- data/templates/icon-fonts/icons/broccolidry/broccolidry.eot +0 -0
- data/templates/icon-fonts/icons/broccolidry/broccolidry.svg +759 -0
- data/templates/icon-fonts/icons/broccolidry/broccolidry.ttf +0 -0
- data/templates/icon-fonts/icons/broccolidry/broccolidry.woff +0 -0
- data/templates/icon-fonts/icons/broccolidry/license.txt +2 -0
- data/templates/icon-fonts/icons/cuticons/cuticons.eot +0 -0
- data/templates/icon-fonts/icons/cuticons/cuticons.svg +165 -0
- data/templates/icon-fonts/icons/cuticons/cuticons.ttf +0 -0
- data/templates/icon-fonts/icons/cuticons/cuticons.woff +0 -0
- data/templates/icon-fonts/icons/cuticons/license.txt +2 -0
- data/templates/icon-fonts/icons/ecoico/ecoico.eot +0 -0
- data/templates/icon-fonts/icons/ecoico/ecoico.svg +180 -0
- data/templates/icon-fonts/icons/ecoico/ecoico.ttf +0 -0
- data/templates/icon-fonts/icons/ecoico/ecoico.woff +0 -0
- data/templates/icon-fonts/icons/ecoico/license.txt +2 -0
- data/templates/icon-fonts/icons/entypo/entypo.eot +0 -0
- data/templates/icon-fonts/icons/entypo/entypo.svg +792 -0
- data/templates/icon-fonts/icons/entypo/entypo.ttf +0 -0
- data/templates/icon-fonts/icons/entypo/entypo.woff +0 -0
- data/templates/icon-fonts/icons/fontawesome/README.md +18 -0
- data/templates/icon-fonts/icons/fontawesome/fontawesome.eot +0 -0
- data/templates/icon-fonts/icons/fontawesome/fontawesome.svg +255 -0
- data/templates/icon-fonts/icons/fontawesome/fontawesome.ttf +0 -0
- data/templates/icon-fonts/icons/fontawesome/fontawesome.woff +0 -0
- data/fonts/icons/heydings-controls/SIL Open Font License 1.1.txt b/data/templates/icon-fonts/icons/heydings_controls/SIL Open Font License → 1.1.txt +0 -0
- data/{fonts/icons/heydings-controls/heydings_controls-webfont.eot → templates/icon-fonts/icons/heydings_controls/heydings_controls.eot} +0 -0
- data/{fonts/icons/heydings-controls/heydings_controls-webfont.svg → templates/icon-fonts/icons/heydings_controls/heydings_controls.svg} +0 -0
- data/{fonts/icons/heydings-controls/heydings_controls-webfont.ttf → templates/icon-fonts/icons/heydings_controls/heydings_controls.ttf} +0 -0
- data/{fonts/icons/heydings-controls/heydings_controls-webfont.woff → templates/icon-fonts/icons/heydings_controls/heydings_controls.woff} +0 -0
- data/fonts/icons/heydings/SIL Open Font License 1.1.txt b/data/templates/icon-fonts/icons/heydings_icons/SIL Open Font License → 1.1.txt +0 -0
- data/{fonts/icons/heydings/heydings_icons-webfont.eot → templates/icon-fonts/icons/heydings_icons/heydings_icons.eot} +0 -0
- data/{fonts/icons/heydings/heydings_icons-webfont.svg → templates/icon-fonts/icons/heydings_icons/heydings_icons.svg} +0 -0
- data/{fonts/icons/heydings/heydings_icons-webfont.ttf → templates/icon-fonts/icons/heydings_icons/heydings_icons.ttf} +0 -0
- data/{fonts/icons/heydings/heydings_icons-webfont.woff → templates/icon-fonts/icons/heydings_icons/heydings_icons.woff} +0 -0
- data/templates/icon-fonts/icons/icomoon/License.txt +2 -0
- data/templates/icon-fonts/icons/icomoon/icomoon.eot +0 -0
- data/templates/icon-fonts/icons/icomoon/icomoon.svg +1348 -0
- data/templates/icon-fonts/icons/icomoon/icomoon.ttf +0 -0
- data/templates/icon-fonts/icons/icomoon/icomoon.woff +0 -0
- data/fonts/icons/iconic/SIL Open Font License 1.1.txt b/data/templates/icon-fonts/icons/iconic_fill/SIL Open Font License → 1.1.txt +0 -0
- data/templates/icon-fonts/icons/iconic_fill/iconic_fill.eot +0 -0
- data/templates/icon-fonts/icons/iconic_fill/iconic_fill.svg +539 -0
- data/templates/icon-fonts/icons/iconic_fill/iconic_fill.ttf +0 -0
- data/templates/icon-fonts/icons/iconic_fill/iconic_fill.woff +0 -0
- data/templates/icon-fonts/fonts/icons/heydings-controls/SIL Open Font License 1.1.txt b/data/templates/icon-fonts/icons/iconic_stroke/SIL Open Font License → 1.1.txt +0 -0
- data/templates/icon-fonts/icons/iconic_stroke/iconic_stroke.eot +0 -0
- data/templates/icon-fonts/icons/iconic_stroke/iconic_stroke.svg +553 -0
- data/templates/icon-fonts/icons/iconic_stroke/iconic_stroke.ttf +0 -0
- data/templates/icon-fonts/icons/iconic_stroke/iconic_stroke.woff +0 -0
- data/templates/icon-fonts/icons/iconminia/iconminia.eot +0 -0
- data/templates/icon-fonts/icons/iconminia/iconminia.svg +357 -0
- data/templates/icon-fonts/icons/iconminia/iconminia.ttf +0 -0
- data/templates/icon-fonts/icons/iconminia/iconminia.woff +0 -0
- data/templates/icon-fonts/icons/iconminia/license.txt +2 -0
- data/templates/icon-fonts/icons/meteocons/license.txt +2 -0
- data/templates/icon-fonts/icons/meteocons/meteocons.eot +0 -0
- data/templates/icon-fonts/icons/meteocons/meteocons.svg +511 -0
- data/templates/icon-fonts/icons/meteocons/meteocons.ttf +0 -0
- data/templates/icon-fonts/icons/meteocons/meteocons.woff +0 -0
- data/fonts/icons/modern-pictograms/Modern Pictograms SIL OFL Font License 1.1.txt b/data/templates/icon-fonts/icons/modern_pictograms/SIL OFL Font License → 1.1.txt +0 -0
- data/{fonts/icons/modern-pictograms/modernpics-webfont.eot → templates/icon-fonts/icons/modern_pictograms/modern_pictograms.eot} +0 -0
- data/{fonts/icons/modern-pictograms/modernpics-webfont.svg → templates/icon-fonts/icons/modern_pictograms/modern_pictograms.svg} +0 -0
- data/{fonts/icons/modern-pictograms/modernpics-webfont.ttf → templates/icon-fonts/icons/modern_pictograms/modern_pictograms.ttf} +0 -0
- data/{fonts/icons/modern-pictograms/modernpics-webfont.woff → templates/icon-fonts/icons/modern_pictograms/modern_pictograms.woff} +0 -0
- data/templates/icon-fonts/icons/silkcons/license.txt +2 -0
- data/templates/icon-fonts/icons/silkcons/silkcons.eot +0 -0
- data/templates/icon-fonts/icons/silkcons/silkcons.svg +301 -0
- data/templates/icon-fonts/icons/silkcons/silkcons.ttf +0 -0
- data/templates/icon-fonts/icons/silkcons/silkcons.woff +0 -0
- data/{fonts → templates/icon-fonts}/icons/socialico/FFF_EULA_license.pdf +0 -0
- data/{fonts/icons/socialico/socialico-webfont.eot → templates/icon-fonts/icons/socialico/socialico.eot} +0 -0
- data/{fonts/icons/socialico/Socialico-webfont.otf → templates/icon-fonts/icons/socialico/socialico.otf} +0 -0
- data/{fonts/icons/socialico/socialico-webfont.svg → templates/icon-fonts/icons/socialico/socialico.svg} +0 -0
- data/{fonts/icons/socialico/socialico-webfont.ttf → templates/icon-fonts/icons/socialico/socialico.ttf} +0 -0
- data/{fonts/icons/socialico/socialico-webfont.woff → templates/icon-fonts/icons/socialico/socialico.woff} +0 -0
- data/templates/icon-fonts/icons/typicons/license.txt +2 -0
- data/templates/icon-fonts/icons/typicons/typicons.eot +0 -0
- data/templates/icon-fonts/icons/typicons/typicons.svg +329 -0
- data/templates/icon-fonts/icons/typicons/typicons.ttf +0 -0
- data/templates/icon-fonts/icons/typicons/typicons.woff +0 -0
- data/{fonts → templates/icon-fonts}/icons/websymbols/OFL-FAQ.txt +0 -0
- data/{fonts → templates/icon-fonts}/icons/websymbols/OFL.txt +0 -0
- data/{fonts/icons/websymbols/websymbols-regular-webfont.eot → templates/icon-fonts/icons/websymbols/websymbols.eot} +0 -0
- data/{fonts/icons/websymbols/websymbols-regular-webfont.svg → templates/icon-fonts/icons/websymbols/websymbols.svg} +0 -0
- data/{fonts/icons/websymbols/websymbols-regular-webfont.ttf → templates/icon-fonts/icons/websymbols/websymbols.ttf} +0 -0
- data/{fonts/icons/websymbols/websymbols-regular-webfont.woff → templates/icon-fonts/icons/websymbols/websymbols.woff} +0 -0
- data/templates/icon-fonts/icons/wpzoom/license.txt +2 -0
- data/templates/icon-fonts/icons/wpzoom/wpzoom.eot +0 -0
- data/templates/icon-fonts/icons/wpzoom/wpzoom.svg +887 -0
- data/templates/icon-fonts/icons/wpzoom/wpzoom.ttf +0 -0
- data/templates/icon-fonts/icons/wpzoom/wpzoom.woff +0 -0
- data/templates/icon-fonts/manifest.rb +3 -3
- data/templates/media-queries-for-js/README.md +45 -0
- data/templates/media-queries-for-js/manifest.rb +18 -0
- data/templates/media-queries-for-js/media-queries.js +21 -0
- metadata +157 -143
- data/fonts/icons/entypo/entypo-webfont.eot +0 -0
- data/fonts/icons/entypo/entypo-webfont.svg +0 -198
- data/fonts/icons/entypo/entypo-webfont.ttf +0 -0
- data/fonts/icons/entypo/entypo-webfont.woff +0 -0
- data/fonts/icons/heydings-controls/demo.html +0 -33
- data/fonts/icons/heydings-controls/stylesheet.css +0 -16
- data/fonts/icons/heydings/demo.html +0 -33
- data/fonts/icons/heydings/stylesheet.css +0 -16
- data/fonts/icons/icomoon/License.txt +0 -1
- data/fonts/icons/icomoon/Read Me.txt +0 -5
- data/fonts/icons/icomoon/icomoon.eot +0 -0
- data/fonts/icons/icomoon/icomoon.svg +0 -35
- data/fonts/icons/icomoon/icomoon.ttf +0 -0
- data/fonts/icons/icomoon/icomoon.woff +0 -0
- data/fonts/icons/iconic/demo.html +0 -38
- data/fonts/icons/iconic/iconic_fill.eot +0 -0
- data/fonts/icons/iconic/iconic_fill.svg +0 -475
- 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 +0 -492
- data/fonts/icons/iconic/iconic_stroke.ttf +0 -0
- data/fonts/icons/iconic/iconic_stroke.woff +0 -0
- data/fonts/icons/iconic/stylesheet.css +0 -28
- data/fonts/icons/modern-pictograms/demo.html +0 -33
- data/fonts/icons/modern-pictograms/stylesheet.css +0 -16
- data/lib/compass-recipes/sass_extensions/math.rb +0 -8
- data/stylesheets/recipes/_base.scss +0 -1
- data/stylesheets/recipes/_shared.scss +0 -4
- data/stylesheets/recipes/base/_normalize.scss +0 -587
- data/stylesheets/recipes/shared/_pseudo-element.scss +0 -30
- data/stylesheets/recipes/ui/_helper.scss +0 -1
- data/stylesheets/recipes/ui/helper/_arrow.scss +0 -78
- data/templates/gravatar/getElementsByClassName.js +0 -23
- data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/entypo/entypo-webfont.svg +0 -198
- 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/demo.html +0 -33
- 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 +0 -85
- 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 +0 -16
- data/templates/icon-fonts/fonts/icons/heydings/SIL Open Font License 1.1.txt +0 -91
- data/templates/icon-fonts/fonts/icons/heydings/demo.html +0 -33
- data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/heydings/heydings_icons-webfont.svg +0 -94
- 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 +0 -16
- data/templates/icon-fonts/fonts/icons/icomoon/License.txt +0 -1
- data/templates/icon-fonts/fonts/icons/icomoon/Read Me.txt +0 -5
- data/templates/icon-fonts/fonts/icons/icomoon/icomoon.eot +0 -0
- data/templates/icon-fonts/fonts/icons/icomoon/icomoon.svg +0 -35
- 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 +0 -91
- data/templates/icon-fonts/fonts/icons/iconic/demo.html +0 -38
- data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.eot +0 -0
- data/templates/icon-fonts/fonts/icons/iconic/iconic_fill.svg +0 -475
- 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 +0 -492
- 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 +0 -28
- data/templates/icon-fonts/fonts/icons/modern-pictograms/Modern Pictograms SIL OFL Font License 1.1.txt +0 -94
- data/templates/icon-fonts/fonts/icons/modern-pictograms/demo.html +0 -33
- data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/modern-pictograms/modernpics-webfont.svg +0 -136
- 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 +0 -16
- 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 +0 -123
- 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 +0 -369
- data/templates/icon-fonts/fonts/icons/websymbols/OFL.txt +0 -97
- data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.eot +0 -0
- data/templates/icon-fonts/fonts/icons/websymbols/websymbols-regular-webfont.svg +0 -108
- 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
@@ -8,14 +8,19 @@
|
|
8
8
|
// @author Maxime Thirouin m@moox.fr @MoOx
|
9
9
|
///
|
10
10
|
|
11
|
-
@import "compass/css3
|
12
|
-
@import "recipes/
|
11
|
+
@import "compass/css3";
|
12
|
+
@import "recipes/utilities/pseudo-element";
|
13
13
|
|
14
|
-
@mixin effect-ribbon-corner(
|
14
|
+
@mixin effect-ribbon-corner(
|
15
|
+
$position: 'top left',
|
16
|
+
$width: 10em, $height: 2em, $lines: 1,
|
17
|
+
$skin: 'classic', $width-add: 0, $height-add: 0,
|
18
|
+
$offset-v: 0, $offset-h: 0
|
19
|
+
)
|
15
20
|
{
|
16
21
|
position: absolute;
|
17
22
|
text-align: center;
|
18
|
-
box-sizing
|
23
|
+
@include box-sizing(border-box);
|
19
24
|
|
20
25
|
width: $width;
|
21
26
|
height: $height;
|
@@ -36,7 +41,7 @@
|
|
36
41
|
$transform-origin-x: 100%;
|
37
42
|
//$transform-origin-y: 100%;
|
38
43
|
}
|
39
|
-
@
|
44
|
+
@else if ($position == 'bottom right')
|
40
45
|
{
|
41
46
|
$position-v: bottom;
|
42
47
|
$position-h: right;
|
@@ -44,7 +49,7 @@
|
|
44
49
|
$transform-origin-x: 100%;
|
45
50
|
$transform-origin-y: 0;
|
46
51
|
}
|
47
|
-
@
|
52
|
+
@else if ($position == 'bottom left')
|
48
53
|
{
|
49
54
|
$position-v: bottom;
|
50
55
|
//$position-h: left;
|
@@ -67,8 +72,8 @@
|
|
67
72
|
|
68
73
|
// here is the awesome trick !
|
69
74
|
$value: pow($width + $width-add, 2) / 2 ;
|
70
|
-
#{$position-v}: sqrt($value) - $height - $height-add;
|
71
|
-
#{$position-h}: 0;
|
75
|
+
#{$position-v}: sqrt($value) - $height - $height-add + $offset-v;
|
76
|
+
#{$position-h}: 0 + $offset-h;
|
72
77
|
|
73
78
|
@include transform(rotate($angle));
|
74
79
|
@include transform-origin($transform-origin-x, $transform-origin-y);
|
@@ -76,35 +81,37 @@
|
|
76
81
|
|
77
82
|
%effect-ribbon-skin-classic
|
78
83
|
{
|
79
|
-
color: #fff;
|
84
|
+
$color: #fff;
|
85
|
+
$border-width: 1px;
|
86
|
+
$border-color: #631a15;
|
87
|
+
$border-dot-subcolor: #da5050;
|
88
|
+
$border-dot-offset: 3px;
|
89
|
+
|
90
|
+
color: $color;
|
80
91
|
text-shadow: 0 1px 0 rgba(#000, .8);
|
81
92
|
|
82
|
-
border:
|
93
|
+
border: $border-width solid $border-color;
|
94
|
+
|
83
95
|
background: rgb(199,59,60); //fallback
|
84
96
|
@include background(linear-gradient(rgb(199,59,60),rgb(184,32,31)));
|
85
97
|
box-shadow: 0 .2em .6em rgba(#000, .6);
|
86
98
|
|
87
|
-
//
|
88
|
-
&:before
|
89
|
-
{
|
90
|
-
border: 1px dashed #da5050;
|
91
|
-
margin-top: 1px;
|
92
|
-
}
|
93
|
-
&:after
|
94
|
-
{
|
95
|
-
border: 1px dashed #631a15;
|
96
|
-
}
|
97
|
-
|
99
|
+
// todo replace this use of pseudo elements by appropriate backgrounds properties (tricky gradients)
|
98
100
|
&:before,
|
99
|
-
&:after
|
100
|
-
|
101
|
-
|
102
|
-
top: 7%;
|
101
|
+
&:after {
|
102
|
+
@include pseudo-element(100%, 0);
|
103
|
+
border: $border-width dashed;
|
103
104
|
border-left: 0;
|
104
105
|
border-right: 0;
|
106
|
+
border-top-color: $border-color;
|
107
|
+
border-bottom-color: $border-dot-subcolor;
|
105
108
|
}
|
109
|
+
|
110
|
+
&:before { top: $border-dot-offset; }
|
111
|
+
&:after { bottom: $border-dot-offset - $border-width *2; }
|
106
112
|
}
|
107
113
|
|
114
|
+
// @todo ?
|
108
115
|
//%effect-ribbon-skin-github
|
109
116
|
//{
|
110
117
|
//
|
@@ -1,13 +1,13 @@
|
|
1
1
|
////
|
2
2
|
// Scotch tape effect with pure CSS
|
3
|
-
//
|
3
|
+
//
|
4
4
|
// @thanks Nick La @nickla for original concept
|
5
5
|
// @link http://webdesignerwall.com/tutorials/css3-image-styles
|
6
|
-
//
|
6
|
+
//
|
7
7
|
// @author David Kaneda http://www.davidkaneda.com
|
8
8
|
///
|
9
9
|
|
10
|
-
@import "
|
10
|
+
@import "recipes/utilities/pseudo-element";
|
11
11
|
|
12
12
|
$tape-width: 60px !default;
|
13
13
|
$tape-height: 25px !default;
|
@@ -25,7 +25,7 @@ $tape-angle: -2deg !default;
|
|
25
25
|
{
|
26
26
|
overflow: visible;
|
27
27
|
&:after {
|
28
|
-
@include pseudo-element($width
|
28
|
+
@include pseudo-element($width, $height);
|
29
29
|
top: ceil(-$height/2);
|
30
30
|
left: 50%;
|
31
31
|
margin-left: -$width/2;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
// @author Maxime Thirouin m@moox.fr @MoOx
|
10
10
|
///
|
11
11
|
|
12
|
-
@import "recipes/
|
12
|
+
@import "recipes/utilities/pseudo-element";
|
13
13
|
|
14
14
|
// default values
|
15
15
|
$helper-gravatar-size: 48px !default;
|
@@ -57,7 +57,7 @@ $helper-gravatar-ssl: false !default;
|
|
57
57
|
$ssl: $helper-gravatar-ssl
|
58
58
|
)
|
59
59
|
{
|
60
|
-
@include pseudo-element($size, $size, $position:
|
60
|
+
@include pseudo-element($size, $size, $position: null);
|
61
61
|
@include helper-gravatar-base($email, $size, $default, $rating, $ssl);
|
62
62
|
}
|
63
63
|
|
@@ -70,9 +70,7 @@ $helper-gravatar-ssl: false !default;
|
|
70
70
|
{
|
71
71
|
&:#{$pseudo}
|
72
72
|
{
|
73
|
-
@include pseudo-element($size, $size, $position:
|
74
|
-
width: $size;
|
75
|
-
height: $size;
|
73
|
+
@include pseudo-element($size, $size, $position: null);
|
76
74
|
background-repeat: no-repeat;
|
77
75
|
}
|
78
76
|
|
@@ -0,0 +1,69 @@
|
|
1
|
+
// image-dimensions(img_src)
|
2
|
+
// $img - image path
|
3
|
+
// $dimensions: list explaining which dimensions we should include (width height line-height).
|
4
|
+
// By default it's set to `true` which is equivalent to width: true height: true line-height: false
|
5
|
+
// You can pass `true false` to have only width, or `false false true` to only have line-height
|
6
|
+
@mixin image-dimensions($img, $dimensions: true)
|
7
|
+
{
|
8
|
+
$args: length($dimensions);
|
9
|
+
$width: nth($dimensions, 1);
|
10
|
+
$height: false;
|
11
|
+
$line-height: false;
|
12
|
+
@if ($width == all)
|
13
|
+
{
|
14
|
+
$width: true;
|
15
|
+
$height: true;
|
16
|
+
$line-height: true;
|
17
|
+
}
|
18
|
+
@if ($args>1)
|
19
|
+
{
|
20
|
+
$height: nth($dimensions, 2);
|
21
|
+
@if ($args>2)
|
22
|
+
{
|
23
|
+
$line-height: nth($dimensions, 3);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
@else
|
27
|
+
{
|
28
|
+
$height: $width;
|
29
|
+
}
|
30
|
+
|
31
|
+
// width
|
32
|
+
@if ($width == true)
|
33
|
+
{
|
34
|
+
@include image-width($img);
|
35
|
+
}
|
36
|
+
@else if($width != false)
|
37
|
+
{
|
38
|
+
width: $width;
|
39
|
+
}
|
40
|
+
|
41
|
+
// height & line-height
|
42
|
+
@if ($height == true)
|
43
|
+
{
|
44
|
+
@include image-height($img);
|
45
|
+
}
|
46
|
+
@else if($height != false)
|
47
|
+
{
|
48
|
+
height: $height;
|
49
|
+
}
|
50
|
+
|
51
|
+
@if ($line-height == true)
|
52
|
+
{
|
53
|
+
line-height: image-height($img);
|
54
|
+
}
|
55
|
+
@else if($line-height != false)
|
56
|
+
{
|
57
|
+
line-height: $line-height;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
@mixin image-width($img)
|
62
|
+
{
|
63
|
+
width: image-width($img);
|
64
|
+
}
|
65
|
+
|
66
|
+
@mixin image-height($img)
|
67
|
+
{
|
68
|
+
height: image-height($img);
|
69
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@import "recipes/image/dimensions";
|
2
|
+
|
3
|
+
@mixin image-inline($image)
|
4
|
+
{
|
5
|
+
background: inline_image($image) no-repeat;
|
6
|
+
}
|
7
|
+
|
8
|
+
@mixin image-inline-with-dimensions($image)
|
9
|
+
{
|
10
|
+
background: inline_image($image) no-repeat;
|
11
|
+
@include image-dimensions($image)
|
12
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
////
|
2
|
+
// Sprites mixin/functions to make ti easier to deal with simple simple sprite
|
3
|
+
//
|
4
|
+
// $simple-sprite-map: simple-sprite();
|
5
|
+
// rule { @include sprite-item(image-name)} // output background: {image-}url("sprite/image-name.png") x y no-repeat;
|
6
|
+
////
|
7
|
+
|
8
|
+
@import "recipes/image/dimensions";
|
9
|
+
@import "compass/typography/text/replacement";
|
10
|
+
|
11
|
+
$simple-sprite-path: "sprite" !default;
|
12
|
+
$simple-sprite-map: null !default;
|
13
|
+
|
14
|
+
// create simple sprite from image in $simple-sprite-path (default to "sprite" folder)
|
15
|
+
@function simple-sprite-map()
|
16
|
+
{
|
17
|
+
@return sprite-map($simple-sprite-path + "/*.png");
|
18
|
+
}
|
19
|
+
|
20
|
+
// return complete filename of the given sprite item
|
21
|
+
@function sprite-item-file($image, $sprite-map: $simple-sprite-map)
|
22
|
+
{
|
23
|
+
@return sprite-file($sprite-map, $image);
|
24
|
+
}
|
25
|
+
|
26
|
+
// return width of the given sprite item
|
27
|
+
@function sprite-item-width($image, $sprite-map: $simple-sprite-map)
|
28
|
+
{
|
29
|
+
@return image-width(sprite-item-file($image, $sprite-map));
|
30
|
+
}
|
31
|
+
|
32
|
+
// return height of the given sprite item
|
33
|
+
@function sprite-item-height($image, $sprite-map: $simple-sprite-map)
|
34
|
+
{
|
35
|
+
@return image-height(sprite-item-file($image, $sprite-map));
|
36
|
+
}
|
37
|
+
|
38
|
+
// include background property to use the sprite item
|
39
|
+
@mixin sprite-item($image, $x: 0, $y: 0, $repeat: no-repeat, $sprite-map: $simple-sprite-map)
|
40
|
+
{
|
41
|
+
background: sprite($sprite-map, $image, $x, $y) $repeat;
|
42
|
+
}
|
43
|
+
|
44
|
+
// include background property to use the sprite item + width & height (& line-height if you want (e.g. for button background))
|
45
|
+
// do not forget to use a appropriated display property (like block or inline-block
|
46
|
+
@mixin sprite-item-with-dimensions($image, $line-height: false, $x: 0, $y: 0, $sprite-map: $simple-sprite-map)
|
47
|
+
{
|
48
|
+
@include image-dimensions(sprite-item-file($image, $sprite-map), true true $line-height);
|
49
|
+
@include sprite-item($image, $x, $y, $sprite-map: $sprite-map);
|
50
|
+
}
|
51
|
+
|
52
|
+
// include sprite item with dimensions (see sprite-item-with-dimensions()) + hide-text
|
53
|
+
@mixin sprite-item-replacement($image, $line-height: false, $x: 0, $y: 0, $sprite-map: $simple-sprite-map)
|
54
|
+
{
|
55
|
+
@include hide-text();
|
56
|
+
@include sprite-item-with-dimensions($image, $line-height, $x, $y, $sprite-map);
|
57
|
+
}
|
@@ -1,65 +1,24 @@
|
|
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
|
-
///
|
1
|
+
@import "recipes/layout/vertical-align/block";
|
25
2
|
|
26
|
-
|
3
|
+
// Simple vertical align mixin
|
4
|
+
// Parent must have the same height & line-height. It's does the trick
|
5
|
+
// (use vertical-align-parent-height() mixin)
|
6
|
+
// $line-height - original line-height to set back
|
7
|
+
// $vertical-align - vertical align wanted
|
8
|
+
// $text-align - optional text-align, can be set to null if not wanted
|
9
|
+
@mixin vertical-align($line-height: 1, $vertical-align: middle, $text-align: center)
|
27
10
|
{
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
11
|
+
display: inline-block;
|
12
|
+
line-height: $line-height;
|
13
|
+
vertical-align: $vertical-align;
|
14
|
+
@if ($text-align != null)
|
15
|
+
{
|
16
|
+
text-align: $text-align;
|
17
|
+
}
|
35
18
|
}
|
36
19
|
|
37
|
-
@mixin vertical-align-
|
20
|
+
@mixin vertical-align-parent-height($height)
|
38
21
|
{
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
margin-left: auto;
|
43
|
-
margin-right: auto;
|
44
|
-
height: 100%;
|
45
|
-
|
46
|
-
// ie6 ie7
|
47
|
-
*position:relative;
|
48
|
-
}
|
49
|
-
|
50
|
-
@mixin vertical-align-content-container
|
51
|
-
{
|
52
|
-
display: table-cell;
|
53
|
-
vertical-align: middle;
|
54
|
-
|
55
|
-
// ie6 ie7
|
56
|
-
*position: absolute;
|
57
|
-
*top: 50%;
|
58
|
-
}
|
59
|
-
|
60
|
-
@mixin vertical-align-content
|
61
|
-
{
|
62
|
-
// ie6 ie7
|
63
|
-
*position: relative;
|
64
|
-
*top: -50%;
|
65
|
-
}
|
22
|
+
height: $height;
|
23
|
+
line-height: $height;
|
24
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
////
|
2
|
+
// Vertical alignement for block
|
3
|
+
// Inspired by http://css-tricks.com/snippets/css/center-div-with-dynamic-height/
|
4
|
+
//
|
5
|
+
// @usage
|
6
|
+
// --sass
|
7
|
+
// @include vertical-align-block-page; // if your content is the entire webpage
|
8
|
+
// .v-align-wrapper { @include vertical-align-block-wrapper }
|
9
|
+
// .v-align-content { @include vertical-align-block }
|
10
|
+
// if you support ie lte 7
|
11
|
+
// .v-align-content { @include vertical-align-block-fallback }
|
12
|
+
// --html
|
13
|
+
// <body>
|
14
|
+
// <div class="v-align-wrapper">
|
15
|
+
// <div class="v-align-content">
|
16
|
+
// <div class="v-align-fallback"> <!-- wrapper for ie lte 7 support -->
|
17
|
+
// Your content !
|
18
|
+
// </div>
|
19
|
+
// </div>
|
20
|
+
// </div>
|
21
|
+
// </body>
|
22
|
+
//
|
23
|
+
// @thanks Chris Coyier @chriscoyier
|
24
|
+
// @author Maxime Thirouin m@moox.fr @MoOx
|
25
|
+
///
|
26
|
+
|
27
|
+
// Use this if your content is the entire webpage
|
28
|
+
@mixin vertical-align-block-page
|
29
|
+
{
|
30
|
+
html,
|
31
|
+
body
|
32
|
+
{
|
33
|
+
height:100%;
|
34
|
+
margin: 0;
|
35
|
+
padding: 0;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin vertical-align-block-wrapper
|
40
|
+
{
|
41
|
+
|
42
|
+
display: table;
|
43
|
+
overflow: hidden;
|
44
|
+
margin-left: auto;
|
45
|
+
margin-right: auto;
|
46
|
+
height: 100%;
|
47
|
+
|
48
|
+
// ie6 ie7
|
49
|
+
*position:relative;
|
50
|
+
}
|
51
|
+
|
52
|
+
@mixin vertical-align-block
|
53
|
+
{
|
54
|
+
display: table-cell;
|
55
|
+
vertical-align: middle;
|
56
|
+
|
57
|
+
// ie6 ie7
|
58
|
+
*position: absolute;
|
59
|
+
*top: 50%;
|
60
|
+
}
|
61
|
+
// if you support ie lte 7, you need to add an additionnal wrapper under the `vertical-align-block` element
|
62
|
+
@mixin vertical-align-block-fallback
|
63
|
+
{
|
64
|
+
// ie6 ie7
|
65
|
+
*position: relative;
|
66
|
+
*top: -50%;
|
67
|
+
}
|