compass 0.10.0.rc3 → 0.10.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +30 -102
- data/VERSION.yml +1 -1
- data/examples/css3/bootstrap.rb +3 -0
- data/examples/css3/clean.rb +2 -0
- data/examples/downloader.rb +2 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.sass +1 -2
- data/frameworks/{compass → _compass_deprecated_imports}/stylesheets/compass/_misc.scss +1 -0
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_inline_block.sass +1 -1
- data/frameworks/blueprint/stylesheets/_blueprint.scss +2 -1
- data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +47 -32
- data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +25 -45
- data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +6 -3
- data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +31 -24
- data/frameworks/blueprint/stylesheets/blueprint/_form.scss +45 -35
- data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +2 -1
- data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +21 -28
- data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +66 -137
- data/frameworks/compass/stylesheets/compass/_css3.scss +1 -0
- data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +23 -5
- data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +22 -5
- data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +8 -10
- data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +36 -16
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +14 -7
- data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +4 -8
- data/frameworks/compass/stylesheets/compass/css3/_box.scss +89 -0
- data/frameworks/compass/stylesheets/compass/css3/_columns.scss +19 -40
- data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +3 -1
- data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +2 -0
- data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +5 -6
- data/frameworks/compass/stylesheets/compass/css3/_opacity.scss +15 -9
- data/frameworks/compass/stylesheets/compass/css3/_shared.scss +47 -0
- data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +10 -2
- data/frameworks/compass/stylesheets/compass/css3/_transform.scss +34 -17
- data/frameworks/compass/stylesheets/compass/css3/_transition.scss +19 -21
- data/frameworks/compass/stylesheets/compass/utilities/_print.scss +14 -15
- data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.scss +27 -17
- data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +7 -9
- data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +4 -2
- data/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss +12 -6
- data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.scss +24 -12
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +0 -4
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +5 -5
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +15 -13
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.scss +1 -1
- data/lib/compass.rb +6 -1
- data/lib/compass/commands/help.rb +1 -0
- data/lib/compass/configuration/data.rb +10 -2
- data/lib/compass/exec/helpers.rb +3 -0
- data/lib/compass/sass_extensions/functions/selectors.rb +21 -0
- data/lib/compass/version.rb +12 -21
- data/test/compass_test.rb +1 -1
- data/test/fixtures/stylesheets/blueprint/css/typography.css +8 -19
- data/test/fixtures/stylesheets/compass/css/box.css +90 -0
- data/test/fixtures/stylesheets/compass/sass/box.sass +50 -0
- data/test/sass_extensions_test.rb +19 -26
- metadata +42 -62
- data/CHANGELOG.markdown +0 -881
- data/REVISION +0 -1
- data/examples/css3/extensions/compass-colors/README.markdown +0 -50
- data/examples/css3/extensions/compass-colors/VERSION.yml +0 -5
- data/examples/css3/extensions/compass-colors/example/config.rb +0 -13
- data/examples/css3/extensions/compass-colors/example/src/_split_compliment_theme.sass +0 -28
- data/examples/css3/extensions/compass-colors/example/src/screen.sass +0 -40
- data/examples/css3/extensions/compass-colors/lib/compass-colors.rb +0 -9
- data/examples/css3/extensions/compass-colors/lib/compass-colors/compass_extension.rb +0 -7
- data/examples/css3/extensions/compass-colors/lib/compass-colors/hsl.rb +0 -109
- data/examples/css3/extensions/compass-colors/lib/compass-colors/sass_extensions.rb +0 -112
- data/examples/css3/extensions/compass-colors/spec/approximate_color_matching.rb +0 -43
- data/examples/css3/extensions/compass-colors/spec/sass_extensions_spec.rb +0 -54
- data/examples/css3/extensions/compass-colors/templates/analogous/_theme.sass +0 -28
- data/examples/css3/extensions/compass-colors/templates/analogous/manifest.rb +0 -1
- data/examples/css3/extensions/compass-colors/templates/basic/_theme.sass +0 -7
- data/examples/css3/extensions/compass-colors/templates/basic/manifest.rb +0 -1
- data/examples/css3/extensions/compass-colors/templates/complementary/_theme.sass +0 -20
- data/examples/css3/extensions/compass-colors/templates/complementary/manifest.rb +0 -1
- data/examples/css3/extensions/compass-colors/templates/split_complement/_theme.sass +0 -28
- data/examples/css3/extensions/compass-colors/templates/split_complement/manifest.rb +0 -1
- data/examples/css3/extensions/compass-colors/templates/triadic/_theme.sass +0 -28
- data/examples/css3/extensions/compass-colors/templates/triadic/manifest.rb +0 -1
- data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
- data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
- data/examples/logo/logo.html.haml +0 -40
- data/examples/logo/src/ie.scss +0 -5
- data/examples/logo/src/print.scss +0 -3
- data/examples/logo/src/screen.scss +0 -28
@@ -1,5 +1,7 @@
|
|
1
1
|
// Override `$default-background-origin` to change the default.
|
2
2
|
|
3
|
+
@import "shared";
|
4
|
+
|
3
5
|
$default-background-origin: content-box !default;
|
4
6
|
|
5
7
|
// Position the background off the edge of the padding, border or content
|
@@ -14,11 +16,26 @@ $default-background-origin: content-box !default;
|
|
14
16
|
|
15
17
|
@mixin background-origin($origin: $default-background-origin) {
|
16
18
|
// webkit and mozilla use the deprecated short [border | padding | content]
|
17
|
-
$deprecated:
|
18
|
-
@if $origin ==
|
19
|
+
$deprecated: $origin;
|
20
|
+
@if $origin == padding-box { $deprecated: padding; }
|
21
|
+
@if $origin == border-box { $deprecated: border; }
|
19
22
|
@if $origin == content-box { $deprecated: content; }
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
+
// Support for webkit and mozilla's use of the deprecated short form
|
25
|
+
@include experimental(background-origin, $deprecated,
|
26
|
+
$experimental-support-for-mozilla,
|
27
|
+
$experimental-support-for-webkit,
|
28
|
+
false, // opera
|
29
|
+
false, // microsoft
|
30
|
+
false, // khtml
|
31
|
+
false // official
|
32
|
+
);
|
33
|
+
@include experimental(background-origin, $origin,
|
34
|
+
false, // mozilla
|
35
|
+
false, // webkit
|
36
|
+
$experimental-support-for-opera,
|
37
|
+
$experimental-support-for-microsoft,
|
38
|
+
$experimental-support-for-khtml,
|
39
|
+
true // official
|
40
|
+
);
|
24
41
|
}
|
@@ -1,15 +1,13 @@
|
|
1
|
-
|
2
|
-
//
|
3
|
-
// * percentages are relative to the background-origin (default = padding-box)
|
4
|
-
// * mixin defaults to "100% auto"
|
1
|
+
@import "shared";
|
5
2
|
|
6
|
-
// override
|
3
|
+
// override to change the default
|
7
4
|
$default-background-size: 100% auto !default;
|
8
5
|
|
6
|
+
// Set the size of background images using px, width and height, or percentages.
|
7
|
+
// Currently supported in: Opera, Gecko, Webkit.
|
8
|
+
//
|
9
|
+
// * percentages are relative to the background-origin (default = padding-box)
|
10
|
+
// * mixin defaults to: `$default-background-size`
|
9
11
|
@mixin background-size($size: $default-background-size) {
|
10
|
-
|
11
|
-
-webkit-background-size: $size;
|
12
|
-
-o-background-size: $size;
|
13
|
-
-khtml-background-size: $size;
|
14
|
-
-moz-background-size: $size;
|
12
|
+
@include experimental(background-size, $size);
|
15
13
|
}
|
@@ -1,58 +1,78 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
$default-border-radius: 5px !default;
|
2
4
|
|
3
|
-
// Round all
|
5
|
+
// Round all corners by a specific amount, defaults to value of `$default-border-radius`.
|
4
6
|
|
5
7
|
@mixin border-radius($radius: $default-border-radius) {
|
6
|
-
border-radius
|
7
|
-
|
8
|
-
-webkit-border-radius: $radius; }
|
8
|
+
@include experimental(border-radius, $radius);
|
9
|
+
}
|
9
10
|
|
10
11
|
// Round radius at position by amount.
|
11
12
|
//
|
12
|
-
// * values for
|
13
|
-
// * values for
|
13
|
+
// * legal values for `$vert`: `top`, `bottom`
|
14
|
+
// * legal values for `$horz`: `left`, `right`
|
14
15
|
|
15
16
|
@mixin border-corner-radius($vert, $horz, $radius: $default-border-radius) {
|
16
17
|
border-#{$vert}-#{$horz}-radius: $radius;
|
17
18
|
-moz-border-radius-#{$vert}#{$horz}: $radius;
|
18
|
-
-webkit-border-#{$vert}-#{$horz}-radius: $radius;
|
19
|
-
|
20
|
-
|
19
|
+
-webkit-border-#{$vert}-#{$horz}-radius: $radius;
|
20
|
+
// Support for mozilla's syntax for specifying a corner
|
21
|
+
@include experimental("border-radius-#{$vert}#{$horz}", $radius,
|
22
|
+
$experimental-support-for-mozilla,
|
23
|
+
false, // webkit
|
24
|
+
false, // opera
|
25
|
+
false, // microsoft
|
26
|
+
false, // khtml
|
27
|
+
false // official
|
28
|
+
);
|
29
|
+
@include experimental("border-#{$vert}-#{$horz}-radius", $radius,
|
30
|
+
false, // mozilla
|
31
|
+
$experimental-support-for-webkit,
|
32
|
+
$experimental-support-for-opera,
|
33
|
+
$experimental-support-for-microsoft,
|
34
|
+
$experimental-support-for-khtml,
|
35
|
+
true // official
|
36
|
+
);
|
37
|
+
|
38
|
+
}
|
39
|
+
|
40
|
+
// Round top-left corner only
|
21
41
|
|
22
42
|
@mixin border-top-left-radius($radius: $default-border-radius) {
|
23
43
|
@include border-corner-radius(top, left, $radius); }
|
24
44
|
|
25
|
-
// Round top-right
|
45
|
+
// Round top-right corner only
|
26
46
|
|
27
47
|
@mixin border-top-right-radius($radius: $default-border-radius) {
|
28
48
|
@include border-corner-radius(top, right, $radius); }
|
29
49
|
|
30
|
-
// Round bottom-left
|
50
|
+
// Round bottom-left corner only
|
31
51
|
|
32
52
|
@mixin border-bottom-left-radius($radius: $default-border-radius) {
|
33
53
|
@include border-corner-radius(bottom, left, $radius); }
|
34
54
|
|
35
|
-
// Round bottom-right
|
55
|
+
// Round bottom-right corner only
|
36
56
|
|
37
57
|
@mixin border-bottom-right-radius($radius: $default-border-radius) {
|
38
58
|
@include border-corner-radius(bottom, right, $radius); }
|
39
59
|
|
40
|
-
// Round top corners by amount
|
60
|
+
// Round both top corners by amount
|
41
61
|
@mixin border-top-radius($radius: $default-border-radius) {
|
42
62
|
@include border-top-left-radius($radius);
|
43
63
|
@include border-top-right-radius($radius); }
|
44
64
|
|
45
|
-
// Round right corners by amount
|
65
|
+
// Round both right corners by amount
|
46
66
|
@mixin border-right-radius($radius: $default-border-radius) {
|
47
67
|
@include border-top-right-radius($radius);
|
48
68
|
@include border-bottom-right-radius($radius); }
|
49
69
|
|
50
|
-
// Round bottom corners by amount
|
70
|
+
// Round both bottom corners by amount
|
51
71
|
@mixin border-bottom-radius($radius: $default-border-radius) {
|
52
72
|
@include border-bottom-left-radius($radius);
|
53
73
|
@include border-bottom-right-radius($radius); }
|
54
74
|
|
55
|
-
// Round left corners by amount
|
75
|
+
// Round both left corners by amount
|
56
76
|
@mixin border-left-radius($radius: $default-border-radius) {
|
57
77
|
@include border-top-left-radius($radius);
|
58
78
|
@include border-bottom-left-radius($radius); }
|
@@ -3,6 +3,8 @@
|
|
3
3
|
// If you like, set different defaults before importing.
|
4
4
|
// @doc on
|
5
5
|
|
6
|
+
@import "shared";
|
7
|
+
|
6
8
|
// The default color for box shadows
|
7
9
|
$default-box-shadow-color: #333333 !default;
|
8
10
|
|
@@ -18,10 +20,15 @@ $default-box-shadow-blur: 5px !default;
|
|
18
20
|
// Provides cross-browser CSS box shadows for Webkit, Gecko, and CSS3.
|
19
21
|
// Arguments are color, horizontal offset, vertical offset, and blur length.
|
20
22
|
|
21
|
-
@mixin box-shadow(
|
22
|
-
|
23
|
-
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
-
|
23
|
+
@mixin box-shadow(
|
24
|
+
$color: $default-box-shadow-color,
|
25
|
+
$hoff: $default-box-shadow-h-offset,
|
26
|
+
$voff: $default-box-shadow-v-offset,
|
27
|
+
$blur: $default-box-shadow-blur
|
28
|
+
) {
|
29
|
+
@if $color == none {
|
30
|
+
@include experimental(box-shadow, none);
|
31
|
+
} @else {
|
32
|
+
@include experimental(box-shadow, $color $hoff $voff $blur);
|
33
|
+
}
|
34
|
+
}
|
@@ -1,14 +1,10 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
// Change the box model for Mozilla, Webkit, IE8 and the future
|
2
4
|
//
|
3
5
|
// @param $bs
|
4
6
|
// [ content-box | border-box ]
|
5
7
|
|
6
8
|
@mixin box-sizing($bs) {
|
7
|
-
|
8
|
-
|
9
|
-
/* Webkit (Safari, Chrome) */
|
10
|
-
-webkit-box-sizing: $bs;
|
11
|
-
/* IE (8) */
|
12
|
-
-ms-box-sizing: $bs;
|
13
|
-
/* CSS3 */
|
14
|
-
box-sizing: $bs; }
|
9
|
+
@include experimental(box-sizing, $bs);
|
10
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
3
|
+
// display:box; must be used for any of the other flexbox mixins to work properly
|
4
|
+
@mixin display-box {
|
5
|
+
@include experimental-value(display,box);
|
6
|
+
}
|
7
|
+
|
8
|
+
// Default box orientation, assuming that the user wants something less block-like
|
9
|
+
$default-box-orient: horizontal !default;
|
10
|
+
|
11
|
+
// Box orientation [ horizontal | vertical | inline-axis | block-axis | inherit ]
|
12
|
+
@mixin box-orient(
|
13
|
+
$orientation: $default-box-orient
|
14
|
+
) {
|
15
|
+
@include experimental(box-orient, $orientation);
|
16
|
+
}
|
17
|
+
|
18
|
+
// Default box-align
|
19
|
+
$default-box-align: stretch !default;
|
20
|
+
|
21
|
+
// Box align [ start | end | center | baseline | stretch ]
|
22
|
+
@mixin box-align(
|
23
|
+
$alignment: $default-box-align
|
24
|
+
) {
|
25
|
+
@include experimental(box-align, $alignment);
|
26
|
+
}
|
27
|
+
|
28
|
+
// Default box flex
|
29
|
+
$default-box-flex: 0 !default;
|
30
|
+
|
31
|
+
// mixin which takes an int argument for box flex. Apply this to the children inside the box.
|
32
|
+
//
|
33
|
+
// For example: "div.display-box > div.child-box" would get the box flex mixin.
|
34
|
+
@mixin box-flex(
|
35
|
+
$flex: $default-box-flex
|
36
|
+
) {
|
37
|
+
@include experimental(box-flex, $flex);
|
38
|
+
display: block;
|
39
|
+
}
|
40
|
+
|
41
|
+
// Default flex group
|
42
|
+
$default-box-flex-group: 1 !default;
|
43
|
+
|
44
|
+
// mixin which takes an int argument for flexible grouping
|
45
|
+
@mixin box-flex-group(
|
46
|
+
$group: $default-box-flex-group
|
47
|
+
) {
|
48
|
+
@include experimental(box-flex-group, $group);
|
49
|
+
}
|
50
|
+
|
51
|
+
// default for ordinal group
|
52
|
+
$default-box-ordinal-group: 1 !default;
|
53
|
+
|
54
|
+
// mixin which takes an int argument for ordinal grouping and rearranging the order
|
55
|
+
@mixin box-ordinal-group(
|
56
|
+
$group: $default-ordinal-flex-group
|
57
|
+
) {
|
58
|
+
@include experimental(box-ordinal-group, $group);
|
59
|
+
}
|
60
|
+
|
61
|
+
// Box direction default value
|
62
|
+
$default-box-direction: normal !default;
|
63
|
+
|
64
|
+
// mixin for box-direction [ normal | reverse | inherit ]
|
65
|
+
@mixin box-direction(
|
66
|
+
$direction: $default-box-direction
|
67
|
+
) {
|
68
|
+
@include experimental(box-direction, $direction);
|
69
|
+
}
|
70
|
+
|
71
|
+
// default for box lines
|
72
|
+
$default-box-lines: single !default;
|
73
|
+
|
74
|
+
// mixin for box lines [ single | multiple ]
|
75
|
+
@mixin box-lines(
|
76
|
+
$lines: $default-box-lines
|
77
|
+
) {
|
78
|
+
@include experimental(box-lines, $lines);
|
79
|
+
}
|
80
|
+
|
81
|
+
// default for box pack
|
82
|
+
$default-box-pack: start !default;
|
83
|
+
|
84
|
+
// mixin for box pack [ start | end | center | justify ]
|
85
|
+
@mixin box-pack(
|
86
|
+
$pack: $default-box-pack
|
87
|
+
) {
|
88
|
+
@include experimental(box-pack, $pack);
|
89
|
+
}
|
@@ -1,50 +1,29 @@
|
|
1
|
-
|
1
|
+
@import "shared";
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
-webkit-column-count: $n;
|
6
|
-
column-count: $n; }
|
3
|
+
// Specify the number of columns
|
4
|
+
@mixin column-count($n) { @include experimental(column-count, $n); }
|
7
5
|
|
8
|
-
// Specify the gap between columns e.g. 20px
|
6
|
+
// Specify the gap between columns e.g. `20px`
|
7
|
+
@mixin column-gap($u) { @include experimental(column-gap, $u); }
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
-webkit-column-gap: $u;
|
13
|
-
column-gap: $u; }
|
9
|
+
// Specify the width of columns e.g. `100px`
|
10
|
+
@mixin column-width($u) { @include experimental(column-width, $u); }
|
14
11
|
|
15
|
-
// Specify the width of columns e.g.
|
12
|
+
// Specify the width of the rule between columns e.g. `1px`
|
13
|
+
@mixin column-rule-width($w) { @include experimental(rule-width, $w); }
|
16
14
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
column-width: $u; }
|
15
|
+
// Specify the style of the rule between columns e.g. `dotted`.
|
16
|
+
// This works like border-style.
|
17
|
+
@mixin column-rule-style($s) { @include experimental(rule-style, $s); }
|
21
18
|
|
22
|
-
// Specify the
|
19
|
+
// Specify the style of the rule between columns e.g. `dotted`.
|
20
|
+
// This works like border-color.
|
23
21
|
|
24
|
-
@mixin column-rule-
|
25
|
-
-moz-column-rule-width: $w;
|
26
|
-
-webkit-column-rule-width: $w;
|
27
|
-
column-rule-width: $w; }
|
28
|
-
|
29
|
-
// Specify the style of the rule between columns e.g. 'dotted'. This works like border-style.
|
30
|
-
|
31
|
-
@mixin column-rule-style($s) {
|
32
|
-
-moz-column-rule-style: $s;
|
33
|
-
-webkit-column-rule-style: $s;
|
34
|
-
column-rule-style: $s; }
|
35
|
-
|
36
|
-
// Specify the style of the rule between columns e.g. 'dotted'. This works like border-color.
|
37
|
-
|
38
|
-
@mixin column-rule-color($c) {
|
39
|
-
-moz-column-rule-color: $c;
|
40
|
-
-webkit-column-rule-color: $c;
|
41
|
-
column-rule-color: $c; }
|
22
|
+
@mixin column-rule-color($c) { @include experimental(rule-color, $s); }
|
42
23
|
|
43
24
|
// Mixin encompassing all column rule rules
|
44
25
|
// For example:
|
45
|
-
// +column-rule(
|
46
|
-
|
47
|
-
@
|
48
|
-
|
49
|
-
@include column-rule-style($s);
|
50
|
-
@include column-rule-color($c); }
|
26
|
+
// +column-rule(1px, solid, #c00)
|
27
|
+
@mixin column-rule($w, $s: solid, $c: black) {
|
28
|
+
@include experimental(column-rule, $w $s $c);
|
29
|
+
}
|
@@ -1,8 +1,10 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
// Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera.
|
2
4
|
//
|
3
5
|
// * $name is required, arbitrary, and what you will use in font stacks.
|
4
6
|
// * $font-files is required using font-files('relative/location', 'format').
|
5
|
-
//
|
7
|
+
// for best results use this order: woff, opentype/truetype, svg
|
6
8
|
// * $eot is required by IE, and is a relative location of the eot file.
|
7
9
|
// * postscript name is required by some browsers to look for local fonts.
|
8
10
|
|
@@ -1,13 +1,12 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
// Provides a cross-browser method to implement `display: inline-block;`
|
2
|
-
//
|
3
|
-
// This file is a sass file to work around the fact that the
|
4
|
-
// SCSS parser does not support the #prop hack at this time.
|
5
|
-
// http://github.com/nex3/haml/issues/issue/119
|
6
4
|
|
7
5
|
@mixin inline-block {
|
8
6
|
display: -moz-inline-box;
|
9
7
|
-moz-box-orient: vertical;
|
10
8
|
display: inline-block;
|
11
9
|
vertical-align: middle;
|
12
|
-
|
13
|
-
|
10
|
+
*display: inline;
|
11
|
+
*vertical-align: auto;
|
12
|
+
}
|
@@ -1,19 +1,25 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
// Provides cross-browser CSS opacity. Takes a number between 0 and 1 as the argument, e.g. 0.5 for 50% opacity.
|
2
4
|
//
|
3
5
|
// @param $opacity
|
4
6
|
// A number between 0 and 1, where 0 is transparent and 1 is opaque.
|
5
7
|
|
6
8
|
@mixin opacity($opacity) {
|
7
|
-
opacity
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
@include experimental(opacity, $opacity,
|
10
|
+
$experimental-support-for-mozilla,
|
11
|
+
$experimental-support-for-webkit,
|
12
|
+
$experimental-support-for-opera,
|
13
|
+
false, // microsoft uses filters below instead
|
14
|
+
$experimental-support-for-khtml,
|
15
|
+
true // official
|
16
|
+
);
|
17
|
+
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)})";
|
18
|
+
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=#{round($opacity * 100)});
|
19
|
+
}
|
12
20
|
|
13
21
|
// Make an element completely transparent.
|
14
|
-
@mixin transparent {
|
15
|
-
@include opacity(0); }
|
22
|
+
@mixin transparent { @include opacity(0); }
|
16
23
|
|
17
24
|
// Make an element completely opaque.
|
18
|
-
@mixin opaque {
|
19
|
-
@include opacity(1); }
|
25
|
+
@mixin opaque { @include opacity(1); }
|
@@ -0,0 +1,47 @@
|
|
1
|
+
// Support for mozilla in experimental css3 properties.
|
2
|
+
$experimental-support-for-mozilla : true !default;
|
3
|
+
// Support for webkit in experimental css3 properties.
|
4
|
+
$experimental-support-for-webkit : true !default;
|
5
|
+
// Support for opera in experimental css3 properties.
|
6
|
+
$experimental-support-for-opera : false !default;
|
7
|
+
// Support for microsoft in experimental css3 properties.
|
8
|
+
$experimental-support-for-microsoft : true !default;
|
9
|
+
// Support for khtml in experimental css3 properties.
|
10
|
+
$experimental-support-for-khtml : false !default;
|
11
|
+
|
12
|
+
// This mixin provides basic support for CSS3 properties and
|
13
|
+
// their corresponding experimental CSS2 properties when
|
14
|
+
// the implementations are identical except for the property
|
15
|
+
// prefix.
|
16
|
+
@mixin experimental($property, $value,
|
17
|
+
$moz : $experimental-support-for-mozilla,
|
18
|
+
$webkit : $experimental-support-for-webkit,
|
19
|
+
$o : $experimental-support-for-opera,
|
20
|
+
$ms : $experimental-support-for-microsoft,
|
21
|
+
$khtml : $experimental-support-for-khtml,
|
22
|
+
$official : true
|
23
|
+
) {
|
24
|
+
@if $moz { -moz-#{$property} : $value; }
|
25
|
+
@if $webkit { -webkit-#{$property} : $value; }
|
26
|
+
@if $o { -o-#{$property} : $value; }
|
27
|
+
@if $ms { -ms-#{$property} : $value; }
|
28
|
+
@if $khtml { -khtml-#{$property} : $value; }
|
29
|
+
@if $official { #{$property} : $value; }
|
30
|
+
}
|
31
|
+
|
32
|
+
// Same as experimental(), but for cases when the property is the same and the value is vendorized
|
33
|
+
@mixin experimental-value($property, $value,
|
34
|
+
$moz : $experimental-support-for-mozilla,
|
35
|
+
$webkit : $experimental-support-for-webkit,
|
36
|
+
$o : $experimental-support-for-opera,
|
37
|
+
$ms : $experimental-support-for-microsoft,
|
38
|
+
$khtml : $experimental-support-for-khtml,
|
39
|
+
$official : true
|
40
|
+
) {
|
41
|
+
@if $moz { #{$property} : -moz-#{$value}; }
|
42
|
+
@if $webkit { #{$property} : -webkit-#{$value}; }
|
43
|
+
@if $o { #{$property} : -o-#{$value}; }
|
44
|
+
@if $ms { #{$property} : -ms-#{$value}; }
|
45
|
+
@if $khtml { #{$property} : -khtml-#{$value}; }
|
46
|
+
@if $official { #{$property} : #{$value}; }
|
47
|
+
}
|