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,3 +1,5 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
// Provides CSS text shadows.
|
2
4
|
//
|
3
5
|
// Arguments are color, horizontal offset, vertical offset, and blur
|
@@ -14,5 +16,11 @@ $default-text-shadow-v-offset: 1px !default;
|
|
14
16
|
|
15
17
|
$default-text-shadow-blur: 1px !default;
|
16
18
|
|
17
|
-
@mixin text-shadow(
|
18
|
-
text-shadow
|
19
|
+
@mixin text-shadow(
|
20
|
+
$color: $default-text-shadow-color,
|
21
|
+
$hoff: $default-text-shadow-h-offset,
|
22
|
+
$voff: $default-text-shadow-v-offset,
|
23
|
+
$blur: $default-text-shadow-blur
|
24
|
+
) {
|
25
|
+
text-shadow: $color $hoff $voff $blur;
|
26
|
+
}
|
@@ -1,18 +1,18 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
// CSS Transform and Transform-Origin
|
2
4
|
|
3
5
|
// Apply a transform sent as a complete string.
|
4
6
|
|
5
|
-
@mixin apply-transform($transform
|
6
|
-
transform
|
7
|
-
|
8
|
-
-moz-transform: $transform; }
|
7
|
+
@mixin apply-transform($transform) {
|
8
|
+
@include experimental(transform, $transform);
|
9
|
+
}
|
9
10
|
|
10
11
|
// Apply a transform-origin sent as a complete string.
|
11
12
|
|
12
|
-
@mixin apply-origin($origin
|
13
|
-
transform-origin
|
14
|
-
|
15
|
-
-moz-transform-origin: $origin; }
|
13
|
+
@mixin apply-origin($origin) {
|
14
|
+
@include experimental(transform-origin, $origin);
|
15
|
+
}
|
16
16
|
|
17
17
|
// transform-origin requires x and y coordinates
|
18
18
|
//
|
@@ -23,7 +23,10 @@
|
|
23
23
|
@if $originy {
|
24
24
|
@include apply-origin($originx or 50% $originy);
|
25
25
|
} @else {
|
26
|
-
@include apply-origin($originx);
|
26
|
+
@include apply-origin($originx);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
27
30
|
|
28
31
|
// A full transform mixin with everything you could want
|
29
32
|
//
|
@@ -31,10 +34,20 @@
|
|
31
34
|
// * scale, rotate and skew require units of degrees(deg)
|
32
35
|
// * scale takes a multiplier, rotate and skew take degrees
|
33
36
|
|
34
|
-
@mixin transform(
|
35
|
-
|
36
|
-
|
37
|
-
|
37
|
+
@mixin transform(
|
38
|
+
$scale: 1,
|
39
|
+
$rotate: 0deg,
|
40
|
+
$transx: 0,
|
41
|
+
$transy: 0,
|
42
|
+
$skewx: 0deg,
|
43
|
+
$skewy: 0deg,
|
44
|
+
$originx: false,
|
45
|
+
$originy: false
|
46
|
+
) {
|
47
|
+
$transform : scale($scale) rotate($rotate) translate($transx, $transy) skew($skewx, $skewy);
|
48
|
+
@include apply-transform($transform);
|
49
|
+
@include transform-origin($originx, $originy);
|
50
|
+
}
|
38
51
|
|
39
52
|
// Transform Partials
|
40
53
|
//
|
@@ -45,20 +58,24 @@
|
|
45
58
|
|
46
59
|
@mixin scale($scale: 1.25, $originx: false, $originy: false) {
|
47
60
|
@include apply-transform(scale($scale));
|
48
|
-
@include transform-origin($originx, $originy);
|
61
|
+
@include transform-origin($originx, $originy);
|
62
|
+
}
|
49
63
|
|
50
64
|
// Adjust only the rotation, with optional origin coordinates
|
51
65
|
|
52
66
|
@mixin rotate($rotate: 45deg, $originx: false, $originy: false) {
|
53
67
|
@include apply-transform(rotate($rotate));
|
54
|
-
@include transform-origin($originx, $originy);
|
68
|
+
@include transform-origin($originx, $originy);
|
69
|
+
}
|
55
70
|
|
56
71
|
// Adjust only the translation
|
57
72
|
|
58
73
|
@mixin translate($transx: 0, $transy: 0) {
|
59
|
-
@include apply-transform(translate($transx, $transy));
|
74
|
+
@include apply-transform(translate($transx, $transy));
|
75
|
+
}
|
60
76
|
|
61
77
|
// Adjust only the skew, with optional origin coordinates
|
62
78
|
@mixin skew($skewx: 0deg, $skewy: 0deg, $originx: false, $originy: false) {
|
63
79
|
@include apply-transform(skew($skewx, $skewy));
|
64
|
-
@include transform-origin($originx, $originy);
|
80
|
+
@include transform-origin($originx, $originy);
|
81
|
+
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@import "shared";
|
2
|
+
|
1
3
|
// CSS Transitions
|
2
4
|
// Currently only works in Webkit.
|
3
5
|
//
|
@@ -27,10 +29,8 @@ $default-transition-delay: false !default;
|
|
27
29
|
// * also accepts "all" or "none"
|
28
30
|
|
29
31
|
@mixin transition-property($properties: $default-transition-property) {
|
30
|
-
transition-property
|
31
|
-
|
32
|
-
-moz-transition-property: $properties;
|
33
|
-
-o-transition-property: $properties; }
|
32
|
+
@include experimental(transition-property, $properties);
|
33
|
+
}
|
34
34
|
|
35
35
|
// One or more durations in seconds
|
36
36
|
//
|
@@ -38,10 +38,8 @@ $default-transition-delay: false !default;
|
|
38
38
|
// * these durations will affect the properties in the same list position
|
39
39
|
|
40
40
|
@mixin transition-duration($duration: $default-transition-duration) {
|
41
|
-
transition-duration
|
42
|
-
|
43
|
-
-moz-transition-duration: $duration;
|
44
|
-
-o-transition-duration: $duration; }
|
41
|
+
@include experimental(transition-duration, $duration);
|
42
|
+
}
|
45
43
|
|
46
44
|
// One or more timing functions
|
47
45
|
//
|
@@ -50,10 +48,8 @@ $default-transition-delay: false !default;
|
|
50
48
|
// * These functions will effect the properties in the same list position
|
51
49
|
|
52
50
|
@mixin transition-timing-function($function: $default-transition-function) {
|
53
|
-
transition-timing-function
|
54
|
-
|
55
|
-
-moz-transition-timing-function: $function;
|
56
|
-
-o-transition-timing-function: $function; }
|
51
|
+
@include experimental(transition-timing-function, $function);
|
52
|
+
}
|
57
53
|
|
58
54
|
// One or more transition-delays in seconds
|
59
55
|
//
|
@@ -61,17 +57,19 @@ $default-transition-delay: false !default;
|
|
61
57
|
// * these delays will effect the properties in the same list position
|
62
58
|
|
63
59
|
@mixin transition-delay($delay: $default-transition-delay) {
|
64
|
-
transition-delay
|
65
|
-
|
66
|
-
-moz-transition-delay: $delay;
|
67
|
-
-o-transition-delay: $delay; }
|
60
|
+
@include experimental(transition-delay, $delay);
|
61
|
+
}
|
68
62
|
|
69
63
|
// Transition all-in-one shorthand
|
70
64
|
|
71
|
-
@mixin transition(
|
65
|
+
@mixin transition(
|
66
|
+
$properties: $default-transition-property,
|
67
|
+
$duration: $default-transition-duration,
|
68
|
+
$function: $default-transition-function,
|
69
|
+
$delay: $default-transition-delay
|
70
|
+
) {
|
72
71
|
@include transition-property($properties);
|
73
72
|
@include transition-duration($duration);
|
74
|
-
@if $function {
|
75
|
-
|
76
|
-
|
77
|
-
@include transition-delay($delay); } }
|
73
|
+
@if $function { @include transition-timing-function($function); }
|
74
|
+
@if $delay { @include transition-delay($delay); }
|
75
|
+
}
|
@@ -1,18 +1,17 @@
|
|
1
1
|
// Classes that are useful for controlling what gets printed.
|
2
|
-
// You must mix
|
3
|
-
// and
|
2
|
+
// You must mix `+print-utilities` into your print stylesheet
|
3
|
+
// and `+print-utilities(screen)` into your screen stylesheet.
|
4
4
|
// Note: these aren't semantic.
|
5
5
|
@mixin print-utilities($media: print) {
|
6
|
-
@if $media ==
|
7
|
-
.noprint,
|
8
|
-
|
9
|
-
display:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
display: none; } } }
|
6
|
+
@if $media == print {
|
7
|
+
.noprint, .no-print { display: none; }
|
8
|
+
#{elements-of-type(block)} {
|
9
|
+
&.print-only { display: block; }
|
10
|
+
}
|
11
|
+
#{elements-of-type(inline)} {
|
12
|
+
&.print-only { display: inline; }
|
13
|
+
}
|
14
|
+
} @else {
|
15
|
+
.print-only { display: none; }
|
16
|
+
}
|
17
|
+
}
|
@@ -1,24 +1,34 @@
|
|
1
|
+
// @doc off
|
2
|
+
// Extends the bottom of the element to enclose any floats it contains.
|
3
|
+
// @doc on
|
4
|
+
|
1
5
|
@import "hacks";
|
2
6
|
|
3
|
-
|
4
|
-
//
|
5
|
-
//
|
6
|
-
// Recommendations include using this in conjunction with a width
|
7
|
-
// http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html
|
7
|
+
// This basic method is preferred for the usual case, when positioned
|
8
|
+
// content will not show outside the bounds of the container.
|
9
|
+
//
|
10
|
+
// Recommendations include using this in conjunction with a width.
|
11
|
+
// Credit: [quirksmode.org](http://www.quirksmode.org/blog/archives/2005/03/clearing_floats.html)
|
8
12
|
@mixin clearfix {
|
9
13
|
overflow: hidden;
|
10
|
-
@include has-layout;
|
14
|
+
@include has-layout;
|
15
|
+
}
|
11
16
|
|
12
|
-
|
13
|
-
//
|
14
|
-
//
|
15
|
-
//
|
17
|
+
// This older method from Position Is Everything called
|
18
|
+
// [Easy Clearing](http://www.positioniseverything.net/easyclearing.html)
|
19
|
+
// has the advantage of allowing positioned elements to hang
|
20
|
+
// outside the bounds of the container at the expense of more tricky CSS.
|
21
|
+
//
|
22
|
+
// This method of clearing might cause a gap at the bottom of the page in
|
23
|
+
// some browsers when used on the last element of the page.
|
16
24
|
@mixin pie-clearfix {
|
17
25
|
&:after {
|
18
|
-
content: " ";
|
19
|
-
display: block;
|
20
|
-
height: 0;
|
21
|
-
clear: both;
|
22
|
-
overflow: hidden;
|
23
|
-
visibility: hidden;
|
24
|
-
|
26
|
+
content : " ";
|
27
|
+
display : block;
|
28
|
+
height : 0;
|
29
|
+
clear : both;
|
30
|
+
overflow : hidden;
|
31
|
+
visibility : hidden;
|
32
|
+
}
|
33
|
+
@include has-layout;
|
34
|
+
}
|
@@ -1,17 +1,15 @@
|
|
1
|
-
|
2
|
-
//
|
3
|
-
|
4
|
-
@import "clearfix";
|
5
|
-
|
6
|
-
// Implementation of float:left with fix for double-margin bug
|
1
|
+
// Implementation of float:left with fix for the
|
2
|
+
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
|
7
3
|
@mixin float-left {
|
8
4
|
@include float(left); }
|
9
5
|
|
10
|
-
// Implementation of float:right with fix for
|
6
|
+
// Implementation of float:right with fix for the
|
7
|
+
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
|
11
8
|
@mixin float-right {
|
12
9
|
@include float(right); }
|
13
10
|
|
14
|
-
//
|
11
|
+
// Direction independent float mixin that fixes the
|
12
|
+
// [double-margin bug in IE5/6](http://www.positioniseverything.net/explorer/doubled-margin.html)
|
15
13
|
@mixin float($side: left) {
|
16
14
|
display: inline;
|
17
|
-
float: $side; }
|
15
|
+
float: unquote($side); }
|
@@ -1,3 +1,6 @@
|
|
1
|
+
// This mixin causes an element matching the selector
|
2
|
+
// to gain the "hasLayout" property in internet explorer.
|
3
|
+
// More information on [hasLayout](http://reference.sitepoint.com/css/haslayout).
|
1
4
|
@mixin has-layout {
|
2
5
|
// This makes ie6 get layout
|
3
6
|
display: inline-block;
|
@@ -5,9 +8,8 @@
|
|
5
8
|
& {
|
6
9
|
display: block; } }
|
7
10
|
|
8
|
-
//**
|
9
11
|
// A hack to supply IE6 (and below) with a different property value.
|
10
|
-
//
|
12
|
+
// [Read more](http://www.cssportal.com/css-hacks/#in_css-important).
|
11
13
|
@mixin bang-hack($property, $value, $ie6-value) {
|
12
14
|
#{$property}: #{$value} !important;
|
13
15
|
#{$property}: #{$ie6-value}; }
|
@@ -1,10 +1,16 @@
|
|
1
|
-
// Set all the colors for a link with one mixin call
|
1
|
+
// Set all the colors for a link with one mixin call.
|
2
2
|
// Order of arguments is:
|
3
|
-
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
//
|
7
|
-
//
|
3
|
+
//
|
4
|
+
// 1. normal
|
5
|
+
// 2. hover
|
6
|
+
// 3. active
|
7
|
+
// 4. visited
|
8
|
+
// 5. focus
|
9
|
+
//
|
10
|
+
// Those states not specified will inherit.
|
11
|
+
// Mixin to an anchor link like so:
|
12
|
+
// a
|
13
|
+
// +link-colors(#00c, #0cc, #c0c, #ccc, #cc0)
|
8
14
|
|
9
15
|
@mixin link-colors($normal, $hover: false, $active: false, $visited: false, $focus: false) {
|
10
16
|
color: $normal;
|
@@ -1,22 +1,34 @@
|
|
1
1
|
// Turn off the bullet for an element of a list
|
2
2
|
@mixin no-bullet {
|
3
|
-
list-style-image: none;
|
4
|
-
list-style-type: none;
|
5
|
-
margin-left: 0px;
|
3
|
+
list-style-image : none;
|
4
|
+
list-style-type : none;
|
5
|
+
margin-left : 0px;
|
6
|
+
}
|
6
7
|
|
7
8
|
// turns off the bullets for an entire list
|
8
9
|
@mixin no-bullets {
|
9
10
|
list-style: none;
|
10
|
-
li {
|
11
|
-
|
11
|
+
li { @include no-bullet; }
|
12
|
+
}
|
12
13
|
|
13
|
-
// Make a list(ul/ol) have an image bullet
|
14
|
-
//
|
15
|
-
//
|
16
|
-
//
|
17
|
-
|
14
|
+
// Make a list(ul/ol) have an image bullet.
|
15
|
+
//
|
16
|
+
// The mixin should be used like this for an icon that is 5x7:
|
17
|
+
//
|
18
|
+
// ul.pretty
|
19
|
+
// +pretty-bullets("my-icon.png", 5px, 7px)
|
20
|
+
//
|
21
|
+
// Additionally, if the image dimensions are not provided,
|
22
|
+
// The image dimensions will be extracted from the image itself.
|
23
|
+
//
|
24
|
+
// ul.pretty
|
25
|
+
// +pretty-bullets("my-icon.png")
|
26
|
+
//
|
27
|
+
@mixin pretty-bullets($bullet-icon, $width: image-width($bullet-icon), $height: image-height($bullet-icon), $line-height: 18px, $padding: 14px) {
|
18
28
|
margin-left: 0;
|
19
29
|
li {
|
20
30
|
padding-left: $padding;
|
21
|
-
background: image-url($bullet-icon) no-repeat ($padding - $width) / 2 ($line-height - $height) / 2;
|
22
|
-
list-style-type: none;
|
31
|
+
background: image-url($bullet-icon) no-repeat 0 + ($padding - $width) / 2 ($line-height - $height) / 2;
|
32
|
+
list-style-type: none;
|
33
|
+
}
|
34
|
+
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
//**\\
|
2
1
|
// Horizontal list layout module.
|
3
2
|
//
|
4
3
|
// Easy mode using simple descendant li selectors:
|
@@ -20,14 +19,12 @@
|
|
20
19
|
@import "compass/utilities/general/reset";
|
21
20
|
@import "compass/utilities/general/float";
|
22
21
|
|
23
|
-
//**
|
24
22
|
// Can be mixed into any selector that target a ul or ol that is meant
|
25
23
|
// to have a horizontal layout. Used to implement +horizontal-list.
|
26
24
|
@mixin horizontal-list-container {
|
27
25
|
@include reset-box-model;
|
28
26
|
@include clearfix; }
|
29
27
|
|
30
|
-
//**
|
31
28
|
// Can be mixed into any li selector that is meant to participate in a horizontal layout.
|
32
29
|
// Used to implement +horizontal-list.
|
33
30
|
//
|
@@ -46,7 +43,6 @@
|
|
46
43
|
&:last-child, &.last {
|
47
44
|
padding-right: 0px; } }
|
48
45
|
|
49
|
-
//**
|
50
46
|
// A list(ol,ul) that is layed out such that the elements are floated left and won't wrap.
|
51
47
|
// This is not an inline list.
|
52
48
|
@mixin horizontal-list($padding: 4px) {
|
@@ -11,13 +11,13 @@
|
|
11
11
|
display: inline; } }
|
12
12
|
|
13
13
|
// makes an inline list that is comma delimited.
|
14
|
-
//
|
14
|
+
// Please make note of the browser support issues before using this mixin.
|
15
15
|
//
|
16
|
-
// use of
|
17
|
-
// See http://www.quirksmode.org/css/contents.html#t15
|
16
|
+
// use of `:content` and `:after` is not fully supported in all browsers.
|
17
|
+
// See quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t15)
|
18
18
|
//
|
19
|
-
//
|
20
|
-
// see http://www.quirksmode.org/css/contents.html#t29
|
19
|
+
// `:last-child` is not fully supported.
|
20
|
+
// see quirksmode for the [support matrix](http://www.quirksmode.org/css/contents.html#t29).
|
21
21
|
|
22
22
|
@mixin comma-delimited-list {
|
23
23
|
@include inline-list;
|
@@ -1,18 +1,20 @@
|
|
1
|
-
|
1
|
+
// @doc off
|
2
2
|
// Example 1:
|
3
|
-
//
|
4
|
-
//
|
5
|
-
//
|
6
|
-
//
|
7
|
-
//
|
3
|
+
//
|
4
|
+
// a.twitter
|
5
|
+
// +sprite-img("icons-32.png", 1)
|
6
|
+
// a.facebook
|
7
|
+
// +sprite-img("icons-32png", 2)
|
8
|
+
//
|
8
9
|
// Example 2:
|
9
|
-
//
|
10
|
-
//
|
11
|
-
//
|
12
|
-
//
|
13
|
-
//
|
14
|
-
//
|
15
|
-
//
|
10
|
+
//
|
11
|
+
// a
|
12
|
+
// +sprite-background("icons-32.png")
|
13
|
+
// a.twitter
|
14
|
+
// +sprite-column(1)
|
15
|
+
// a.facebook
|
16
|
+
// +sprite-row(2)
|
17
|
+
// @doc on
|
16
18
|
|
17
19
|
$sprite-default-size: 32px !default;
|
18
20
|
|