comixins 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +8 -0
- data/.rubocop.yml +26 -0
- data/Gemfile +2 -0
- data/README.md +35 -0
- data/comixins.gemspec +20 -0
- data/lib/comixins/version.rb +1 -1
- data/vendor/assets/stylesheets/LICENSE.markdown +29 -0
- data/vendor/assets/stylesheets/LICENSE_backup.md +29 -0
- data/vendor/assets/stylesheets/_animate.scss +3 -0
- data/vendor/assets/stylesheets/_compass.scss +4 -0
- data/vendor/assets/stylesheets/_lemonade.scss +38 -0
- data/vendor/assets/stylesheets/animation/_animate.scss +31 -0
- data/vendor/assets/stylesheets/animation/_core.scss +127 -0
- data/vendor/assets/stylesheets/animation/_shared.scss +22 -0
- data/vendor/assets/stylesheets/animation/animate/_attention-seekers.scss +152 -0
- data/vendor/assets/stylesheets/animation/animate/_bouncing.scss +3 -0
- data/vendor/assets/stylesheets/animation/animate/_classes.scss +21 -0
- data/vendor/assets/stylesheets/animation/animate/_fading.scss +3 -0
- data/vendor/assets/stylesheets/animation/animate/_flippers.scss +87 -0
- data/vendor/assets/stylesheets/animation/animate/_lightspeed.scss +24 -0
- data/vendor/assets/stylesheets/animation/animate/_rotating.scss +3 -0
- data/vendor/assets/stylesheets/animation/animate/_specials.scss +42 -0
- data/vendor/assets/stylesheets/animation/animate/bouncing/_bouncing-entrances.scss +68 -0
- data/vendor/assets/stylesheets/animation/animate/bouncing/_bouncing-exits.scss +60 -0
- data/vendor/assets/stylesheets/animation/animate/fading/_fading-entrances.scss +86 -0
- data/vendor/assets/stylesheets/animation/animate/fading/_fading-exits.scss +86 -0
- data/vendor/assets/stylesheets/animation/animate/rotating/_rotating-entrances.scss +58 -0
- data/vendor/assets/stylesheets/animation/animate/rotating/_rotating-exits.scss +58 -0
- data/vendor/assets/stylesheets/comixins.scss +1 -0
- data/vendor/assets/stylesheets/compass/_css3.scss +22 -0
- data/vendor/assets/stylesheets/compass/_functions.scss +6 -0
- data/vendor/assets/stylesheets/compass/_layout.scss +3 -0
- data/vendor/assets/stylesheets/compass/_reset-legacy.scss +3 -0
- data/vendor/assets/stylesheets/compass/_reset.scss +3 -0
- data/vendor/assets/stylesheets/compass/_support.scss +40 -0
- data/vendor/assets/stylesheets/compass/_typography.scss +4 -0
- data/vendor/assets/stylesheets/compass/_utilities.scss +9 -0
- data/vendor/assets/stylesheets/compass/css3/_animation.scss +2 -0
- data/vendor/assets/stylesheets/compass/css3/_appearance.scss +16 -0
- data/vendor/assets/stylesheets/compass/css3/_background-clip.scss +43 -0
- data/vendor/assets/stylesheets/compass/css3/_background-origin.scss +42 -0
- data/vendor/assets/stylesheets/compass/css3/_background-size.scss +26 -0
- data/vendor/assets/stylesheets/compass/css3/_border-radius.scss +130 -0
- data/vendor/assets/stylesheets/compass/css3/_box-shadow.scss +76 -0
- data/vendor/assets/stylesheets/compass/css3/_box-sizing.scss +13 -0
- data/vendor/assets/stylesheets/compass/css3/_box.scss +111 -0
- data/vendor/assets/stylesheets/compass/css3/_columns.scss +148 -0
- data/vendor/assets/stylesheets/compass/css3/_filter.scss +23 -0
- data/vendor/assets/stylesheets/compass/css3/_flexbox.scss +86 -0
- data/vendor/assets/stylesheets/compass/css3/_font-face.scss +48 -0
- data/vendor/assets/stylesheets/compass/css3/_hyphenation.scss +77 -0
- data/vendor/assets/stylesheets/compass/css3/_images.scss +133 -0
- data/vendor/assets/stylesheets/compass/css3/_inline-block.scss +22 -0
- data/vendor/assets/stylesheets/compass/css3/_opacity.scss +19 -0
- data/vendor/assets/stylesheets/compass/css3/_pie.scss +73 -0
- data/vendor/assets/stylesheets/compass/css3/_regions.scss +22 -0
- data/vendor/assets/stylesheets/compass/css3/_shared.scss +38 -0
- data/vendor/assets/stylesheets/compass/css3/_text-shadow.scss +87 -0
- data/vendor/assets/stylesheets/compass/css3/_transform-legacy.scss +87 -0
- data/vendor/assets/stylesheets/compass/css3/_transform.scss +598 -0
- data/vendor/assets/stylesheets/compass/css3/_transition.scss +221 -0
- data/vendor/assets/stylesheets/compass/css3/_user-interface.scss +47 -0
- data/vendor/assets/stylesheets/compass/functions/_colors.scss +37 -0
- data/vendor/assets/stylesheets/compass/functions/_constants.scss +18 -0
- data/vendor/assets/stylesheets/compass/functions/_cross_browser_support.scss +72 -0
- data/vendor/assets/stylesheets/compass/functions/_display.scss +36 -0
- data/vendor/assets/stylesheets/compass/functions/_gradient_support.scss +15 -0
- data/vendor/assets/stylesheets/compass/functions/_lists.scss +90 -0
- data/vendor/assets/stylesheets/compass/layout/_grid-background.scss +178 -0
- data/vendor/assets/stylesheets/compass/layout/_sticky-footer.scss +23 -0
- data/vendor/assets/stylesheets/compass/layout/_stretching.scss +24 -0
- data/vendor/assets/stylesheets/compass/reset/_utilities-legacy.scss +135 -0
- data/vendor/assets/stylesheets/compass/reset/_utilities.scss +142 -0
- data/vendor/assets/stylesheets/compass/typography/_links.scss +3 -0
- data/vendor/assets/stylesheets/compass/typography/_lists.scss +4 -0
- data/vendor/assets/stylesheets/compass/typography/_text.scss +4 -0
- data/vendor/assets/stylesheets/compass/typography/_vertical_rhythm.scss +219 -0
- data/vendor/assets/stylesheets/compass/typography/links/_hover-link.scss +5 -0
- data/vendor/assets/stylesheets/compass/typography/links/_link-colors.scss +28 -0
- data/vendor/assets/stylesheets/compass/typography/links/_unstyled-link.scss +7 -0
- data/vendor/assets/stylesheets/compass/typography/lists/_bullets.scss +34 -0
- data/vendor/assets/stylesheets/compass/typography/lists/_horizontal-list.scss +61 -0
- data/vendor/assets/stylesheets/compass/typography/lists/_inline-block-list.scss +50 -0
- data/vendor/assets/stylesheets/compass/typography/lists/_inline-list.scss +44 -0
- data/vendor/assets/stylesheets/compass/typography/text/_ellipsis.scss +25 -0
- data/vendor/assets/stylesheets/compass/typography/text/_force-wrap.scss +12 -0
- data/vendor/assets/stylesheets/compass/typography/text/_nowrap.scss +2 -0
- data/vendor/assets/stylesheets/compass/typography/text/_replacement.scss +68 -0
- data/vendor/assets/stylesheets/compass/utilities/_color.scss +1 -0
- data/vendor/assets/stylesheets/compass/utilities/_general.scss +6 -0
- data/vendor/assets/stylesheets/compass/utilities/_links.scss +5 -0
- data/vendor/assets/stylesheets/compass/utilities/_lists.scss +6 -0
- data/vendor/assets/stylesheets/compass/utilities/_print.scss +17 -0
- data/vendor/assets/stylesheets/compass/utilities/_sprites.scss +2 -0
- data/vendor/assets/stylesheets/compass/utilities/_tables.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/_text.scss +5 -0
- data/vendor/assets/stylesheets/compass/utilities/color/_contrast.scss +28 -0
- data/vendor/assets/stylesheets/compass/utilities/general/_clearfix.scss +44 -0
- data/vendor/assets/stylesheets/compass/utilities/general/_float.scss +30 -0
- data/vendor/assets/stylesheets/compass/utilities/general/_hacks.scss +46 -0
- data/vendor/assets/stylesheets/compass/utilities/general/_min.scss +16 -0
- data/vendor/assets/stylesheets/compass/utilities/general/_reset.scss +2 -0
- data/vendor/assets/stylesheets/compass/utilities/general/_tabs.scss +1 -0
- data/vendor/assets/stylesheets/compass/utilities/general/_tag-cloud.scss +18 -0
- data/vendor/assets/stylesheets/compass/utilities/links/_hover-link.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/links/_link-colors.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/links/_unstyled-link.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/lists/_bullets.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/lists/_horizontal-list.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/lists/_inline-block-list.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/lists/_inline-list.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/sprites/_base.scss +66 -0
- data/vendor/assets/stylesheets/compass/utilities/sprites/_sprite-img.scss +79 -0
- data/vendor/assets/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss +22 -0
- data/vendor/assets/stylesheets/compass/utilities/tables/_borders.scss +33 -0
- data/vendor/assets/stylesheets/compass/utilities/tables/_scaffolding.scss +9 -0
- data/vendor/assets/stylesheets/compass/utilities/text/_ellipsis.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/text/_nowrap.scss +3 -0
- data/vendor/assets/stylesheets/compass/utilities/text/_replacement.scss +3 -0
- metadata +119 -1
@@ -0,0 +1,48 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
3
|
+
// Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera.
|
4
|
+
//
|
5
|
+
// * $name is required, arbitrary, and what you will use in font stacks.
|
6
|
+
// * $font-files is required using font-files('relative/location', 'format').
|
7
|
+
// for best results use this order: woff, opentype/truetype, svg
|
8
|
+
// * $eot is required by IE, and is a relative location of the eot file.
|
9
|
+
// * $weight shows if the font is bold, defaults to normal
|
10
|
+
// * $style defaults to normal, might be also italic
|
11
|
+
// * For android 2.2 Compatiblity, please ensure that your web page has
|
12
|
+
// a meta viewport tag.
|
13
|
+
// * To support iOS < 4.2, an SVG file must be provided
|
14
|
+
//
|
15
|
+
// If you need to generate other formats check out the Font Squirrel
|
16
|
+
// [font generator](http://www.fontsquirrel.com/fontface/generator)
|
17
|
+
//
|
18
|
+
|
19
|
+
// In order to refer to a specific style of the font in your stylesheets as
|
20
|
+
// e.g. "font-style: italic;", you may add a couple of @font-face includes
|
21
|
+
// containing the respective font files for each style and specying
|
22
|
+
// respective the $style parameter.
|
23
|
+
|
24
|
+
// Order of the includes matters, and it is: normal, bold, italic, bold+italic.
|
25
|
+
|
26
|
+
@mixin font-face(
|
27
|
+
$name,
|
28
|
+
$font-files,
|
29
|
+
$eot: false,
|
30
|
+
$weight: false,
|
31
|
+
$style: false
|
32
|
+
) {
|
33
|
+
$iefont: unquote("#{$eot}?#iefix");
|
34
|
+
@font-face {
|
35
|
+
font-family: quote($name);
|
36
|
+
@if $eot {
|
37
|
+
src: font-url($eot);
|
38
|
+
$font-files: font-url($iefont) unquote("format('eot')"), $font-files;
|
39
|
+
}
|
40
|
+
src: $font-files;
|
41
|
+
@if $weight {
|
42
|
+
font-weight: $weight;
|
43
|
+
}
|
44
|
+
@if $style {
|
45
|
+
font-style: $style;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
3
|
+
// Mixins to support specific CSS Text Level 3 elements
|
4
|
+
//
|
5
|
+
//
|
6
|
+
//
|
7
|
+
// Mixin for word-break properties
|
8
|
+
// http://www.w3.org/css3-text/#word-break
|
9
|
+
// * legal values for $type : normal, keep-all, break-all
|
10
|
+
//
|
11
|
+
// Example:
|
12
|
+
// p.wordBreak {@include word-break(break-all);}
|
13
|
+
//
|
14
|
+
// Which generates:
|
15
|
+
// p.wordBreak {
|
16
|
+
// -ms-word-break: break-all;
|
17
|
+
// word-break: break-all;
|
18
|
+
// word-break: break-word;}
|
19
|
+
//
|
20
|
+
@mixin word-break($value: normal){
|
21
|
+
@if $value == break-all {
|
22
|
+
//Most browsers handle the break-all case the same...
|
23
|
+
@include experimental(word-break, $value,
|
24
|
+
not(-moz), not(-webkit), not(-o), -ms, not(-khtml), official
|
25
|
+
);
|
26
|
+
//Webkit handles break-all differently... as break-word
|
27
|
+
@include experimental(word-break, break-word,
|
28
|
+
not(-moz), not(-webkit), not(-o), not(-ms), not(-khtml), official
|
29
|
+
);
|
30
|
+
}
|
31
|
+
@else {
|
32
|
+
@include experimental(word-break, $value,
|
33
|
+
not(-moz), not(-webkit), not(-o), -ms, not(-khtml), official
|
34
|
+
);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
// Mixin for the hyphens property
|
39
|
+
//
|
40
|
+
// W3C specification: http://www.w3.org/TR/css3-text/#hyphens
|
41
|
+
// * legal values for $type : auto, manual, none
|
42
|
+
//
|
43
|
+
// Example:
|
44
|
+
// p {
|
45
|
+
// @include hyphens(auto);}
|
46
|
+
// Which generates:
|
47
|
+
// p {
|
48
|
+
// -moz-hyphens: auto;
|
49
|
+
// -webkit-hyphens: auto;
|
50
|
+
// hyphens: auto;}
|
51
|
+
//
|
52
|
+
@mixin hyphens($value: auto){
|
53
|
+
@include experimental(hyphens, $value,
|
54
|
+
-moz, -webkit, not(-o), not(-ms), not(-khtml), official
|
55
|
+
);
|
56
|
+
}
|
57
|
+
|
58
|
+
// Mixin for x-browser hyphenation based on @auchenberg's post:
|
59
|
+
// Removes the need for the <wbr/> HTML tag
|
60
|
+
// http://blog.kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/
|
61
|
+
//
|
62
|
+
// Example:
|
63
|
+
// div {@include hyphenation;}
|
64
|
+
//
|
65
|
+
// Which generates:
|
66
|
+
// div {
|
67
|
+
// -ms-word-break: break-all;
|
68
|
+
// word-break: break-all;
|
69
|
+
// word-break: break-word;
|
70
|
+
// -moz-hyphens: auto;
|
71
|
+
// -webkit-hyphens: auto;
|
72
|
+
// hyphens: auto;}
|
73
|
+
//
|
74
|
+
@mixin hyphenation{
|
75
|
+
@include word-break(break-all);
|
76
|
+
@include hyphens;
|
77
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
@import "shared";
|
2
|
+
@import "../utilities/general/hacks";
|
3
|
+
@import "../functions";
|
4
|
+
|
5
|
+
// Background property support for vendor prefixing within values.
|
6
|
+
@mixin background(
|
7
|
+
$background-1,
|
8
|
+
$background-2: false,
|
9
|
+
$background-3: false,
|
10
|
+
$background-4: false,
|
11
|
+
$background-5: false,
|
12
|
+
$background-6: false,
|
13
|
+
$background-7: false,
|
14
|
+
$background-8: false,
|
15
|
+
$background-9: false,
|
16
|
+
$background-10: false
|
17
|
+
) {
|
18
|
+
$backgrounds: compact($background-1, $background-2, $background-3, $background-4, $background-5,
|
19
|
+
$background-6, $background-7, $background-8, $background-9, $background-10);
|
20
|
+
$mult-bgs: -compass-list-size($backgrounds) > 1;
|
21
|
+
$add-pie-bg: prefixed(-pie, $backgrounds) or $mult-bgs;
|
22
|
+
@if $experimental-support-for-svg and prefixed(-svg, $backgrounds) { background: -svg($backgrounds); }
|
23
|
+
@if $support-for-original-webkit-gradients and prefixed(-owg, $backgrounds) { background: -owg($backgrounds); }
|
24
|
+
@if $experimental-support-for-webkit and prefixed(-webkit, $backgrounds) { background: -webkit($backgrounds); }
|
25
|
+
@if $experimental-support-for-mozilla and prefixed(-moz, $backgrounds) { background: -moz($backgrounds); }
|
26
|
+
@if $experimental-support-for-opera and prefixed(-o, $backgrounds) { background: -o($backgrounds); }
|
27
|
+
@if $experimental-support-for-pie and $add-pie-bg { -pie-background: -pie($backgrounds); }
|
28
|
+
background: $backgrounds ;
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin background-with-css2-fallback(
|
32
|
+
$background-1,
|
33
|
+
$background-2: false,
|
34
|
+
$background-3: false,
|
35
|
+
$background-4: false,
|
36
|
+
$background-5: false,
|
37
|
+
$background-6: false,
|
38
|
+
$background-7: false,
|
39
|
+
$background-8: false,
|
40
|
+
$background-9: false,
|
41
|
+
$background-10: false
|
42
|
+
) {
|
43
|
+
$backgrounds: compact($background-1, $background-2, $background-3, $background-4, $background-5,
|
44
|
+
$background-6, $background-7, $background-8, $background-9, $background-10);
|
45
|
+
$mult-bgs: -compass-list-size($backgrounds) > 1;
|
46
|
+
$simple-background: if($mult-bgs or prefixed(-css2, $backgrounds), -css2(-compass-nth($backgrounds, last)), false);
|
47
|
+
@if not(blank($simple-background)) { background: $simple-background; }
|
48
|
+
@include background($background-1, $background-2, $background-3, $background-4, $background-5,
|
49
|
+
$background-6, $background-7, $background-8, $background-9, $background-10);
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
// Background image property support for vendor prefixing within values.
|
54
|
+
@mixin background-image(
|
55
|
+
$image-1,
|
56
|
+
$image-2: false,
|
57
|
+
$image-3: false,
|
58
|
+
$image-4: false,
|
59
|
+
$image-5: false,
|
60
|
+
$image-6: false,
|
61
|
+
$image-7: false,
|
62
|
+
$image-8: false,
|
63
|
+
$image-9: false,
|
64
|
+
$image-10: false
|
65
|
+
) {
|
66
|
+
$images: compact($image-1, $image-2, $image-3, $image-4, $image-5, $image-6, $image-7, $image-8, $image-9, $image-10);
|
67
|
+
$add-pie-bg: prefixed(-pie, $images) or -compass-list-size($images) > 1;
|
68
|
+
|
69
|
+
@if $experimental-support-for-svg and prefixed(-svg, $images) { background-image: -svg($images); background-size: 100%; }
|
70
|
+
@if $support-for-original-webkit-gradients and prefixed(-owg, $images) { background-image: -owg($images); }
|
71
|
+
@if $experimental-support-for-webkit and prefixed(-webkit, $images) { background-image: -webkit($images); }
|
72
|
+
@if $experimental-support-for-mozilla and prefixed(-moz, $images) { background-image: -moz($images); }
|
73
|
+
@if $experimental-support-for-opera and prefixed(-o, $images) { background-image: -o($images); }
|
74
|
+
@if $experimental-support-for-pie and $add-pie-bg { @warn "PIE does not support background-image. Use @include background(#{$images}) instead." }
|
75
|
+
background-image: $images ;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Emit a IE-Specific filters that renders a simple linear gradient.
|
79
|
+
// For use in IE 6 - 8. Best practice would have you apply this via a
|
80
|
+
// conditional IE stylesheet, but if you must, you should place this before
|
81
|
+
// any background-image properties that you have specified.
|
82
|
+
//
|
83
|
+
// For the `$orientation` parameter, you can pass `vertical` or `horizontal`.
|
84
|
+
@mixin filter-gradient($start-color, $end-color, $orientation: vertical) {
|
85
|
+
@include has-layout;
|
86
|
+
$gradient-type: if($orientation == vertical, 0, 1);
|
87
|
+
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 {
|
88
|
+
filter: progid:DXImageTransform.Microsoft.gradient(gradientType=#{$gradient-type}, startColorstr='#{ie-hex-str($start-color)}', endColorstr='#{ie-hex-str($end-color)}');
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
// Border image property support for vendor prefixing properties and values.
|
94
|
+
@mixin border-image($value) {
|
95
|
+
@if $experimental-support-for-mozilla { -moz-border-image: -moz(reject(-compass-list($value), fill)); }
|
96
|
+
@if $support-for-original-webkit-gradients { -webkit-border-image: -owg(reject(-compass-list($value), fill)); }
|
97
|
+
@if $experimental-support-for-webkit { -webkit-border-image: -webkit(reject(-compass-list($value), fill)); }
|
98
|
+
@if $experimental-support-for-opera { -o-border-image: -o(reject(-compass-list($value), fill)); }
|
99
|
+
@if $experimental-support-for-svg { border-image: -svg(reject(-compass-list($value), fill)); }
|
100
|
+
border-image: $value;
|
101
|
+
}
|
102
|
+
|
103
|
+
// List style image property support for vendor prefixing within values.
|
104
|
+
@mixin list-style-image($image) {
|
105
|
+
@if $experimental-support-for-mozilla and prefixed(-moz, $image) { list-style-image: -moz($image); }
|
106
|
+
@if $support-for-original-webkit-gradients and prefixed(-owg, $image) { list-style-image: -owg($image); }
|
107
|
+
@if $experimental-support-for-webkit and prefixed(-webkit, $image) { list-style-image: -webkit($image); }
|
108
|
+
@if $experimental-support-for-opera and prefixed(-o, $image) { list-style-image: -o($image); }
|
109
|
+
@if $experimental-support-for-svg and prefixed(-svg, $image) { list-style-image: -svg($image); }
|
110
|
+
list-style-image: $image ;
|
111
|
+
}
|
112
|
+
|
113
|
+
// List style property support for vendor prefixing within values.
|
114
|
+
@mixin list-style($value) {
|
115
|
+
$value: -compass-list($value);
|
116
|
+
@if $experimental-support-for-mozilla and prefixed(-moz, $value) { list-style-image: -moz($value); }
|
117
|
+
@if $support-for-original-webkit-gradients and prefixed(-owg, $value) { list-style-image: -owg($value); }
|
118
|
+
@if $experimental-support-for-webkit and prefixed(-webkit, $value) { list-style-image: -webkit($value); }
|
119
|
+
@if $experimental-support-for-opera and prefixed(-o, $value) { list-style-image: -o($value); }
|
120
|
+
@if $experimental-support-for-svg and prefixed(-svg, $value) { list-style-image: -svg($value); }
|
121
|
+
list-style-image: $value ;
|
122
|
+
}
|
123
|
+
|
124
|
+
// content property support for vendor prefixing within values.
|
125
|
+
@mixin content($value) {
|
126
|
+
$value: -compass-list($value);
|
127
|
+
@if $experimental-support-for-mozilla and prefixed(-moz, $value) { content: -moz($value); }
|
128
|
+
@if $support-for-original-webkit-gradients and prefixed(-owg, $value) { content: -owg($value); }
|
129
|
+
@if $experimental-support-for-webkit and prefixed(-webkit, $value) { content: -webkit($value); }
|
130
|
+
@if $experimental-support-for-opera and prefixed(-o, $value) { content: -o($value); }
|
131
|
+
@if $experimental-support-for-svg and prefixed(-svg, $value) { content: -svg($value); }
|
132
|
+
content: $value ;
|
133
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
3
|
+
// Set `$inline-block-alignment` to `none` or `false` to disable the output
|
4
|
+
// of a vertical-align property in the inline-block mixin.
|
5
|
+
// Or set it to a legal value for `vertical-align` to change the default.
|
6
|
+
$inline-block-alignment: middle !default;
|
7
|
+
|
8
|
+
// Provides a cross-browser method to implement `display: inline-block;`
|
9
|
+
@mixin inline-block($alignment: $inline-block-alignment) {
|
10
|
+
@if $legacy-support-for-mozilla {
|
11
|
+
display: -moz-inline-stack;
|
12
|
+
}
|
13
|
+
display: inline-block;
|
14
|
+
@if $alignment and $alignment != none {
|
15
|
+
vertical-align: $alignment;
|
16
|
+
}
|
17
|
+
@if $legacy-support-for-ie {
|
18
|
+
*vertical-align: auto;
|
19
|
+
zoom: 1;
|
20
|
+
*display: inline;
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
3
|
+
// Provides cross-browser CSS opacity. Takes a number between 0 and 1 as the argument, e.g. 0.5 for 50% opacity.
|
4
|
+
//
|
5
|
+
// @param $opacity
|
6
|
+
// A number between 0 and 1, where 0 is transparent and 1 is opaque.
|
7
|
+
|
8
|
+
@mixin opacity($opacity) {
|
9
|
+
@if $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8 {
|
10
|
+
filter: unquote("progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})");
|
11
|
+
}
|
12
|
+
opacity: $opacity;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Make an element completely transparent.
|
16
|
+
@mixin transparent { @include opacity(0); }
|
17
|
+
|
18
|
+
// Make an element completely opaque.
|
19
|
+
@mixin opaque { @include opacity(1); }
|
@@ -0,0 +1,73 @@
|
|
1
|
+
$experimental-support-for-pie: true !default;
|
2
|
+
|
3
|
+
// It is recommended that you use Sass's @extend directive to apply the behavior
|
4
|
+
// to your PIE elements. To assist you, Compass provides this variable.
|
5
|
+
// When set, it will cause the `@include pie` mixin to extend this class.
|
6
|
+
// The class name you provide should **not** include the `.`.
|
7
|
+
$pie-base-class: false !default;
|
8
|
+
|
9
|
+
// The default approach to using PIE.
|
10
|
+
// Can be one of:
|
11
|
+
//
|
12
|
+
// * relative (default)
|
13
|
+
// * z-index
|
14
|
+
// * none
|
15
|
+
$pie-default-approach: relative !default;
|
16
|
+
|
17
|
+
// The location of your PIE behavior file
|
18
|
+
// This should be root-relative to your web server
|
19
|
+
// relative assets don't work. It is recommended that
|
20
|
+
// you set this yourself.
|
21
|
+
$pie-behavior: stylesheet-url("PIE.htc") !default;
|
22
|
+
|
23
|
+
// When using the z-index approach, the
|
24
|
+
// first ancestor of the PIE element at
|
25
|
+
// or before the container's opaque background
|
26
|
+
// should have a z-index set as well to ensure
|
27
|
+
// propert z-index stacking.
|
28
|
+
//
|
29
|
+
// The `$position` argument must be some non-static
|
30
|
+
// value (absolute, relative, etc.)
|
31
|
+
@mixin pie-container($z-index: 0, $position: relative) {
|
32
|
+
z-index: $z-index;
|
33
|
+
position: $position;
|
34
|
+
}
|
35
|
+
|
36
|
+
// PIE elements must have this behavior attached to them.
|
37
|
+
// IE is broken -- it doesn't think of behavior urls as
|
38
|
+
// relative to the stylesheet. It considers them relative
|
39
|
+
// to the webpage. As a result, you cannot reliably use
|
40
|
+
// compass's relative_assets with PIE.
|
41
|
+
//
|
42
|
+
// * `$approach` - one of: relative, z-index, or none
|
43
|
+
// * `$z-index` - when using the z-index approach, this
|
44
|
+
// is the z-index that is applied.
|
45
|
+
@mixin pie-element(
|
46
|
+
$approach: $pie-default-approach,
|
47
|
+
$z-index: 0
|
48
|
+
) {
|
49
|
+
behavior: $pie-behavior;
|
50
|
+
@if $approach == relative {
|
51
|
+
position: relative;
|
52
|
+
}
|
53
|
+
@else if $approach == z-index {
|
54
|
+
z-index: $z-index;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// a smart mixin that knows to extend or include pie-element according
|
59
|
+
// to your stylesheet's configuration variables.
|
60
|
+
@mixin pie($base-class: $pie-base-class) {
|
61
|
+
@if $base-class {
|
62
|
+
@extend .#{$base-class};
|
63
|
+
}
|
64
|
+
@else {
|
65
|
+
@include pie-element;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
// Watch `$n` levels of ancestors for changes to their class attribute
|
70
|
+
// So that cascading styles will work correctly on the PIE element.
|
71
|
+
@mixin pie-watch-ancestors($n) {
|
72
|
+
-pie-watch-ancestors: $n;
|
73
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
3
|
+
// Webkit, IE10 and future support for [CSS Regions](http://dev.w3.org/csswg/css3-regions/)
|
4
|
+
//
|
5
|
+
// $target is a value you use to link two regions of your css. Give the source of your content the flow-into property, and give your target container the flow-from property.
|
6
|
+
//
|
7
|
+
// For a visual explanation, see the diagrams at Chris Coyier's
|
8
|
+
// [CSS-Tricks](http://css-tricks.com/content-folding/)
|
9
|
+
|
10
|
+
@mixin flow-into($target) {
|
11
|
+
$target: unquote($target);
|
12
|
+
@include experimental(flow-into, $target,
|
13
|
+
not(-moz), -webkit, not(-o), -ms, not(-khtml), not official
|
14
|
+
);
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin flow-from($target) {
|
18
|
+
$target: unquote($target);
|
19
|
+
@include experimental(flow-from, $target,
|
20
|
+
not(-moz), -webkit, not(-o), -ms, not(-khtml), not official
|
21
|
+
);
|
22
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
@import "../support";
|
2
|
+
|
3
|
+
// This mixin provides basic support for CSS3 properties and
|
4
|
+
// their corresponding experimental CSS2 properties when
|
5
|
+
// the implementations are identical except for the property
|
6
|
+
// prefix.
|
7
|
+
@mixin experimental($property, $value,
|
8
|
+
$moz : $experimental-support-for-mozilla,
|
9
|
+
$webkit : $experimental-support-for-webkit,
|
10
|
+
$o : $experimental-support-for-opera,
|
11
|
+
$ms : $experimental-support-for-microsoft,
|
12
|
+
$khtml : $experimental-support-for-khtml,
|
13
|
+
$official : true
|
14
|
+
) {
|
15
|
+
@if $webkit and $experimental-support-for-webkit { -webkit-#{$property} : $value; }
|
16
|
+
@if $khtml and $experimental-support-for-khtml { -khtml-#{$property} : $value; }
|
17
|
+
@if $moz and $experimental-support-for-mozilla { -moz-#{$property} : $value; }
|
18
|
+
@if $ms and $experimental-support-for-microsoft { -ms-#{$property} : $value; }
|
19
|
+
@if $o and $experimental-support-for-opera { -o-#{$property} : $value; }
|
20
|
+
@if $official { #{$property} : $value; }
|
21
|
+
}
|
22
|
+
|
23
|
+
// Same as experimental(), but for cases when the property is the same and the value is vendorized
|
24
|
+
@mixin experimental-value($property, $value,
|
25
|
+
$moz : $experimental-support-for-mozilla,
|
26
|
+
$webkit : $experimental-support-for-webkit,
|
27
|
+
$o : $experimental-support-for-opera,
|
28
|
+
$ms : $experimental-support-for-microsoft,
|
29
|
+
$khtml : $experimental-support-for-khtml,
|
30
|
+
$official : true
|
31
|
+
) {
|
32
|
+
@if $webkit and $experimental-support-for-webkit { #{$property} : -webkit-#{$value}; }
|
33
|
+
@if $khtml and $experimental-support-for-khtml { #{$property} : -khtml-#{$value}; }
|
34
|
+
@if $moz and $experimental-support-for-mozilla { #{$property} : -moz-#{$value}; }
|
35
|
+
@if $ms and $experimental-support-for-microsoft { #{$property} : -ms-#{$value}; }
|
36
|
+
@if $o and $experimental-support-for-opera { #{$property} : -o-#{$value}; }
|
37
|
+
@if $official { #{$property} : #{$value}; }
|
38
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
3
|
+
// These defaults make the arguments optional for this mixin
|
4
|
+
// If you like, set different defaults in your project
|
5
|
+
|
6
|
+
$default-text-shadow-color: #aaa !default;
|
7
|
+
$default-text-shadow-h-offset: 0px !default;
|
8
|
+
$default-text-shadow-v-offset: 0px !default;
|
9
|
+
$default-text-shadow-blur: 1px !default;
|
10
|
+
$default-text-shadow-spread: false !default;
|
11
|
+
|
12
|
+
// Provides cross-browser text shadows when one or more shadows are needed.
|
13
|
+
// Each shadow argument should adhere to the standard css3 syntax for the
|
14
|
+
// text-shadow property.
|
15
|
+
//
|
16
|
+
// Note: if any shadow has a spread parameter, this will cause the mixin
|
17
|
+
// to emit the shadow declaration twice, first without the spread,
|
18
|
+
// then with the spread included. This allows you to progressively
|
19
|
+
// enhance the browsers that do support the spread parameter.
|
20
|
+
@mixin text-shadow(
|
21
|
+
$shadow-1 : default,
|
22
|
+
$shadow-2 : false,
|
23
|
+
$shadow-3 : false,
|
24
|
+
$shadow-4 : false,
|
25
|
+
$shadow-5 : false,
|
26
|
+
$shadow-6 : false,
|
27
|
+
$shadow-7 : false,
|
28
|
+
$shadow-8 : false,
|
29
|
+
$shadow-9 : false,
|
30
|
+
$shadow-10: false
|
31
|
+
) {
|
32
|
+
@if $shadow-1 == default {
|
33
|
+
$shadow-1: compact($default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur $default-text-shadow-spread $default-text-shadow-color);
|
34
|
+
}
|
35
|
+
$shadows-without-spread: join((),(),comma);
|
36
|
+
$shadows: join((),(),comma);
|
37
|
+
$has-spread: false;
|
38
|
+
@each $shadow in compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5,
|
39
|
+
$shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10) {
|
40
|
+
@if length($shadow) > 4 {
|
41
|
+
$has-spread: true;
|
42
|
+
$shadows-without-spread: append($shadows-without-spread, nth($shadow,1) nth($shadow,2) nth($shadow,3) nth($shadow,5));
|
43
|
+
$shadows: append($shadows, $shadow);
|
44
|
+
} else {
|
45
|
+
$shadows-without-spread: append($shadows-without-spread, $shadow);
|
46
|
+
$shadows: append($shadows, $shadow);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
@if $has-spread {
|
50
|
+
text-shadow: $shadows-without-spread;
|
51
|
+
}
|
52
|
+
text-shadow: $shadows;
|
53
|
+
}
|
54
|
+
|
55
|
+
// Provides a single cross-browser CSS text shadow.
|
56
|
+
//
|
57
|
+
// Provides sensible defaults for the color, horizontal offset, vertical offset, blur, and spread
|
58
|
+
// according to the configuration defaults above.
|
59
|
+
@mixin single-text-shadow(
|
60
|
+
$hoff: false,
|
61
|
+
$voff: false,
|
62
|
+
$blur: false,
|
63
|
+
$spread: false,
|
64
|
+
$color: false
|
65
|
+
) {
|
66
|
+
// A lot of people think the color comes first. It doesn't.
|
67
|
+
@if type-of($hoff) == color {
|
68
|
+
$temp-color: $hoff;
|
69
|
+
$hoff: $voff;
|
70
|
+
$voff: $blur;
|
71
|
+
$blur: $spread;
|
72
|
+
$spread: $color;
|
73
|
+
$color: $temp-color;
|
74
|
+
}
|
75
|
+
// Can't rely on default assignment with multiple supported argument orders.
|
76
|
+
$hoff: if($hoff, $hoff, $default-text-shadow-h-offset);
|
77
|
+
$voff: if($voff, $voff, $default-text-shadow-v-offset);
|
78
|
+
$blur: if($blur, $blur, $default-text-shadow-blur );
|
79
|
+
$spread: if($spread, $spread, $default-text-shadow-spread );
|
80
|
+
$color: if($color, $color, $default-text-shadow-color );
|
81
|
+
// We don't need experimental support for this property.
|
82
|
+
@if $color == none or $hoff == none {
|
83
|
+
@include text-shadow(none);
|
84
|
+
} @else {
|
85
|
+
@include text-shadow(compact($hoff $voff $blur $spread $color));
|
86
|
+
}
|
87
|
+
}
|