compass 0.12.7 → 0.13.alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +4 -6
- data/VERSION.yml +6 -0
- data/bin/compass +1 -2
- data/bin/compass.compiled.rbc +707 -0
- data/examples/compass/images/emblem-a043c4f148.png +0 -0
- data/examples/compass/images/flag-03c3b29b35.png +0 -0
- data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf +0 -0
- data/features/step_definitions/command_line_steps.rb +1 -1
- data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +38 -41
- data/frameworks/compass/stylesheets/compass/_css3.scss +1 -3
- data/frameworks/compass/stylesheets/compass/_support.scss +0 -4
- data/frameworks/compass/stylesheets/compass/css3/_animation.scss +127 -0
- data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +3 -4
- data/frameworks/compass/stylesheets/compass/css3/_box.scss +2 -2
- data/frameworks/compass/stylesheets/compass/css3/_columns.scss +11 -97
- data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +4 -4
- data/frameworks/compass/stylesheets/compass/css3/_images.scss +2 -2
- data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +7 -13
- data/frameworks/compass/stylesheets/compass/css3/_shared.scss +38 -0
- data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +13 -52
- data/frameworks/compass/stylesheets/compass/css3/_transform.scss +14 -14
- data/frameworks/compass/stylesheets/compass/css3/_transition.scss +60 -127
- data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +21 -0
- data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +8 -6
- data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +9 -35
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +9 -5
- data/lib/compass.rbc +796 -0
- data/lib/compass/actions.rb +4 -6
- data/lib/compass/actions.rbc +2736 -0
- data/lib/compass/app_integration.rbc +836 -0
- data/lib/compass/app_integration/merb.rbc +106 -0
- data/lib/compass/app_integration/rails.rbc +2096 -0
- data/lib/compass/app_integration/rails/configuration_defaults.rbc +2430 -0
- data/lib/compass/app_integration/rails/installer.rbc +3677 -0
- data/lib/compass/app_integration/stand_alone.rbc +589 -0
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +721 -0
- data/lib/compass/app_integration/stand_alone/installer.rbc +1487 -0
- data/lib/compass/browser_support.rbc +1144 -0
- data/lib/compass/commands.rbc +307 -0
- data/lib/compass/commands/base.rbc +1044 -0
- data/lib/compass/commands/clean_project.rbc +1856 -0
- data/lib/compass/commands/create_project.rbc +2691 -0
- data/lib/compass/commands/default.rbc +1677 -0
- data/lib/compass/commands/generate_grid_background.rbc +1939 -0
- data/lib/compass/commands/help.rbc +1921 -0
- data/lib/compass/commands/imports.rbc +969 -0
- data/lib/compass/commands/installer_command.rbc +807 -0
- data/lib/compass/commands/interactive.rbc +1341 -0
- data/lib/compass/commands/list_frameworks.rbc +1111 -0
- data/lib/compass/commands/print_version.rbc +2478 -0
- data/lib/compass/commands/project_base.rb +1 -7
- data/lib/compass/commands/project_base.rbc +2085 -0
- data/lib/compass/commands/project_stats.rbc +4202 -0
- data/lib/compass/commands/registry.rbc +1350 -0
- data/lib/compass/commands/sprite.rbc +2212 -0
- data/lib/compass/commands/stamp_pattern.rbc +2011 -0
- data/lib/compass/commands/unpack_extension.rbc +2348 -0
- data/lib/compass/commands/update_project.rb +2 -2
- data/lib/compass/commands/update_project.rbc +3002 -0
- data/lib/compass/commands/validate_project.rbc +1686 -0
- data/lib/compass/commands/watch_project.rbc +4155 -0
- data/lib/compass/commands/write_configuration.rbc +2896 -0
- data/lib/compass/compiler.rb +2 -1
- data/lib/compass/compiler.rbc +4913 -0
- data/lib/compass/configuration.rbc +1398 -0
- data/lib/compass/configuration/adapters.rbc +2088 -0
- data/lib/compass/configuration/comments.rbc +843 -0
- data/lib/compass/configuration/data.rbc +2633 -0
- data/lib/compass/configuration/defaults.rbc +3617 -0
- data/lib/compass/configuration/file_data.rbc +643 -0
- data/lib/compass/configuration/helpers.rbc +3500 -0
- data/lib/compass/configuration/inheritance.rbc +3592 -0
- data/lib/compass/configuration/paths.rbc +412 -0
- data/lib/compass/configuration/serialization.rbc +1996 -0
- data/lib/compass/dependencies.rbc +232 -0
- data/lib/compass/errors.rbc +176 -0
- data/lib/compass/exec.rbc +500 -0
- data/lib/compass/exec/command_option_parser.rbc +676 -0
- data/lib/compass/exec/global_options_parser.rb +1 -1
- data/lib/compass/exec/global_options_parser.rbc +1306 -0
- data/lib/compass/exec/helpers.rbc +758 -0
- data/lib/compass/exec/project_options_parser.rb +0 -8
- data/lib/compass/exec/project_options_parser.rbc +1515 -0
- data/lib/compass/exec/sub_command_ui.rbc +1191 -0
- data/lib/compass/frameworks.rbc +3640 -0
- data/lib/compass/grid_builder.rbc +0 -0
- data/lib/compass/installers.rbc +152 -0
- data/lib/compass/installers/bare_installer.rbc +939 -0
- data/lib/compass/installers/base.rbc +4427 -0
- data/lib/compass/installers/manifest.rbc +3335 -0
- data/lib/compass/installers/manifest_installer.rbc +1591 -0
- data/lib/compass/installers/template_context.rbc +1030 -0
- data/lib/compass/logger.rbc +2317 -0
- data/lib/compass/quick_cache.rbc +324 -0
- data/lib/compass/sass_extensions.rbc +213 -0
- data/lib/compass/sass_extensions/functions.rbc +808 -0
- data/lib/compass/sass_extensions/functions/colors.rb +0 -14
- data/lib/compass/sass_extensions/functions/colors.rbc +1279 -0
- data/lib/compass/sass_extensions/functions/constants.rb +0 -9
- data/lib/compass/sass_extensions/functions/constants.rbc +1921 -0
- data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +1966 -0
- data/lib/compass/sass_extensions/functions/display.rbc +1227 -0
- data/lib/compass/sass_extensions/functions/enumerate.rbc +446 -0
- data/lib/compass/sass_extensions/functions/env.rb +18 -0
- data/lib/compass/sass_extensions/functions/env.rbc +299 -0
- data/lib/compass/sass_extensions/functions/font_files.rbc +821 -0
- data/lib/compass/sass_extensions/functions/gradient_support.rb +4 -11
- data/lib/compass/sass_extensions/functions/gradient_support.rbc +14147 -0
- data/lib/compass/sass_extensions/functions/image_size.rbc +3152 -0
- data/lib/compass/sass_extensions/functions/inline_image.rbc +1678 -0
- data/lib/compass/sass_extensions/functions/lists.rbc +2601 -0
- data/lib/compass/sass_extensions/functions/math.rb +1 -1
- data/lib/compass/sass_extensions/functions/selectors.rbc +1592 -0
- data/lib/compass/sass_extensions/functions/sprites.rb +11 -14
- data/lib/compass/sass_extensions/functions/sprites.rbc +3792 -0
- data/lib/compass/sass_extensions/functions/trig.rbc +811 -0
- data/lib/compass/sass_extensions/functions/urls.rbc +5248 -0
- data/lib/compass/sass_extensions/monkey_patches.rbc +134 -0
- data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +2169 -0
- data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +660 -0
- data/lib/compass/sass_extensions/sprites.rbc +363 -0
- data/lib/compass/sass_extensions/sprites/base.rbc +4529 -0
- data/lib/compass/sass_extensions/sprites/engines.rb +3 -3
- data/lib/compass/sass_extensions/sprites/engines.rbc +662 -0
- data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +6 -8
- data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +1074 -0
- data/lib/compass/sass_extensions/sprites/image.rbc +2961 -0
- data/lib/compass/sass_extensions/sprites/image_methods.rb +1 -0
- data/lib/compass/sass_extensions/sprites/image_methods.rbc +900 -0
- data/lib/compass/sass_extensions/sprites/image_row.rbc +1168 -0
- data/lib/compass/sass_extensions/sprites/layout_methods.rbc +3236 -0
- data/lib/compass/sass_extensions/sprites/row_fitter.rbc +2067 -0
- data/lib/compass/sass_extensions/sprites/sprite_map.rb +0 -1
- data/lib/compass/sass_extensions/sprites/sprite_map.rbc +1991 -0
- data/lib/compass/sass_extensions/sprites/sprite_methods.rb +3 -13
- data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +3190 -0
- data/lib/compass/sass_extensions/sprites/sprites.rbc +1573 -0
- data/lib/compass/sprite_importer.rb +6 -10
- data/lib/compass/sprite_importer.rbc +3573 -0
- data/lib/compass/sprite_importer/content.erb +14 -12
- data/lib/compass/util.rbc +552 -0
- data/lib/compass/version.rb +11 -15
- data/lib/compass/version.rbc +1245 -0
- data/test/fixtures/sprites/public/images/numeric/200.png +0 -0
- data/test/fixtures/stylesheets/blueprint/css/screen.css +3 -2
- data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +8 -6
- data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +2 -1
- data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +1 -1
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +2 -41
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +3 -5
- data/test/fixtures/stylesheets/busted_image_urls/tmp/screen.css +9 -0
- data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +41 -0
- data/test/fixtures/stylesheets/compass/css/animation.css +41 -0
- data/test/fixtures/stylesheets/compass/css/columns.css +12 -120
- data/test/fixtures/stylesheets/compass/css/fonts.css +1 -1
- data/test/fixtures/stylesheets/compass/css/gradients.css +25 -1
- data/test/fixtures/stylesheets/compass/css/grid_background.css +14 -7
- data/test/fixtures/stylesheets/compass/css/lists.css +8 -6
- data/test/fixtures/stylesheets/compass/css/pie.css +1 -0
- data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
- data/test/fixtures/stylesheets/compass/css/text_shadow.css +4 -22
- data/test/fixtures/stylesheets/compass/css/transition.css +16 -66
- data/test/fixtures/stylesheets/compass/css/user-interface.css +10 -0
- data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +21 -21
- data/test/fixtures/stylesheets/compass/sass/animation-with-legacy-ie.scss +19 -0
- data/test/fixtures/stylesheets/compass/sass/animation.scss +13 -0
- data/test/fixtures/stylesheets/compass/sass/columns.scss +0 -18
- data/test/fixtures/stylesheets/compass/sass/gradients.sass +4 -2
- data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +1 -6
- data/test/fixtures/stylesheets/compass/sass/transition.scss +1 -12
- data/test/fixtures/stylesheets/compass/sass/user-interface.scss +7 -0
- data/test/fixtures/stylesheets/envtest/css/env.css +8 -0
- data/test/fixtures/stylesheets/envtest/sass/env.scss +16 -0
- data/test/fixtures/stylesheets/envtest/tmp/env.css +14 -0
- data/test/helpers/command_line.rbc +2820 -0
- data/test/helpers/diff.rbc +1104 -0
- data/test/helpers/io.rbc +962 -0
- data/test/helpers/rails.rbc +1116 -0
- data/test/helpers/test_case.rb +1 -8
- data/test/helpers/test_case.rbc +1255 -0
- data/test/integrations/compass_test.rb +10 -1
- data/test/integrations/compass_test.rbc +6589 -0
- data/test/integrations/rails_integration_test.rbc +1342 -0
- data/test/integrations/sprites_test.rb +70 -27
- data/test/integrations/sprites_test.rbc +6192 -0
- data/test/test_helper.rb +1 -2
- data/test/test_helper.rbc +1694 -0
- data/test/units/actions_test.rbc +644 -0
- data/test/units/command_line_test.rbc +1532 -0
- data/test/units/compass_module_test.rb +1 -1
- data/test/units/compass_png_test.rbc +0 -0
- data/test/units/configuration_test.rbc +3833 -0
- data/test/units/rails_configuration_test.rbc +1032 -0
- data/test/units/sass_extensions_test.rb +11 -21
- data/test/units/sass_extensions_test.rbc +3586 -0
- data/test/units/sprites/engine_test.rbc +962 -0
- data/test/units/sprites/image_row_test.rbc +1578 -0
- data/test/units/sprites/image_test.rbc +2836 -0
- data/test/units/sprites/importer_test.rbc +2620 -0
- data/test/units/sprites/row_fitter_test.rbc +1479 -0
- data/test/units/sprites/sprite_command_test.rbc +1147 -0
- data/test/units/sprites/sprite_map_test.rbc +6515 -0
- metadata +241 -94
- checksums.yaml +0 -7
- data/frameworks/compass/stylesheets/compass/css3/_filter.scss +0 -23
- data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +0 -77
- data/test/fixtures/stylesheets/compass/css/filters.css +0 -29
- data/test/fixtures/stylesheets/compass/css/hyphenation.css +0 -16
- data/test/fixtures/stylesheets/compass/css/replacement.css +0 -59
- data/test/fixtures/stylesheets/compass/sass/filters.scss +0 -24
- data/test/fixtures/stylesheets/compass/sass/hyphenation.scss +0 -11
- data/test/fixtures/stylesheets/compass/sass/replacement.scss +0 -22
- data/test/units/regressions_test.rb +0 -35
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -256,7 +256,7 @@ end
|
|
|
256
256
|
|
|
257
257
|
Then /^the image ([^ ]+) has a size of (\d+)x(\d+)$/ do |file, width, height|
|
|
258
258
|
# see http://snippets.dzone.com/posts/show/805
|
|
259
|
-
|
|
259
|
+
IO.read(file)[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i]
|
|
260
260
|
end
|
|
261
261
|
|
|
262
262
|
Then /^I should see the following lines of output:$/ do |table|
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
// Global reset rules.
|
|
2
2
|
// For more specific resets, use the reset mixins provided below
|
|
3
3
|
@mixin blueprint-global-reset {
|
|
4
|
-
html { @
|
|
5
|
-
body { @extend
|
|
6
|
-
@include blueprint-nested-reset;
|
|
4
|
+
html { @extend %bp-reset-box-model; }
|
|
5
|
+
body { @extend %bp-reset-element; }
|
|
6
|
+
@include blueprint-nested-reset;
|
|
7
|
+
}
|
|
7
8
|
|
|
8
9
|
// Reset all elements within some selector scope.To reset the selector itself,
|
|
9
10
|
// mixin the appropriate reset mixin for that element type as well. This could be
|
|
10
11
|
// useful if you want to style a part of your page in a dramatically different way.
|
|
11
12
|
@mixin blueprint-nested-reset {
|
|
12
|
-
.bp-reset-element,
|
|
13
13
|
div, span, object, iframe, p,
|
|
14
14
|
pre, a, abbr, acronym, address,
|
|
15
15
|
code, del, dfn, em, img,
|
|
16
16
|
dl, dt, dd, ol, ul, li, fieldset,
|
|
17
17
|
form, label, legend,
|
|
18
|
-
caption, tbody, tfoot, thead, tr { @
|
|
19
|
-
#{headers(all)} { @
|
|
20
|
-
#{elements-of-type(html5-block)} { @
|
|
21
|
-
blockquote, q { @
|
|
22
|
-
th, td, caption { @
|
|
23
|
-
table { @
|
|
24
|
-
a img {
|
|
18
|
+
caption, tbody, tfoot, thead, tr { @extend %bp-reset-element; }
|
|
19
|
+
#{headers(all)} { @extend %bp-reset-element; }
|
|
20
|
+
#{elements-of-type(html5-block)} { @extend %bp-reset-html5-element; }
|
|
21
|
+
blockquote, q { @extend %bp-reset-quotation; }
|
|
22
|
+
th, td, caption { @extend %bp-reset-table-cell; }
|
|
23
|
+
table { @extend %bp-reset-table; }
|
|
24
|
+
a img { @extend %bp-reset-linked-image; }
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
@mixin blueprint-reset-html5-element
|
|
28
|
-
@
|
|
29
|
-
@else { @include blueprint-reset; }
|
|
27
|
+
@mixin blueprint-reset-html5-element {
|
|
28
|
+
@extend %bp-reset-element;
|
|
30
29
|
display: block;
|
|
31
30
|
}
|
|
32
31
|
|
|
@@ -36,18 +35,9 @@
|
|
|
36
35
|
border: 0;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
@mixin blueprint-reset {
|
|
40
|
-
@
|
|
41
|
-
@include blueprint-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@mixin blueprint-basic-reset($reset-base-class: false) {
|
|
45
|
-
@if $reset-base-class {
|
|
46
|
-
@extend .#{$reset-base-class};
|
|
47
|
-
} @else {
|
|
48
|
-
@include blueprint-reset-box-model;
|
|
49
|
-
@include blueprint-reset-typography;
|
|
50
|
-
}
|
|
38
|
+
@mixin blueprint-basic-reset {
|
|
39
|
+
@include blueprint-reset-box-model;
|
|
40
|
+
@include blueprint-reset-typography;
|
|
51
41
|
}
|
|
52
42
|
|
|
53
43
|
@mixin blueprint-reset-typography {
|
|
@@ -55,29 +45,36 @@
|
|
|
55
45
|
weight: inherit;
|
|
56
46
|
style: inherit;
|
|
57
47
|
size: 100%;
|
|
58
|
-
family: inherit;
|
|
48
|
+
family: inherit;
|
|
49
|
+
}
|
|
59
50
|
vertical-align: baseline;
|
|
60
51
|
}
|
|
61
52
|
|
|
62
|
-
@mixin blueprint-reset-quotation
|
|
63
|
-
@
|
|
64
|
-
@else { @include blueprint-reset; }
|
|
53
|
+
@mixin blueprint-reset-quotation {
|
|
54
|
+
@extend %bp-reset-element;
|
|
65
55
|
quotes: "" "";
|
|
66
|
-
&:before,
|
|
67
|
-
|
|
68
|
-
content: ""; } }
|
|
56
|
+
&:before, &:after { content: ""; }
|
|
57
|
+
}
|
|
69
58
|
|
|
70
|
-
@mixin blueprint-reset-table-cell
|
|
71
|
-
@
|
|
72
|
-
@else { @include blueprint-reset; }
|
|
59
|
+
@mixin blueprint-reset-table-cell {
|
|
60
|
+
@extend %bp-reset-element;
|
|
73
61
|
float: none !important;
|
|
74
62
|
text-align: left;
|
|
75
63
|
font-weight: normal;
|
|
76
|
-
vertical-align: middle;
|
|
64
|
+
vertical-align: middle;
|
|
65
|
+
}
|
|
77
66
|
|
|
78
|
-
@mixin blueprint-reset-table
|
|
79
|
-
@
|
|
80
|
-
@else { @include blueprint-reset; }
|
|
67
|
+
@mixin blueprint-reset-table {
|
|
68
|
+
@extend %bp-reset-element;
|
|
81
69
|
border-collapse: separate;
|
|
82
70
|
border-spacing: 0;
|
|
83
|
-
vertical-align: middle;
|
|
71
|
+
vertical-align: middle;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
%bp-reset-box-model { @include blueprint-reset-box-model; }
|
|
75
|
+
%bp-reset-element { @include blueprint-basic-reset; }
|
|
76
|
+
%bp-reset-html5-element { @include blueprint-reset-html5-element; }
|
|
77
|
+
%bp-reset-quotation { @include blueprint-reset-quotation; }
|
|
78
|
+
%bp-reset-table-cell { @include blueprint-reset-table-cell; }
|
|
79
|
+
%bp-reset-table { @include blueprint-reset-table; }
|
|
80
|
+
%bp-reset-linked-image { border: none; }
|
|
@@ -16,10 +16,6 @@ $legacy-support-for-ie8: $legacy-support-for-ie !default;
|
|
|
16
16
|
// this combined variable.
|
|
17
17
|
$legacy-support-for-ie: $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8;
|
|
18
18
|
|
|
19
|
-
// Whether to output legacy support for mozilla.
|
|
20
|
-
// Usually this means hacks to support Firefox 3.6 or earlier.
|
|
21
|
-
$legacy-support-for-mozilla: true;
|
|
22
|
-
|
|
23
19
|
// Support for mozilla in experimental css3 properties (-moz).
|
|
24
20
|
$experimental-support-for-mozilla : true !default;
|
|
25
21
|
// Support for webkit in experimental css3 properties (-webkit).
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
@import "shared";
|
|
2
|
+
|
|
3
|
+
// CSS Animations.
|
|
4
|
+
|
|
5
|
+
// Apply an animation property and value with the correct browser support
|
|
6
|
+
@mixin animation-support($property, $value) {
|
|
7
|
+
@include experimental($property, $value, -moz, -webkit, -o, -ms, not -khtml, official); }
|
|
8
|
+
|
|
9
|
+
// Name of any animation as a string.
|
|
10
|
+
$default-animation-name : false !default;
|
|
11
|
+
|
|
12
|
+
// Duration of the entire animation in seconds.
|
|
13
|
+
$default-animation-duration : false !default;
|
|
14
|
+
|
|
15
|
+
// Delay for start of animation in seconds.
|
|
16
|
+
$default-animation-delay : false !default;
|
|
17
|
+
|
|
18
|
+
// The timing function(s) to be used between keyframes. [ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier($number, $number, $number, $number)]
|
|
19
|
+
$default-animation-timing-function : false !default;
|
|
20
|
+
|
|
21
|
+
// The number of times an animation cycle is played. [infinite | $number]
|
|
22
|
+
$default-animation-iteration-count : false !default;
|
|
23
|
+
|
|
24
|
+
// Whether or not the animation should play in reverse on alternate cycles. [normal | alternate]
|
|
25
|
+
$default-animation-direction : false !default;
|
|
26
|
+
|
|
27
|
+
// What values are applied by the animation outside the time it is executing. [none | forwards | backwards | both]
|
|
28
|
+
$default-animation-fill-mode : false !default;
|
|
29
|
+
|
|
30
|
+
// Whether the animation is running or paused. [running | paused]
|
|
31
|
+
$default-animation-play-state : false !default;
|
|
32
|
+
|
|
33
|
+
// Create a named animation sequence that can be applied to elements later.
|
|
34
|
+
//
|
|
35
|
+
// $name - The name of your animation.
|
|
36
|
+
// @content - The keyframes of the animation.
|
|
37
|
+
@mixin keyframes(
|
|
38
|
+
$name,
|
|
39
|
+
$moz: $experimental-support-for-mozilla,
|
|
40
|
+
$webkit: $experimental-support-for-webkit,
|
|
41
|
+
$o: $experimental-support-for-opera,
|
|
42
|
+
$ms: $experimental-support-for-microsoft,
|
|
43
|
+
$khtml: $experimental-support-for-khtml,
|
|
44
|
+
$official: true
|
|
45
|
+
) {
|
|
46
|
+
@if $moz {
|
|
47
|
+
@include with-only-support-for($moz: true) {
|
|
48
|
+
@-moz-keyframes #{$name} { @content; }
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@if $webkit {
|
|
52
|
+
@include with-only-support-for($webkit: true) {
|
|
53
|
+
@-webkit-keyframes #{$name} { @content; }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
@if $o {
|
|
57
|
+
@include with-only-support-for($o: true) {
|
|
58
|
+
@-o-keyframes #{$name} { @content; }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@if $ms {
|
|
62
|
+
@include with-only-support-for($ms: true) {
|
|
63
|
+
@-ms-keyframes #{$name} { @content; }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@if $khtml {
|
|
67
|
+
@include with-only-support-for($khtml: true) {
|
|
68
|
+
@-khtml-keyframes #{$name} { @content; }
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@if $official {
|
|
72
|
+
@include with-only-support-for {
|
|
73
|
+
@keyframes #{$name} { @content; }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Apply 1-10 animation names.
|
|
79
|
+
@mixin animation-name($name-1: $default-animation-name, $name-2: false, $name-3: false, $name-4: false, $name-5: false, $name-6: false, $name-7: false, $name-8: false, $name-9: false, $name-10: false) {
|
|
80
|
+
$name: compact($name-1, $name-2, $name-3, $name-4, $name-5, $name-6, $name-7, $name-8, $name-9, $name-10);
|
|
81
|
+
@include animation-support(animation-name, $name); }
|
|
82
|
+
|
|
83
|
+
// Apply 1-10 animation durations.
|
|
84
|
+
@mixin animation-duration($duration-1: $default-animation-duration, $duration-2: false, $duration-3: false, $duration-4: false, $duration-5: false, $duration-6: false, $duration-7: false, $duration-8: false, $duration-9: false, $duration-10: false) {
|
|
85
|
+
$duration: compact($duration-1, $duration-2, $duration-3, $duration-4, $duration-5, $duration-6, $duration-7, $duration-8, $duration-9, $duration-10);
|
|
86
|
+
@include animation-support(animation-duration, $duration); }
|
|
87
|
+
|
|
88
|
+
// Apply 1-10 animation delays.
|
|
89
|
+
@mixin animation-delay($delay-1: $default-animation-delay, $delay-2: false, $delay-3: false, $delay-4: false, $delay-5: false, $delay-6: false, $delay-7: false, $delay-8: false, $delay-9: false, $delay-10: false) {
|
|
90
|
+
$delay: compact($delay-1, $delay-2, $delay-3, $delay-4, $delay-5, $delay-6, $delay-7, $delay-8, $delay-9, $delay-10);
|
|
91
|
+
@include animation-support(animation-delay, $delay); }
|
|
92
|
+
|
|
93
|
+
// Apply 1-10 animation timing functions.
|
|
94
|
+
@mixin animation-timing-function($function-1: $default-animation-timing-function, $function-2: false, $function-3: false, $function-4: false, $function-5: false, $function-6: false, $function-7: false, $function-8: false, $function-9: false, $function-10: false) {
|
|
95
|
+
$function: compact($function-1, $function-2, $function-3, $function-4, $function-5, $function-6, $function-7, $function-8, $function-9, $function-10);
|
|
96
|
+
@include animation-support(animation-timing-function, $function); }
|
|
97
|
+
|
|
98
|
+
// Apply 1-10 animation iteration counts.
|
|
99
|
+
@mixin animation-iteration-count($count-1: $default-animation-iteration-count, $count-2: false, $count-3: false, $count-4: false, $count-5: false, $count-6: false, $count-7: false, $count-8: false, $count-9: false, $count-10: false) {
|
|
100
|
+
$count: compact($count-1, $count-2, $count-3, $count-4, $count-5, $count-6, $count-7, $count-8, $count-9, $count-10);
|
|
101
|
+
@include animation-support(animation-iteration-count, $count); }
|
|
102
|
+
|
|
103
|
+
// Apply 1-10 animation directions.
|
|
104
|
+
@mixin animation-direction($direction-1: $default-animation-direction, $direction-2: false, $direction-3: false, $direction-4: false, $direction-5: false, $direction-6: false, $direction-7: false, $direction-8: false, $direction-9: false, $direction-10: false) {
|
|
105
|
+
$direction: compact($direction-1, $direction-2, $direction-3, $direction-4, $direction-5, $direction-6, $direction-7, $direction-8, $direction-9, $direction-10);
|
|
106
|
+
@include animation-support(animation-direction, $direction); }
|
|
107
|
+
|
|
108
|
+
// Apply 1-10 animation fill modes.
|
|
109
|
+
@mixin animation-fill-mode($mode-1: $default-animation-fill-mode, $mode-2: false, $mode-3: false, $mode-4: false, $mode-5: false, $mode-6: false, $mode-7: false, $mode-8: false, $mode-9: false, $mode-10: false) {
|
|
110
|
+
$mode: compact($mode-1, $mode-2, $mode-3, $mode-4, $mode-5, $mode-6, $mode-7, $mode-8, $mode-9, $mode-10);
|
|
111
|
+
@include animation-support(animation-fill-mode, $mode); }
|
|
112
|
+
|
|
113
|
+
// Apply 1-10 animation play states.
|
|
114
|
+
@mixin animation-play-state($state-1: $default-animation-play-state, $state-2: false, $state-3: false, $state-4: false, $state-5: false, $state-6: false, $state-7: false, $state-8: false, $state-9: false, $state-10: false) {
|
|
115
|
+
$state: compact($state-1, $state-2, $state-3, $state-4, $state-5, $state-6, $state-7, $state-8, $state-9, $state-10);
|
|
116
|
+
@include animation-support(animation-play-state, $state); }
|
|
117
|
+
|
|
118
|
+
// Shortcut to apply a named animation to an element, with all the settings.
|
|
119
|
+
//
|
|
120
|
+
// $animation-1 : Name and settings for the first animation. [<values> | default]
|
|
121
|
+
// ...
|
|
122
|
+
// $animation-10 : Name and settings for the tenth animation. <values>
|
|
123
|
+
@mixin animation($animation-1: default, $animation-2: false, $animation-3: false, $animation-4: false, $animation-5: false, $animation-6: false, $animation-7: false, $animation-8: false, $animation-9: false, $animation-10: false) {
|
|
124
|
+
@if $animation-1 == default {
|
|
125
|
+
$animation-1: -compass-space-list(compact($default-animation-name, $default-animation-duration, $default-animation-timing-function, $default-animation-delay, $default-animation-iteration-count, $default-animation-direction, $default-animation-fill-mode, $default-animation-play-state)); }
|
|
126
|
+
$animation: compact($animation-1, $animation-2, $animation-3, $animation-4, $animation-5, $animation-6, $animation-7, $animation-8, $animation-9, $animation-10);
|
|
127
|
+
@include animation-support(animation, $animation); }
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
// The appearance property is currently not present in any newer CSS specification.
|
|
5
5
|
//
|
|
6
6
|
// There is no official list of accepted values, but you might check these source:
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
// (search for 'appearance' within the page)
|
|
7
|
+
// Mozilla : https://developer.mozilla.org/en/CSS/-moz-appearance
|
|
8
|
+
// Webkit : http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365
|
|
9
|
+
// (search for 'appearance' within the page)
|
|
11
10
|
|
|
12
11
|
@mixin appearance($ap) {
|
|
13
12
|
$ap: unquote($ap);
|
|
@@ -64,7 +64,7 @@ $default-box-ordinal-group: 1 !default;
|
|
|
64
64
|
|
|
65
65
|
// mixin which takes an int argument for ordinal grouping and rearranging the order
|
|
66
66
|
@mixin box-ordinal-group(
|
|
67
|
-
$group: $default-
|
|
67
|
+
$group: $default-ordinal-flex-group
|
|
68
68
|
) {
|
|
69
69
|
@include experimental(box-ordinal-group, $group,
|
|
70
70
|
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
@@ -108,4 +108,4 @@ $default-box-pack: start !default;
|
|
|
108
108
|
@include experimental(box-pack, $pack,
|
|
109
109
|
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
110
110
|
);
|
|
111
|
-
}
|
|
111
|
+
}
|
|
@@ -7,60 +7,51 @@
|
|
|
7
7
|
// @include columns(20em 2)
|
|
8
8
|
@mixin columns($width-and-count) {
|
|
9
9
|
@include experimental(columns, $width-and-count,
|
|
10
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
10
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// Specify the number of columns
|
|
15
15
|
@mixin column-count($count) {
|
|
16
16
|
@include experimental(column-count, $count,
|
|
17
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
17
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// Specify the gap between columns e.g. `20px`
|
|
22
22
|
@mixin column-gap($width) {
|
|
23
23
|
@include experimental(column-gap, $width,
|
|
24
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
24
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
// Specify the width of columns e.g. `100px`
|
|
29
29
|
@mixin column-width($width) {
|
|
30
30
|
@include experimental(column-width, $width,
|
|
31
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
31
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
// Specify how many columns an element should span across.
|
|
36
|
-
//
|
|
37
|
-
// * legal values are 1, all
|
|
38
|
-
@mixin column-span($columns) {
|
|
39
|
-
@include experimental(column-span, $columns,
|
|
40
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
35
|
// Specify the width of the rule between columns e.g. `1px`
|
|
45
36
|
@mixin column-rule-width($width) {
|
|
46
|
-
@include experimental(
|
|
47
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
37
|
+
@include experimental(rule-width, $width,
|
|
38
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
48
39
|
);
|
|
49
40
|
}
|
|
50
41
|
|
|
51
42
|
// Specify the style of the rule between columns e.g. `dotted`.
|
|
52
43
|
// This works like border-style.
|
|
53
44
|
@mixin column-rule-style($style) {
|
|
54
|
-
@include experimental(
|
|
55
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
45
|
+
@include experimental(rule-style, unquote($style),
|
|
46
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
56
47
|
);
|
|
57
48
|
}
|
|
58
49
|
|
|
59
50
|
// Specify the color of the rule between columns e.g. `blue`.
|
|
60
51
|
// This works like border-color.
|
|
61
52
|
@mixin column-rule-color($color) {
|
|
62
|
-
@include experimental(
|
|
63
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
53
|
+
@include experimental(rule-color, $color,
|
|
54
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
64
55
|
);
|
|
65
56
|
}
|
|
66
57
|
|
|
@@ -75,83 +66,6 @@
|
|
|
75
66
|
@mixin column-rule($width, $style: false, $color: false) {
|
|
76
67
|
$full : -compass-space-list(compact($width, $style, $color));
|
|
77
68
|
@include experimental(column-rule, $full,
|
|
78
|
-
-moz, -webkit, -o, -ms, not -khtml, official
|
|
69
|
+
-moz, -webkit, not -o, -ms, not -khtml, official
|
|
79
70
|
);
|
|
80
71
|
}
|
|
81
|
-
|
|
82
|
-
// Mixin for setting column-break-before
|
|
83
|
-
//
|
|
84
|
-
// * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
|
85
|
-
//
|
|
86
|
-
// Example:
|
|
87
|
-
// h2.before {@include column-break-before(always);}
|
|
88
|
-
//
|
|
89
|
-
// Which generates:
|
|
90
|
-
//
|
|
91
|
-
// h2.before {
|
|
92
|
-
// -webkit-column-break-before: always;
|
|
93
|
-
// column-break-before: always;}
|
|
94
|
-
@mixin column-break-before($value: auto){
|
|
95
|
-
@include experimental(column-break-before, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Mixin for setting column-break-after
|
|
99
|
-
//
|
|
100
|
-
// * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
|
101
|
-
//
|
|
102
|
-
// Example:
|
|
103
|
-
// h2.after {@include column-break-after(always); }
|
|
104
|
-
//
|
|
105
|
-
// Which generates:
|
|
106
|
-
//
|
|
107
|
-
// h2.after {
|
|
108
|
-
// -webkit-column-break-after: always;
|
|
109
|
-
// column-break-after: always; }
|
|
110
|
-
@mixin column-break-after($value: auto){
|
|
111
|
-
@include experimental(column-break-after, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
// Mixin for setting column-break-inside
|
|
115
|
-
//
|
|
116
|
-
// * legal values are auto, avoid, avoid-page, avoid-column
|
|
117
|
-
//
|
|
118
|
-
// Example:
|
|
119
|
-
// h2.inside {@include column-break-inside();}
|
|
120
|
-
// Which generates:
|
|
121
|
-
//
|
|
122
|
-
// h2.inside {
|
|
123
|
-
// -webkit-column-break-inside: auto;
|
|
124
|
-
// column-break-inside: auto;}
|
|
125
|
-
@mixin column-break-inside($value: auto){
|
|
126
|
-
@include experimental(column-break-inside, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// All-purpose mixin for setting column breaks.
|
|
130
|
-
//
|
|
131
|
-
// * legal values for $type : before, after, inside
|
|
132
|
-
// * legal values for '$value' are dependent on $type
|
|
133
|
-
// * when $type = before, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
|
134
|
-
// * when $type = after, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
|
|
135
|
-
// * when $type = inside, legal values are auto, avoid, avoid-page, avoid-column
|
|
136
|
-
//
|
|
137
|
-
// Examples:
|
|
138
|
-
// h2.before {@include column-break(before, always);}
|
|
139
|
-
// h2.after {@include column-break(after, always); }
|
|
140
|
-
// h2.inside {@include column-break(inside); }
|
|
141
|
-
//
|
|
142
|
-
// Which generates:
|
|
143
|
-
// h2.before {
|
|
144
|
-
// -webkit-column-break-before: always;
|
|
145
|
-
// column-break-before: always;}
|
|
146
|
-
//
|
|
147
|
-
// h2.after {
|
|
148
|
-
// -webkit-column-break-after: always;
|
|
149
|
-
// column-break-after: always; }
|
|
150
|
-
//
|
|
151
|
-
// h2.inside {
|
|
152
|
-
// -webkit-column-break-inside: auto;
|
|
153
|
-
// column-break-inside: auto;}
|
|
154
|
-
|
|
155
|
-
@mixin column-break($type: before, $value: auto){
|
|
156
|
-
@include experimental("column-break-#{$type}", $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
|
|
157
|
-
}
|