compass 0.12.alpha.0 → 0.12.alpha.1
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/Rakefile +1 -0
- data/VERSION.yml +1 -1
- data/bin/compass +1 -1
- data/bin/compass.compiled.rbc +707 -0
- data/examples/downloader.rb +3 -2
- data/examples/ninesixty/bootstrap.rb +1 -1
- data/features/command_line.feature +17 -17
- data/features/extensions.feature +6 -0
- data/features/step_definitions/command_line_steps.rb +2 -0
- data/frameworks/compass/stylesheets/compass/_support.scss +1 -1
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +7 -24
- data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +0 -15
- data/frameworks/compass/stylesheets/compass/css3/_shared.scss +12 -12
- data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +6 -20
- data/frameworks/compass/stylesheets/compass/css3/_transition.scss +38 -24
- data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +19 -0
- data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +12 -3
- data/frameworks/compass/stylesheets/compass/typography/lists/_bullets.scss +1 -1
- data/frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss +14 -11
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +29 -6
- data/frameworks/compass/templates/pie/PIE.htc +83 -64
- data/lib/compass.rbc +42 -36
- data/lib/compass/actions.rb +0 -1
- data/lib/compass/actions.rbc +244 -85
- data/lib/compass/app_integration.rbc +28 -20
- data/lib/compass/app_integration/merb.rbc +8 -4
- data/lib/compass/app_integration/rails.rbc +664 -148
- data/lib/compass/app_integration/rails/actionpack31/helpers.rb +23 -0
- data/lib/compass/app_integration/rails/actionpack31/railtie.rb +8 -10
- data/lib/compass/app_integration/rails/configuration_defaults.rbc +1089 -332
- data/lib/compass/app_integration/rails/installer.rbc +145 -61
- data/lib/compass/app_integration/stand_alone.rbc +15 -15
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +23 -23
- data/lib/compass/app_integration/stand_alone/installer.rbc +52 -32
- data/lib/compass/browser_support.rbc +35 -23
- 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.rbc +2085 -0
- data/lib/compass/commands/project_stats.rb +7 -7
- 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.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 +3 -0
- data/lib/compass/compiler.rbc +591 -398
- data/lib/compass/configuration.rbc +134 -78
- data/lib/compass/configuration/adapters.rbc +98 -40
- data/lib/compass/configuration/comments.rbc +132 -51
- data/lib/compass/configuration/data.rb +6 -0
- data/lib/compass/configuration/data.rbc +541 -551
- data/lib/compass/configuration/defaults.rbc +764 -189
- data/lib/compass/configuration/file_data.rbc +37 -125
- data/lib/compass/configuration/helpers.rb +1 -0
- data/lib/compass/configuration/helpers.rbc +433 -153
- data/lib/compass/configuration/inheritance.rb +2 -0
- data/lib/compass/configuration/inheritance.rbc +412 -165
- data/lib/compass/configuration/paths.rbc +9 -9
- data/lib/compass/configuration/serialization.rbc +151 -84
- data/lib/compass/dependencies.rbc +16 -4
- data/lib/compass/errors.rbc +5 -5
- data/lib/compass/exec.rbc +500 -0
- data/lib/compass/exec/command_option_parser.rbc +676 -0
- 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.rbc +1515 -0
- data/lib/compass/exec/sub_command_ui.rbc +1191 -0
- data/lib/compass/frameworks.rb +10 -4
- data/lib/compass/frameworks.rbc +118 -66
- 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 +12 -8
- data/lib/compass/sass_extensions.rbc +8 -4
- data/lib/compass/sass_extensions/functions.rb +4 -2
- data/lib/compass/sass_extensions/functions.rbc +90 -57
- data/lib/compass/sass_extensions/functions/colors.rbc +22 -18
- data/lib/compass/sass_extensions/functions/constants.rbc +45 -25
- data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +48 -36
- data/lib/compass/sass_extensions/functions/display.rbc +341 -107
- data/lib/compass/sass_extensions/functions/enumerate.rbc +9 -9
- data/lib/compass/sass_extensions/functions/env.rb +5 -0
- data/lib/compass/sass_extensions/functions/env.rbc +299 -0
- data/lib/compass/sass_extensions/functions/font_files.rb +32 -3
- data/lib/compass/sass_extensions/functions/font_files.rbc +540 -123
- data/lib/compass/sass_extensions/functions/gradient_support.rbc +379 -167
- data/lib/compass/sass_extensions/functions/image_size.rb +19 -16
- data/lib/compass/sass_extensions/functions/image_size.rbc +715 -400
- data/lib/compass/sass_extensions/functions/inline_image.rb +1 -1
- data/lib/compass/sass_extensions/functions/inline_image.rbc +152 -98
- data/lib/compass/sass_extensions/functions/lists.rbc +75 -39
- data/lib/compass/sass_extensions/functions/selectors.rbc +36 -28
- data/lib/compass/sass_extensions/functions/sprites.rb +27 -4
- data/lib/compass/sass_extensions/functions/sprites.rbc +255 -233
- data/lib/compass/sass_extensions/functions/trig.rbc +53 -51
- data/lib/compass/sass_extensions/functions/urls.rbc +3151 -1044
- data/lib/compass/sass_extensions/monkey_patches.rbc +5 -5
- data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +63 -47
- data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +36 -16
- data/lib/compass/sass_extensions/sprites.rbc +93 -13
- data/lib/compass/sass_extensions/sprites/engines.rbc +615 -6
- data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +260 -94
- data/lib/compass/sass_extensions/sprites/image.rb +5 -5
- data/lib/compass/sass_extensions/sprites/image.rbc +694 -316
- 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.rb +12 -8
- data/lib/compass/sass_extensions/sprites/layout_methods.rbc +3236 -0
- data/lib/compass/sass_extensions/sprites/row_fitter.rb +7 -1
- data/lib/compass/sass_extensions/sprites/row_fitter.rbc +2067 -0
- data/lib/compass/sass_extensions/sprites/sprite_map.rb +1 -1
- data/lib/compass/sass_extensions/sprites/sprite_map.rbc +714 -3641
- data/lib/compass/sass_extensions/sprites/sprite_methods.rb +24 -4
- data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +3190 -0
- data/lib/compass/sprite_importer.rb +15 -80
- data/lib/compass/sprite_importer.rbc +1125 -1495
- data/lib/compass/sprite_importer/binding.rb +11 -0
- data/lib/compass/sprite_importer/content.erb +81 -0
- data/lib/compass/util.rbc +19 -11
- data/lib/compass/version.rbc +53 -25
- data/test/fixtures/extensions/only_stylesheets/compass_init.rb +1 -0
- data/test/fixtures/extensions/only_stylesheets/scss/only_stylesheets/foo.scss +3 -0
- data/test/fixtures/fonts/bgrove.base64.txt +1 -0
- data/test/fixtures/fonts/bgrove.ttf +0 -0
- data/test/fixtures/sprites/public/images/bool/false.png +0 -0
- data/test/fixtures/sprites/public/images/bool/true.png +0 -0
- data/test/fixtures/stylesheets/blueprint/css/screen.css +1 -2
- data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +1 -2
- data/test/fixtures/stylesheets/compass/css/border_radius.css +6 -9
- data/test/fixtures/stylesheets/compass/css/box.css +0 -19
- data/test/fixtures/stylesheets/compass/css/box_shadow.css +3 -6
- data/test/fixtures/stylesheets/compass/css/columns.css +8 -16
- data/test/fixtures/stylesheets/compass/css/grid_background.css +4 -8
- data/test/fixtures/stylesheets/compass/css/lists.css +7 -7
- data/test/fixtures/stylesheets/compass/css/pie.css +2 -3
- data/test/fixtures/stylesheets/compass/css/reset.css +0 -1
- data/test/fixtures/stylesheets/compass/css/sprites.css +1 -1
- data/test/fixtures/stylesheets/compass/css/text_shadow.css +0 -3
- data/test/fixtures/stylesheets/compass/css/transform.css +28 -92
- data/test/fixtures/stylesheets/compass/css/transition.css +11 -0
- data/test/fixtures/stylesheets/compass/css/user-interface.css +4 -0
- data/test/fixtures/stylesheets/compass/images/{flag-s8c3c755a68.png → flag-s8f1e8fdb9b.png} +0 -0
- data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +0 -1
- data/test/fixtures/stylesheets/compass/sass/transition.scss +4 -0
- data/test/fixtures/stylesheets/compass/sass/user-interface.scss +5 -0
- data/test/fixtures/stylesheets/envtest/config.rb +9 -0
- data/test/fixtures/stylesheets/envtest/css/env.css +2 -0
- data/test/fixtures/stylesheets/envtest/sass/env.scss +3 -0
- data/test/fixtures/stylesheets/envtest/tmp/env.css +2 -0
- data/test/fixtures/stylesheets/uses_only_stylesheets_ext/config.rb +25 -0
- data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/ie.scss +5 -0
- data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/print.scss +3 -0
- data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/screen.scss +6 -0
- data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/ie.css +5 -0
- data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/print.css +3 -0
- data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/screen.css +68 -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.rbc +1255 -0
- data/test/integrations/compass_test.rb +24 -2
- data/test/integrations/compass_test.rbc +6589 -0
- data/test/integrations/rails_integration_test.rbc +1342 -0
- data/test/integrations/sprites_test.rb +123 -25
- data/test/integrations/sprites_test.rbc +6192 -0
- data/test/test_helper.rb +7 -5
- data/test/test_helper.rbc +1694 -0
- data/test/tmp/compass_rails/public/images/{selectors-sef52c5c63a.png → selectors-s4c703bbc05.png} +0 -0
- data/test/units/actions_test.rbc +644 -0
- data/test/units/command_line_test.rbc +1532 -0
- 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 +31 -0
- 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.rb +3 -3
- data/test/units/sprites/image_test.rbc +2836 -0
- data/test/units/sprites/importer_test.rb +6 -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.rb +19 -6
- data/test/units/sprites/sprite_map_test.rbc +6515 -0
- metadata +180 -54
data/examples/downloader.rb
CHANGED
|
@@ -9,8 +9,9 @@ def fetch(uri_str, limit = 10)
|
|
|
9
9
|
|
|
10
10
|
url = URI.parse(uri_str)
|
|
11
11
|
http = Net::HTTP.new(url.host, url.port)
|
|
12
|
-
http.open_timeout =
|
|
12
|
+
http.open_timeout = 10
|
|
13
13
|
http.read_timeout = 30
|
|
14
|
+
http.use_ssl = true
|
|
14
15
|
response = http.start do |http|
|
|
15
16
|
puts "getting #{url.path}"
|
|
16
17
|
http.request_get(url.path)
|
|
@@ -25,7 +26,7 @@ def fetch(uri_str, limit = 10)
|
|
|
25
26
|
end
|
|
26
27
|
|
|
27
28
|
def install_from_github(user, project, ext_name, branch = "master", working_directory = Dir.pwd)
|
|
28
|
-
download_link = "
|
|
29
|
+
download_link = "https://github.com/#{user}/#{project}/zipball/#{branch}"
|
|
29
30
|
extdir = File.join(working_directory,'extensions')
|
|
30
31
|
|
|
31
32
|
if !File.exists?("#{extdir}/#{ext_name}")
|
|
@@ -200,7 +200,7 @@ Feature: Command Line
|
|
|
200
200
|
| tmp/box_shadow.css |
|
|
201
201
|
| tmp/columns.css |
|
|
202
202
|
| tmp/fonts.css |
|
|
203
|
-
| images/flag-
|
|
203
|
+
| images/flag-s8f1e8fdb9b.png |
|
|
204
204
|
And the following files are removed:
|
|
205
205
|
| .sass-cache/ |
|
|
206
206
|
| tmp/border_radius.css |
|
|
@@ -208,7 +208,7 @@ Feature: Command Line
|
|
|
208
208
|
| tmp/box_shadow.css |
|
|
209
209
|
| tmp/columns.css |
|
|
210
210
|
| tmp/fonts.css |
|
|
211
|
-
| images/flag-
|
|
211
|
+
| images/flag-s8f1e8fdb9b.png |
|
|
212
212
|
|
|
213
213
|
Scenario: Watching a project for changes
|
|
214
214
|
Given ruby supports fork
|
|
@@ -277,21 +277,21 @@ Feature: Command Line
|
|
|
277
277
|
Given I am using the existing project in test/fixtures/stylesheets/compass
|
|
278
278
|
When I run: compass stats
|
|
279
279
|
Then I am told statistics for each file:
|
|
280
|
-
| Filename | Rules | Properties | Mixins Defs | Mixins Used | CSS
|
|
281
|
-
| sass/border_radius.scss | \d+ | \d+ | \d+ | \d+ |
|
|
282
|
-
| sass/box.sass | \d+ | \d+ | \d+ | \d+ |
|
|
283
|
-
| sass/fonts.sass | \d+ | \d+ | \d+ | \d+ |
|
|
284
|
-
| sass/gradients.sass | \d+ | \d+ | \d+ | \d+ |
|
|
285
|
-
| sass/image_size.sass | \d+ | \d+ | \d+ | \d+ |
|
|
286
|
-
| sass/images.scss | \d+ | \d+ | \d+ | \d+ |
|
|
287
|
-
| sass/layout.sass | \d+ | \d+ | \d+ | \d+ |
|
|
288
|
-
| sass/legacy_clearfix.scss | \d+ | \d+ | \d+ | \d+ |
|
|
289
|
-
| sass/lists.scss | \d+ | \d+ | \d+ | \d+ |
|
|
290
|
-
| sass/print.sass | \d+ | \d+ | \d+ | \d+ |
|
|
291
|
-
| sass/reset.sass | \d+ | \d+ | \d+ | \d+ |
|
|
292
|
-
| sass/utilities.scss | \d+ | \d+ | \d+ | \d+ |
|
|
293
|
-
| ------------------------- | ----- | ---------- | -------------- | ----------- |
|
|
294
|
-
| Total.* | \d+ | \d+ | \d+ | \d+ |
|
|
280
|
+
| Filename | Rules | Properties | Mixins Defs | Mixins Used | CSS Selectors | CSS Properties |
|
|
281
|
+
| sass/border_radius.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
282
|
+
| sass/box.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
283
|
+
| sass/fonts.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
284
|
+
| sass/gradients.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
285
|
+
| sass/image_size.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
286
|
+
| sass/images.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
287
|
+
| sass/layout.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
288
|
+
| sass/legacy_clearfix.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
289
|
+
| sass/lists.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
290
|
+
| sass/print.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
291
|
+
| sass/reset.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
292
|
+
| sass/utilities.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
293
|
+
| ------------------------- | ----- | ---------- | -------------- | ----------- | ------------- | -------------- |
|
|
294
|
+
| Total.* | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
|
|
295
295
|
|
|
296
296
|
@listframeworks
|
|
297
297
|
Scenario: List frameworks registered with compass
|
data/features/extensions.feature
CHANGED
|
@@ -28,3 +28,9 @@ Feature: Extensions
|
|
|
28
28
|
And and I have a fake extension at ~/.compass/extensions/testing
|
|
29
29
|
When I run: compass frameworks
|
|
30
30
|
Then the list of frameworks includes "testing"
|
|
31
|
+
|
|
32
|
+
@listframeworks
|
|
33
|
+
Scenario: Frameworks without templates
|
|
34
|
+
Given I am using the existing project in test/fixtures/stylesheets/uses_only_stylesheets_ext
|
|
35
|
+
When I run: compass frameworks
|
|
36
|
+
Then the list of frameworks includes "only_stylesheets"
|
|
@@ -27,7 +27,7 @@ $experimental-support-for-opera : true !default;
|
|
|
27
27
|
// Support for microsoft in experimental css3 properties (-ms).
|
|
28
28
|
$experimental-support-for-microsoft : true !default;
|
|
29
29
|
// Support for khtml in experimental css3 properties (-khtml).
|
|
30
|
-
$experimental-support-for-khtml :
|
|
30
|
+
$experimental-support-for-khtml : false !default;
|
|
31
31
|
// Support for svg in experimental css3 properties.
|
|
32
32
|
// Setting this to true might add significant size to your
|
|
33
33
|
// generated stylesheets.
|
|
@@ -40,30 +40,13 @@ $default-box-shadow-inset : false !default;
|
|
|
40
40
|
$shadow-9 : false,
|
|
41
41
|
$shadow-10: false
|
|
42
42
|
) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
@if $legacy {
|
|
46
|
-
@warn "Passing separate arguments for a single shadow to box-shadow is deprecated. " +
|
|
47
|
-
"Pass the values as a single space-separated list, or use the single-box-shadow mixin. " +
|
|
48
|
-
"See http://beta.compass-style.org/help/tutorials/upgrading/antares/ for more info.";
|
|
49
|
-
@include single-box-shadow(
|
|
50
|
-
if($shadow-1, $shadow-1, $default-box-shadow-color),
|
|
51
|
-
if($shadow-2, $shadow-2, $default-box-shadow-h-offset),
|
|
52
|
-
if($shadow-3, $shadow-3, $default-box-shadow-v-offset),
|
|
53
|
-
if($shadow-4, $shadow-4, $default-box-shadow-blur),
|
|
54
|
-
if($shadow-5, $shadow-5, $default-box-shadow-spread),
|
|
55
|
-
if($shadow-6, $shadow-6, $default-box-shadow-inset)
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
@else {
|
|
59
|
-
@if $shadow-1 == default {
|
|
60
|
-
$shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset, false), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
|
|
61
|
-
}
|
|
62
|
-
$shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
|
|
63
|
-
@include experimental(box-shadow, $shadow,
|
|
64
|
-
-moz, -webkit, -o, not -ms, not -khtml, official
|
|
65
|
-
);
|
|
43
|
+
@if $shadow-1 == default {
|
|
44
|
+
$shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset, false), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
|
|
66
45
|
}
|
|
46
|
+
$shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
|
|
47
|
+
@include experimental(box-shadow, $shadow,
|
|
48
|
+
-moz, -webkit, -o, not -ms, not -khtml, official
|
|
49
|
+
);
|
|
67
50
|
}
|
|
68
51
|
|
|
69
52
|
// Provides a single cross-browser CSS box shadow for Webkit, Gecko, and CSS3.
|
|
@@ -90,4 +73,4 @@ $default-box-shadow-inset : false !default;
|
|
|
90
73
|
@if $inset { $full: inset $full; }
|
|
91
74
|
@include box-shadow($full);
|
|
92
75
|
}
|
|
93
|
-
}
|
|
76
|
+
}
|
|
@@ -46,18 +46,3 @@
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
// EXAMPLE
|
|
51
|
-
// +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "this.eot", bold, italic)
|
|
52
|
-
//
|
|
53
|
-
// will generate:
|
|
54
|
-
//
|
|
55
|
-
// @font-face {
|
|
56
|
-
// font-family: 'this name';
|
|
57
|
-
// src: url('fonts/this.eot');
|
|
58
|
-
// src: local("☺"),
|
|
59
|
-
// url('fonts/this.otf') format('woff'),
|
|
60
|
-
// url('fonts/this.woff') format('opentype');
|
|
61
|
-
// font-weight: bold;
|
|
62
|
-
// font-style: italic;
|
|
63
|
-
// }
|
|
@@ -5,34 +5,34 @@
|
|
|
5
5
|
// the implementations are identical except for the property
|
|
6
6
|
// prefix.
|
|
7
7
|
@mixin experimental($property, $value,
|
|
8
|
-
$moz : $experimental-support-for-mozilla,
|
|
9
8
|
$webkit : $experimental-support-for-webkit,
|
|
10
|
-
$o : $experimental-support-for-opera,
|
|
11
|
-
$ms : $experimental-support-for-microsoft,
|
|
12
9
|
$khtml : $experimental-support-for-khtml,
|
|
10
|
+
$moz : $experimental-support-for-mozilla,
|
|
11
|
+
$ms : $experimental-support-for-microsoft,
|
|
12
|
+
$o : $experimental-support-for-opera,
|
|
13
13
|
$official : true
|
|
14
14
|
) {
|
|
15
|
-
@if $moz and $experimental-support-for-mozilla { -moz-#{$property} : $value; }
|
|
16
15
|
@if $webkit and $experimental-support-for-webkit { -webkit-#{$property} : $value; }
|
|
17
|
-
@if $o and $experimental-support-for-opera { -o-#{$property} : $value; }
|
|
18
|
-
@if $ms and $experimental-support-for-microsoft { -ms-#{$property} : $value; }
|
|
19
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
20
|
@if $official { #{$property} : $value; }
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
// Same as experimental(), but for cases when the property is the same and the value is vendorized
|
|
24
24
|
@mixin experimental-value($property, $value,
|
|
25
|
-
$moz : $experimental-support-for-mozilla,
|
|
26
25
|
$webkit : $experimental-support-for-webkit,
|
|
27
|
-
$o : $experimental-support-for-opera,
|
|
28
|
-
$ms : $experimental-support-for-microsoft,
|
|
29
26
|
$khtml : $experimental-support-for-khtml,
|
|
27
|
+
$moz : $experimental-support-for-mozilla,
|
|
28
|
+
$ms : $experimental-support-for-microsoft,
|
|
29
|
+
$o : $experimental-support-for-opera,
|
|
30
30
|
$official : true
|
|
31
31
|
) {
|
|
32
|
-
@if $moz and $experimental-support-for-mozilla { #{$property} : -moz-#{$value}; }
|
|
33
32
|
@if $webkit and $experimental-support-for-webkit { #{$property} : -webkit-#{$value}; }
|
|
34
|
-
@if $o and $experimental-support-for-opera { #{$property} : -o-#{$value}; }
|
|
35
|
-
@if $ms and $experimental-support-for-microsoft { #{$property} : -ms-#{$value}; }
|
|
36
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
37
|
@if $official { #{$property} : #{$value}; }
|
|
38
38
|
}
|
|
@@ -23,26 +23,12 @@ $default-text-shadow-blur: 1px !default;
|
|
|
23
23
|
$shadow-9 : false,
|
|
24
24
|
$shadow-10: false
|
|
25
25
|
) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@if $legacy {
|
|
29
|
-
@warn "Passing separate arguments for a single shadow to text-shadow is deprecated. " +
|
|
30
|
-
"Pass the values as a single space-separated list, or use the single-text-shadow mixin. " +
|
|
31
|
-
"See http://beta.compass-style.org/help/tutorials/upgrading/antares/ for more info.";
|
|
32
|
-
@include single-text-shadow(
|
|
33
|
-
$shadow-1,
|
|
34
|
-
if($shadow-2, $shadow-2, $default-text-shadow-h-offset),
|
|
35
|
-
if($shadow-3, $shadow-3, $default-text-shadow-v-offset),
|
|
36
|
-
if($shadow-4, $shadow-4, $default-text-shadow-blur)
|
|
37
|
-
);
|
|
38
|
-
} @else {
|
|
39
|
-
@if $shadow-1 == default {
|
|
40
|
-
$shadow-1: $default-text-shadow-color $default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur;
|
|
41
|
-
}
|
|
42
|
-
text-shadow: compact($shadow-1, $shadow-2, $shadow-3,
|
|
43
|
-
$shadow-4, $shadow-5, $shadow-6,
|
|
44
|
-
$shadow-7, $shadow-8, $shadow-9, $shadow-10);
|
|
26
|
+
@if $shadow-1 == default {
|
|
27
|
+
$shadow-1: $default-text-shadow-color $default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur;
|
|
45
28
|
}
|
|
29
|
+
text-shadow: compact($shadow-1, $shadow-2, $shadow-3,
|
|
30
|
+
$shadow-4, $shadow-5, $shadow-6,
|
|
31
|
+
$shadow-7, $shadow-8, $shadow-9, $shadow-10);
|
|
46
32
|
}
|
|
47
33
|
|
|
48
34
|
// Provides a single cross-browser CSS text shadow.
|
|
@@ -57,6 +43,6 @@ $default-text-shadow-blur: 1px !default;
|
|
|
57
43
|
@if $color == none {
|
|
58
44
|
text-shadow: none;
|
|
59
45
|
} @else {
|
|
60
|
-
text-shadow: $color $hoff $voff $blur;
|
|
46
|
+
text-shadow: $color $hoff $voff $blur;
|
|
61
47
|
}
|
|
62
48
|
}
|
|
@@ -73,15 +73,42 @@ $default-transition-delay: false !default;
|
|
|
73
73
|
// Transition all-in-one shorthand
|
|
74
74
|
|
|
75
75
|
@mixin single-transition(
|
|
76
|
-
$
|
|
76
|
+
$property: $default-transition-property,
|
|
77
77
|
$duration: $default-transition-duration,
|
|
78
78
|
$function: $default-transition-function,
|
|
79
79
|
$delay: $default-transition-delay
|
|
80
80
|
) {
|
|
81
|
-
@
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
@if $property and $duration and $function {
|
|
82
|
+
// Shorthand (see https://github.com/chriseppstein/compass/issues/585)
|
|
83
|
+
@if $delay {
|
|
84
|
+
-webkit-transition: $property $duration $function;
|
|
85
|
+
-webkit-transition-delay: $delay;
|
|
86
|
+
@include experimental(transition, $property $duration $function $delay,
|
|
87
|
+
-moz,
|
|
88
|
+
not -webkit,
|
|
89
|
+
-o,
|
|
90
|
+
not -ms,
|
|
91
|
+
not -khtml,
|
|
92
|
+
official
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
@else {
|
|
96
|
+
@include experimental(transition, $property $duration $function,
|
|
97
|
+
-moz,
|
|
98
|
+
-webkit,
|
|
99
|
+
-o,
|
|
100
|
+
not -ms,
|
|
101
|
+
not -khtml,
|
|
102
|
+
official
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
@else {
|
|
107
|
+
@include transition-property($property);
|
|
108
|
+
@include transition-duration($duration);
|
|
109
|
+
@if $function { @include transition-timing-function($function); }
|
|
110
|
+
@if $delay { @include transition-delay($delay); }
|
|
111
|
+
}
|
|
85
112
|
}
|
|
86
113
|
|
|
87
114
|
@mixin transition(
|
|
@@ -96,24 +123,11 @@ $default-transition-delay: false !default;
|
|
|
96
123
|
$transition-9 : false,
|
|
97
124
|
$transition-10: false
|
|
98
125
|
) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
@warn "Passing separate arguments for a single transition to transition is deprecated. " +
|
|
102
|
-
"Pass the values as a single space-separated list, or use the single-transition mixin.";
|
|
103
|
-
@include single-transition(
|
|
104
|
-
if($transition-1, $transition-1, $default-transition-property),
|
|
105
|
-
if($transition-2, $transition-2, $default-transition-duration),
|
|
106
|
-
if($transition-3, $transition-3, $default-transition-function),
|
|
107
|
-
if($transition-4, $transition-4, $default-transition-delay)
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
@else {
|
|
111
|
-
@if $transition-1 == default {
|
|
112
|
-
$transition-1 : -compass-space-list(compact($default-transition-property, $default-transition-duration, $default-transition-function, $default-transition-delay));
|
|
113
|
-
}
|
|
114
|
-
$transition : compact($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10);
|
|
115
|
-
@include experimental(transition, $transition,
|
|
116
|
-
-moz, -webkit, -o, not -ms, not -khtml, official
|
|
117
|
-
);
|
|
126
|
+
@if $transition-1 == default {
|
|
127
|
+
$transition-1 : -compass-space-list(compact($default-transition-property, $default-transition-duration, $default-transition-function, $default-transition-delay));
|
|
118
128
|
}
|
|
129
|
+
$transition : compact($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10);
|
|
130
|
+
@include experimental(transition, $transition,
|
|
131
|
+
-moz, -webkit, -o, not -ms, not -khtml, official
|
|
132
|
+
);
|
|
119
133
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import "shared";
|
|
2
|
+
|
|
3
|
+
// User Interface ------------------------------------------------------------
|
|
4
|
+
// This file can be expanded to handle all the user interface properties as
|
|
5
|
+
// they become available in browsers:
|
|
6
|
+
// http://www.w3.org/TR/2000/WD-css3-userint-20000216
|
|
7
|
+
|
|
8
|
+
// User Select ---------------------------------------------------------------
|
|
9
|
+
// This property controls the selection model and granularity of an element.
|
|
10
|
+
//
|
|
11
|
+
// @param $select
|
|
12
|
+
// [ none | text | toggle | element | elements | all | inherit ]
|
|
13
|
+
|
|
14
|
+
@mixin user-select($select) {
|
|
15
|
+
$select: unquote($select);
|
|
16
|
+
@include experimental(user-select, $select,
|
|
17
|
+
-moz, -webkit, not -o, not -ms, -khtml, official
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "compass/layout/grid-background";
|
|
2
|
+
|
|
1
3
|
// The base font size
|
|
2
4
|
$base-font-size: 16px !default;
|
|
3
5
|
|
|
@@ -58,8 +60,14 @@ $base-half-leader: $base-leader / 2;
|
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
// Show a background image that can be used to debug your alignments.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
+
// include the $img argument if you would rather use your own image than the
|
|
64
|
+
// Compass default gradient image.
|
|
65
|
+
@mixin debug-vertical-alignment($img: false) {
|
|
66
|
+
@if $img {
|
|
67
|
+
background: image-url($img);
|
|
68
|
+
} @else {
|
|
69
|
+
@include baseline-grid-background($base-rhythm-unit);
|
|
70
|
+
}
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
// Adjust a block to have a different font size and leading to maintain the rhythm.
|
|
@@ -149,7 +157,8 @@ $base-half-leader: $base-leader / 2;
|
|
|
149
157
|
@include trailer($trailer, $font-size);
|
|
150
158
|
}
|
|
151
159
|
|
|
152
|
-
// Apply a border width to any side without destroying the vertical rhythm
|
|
160
|
+
// Apply a border width to any side without destroying the vertical rhythm.
|
|
161
|
+
// The available space ($lines) must be greater than the width of your border.
|
|
153
162
|
@mixin apply-side-rhythm-border($side, $width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
|
|
154
163
|
@if not $relative-font-sizing and $font-size != $base-font-size {
|
|
155
164
|
@warn "$relative-font-sizing is false but a relative font size was passed to apply-side-rhythm-border";
|
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
//
|
|
3
3
|
// Easy mode using simple descendant li selectors:
|
|
4
4
|
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
5
|
+
// ul.nav {
|
|
6
|
+
// @import inline-block-list;
|
|
7
|
+
// }
|
|
7
8
|
//
|
|
8
9
|
// Advanced mode:
|
|
9
10
|
// If you need to target the list items using a different selector then use
|
|
10
|
-
//
|
|
11
|
-
// This may help when working
|
|
11
|
+
// `@include inline-block-list-container` on your ul/ol and
|
|
12
|
+
// `@include inline-block-list-item` on your li. This may help when working
|
|
13
|
+
// on layouts involving nested lists. For example:
|
|
12
14
|
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
15
|
+
// ul.nav {
|
|
16
|
+
// @include inline-block-list-container;
|
|
17
|
+
// > li {
|
|
18
|
+
// @include inline-block-list-item;
|
|
19
|
+
// }
|
|
20
|
+
// }
|
|
17
21
|
|
|
18
22
|
@import "bullets";
|
|
19
23
|
@import "horizontal-list";
|
|
@@ -21,13 +25,12 @@
|
|
|
21
25
|
@import "compass/css3/inline-block";
|
|
22
26
|
|
|
23
27
|
// Can be mixed into any selector that target a ul or ol that is meant
|
|
24
|
-
// to have an inline-block layout. Used to implement
|
|
28
|
+
// to have an inline-block layout. Used to implement `inline-block-list`.
|
|
25
29
|
@mixin inline-block-list-container {
|
|
26
30
|
@include horizontal-list-container; }
|
|
27
31
|
|
|
28
32
|
// Can be mixed into any li selector that is meant to participate in a horizontal layout.
|
|
29
|
-
// Used to implement
|
|
30
|
-
|
|
33
|
+
// Used to implement `inline-block-list`.
|
|
31
34
|
@mixin inline-block-list-item($padding: false) {
|
|
32
35
|
@include no-bullet;
|
|
33
36
|
@include inline-block;
|