compass 0.10.6 → 0.11.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/Rakefile +6 -6
- data/VERSION.yml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +8 -0
- data/examples/css3/src/main.scss +4 -0
- data/features/command_line.feature +20 -3
- data/features/step_definitions/command_line_steps.rb +7 -1
- data/frameworks/blueprint/stylesheets/_blueprint.scss +2 -12
- data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +34 -34
- data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -28
- data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +3 -3
- data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +2 -2
- data/frameworks/blueprint/stylesheets/blueprint/_form.scss +14 -16
- data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +39 -37
- data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +17 -15
- data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +53 -44
- data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +26 -26
- data/frameworks/blueprint/stylesheets/blueprint/_print.scss +13 -20
- data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +32 -44
- data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +10 -12
- data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +18 -32
- data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +50 -25
- data/frameworks/compass/stylesheets/compass/_css3.scss +1 -15
- data/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
- data/frameworks/compass/stylesheets/compass/_support.scss +4 -0
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow-v2.scss +98 -0
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +7 -40
- data/frameworks/compass/stylesheets/compass/css3/_box.scss +0 -1
- data/frameworks/compass/stylesheets/compass/css3/_columns.scss +23 -18
- data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +2 -3
- data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +66 -42
- data/frameworks/compass/stylesheets/compass/css3/_images.scss +52 -0
- data/frameworks/compass/stylesheets/compass/css3/_shared.scss +1 -1
- data/frameworks/compass/stylesheets/compass/css3/_text-shadow-v2.scss +72 -0
- data/frameworks/compass/stylesheets/compass/css3/_transform-v2.scss +584 -0
- data/frameworks/compass/stylesheets/compass/css3/_version-1.scss +16 -0
- data/frameworks/compass/stylesheets/compass/css3/_version-2.scss +16 -0
- data/frameworks/compass/stylesheets/compass/layout/_stretching.scss +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +4 -4
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +5 -1
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +7 -1
- data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +7 -1
- data/lib/compass/actions.rb +1 -1
- data/lib/compass/app_integration/rails/actionpack3/railtie.rb +18 -0
- data/lib/compass/app_integration/rails/configuration_defaults.rb +22 -0
- data/lib/compass/app_integration/rails/installer.rb +77 -34
- data/lib/compass/app_integration/rails/runtime.rb +3 -0
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -1
- data/lib/compass/commands/print_version.rb +1 -1
- data/lib/compass/commands/update_project.rb +2 -2
- data/lib/compass/commands/write_configuration.rb +10 -1
- data/lib/compass/compiler.rb +1 -5
- data/lib/compass/configuration.rb +2 -1
- data/lib/compass/configuration/adapters.rb +2 -1
- data/lib/compass/configuration/comments.rb +34 -1
- data/lib/compass/configuration/helpers.rb +3 -7
- data/lib/compass/configuration/paths.rb +1 -1
- data/lib/compass/exec/project_options_parser.rb +4 -0
- data/lib/compass/installers/base.rb +1 -1
- data/lib/compass/logger.rb +4 -2
- data/lib/compass/sass_extensions/functions.rb +6 -3
- data/lib/compass/sass_extensions/functions/colors.rb +58 -0
- data/lib/compass/sass_extensions/functions/constants.rb +1 -1
- data/lib/compass/sass_extensions/functions/display.rb +4 -2
- data/lib/compass/sass_extensions/functions/gradient_support.rb +343 -25
- data/lib/compass/sass_extensions/functions/if.rb +9 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +9 -3
- data/lib/compass/sass_extensions/functions/trig.rb +27 -0
- data/lib/compass/version.rb +6 -1
- data/lib/rails/init.rb +2 -0
- data/test/command_line_test.rb +6 -9
- data/test/compass_test.rb +2 -0
- data/test/configuration_test.rb +20 -0
- data/test/fixtures/stylesheets/blueprint/css/ie.css +16 -0
- data/test/fixtures/stylesheets/blueprint/css/screen.css +37 -34
- data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +5 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +7 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +5 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +16 -0
- data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +12 -9
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +23 -64
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +13 -37
- data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +5 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +4 -4
- data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +12 -15
- data/test/fixtures/stylesheets/compass/config.rb +2 -0
- data/test/fixtures/stylesheets/compass/css/box.css +6 -13
- data/test/fixtures/stylesheets/compass/css/box_shadow.css +17 -0
- data/test/fixtures/stylesheets/compass/css/columns.css +47 -0
- data/test/fixtures/stylesheets/compass/css/gradients.css +240 -25
- data/test/fixtures/stylesheets/compass/css/lists.css +12 -4
- data/test/fixtures/stylesheets/compass/css/print.css +1 -1
- data/test/fixtures/stylesheets/compass/css/reset.css +2 -2
- data/test/fixtures/stylesheets/compass/css/stretching.css +66 -0
- data/test/fixtures/stylesheets/compass/css/transform.css +305 -0
- data/test/fixtures/stylesheets/compass/sass/box_shadow.scss +5 -0
- data/test/fixtures/stylesheets/compass/sass/columns.scss +10 -0
- data/test/fixtures/stylesheets/compass/sass/gradients.sass +151 -19
- data/test/fixtures/stylesheets/compass/sass/stretching.sass +34 -0
- data/test/fixtures/stylesheets/compass/sass/transform.scss +87 -0
- data/test/sass_extensions_test.rb +44 -0
- metadata +42 -96
- data/frameworks/_blueprint_deprecated_imports/stylesheets/_blueprint.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_buttons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_colors.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_debug.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_fancy_type.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_form.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_grid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_ie.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_interaction.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_link_icons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_liquid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_print.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_reset.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_rtl.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_scaffolding.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_screen.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_typography.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_utilities.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_buttons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_colors.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_debug.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_fancy_type.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_form.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_grid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_interaction.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_link_icons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_liquid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_reset.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_rtl.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_scaffolding.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_typography.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_utilities.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/_compass.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_css3.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_layout.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.sass +0 -1
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.scss +0 -22
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_reset.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_utilities.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_clip.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_origin.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_size.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_border_radius.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_shadow.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_sizing.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_columns.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_font_face.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_gradient.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_inline_block.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_opacity.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_text_shadow.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transform.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transition.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/layout/_sticky_footer.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_general.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_links.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_lists.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_print.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_sprites.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_tables.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_text.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_clearfix.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_float.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_hacks.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_min.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_reset.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tabs.sass +0 -0
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tag_cloud.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_hover_link.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_link_colors.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_unstyled_link.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_bullets.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_horizontal_list.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_inline_list.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/sprites/_sprite_img.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_borders.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_scaffolding.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_ellipsis.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_nowrap.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_replacement.sass +0 -2
data/Rakefile
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
|
-
require '
|
|
3
|
-
|
|
2
|
+
require 'bundler'
|
|
3
|
+
Bundler.setup
|
|
4
4
|
require 'compass'
|
|
5
5
|
|
|
6
6
|
# ----- Default: Testing ------
|
|
7
7
|
|
|
8
|
-
task :default => :
|
|
8
|
+
task :default => :test
|
|
9
9
|
|
|
10
10
|
require 'rake/testtask'
|
|
11
11
|
require 'fileutils'
|
|
12
12
|
|
|
13
|
-
Rake::TestTask.new :
|
|
13
|
+
Rake::TestTask.new :test do |t|
|
|
14
14
|
t.libs << 'lib'
|
|
15
15
|
t.libs << 'test'
|
|
16
16
|
test_files = FileList['test/**/*_test.rb']
|
|
@@ -33,8 +33,8 @@ task :examples do
|
|
|
33
33
|
require 'haml'
|
|
34
34
|
require 'sass'
|
|
35
35
|
require 'pathname'
|
|
36
|
-
require '
|
|
37
|
-
require '
|
|
36
|
+
require 'compass'
|
|
37
|
+
require 'compass/exec'
|
|
38
38
|
FileList['examples/*'].each do |example|
|
|
39
39
|
next unless File.directory?(example)
|
|
40
40
|
puts "\nCompiling #{example}"
|
data/VERSION.yml
CHANGED
data/examples/css3/src/main.scss
CHANGED
|
@@ -79,7 +79,6 @@ Feature: Command Line
|
|
|
79
79
|
When I initialize a project using: compass init rails --sass-dir app/stylesheets --css-dir public/stylesheets/compiled
|
|
80
80
|
Then a config file config/compass.rb is reported created
|
|
81
81
|
Then a config file config/compass.rb is created
|
|
82
|
-
And a sass file config/initializers/compass.rb is created
|
|
83
82
|
And a sass file app/stylesheets/screen.scss is created
|
|
84
83
|
And a sass file app/stylesheets/print.scss is created
|
|
85
84
|
And a sass file app/stylesheets/ie.scss is created
|
|
@@ -248,6 +247,24 @@ Feature: Command Line
|
|
|
248
247
|
| sass_dir | sass |
|
|
249
248
|
| css_dir | assets/css |
|
|
250
249
|
|
|
250
|
+
@now
|
|
251
|
+
Scenario Outline: Print out a configuration value
|
|
252
|
+
Given I am using the existing project in test/fixtures/stylesheets/compass
|
|
253
|
+
When I run: compass config -p <property>
|
|
254
|
+
Then I should see the following output: <value>
|
|
255
|
+
And the command exits <exit>
|
|
256
|
+
|
|
257
|
+
Examples:
|
|
258
|
+
| property | value | exit |
|
|
259
|
+
| extensions_dir | extensions | normally |
|
|
260
|
+
| extensions_path | $PROJECT_PATH/extensions | normally |
|
|
261
|
+
| css_dir | tmp | normally |
|
|
262
|
+
| css_path | $PROJECT_PATH/tmp | normally |
|
|
263
|
+
| sass_dir | sass | normally |
|
|
264
|
+
| sass_path | $PROJECT_PATH/sass | normally |
|
|
265
|
+
| foobar | ERROR: configuration property 'foobar' does not exist | with a non-zero error code |
|
|
266
|
+
|
|
267
|
+
@validator
|
|
251
268
|
Scenario: Validate the generated CSS
|
|
252
269
|
Given I am using the existing project in test/fixtures/stylesheets/compass
|
|
253
270
|
When I run: compass validate
|
|
@@ -268,12 +285,12 @@ Feature: Command Line
|
|
|
268
285
|
| sass/images.scss | 3 | 3 | 0 | 0 | 3 | 3 |
|
|
269
286
|
| sass/layout.sass | 0 | 0 | 0 | 1 | 5 | 10 |
|
|
270
287
|
| sass/legacy_clearfix.scss | 2 | 0 | 0 | 2 | 5 | 11 |
|
|
271
|
-
| sass/lists.scss |
|
|
288
|
+
| sass/lists.scss | 10 | 0 | 0 | 10 | 39 | 123 |
|
|
272
289
|
| sass/print.sass | 0 | 0 | 0 | 2 | 61 | 61 |
|
|
273
290
|
| sass/reset.sass | 4 | 1 | 0 | 2 | 190 | 664 |
|
|
274
291
|
| sass/utilities.scss | 2 | 0 | 0 | 2 | 3 | 9 |
|
|
275
292
|
| ------------------------- | ----- | ---------- | -------------- | ----------- | --------- | -------------- |
|
|
276
|
-
| Total.* |
|
|
293
|
+
| Total.* | 62 | 12 | 0 | 61 | 348 | 987 |
|
|
277
294
|
|
|
278
295
|
@listframeworks
|
|
279
296
|
Scenario: List frameworks registered with compass
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require 'spec/expectations'
|
|
2
1
|
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '../../test')))
|
|
3
2
|
|
|
4
3
|
require 'test_helper'
|
|
@@ -155,6 +154,9 @@ Then /^the command exits with a non\-zero error code$/ do
|
|
|
155
154
|
@last_exit_code.should_not == 0
|
|
156
155
|
end
|
|
157
156
|
|
|
157
|
+
Then /^the command exits normally$/ do
|
|
158
|
+
@last_exit_code.should == 0
|
|
159
|
+
end
|
|
158
160
|
|
|
159
161
|
Then /^I am congratulated$/ do
|
|
160
162
|
@last_result.should =~ /Congratulations!/
|
|
@@ -235,3 +237,7 @@ end
|
|
|
235
237
|
Then /^I should see the following lines of output:$/ do |table|
|
|
236
238
|
table.diff!([['blueprint'],['compass']])
|
|
237
239
|
end
|
|
240
|
+
|
|
241
|
+
Then /^I should see the following output: (.+)$/ do |expected|
|
|
242
|
+
(@last_result.strip + @last_error.strip).should == expected.gsub(/\$PROJECT_PATH/,Dir.pwd).strip
|
|
243
|
+
end
|
|
@@ -26,19 +26,9 @@
|
|
|
26
26
|
// body#page-1, body#page-2, body.a-special-page-type
|
|
27
27
|
// +blueprint(true)
|
|
28
28
|
// </pre>
|
|
29
|
-
//
|
|
30
|
-
// #### Deprecated:
|
|
31
|
-
// You use to be able to pass the body selector as the first argument when used as a top-level mixin
|
|
32
|
-
// <pre class="source-code sass">
|
|
33
|
-
// +blueprint("body#page-1, body#page-2, body.a-special-page-type")
|
|
34
|
-
// </pre>
|
|
35
29
|
|
|
36
|
-
@mixin blueprint($
|
|
37
|
-
|
|
38
|
-
@if not ($body_selector == "body" or $body_selector == true) {
|
|
39
|
-
@warn "[DEPRECATED] To specify a the selector \"#{$body_selector}\" to +blueprint, pass true as the first argument and mix it into #{$body_selector}."; }
|
|
40
|
-
//@doc on
|
|
41
|
-
@include blueprint-typography($body_selector);
|
|
30
|
+
@mixin blueprint($nested: false) {
|
|
31
|
+
@include blueprint-typography($nested);
|
|
42
32
|
@include blueprint-utilities;
|
|
43
33
|
@include blueprint-grid;
|
|
44
34
|
@include blueprint-debug;
|
|
@@ -2,65 +2,65 @@
|
|
|
2
2
|
@import "compass/utilities/general/float";
|
|
3
3
|
|
|
4
4
|
// Button Font
|
|
5
|
-
$
|
|
5
|
+
$blueprint-button-font-family: "Lucida Grande", Tahoma, Arial, Verdana, sans-serif !default;
|
|
6
6
|
|
|
7
7
|
// Default Button Colors
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
8
|
+
$blueprint-button-border-color: #dedede !default;
|
|
9
|
+
$blueprint-button-background-color: #f5f5f5 !default;
|
|
10
|
+
$blueprint-button-font-color: #565656 !default;
|
|
11
11
|
|
|
12
12
|
// Default Button Hover Colors
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
$
|
|
13
|
+
$blueprint-button-hover-border-color: #c2e1ef !default;
|
|
14
|
+
$blueprint-button-hover-background-color: #dff4ff !default;
|
|
15
|
+
$blueprint-button-hover-font-color: #336699 !default;
|
|
16
16
|
|
|
17
17
|
// Default Button Active Colors
|
|
18
|
-
$
|
|
19
|
-
$
|
|
20
|
-
$
|
|
18
|
+
$blueprint-button-active-border-color: #6299c5 !default;
|
|
19
|
+
$blueprint-button-active-background-color: #6299c5 !default;
|
|
20
|
+
$blueprint-button-active-font-color: white !default;
|
|
21
21
|
|
|
22
22
|
//**
|
|
23
23
|
// Sets the colors for a button
|
|
24
|
-
// @param
|
|
25
|
-
// The highlight color defaults to whatever is the value of the
|
|
24
|
+
// @param border-highlight-color
|
|
25
|
+
// The highlight color defaults to whatever is the value of the border-color but it's one shade lighter.
|
|
26
26
|
@mixin button-colors(
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
$
|
|
27
|
+
$font-color: $blueprint-button-font-color,
|
|
28
|
+
$bg-color: $blueprint-button-background-color,
|
|
29
|
+
$border-color: $blueprint-button-border-color,
|
|
30
|
+
$border-highlight-color: $border-color + #101010
|
|
31
31
|
) {
|
|
32
|
-
background-color: $
|
|
33
|
-
border-color: $
|
|
34
|
-
color: $
|
|
32
|
+
background-color: $bg-color;
|
|
33
|
+
border-color: $border-highlight-color $border-color $border-color $border-highlight-color;
|
|
34
|
+
color: $font-color;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
//**
|
|
38
38
|
// Sets the colors for a button in the active state
|
|
39
|
-
// @param
|
|
40
|
-
// The highlight color defaults to whatever is the value of the
|
|
39
|
+
// @param border-highlight-color
|
|
40
|
+
// The highlight color defaults to whatever is the value of the border-color but it's one shade lighter.
|
|
41
41
|
@mixin button-active-colors(
|
|
42
|
-
$
|
|
43
|
-
$
|
|
44
|
-
$
|
|
45
|
-
$
|
|
42
|
+
$font-color: $blueprint-button-active-font-color,
|
|
43
|
+
$bg-color: $blueprint-button-active-background-color,
|
|
44
|
+
$border-color: $blueprint-button-active-border-color,
|
|
45
|
+
$border-highlight-color: $border-color + #101010
|
|
46
46
|
) {
|
|
47
47
|
&:active {
|
|
48
|
-
@include button-colors($
|
|
48
|
+
@include button-colors($font-color, $bg-color, $border-color, $border-highlight-color);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
//**
|
|
53
53
|
// Sets the colors for a button in the hover state.
|
|
54
|
-
// @param
|
|
55
|
-
// The highlight color defaults to whatever is the value of the
|
|
54
|
+
// @param border-highlight-color
|
|
55
|
+
// The highlight color defaults to whatever is the value of the border-color but it's one shade lighter.
|
|
56
56
|
@mixin button-hover-colors(
|
|
57
|
-
$
|
|
58
|
-
$
|
|
59
|
-
$
|
|
60
|
-
$
|
|
57
|
+
$font-color: $blueprint-button-hover-font-color,
|
|
58
|
+
$bg-color: $blueprint-button-hover-background-color,
|
|
59
|
+
$border-color: $blueprint-button-hover-border-color,
|
|
60
|
+
$border-highlight-color: $border-color + #101010
|
|
61
61
|
) {
|
|
62
62
|
&:hover {
|
|
63
|
-
@include button-colors($
|
|
63
|
+
@include button-colors($font-color, $bg-color, $border-color, $border-highlight-color);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -69,7 +69,7 @@ $blueprint_button_active_font_color: white !default;
|
|
|
69
69
|
@else { @include inline-block; }
|
|
70
70
|
margin: 0.7em 0.5em 0.7em 0;
|
|
71
71
|
border-width: 1px; border-style: solid;
|
|
72
|
-
font-family: $
|
|
72
|
+
font-family: $blueprint-button-font-family; font-size: 100%; line-height: 130%; font-weight: bold;
|
|
73
73
|
text-decoration: none;
|
|
74
74
|
cursor: pointer;
|
|
75
75
|
img {
|
|
@@ -1,32 +1,36 @@
|
|
|
1
|
-
$
|
|
2
|
-
$
|
|
3
|
-
$
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
1
|
+
$font-color: #333333 !default;
|
|
2
|
+
$quiet-color: lighten($font-color, 20%) !default;
|
|
3
|
+
$loud-color: darken($font-color, 13.33%) !default;
|
|
4
|
+
$header-color: darken($font-color, 6.67%) !default;
|
|
5
|
+
$alt-text-color: #666666 !default;
|
|
6
|
+
$blueprint-background-color: #eeeeee !default;
|
|
7
|
+
$blueprint-border-color: #ddd !default;
|
|
7
8
|
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
$
|
|
9
|
+
$link-color: #06c !default;
|
|
10
|
+
$link-hover-color: #09f !default;
|
|
11
|
+
$link-focus-color: $link-hover-color !default;
|
|
12
|
+
$link-active-color: lighten(adjust-hue($link-color, 75deg), 10%) !default;
|
|
13
|
+
$link-visited-color: darken($link-color, 10%) !default;
|
|
13
14
|
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
$
|
|
18
|
-
$
|
|
19
|
-
$
|
|
20
|
-
$
|
|
21
|
-
$
|
|
22
|
-
$
|
|
23
|
-
$
|
|
15
|
+
$feedback-border-color: #dddddd !default;
|
|
16
|
+
$success-color: #264409 !default;
|
|
17
|
+
$success-bg-color: #e6efc2 !default;
|
|
18
|
+
$success-border-color: #c6d880 !default;
|
|
19
|
+
$notice-color: #514721 !default;
|
|
20
|
+
$notice-bg-color: #fff6bf !default;
|
|
21
|
+
$notice-border-color: #ffd324 !default;
|
|
22
|
+
$info-color: #205791 !default;
|
|
23
|
+
$info-bg-color: #d5edf8 !default;
|
|
24
|
+
$info-border-color: #92cae4 !default;
|
|
25
|
+
$error-color: #8a1f11 !default;
|
|
26
|
+
$error-bg-color: #fbe3e4 !default;
|
|
27
|
+
$error-border-color: #fbc2c4 !default;
|
|
24
28
|
|
|
25
|
-
$
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$
|
|
29
|
+
$highlight-color: yellow !default;
|
|
30
|
+
$added-color: white !default;
|
|
31
|
+
$added-bg-color: #006600 !default;
|
|
32
|
+
$removed-color: white !default;
|
|
33
|
+
$removed-bg-color: #990000 !default;
|
|
30
34
|
|
|
31
|
-
$
|
|
32
|
-
$
|
|
35
|
+
$blueprint-table-header-color: #c3d9ff !default;
|
|
36
|
+
$blueprint-table-stripe-color: #e5ecf9 !default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@mixin showgrid($image: "grid.png") {
|
|
2
|
-
background:
|
|
2
|
+
background: image-url($image);
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
@mixin blueprint-debug($
|
|
5
|
+
@mixin blueprint-debug($grid-image: "grid.png") {
|
|
6
6
|
// Use this class on any column or container to see the grid.
|
|
7
7
|
// TODO: prefix this with the project path.
|
|
8
8
|
.showgrid {
|
|
9
|
-
@include showgrid($
|
|
9
|
+
@include showgrid($grid-image);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -4,7 +4,7 @@ $alternate-text-font : "Warnock Pro", "Goudy Old Style", "Palatino", "Book Antiq
|
|
|
4
4
|
|
|
5
5
|
// To install the fancy type plugin:
|
|
6
6
|
//
|
|
7
|
-
// 1. Import the
|
|
7
|
+
// 1. Import the fancy-type module: `@import "blueprint/fancy-type"`
|
|
8
8
|
// 2. Mix in `fancy-type` to your project's body or at the top level of your stylesheet:<br>
|
|
9
9
|
// `body { @include fancy-type; }`
|
|
10
10
|
@mixin fancy-type {
|
|
@@ -34,7 +34,7 @@ $alternate-text-font : "Warnock Pro", "Goudy Old Style", "Palatino", "Book Antiq
|
|
|
34
34
|
margin-left: -$offset;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
// Reduced size type with [incremental leading](http://www.markboulton.co.uk/journal/comments/
|
|
37
|
+
// Reduced size type with [incremental leading](http://www.markboulton.co.uk/journal/comments/incremental-leading/)
|
|
38
38
|
//
|
|
39
39
|
// This could be used for side notes. For smaller type, you don't necessarily want to
|
|
40
40
|
// follow the 1.5x vertical rhythm -- the line-height is too much.
|
|
@@ -25,10 +25,6 @@
|
|
|
25
25
|
&[type=text],
|
|
26
26
|
&[type=password] { margin: 0.5em 0; background-color: white; padding: 5px; }
|
|
27
27
|
&.title { font-size: 1.5em; }
|
|
28
|
-
&[type=checkbox],
|
|
29
|
-
&.checkbox,
|
|
30
|
-
&[type=radio],
|
|
31
|
-
&.radio { position: relative; top: 0.25em; }
|
|
32
28
|
}
|
|
33
29
|
textarea { margin: 0.5em 0; padding: 5px; }
|
|
34
30
|
select { margin: 0.5em 0; }
|
|
@@ -36,33 +32,35 @@
|
|
|
36
32
|
|
|
37
33
|
@mixin blueprint-form-sizes
|
|
38
34
|
(
|
|
39
|
-
$
|
|
40
|
-
$
|
|
41
|
-
$
|
|
35
|
+
$input-width: 300px,
|
|
36
|
+
$textarea-width: 390px,
|
|
37
|
+
$textarea-height: 250px
|
|
42
38
|
) {
|
|
43
39
|
input {
|
|
44
40
|
&.text,
|
|
45
41
|
&.title,
|
|
46
42
|
&[type=email],
|
|
47
43
|
&[type=text],
|
|
48
|
-
&[type=password] { width: $
|
|
44
|
+
&[type=password] { width: $input-width; }
|
|
49
45
|
}
|
|
50
|
-
textarea { width: $
|
|
46
|
+
textarea { width: $textarea-width; height: $textarea-height; }
|
|
51
47
|
}
|
|
52
48
|
|
|
53
49
|
@mixin blueprint-form-borders
|
|
54
50
|
(
|
|
55
|
-
$
|
|
56
|
-
$
|
|
57
|
-
$
|
|
51
|
+
$unfocused-border-color: #bbbbbb,
|
|
52
|
+
$focus-border-color: #666666,
|
|
53
|
+
$fieldset-border-color: #cccccc
|
|
58
54
|
) {
|
|
59
55
|
fieldset {
|
|
60
|
-
border: 1px solid $
|
|
56
|
+
border: 1px solid $fieldset-border-color; }
|
|
61
57
|
input.text, input.title, input[type=email], input[type=text], input[type=password],
|
|
62
|
-
textarea
|
|
63
|
-
|
|
58
|
+
textarea {
|
|
59
|
+
background-color:#fff;
|
|
60
|
+
border: 1px solid $unfocused-border-color;
|
|
64
61
|
&:focus {
|
|
65
|
-
border: 1px solid $
|
|
62
|
+
border: 1px solid $focus-border-color;
|
|
66
63
|
}
|
|
67
64
|
}
|
|
65
|
+
select { background-color:#fff; border-width:1px; border-style:solid; }
|
|
68
66
|
}
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
@import "compass/utilities/general/clearfix";
|
|
20
20
|
|
|
21
21
|
// The number of columns in the grid.
|
|
22
|
-
$
|
|
22
|
+
$blueprint-grid-columns: 24 !default;
|
|
23
23
|
|
|
24
24
|
// The width of a column
|
|
25
|
-
$
|
|
25
|
+
$blueprint-grid-width: 30px !default;
|
|
26
26
|
|
|
27
27
|
// The amount of margin between columns
|
|
28
|
-
$
|
|
28
|
+
$blueprint-grid-margin: 10px !default;
|
|
29
29
|
|
|
30
30
|
// The width of a column including the margin. With default settings this is `40px`.
|
|
31
|
-
$
|
|
31
|
+
$blueprint-grid-outer-width: $blueprint-grid-width + $blueprint-grid-margin;
|
|
32
32
|
|
|
33
33
|
// The width of the container. With default settings this is `950px`.
|
|
34
|
-
$
|
|
34
|
+
$blueprint-container-size: $blueprint-grid-outer-width * $blueprint-grid-columns - $blueprint-grid-margin;
|
|
35
35
|
|
|
36
36
|
// Generates presentational class names that you can use
|
|
37
37
|
// in your html to layout your pages.
|
|
@@ -45,40 +45,42 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
|
45
45
|
// A container should group all your columns
|
|
46
46
|
.container {
|
|
47
47
|
@include container; }
|
|
48
|
-
.column
|
|
48
|
+
.column {
|
|
49
49
|
@include column-base; }
|
|
50
50
|
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
|
51
|
-
.last
|
|
51
|
+
.last {
|
|
52
52
|
@include last; }
|
|
53
53
|
// Use these classes (or mixins) to set the width of a column.
|
|
54
|
-
@for $n from 1 to $
|
|
54
|
+
@for $n from 1 to $blueprint-grid-columns {
|
|
55
55
|
.span-#{$n} {
|
|
56
|
+
@extend .column;
|
|
56
57
|
@include span($n); } }
|
|
57
|
-
.span-#{$
|
|
58
|
-
@
|
|
58
|
+
.span-#{$blueprint-grid-columns} {
|
|
59
|
+
@extend .column;
|
|
60
|
+
@include span($blueprint-grid-columns);
|
|
59
61
|
margin: 0; }
|
|
60
62
|
input, textarea, select {
|
|
61
|
-
@for $n from 1 through $
|
|
63
|
+
@for $n from 1 through $blueprint-grid-columns {
|
|
62
64
|
&.span-#{$n} {
|
|
63
65
|
@include span($n, true); } } }
|
|
64
66
|
// Add these to a column to append empty cols.
|
|
65
|
-
@for $n from 1 to $
|
|
67
|
+
@for $n from 1 to $blueprint-grid-columns {
|
|
66
68
|
.append-#{$n} {
|
|
67
69
|
@include append($n); } }
|
|
68
70
|
// Add these to a column to prepend empty cols.
|
|
69
|
-
@for $n from 1 to $
|
|
71
|
+
@for $n from 1 to $blueprint-grid-columns {
|
|
70
72
|
.prepend-#{$n} {
|
|
71
73
|
@include prepend($n); } }
|
|
72
74
|
// Use these classes on an element to push it into the
|
|
73
75
|
// next column, or to pull it into the previous column.
|
|
74
|
-
#{enumerate(".pull", 1, $
|
|
76
|
+
#{enumerate(".pull", 1, $blueprint-grid-columns)} {
|
|
75
77
|
@include pull-base; }
|
|
76
|
-
@for $n from 1 through $
|
|
78
|
+
@for $n from 1 through $blueprint-grid-columns {
|
|
77
79
|
.pull-#{$n} {
|
|
78
80
|
@include pull-margins($n); } }
|
|
79
|
-
#{enumerate(".push", 1, $
|
|
81
|
+
#{enumerate(".push", 1, $blueprint-grid-columns)} {
|
|
80
82
|
@include push-base; }
|
|
81
|
-
@for $n from 1 through $
|
|
83
|
+
@for $n from 1 through $blueprint-grid-columns {
|
|
82
84
|
.push-#{$n} {
|
|
83
85
|
@include push-margins($n); } }
|
|
84
86
|
.prepend-top {
|
|
@@ -92,7 +94,7 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
|
92
94
|
// If you use this mixin without the class and want to support ie6
|
|
93
95
|
// you must set text-align left on your container element in an IE stylesheet.
|
|
94
96
|
@mixin container {
|
|
95
|
-
width: $
|
|
97
|
+
width: $blueprint-container-size;
|
|
96
98
|
margin: 0 auto;
|
|
97
99
|
@include clearfix; }
|
|
98
100
|
|
|
@@ -111,7 +113,7 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
|
111
113
|
//
|
|
112
114
|
// This mixin is especially useful for aligning tables to the grid.
|
|
113
115
|
@mixin span($n, $override: false) {
|
|
114
|
-
$width: $
|
|
116
|
+
$width: $blueprint-grid-width * $n + $blueprint-grid-margin * ($n - 1);
|
|
115
117
|
@if $override {
|
|
116
118
|
width: $width !important; }
|
|
117
119
|
@else {
|
|
@@ -134,19 +136,19 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
|
134
136
|
@if $last {
|
|
135
137
|
@include last; }
|
|
136
138
|
@else {
|
|
137
|
-
margin-right: $
|
|
139
|
+
margin-right: $blueprint-grid-margin; }
|
|
138
140
|
* html & {
|
|
139
141
|
overflow-x: hidden; } }
|
|
140
142
|
|
|
141
143
|
// Mixin to a column to append n empty columns to the right
|
|
142
144
|
// by adding right padding to the column.
|
|
143
145
|
@mixin append($n) {
|
|
144
|
-
padding-right: $
|
|
146
|
+
padding-right: $blueprint-grid-outer-width * $n; }
|
|
145
147
|
|
|
146
148
|
// Mixin to a column to append n empty columns to the left
|
|
147
149
|
// by adding left padding to the column.
|
|
148
150
|
@mixin prepend($n) {
|
|
149
|
-
padding-left: $
|
|
151
|
+
padding-left: $blueprint-grid-outer-width * $n; }
|
|
150
152
|
|
|
151
153
|
// Adds trailing margin.
|
|
152
154
|
@mixin append-bottom($amount: 1.5em) {
|
|
@@ -174,9 +176,9 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
|
174
176
|
// to reduce the amount of generated CSS.
|
|
175
177
|
@mixin pull-margins($n, $last: false) {
|
|
176
178
|
@if $last {
|
|
177
|
-
margin-left: -$
|
|
179
|
+
margin-left: -$blueprint-grid-outer-width * $n + $blueprint-grid-margin; }
|
|
178
180
|
@else {
|
|
179
|
-
margin-left: -$
|
|
181
|
+
margin-left: -$blueprint-grid-outer-width * $n; } }
|
|
180
182
|
|
|
181
183
|
// Moves a column `n` columns to the left.
|
|
182
184
|
//
|
|
@@ -207,11 +209,11 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
|
207
209
|
@include pull-margins($n, $last); }
|
|
208
210
|
|
|
209
211
|
@mixin push-base {
|
|
210
|
-
@include float-
|
|
212
|
+
@include float-left;
|
|
211
213
|
position: relative; }
|
|
212
214
|
|
|
213
215
|
@mixin push-margins($n) {
|
|
214
|
-
margin: 0 (-$
|
|
216
|
+
margin: 0 (-$blueprint-grid-outer-width * $n) 1.5em $blueprint-grid-outer-width * $n; }
|
|
215
217
|
|
|
216
218
|
// mixin to a column to push it n columns to the right
|
|
217
219
|
@mixin push($n) {
|
|
@@ -219,21 +221,21 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
|
219
221
|
@include push-margins($n); }
|
|
220
222
|
|
|
221
223
|
// Border on right hand side of a column.
|
|
222
|
-
@mixin border($
|
|
223
|
-
padding-right: $
|
|
224
|
-
margin-right: $
|
|
225
|
-
border-right: #{$
|
|
224
|
+
@mixin border($border-color: $blueprint-border-color, $border-width: 1px) {
|
|
225
|
+
padding-right: $blueprint-grid-margin / 2 - $border-width;
|
|
226
|
+
margin-right: $blueprint-grid-margin / 2;
|
|
227
|
+
border-right: #{$border-width} solid #{$border-color}; }
|
|
226
228
|
|
|
227
229
|
// Border with more whitespace, spans one column.
|
|
228
|
-
@mixin colborder($
|
|
229
|
-
padding-right: floor(($
|
|
230
|
-
margin-right: ceil(($
|
|
231
|
-
border-right: #{$
|
|
230
|
+
@mixin colborder($border-color: $blueprint-border-color, $border-width: 1px) {
|
|
231
|
+
padding-right: floor(($blueprint-grid-width + 2 * $blueprint-grid-margin - $border-width) / 2);
|
|
232
|
+
margin-right: ceil(($blueprint-grid-width + 2 * $blueprint-grid-margin - $border-width) / 2);
|
|
233
|
+
border-right: #{$border-width} solid #{$border-color}; }
|
|
232
234
|
|
|
233
235
|
// Mixin this to an hr to make a horizontal ruler across a column.
|
|
234
|
-
@mixin colruler($
|
|
235
|
-
background: $
|
|
236
|
-
color: $
|
|
236
|
+
@mixin colruler($border-color: #dddddd) {
|
|
237
|
+
background: $border-color;
|
|
238
|
+
color: $border-color;
|
|
237
239
|
clear: both;
|
|
238
240
|
float: none;
|
|
239
241
|
width: 100%;
|