compass-edge 0.9.4 → 0.9.5.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/CHANGELOG.markdown +32 -2
- data/README.markdown +12 -2
- data/REVISION +1 -1
- data/Rakefile +3 -1
- data/VERSION.yml +1 -2
- data/examples/blueprint_default/index.html.haml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +2 -0
- data/examples/blueprint_default/src/screen.sass +1 -1
- data/examples/blueprint_plugins/index.html.haml +6 -6
- data/examples/blueprint_plugins/src/buttons.sass +2 -2
- data/examples/blueprint_plugins/src/link_icons.sass +1 -1
- data/examples/blueprint_plugins/src/rtl_screen.sass +3 -3
- data/examples/blueprint_plugins/src/screen.sass +2 -2
- data/examples/blueprint_semantic/src/liquid.sass +4 -4
- data/examples/blueprint_semantic/src/screen.sass +3 -3
- data/examples/compass/bootstrap.rb +3 -0
- data/examples/compass/extensions/yui/stylesheets/_yui.sass +7 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/examples/compass/extensions/yui/templates/project/manifest.rb +1 -0
- data/examples/compass/extensions/yui/templates/project/screen.sass +4 -0
- data/examples/compass/src/utilities.sass +2 -2
- data/examples/css3/config.rb +6 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +7 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +5 -0
- data/examples/css3/images/fresh-peas.jpg +0 -0
- data/examples/css3/index.html.haml +55 -0
- data/examples/css3/src/_base.sass +14 -0
- data/examples/css3/src/fancy-fonts.sass +7 -0
- data/examples/css3/src/gradient.sass +10 -0
- data/examples/css3/src/main.sass +80 -0
- data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
- data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
- data/examples/downloader.rb +2 -2
- data/examples/ninesixty/extensions/ninesixty/README.mkdn +56 -0
- data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +36 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +1 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +5 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +64 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +59 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +34 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +2 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +10 -0
- data/examples/susy/bootstrap.rb +3 -0
- data/examples/susy/config.rb +9 -0
- data/examples/susy/extensions/susy/LICENSE.txt +28 -0
- data/examples/susy/extensions/susy/README.mkdn +235 -0
- data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +35 -0
- data/examples/susy/extensions/susy/docs/tutorial/build.sh +141 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +100 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +98 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +19 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +48 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +14 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +63 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +1450 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +100 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +91 -0
- data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +301 -0
- data/examples/susy/extensions/susy/lib/susy.rb +2 -0
- data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +5 -0
- data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +79 -0
- data/examples/susy/extensions/susy/sass/susy/_grid.sass +128 -0
- data/examples/susy/extensions/susy/sass/susy/_reset.sass +7 -0
- data/examples/susy/extensions/susy/sass/susy/_susy.sass +23 -0
- data/examples/susy/extensions/susy/sass/susy/_text.sass +15 -0
- data/examples/susy/extensions/susy/sass/susy/_utils.sass +81 -0
- data/examples/susy/extensions/susy/templates/project/_base.sass +62 -0
- data/examples/susy/extensions/susy/templates/project/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/templates/project/ie.sass +9 -0
- data/examples/susy/extensions/susy/templates/project/manifest.rb +5 -0
- data/examples/susy/extensions/susy/templates/project/print.sass +7 -0
- data/examples/susy/extensions/susy/templates/project/screen.sass +44 -0
- data/examples/susy/src/_base.sass +62 -0
- data/examples/susy/src/_defaults.sass +148 -0
- data/examples/susy/src/screen.sass +114 -0
- data/examples/yui/extensions/yui/stylesheets/_yui.sass +7 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/examples/yui/extensions/yui/templates/project/manifest.rb +1 -0
- data/examples/yui/extensions/yui/templates/project/screen.sass +4 -0
- data/lib/compass/app_integration/rails/configuration_defaults.rb +9 -1
- data/lib/compass/commands/watch_project.rb +1 -1
- data/lib/compass/compiler.rb +9 -1
- data/lib/compass/configuration.rb +23 -18
- data/lib/compass/configuration/adapters.rb +1 -1
- data/lib/compass/configuration/defaults.rb +30 -0
- data/lib/compass/frameworks.rb +1 -1
- data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +29 -1
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +84 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +33 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +9 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +82 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +56 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +179 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +58 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +44 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +141 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +1 -4
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +57 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +123 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +49 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +2 -29
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +162 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +37 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +2 -84
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +2 -33
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +2 -9
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +2 -82
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +2 -55
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +2 -178
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +2 -58
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +2 -44
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +2 -140
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +2 -56
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +2 -122
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +2 -47
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +2 -160
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +2 -37
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
- data/lib/compass/frameworks/blueprint/templates/project/screen.sass +1 -7
- data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +5 -2
- data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +8 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +16 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +18 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +14 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +18 -10
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +31 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +40 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +15 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +60 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +57 -0
- data/lib/compass/grid_builder.rb +1 -1
- data/lib/compass/installers/base.rb +5 -1
- data/lib/compass/installers/manifest.rb +1 -0
- data/lib/compass/logger.rb +28 -2
- data/lib/compass/sass_extensions/functions.rb +3 -1
- data/lib/compass/sass_extensions/functions/color_stop.rb +10 -0
- data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
- data/lib/compass/sass_extensions/functions/font_files.rb +11 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +22 -1
- data/lib/compass/sass_extensions/functions/urls.rb +20 -0
- data/lib/vendor/fssm.rb +19 -6
- data/lib/vendor/fssm/backends/fsevents.rb +19 -60
- data/lib/vendor/fssm/backends/polling.rb +20 -18
- data/lib/vendor/fssm/cache.rb +193 -0
- data/lib/vendor/fssm/ext.rb +30 -0
- data/lib/vendor/fssm/fsevents.rb +129 -0
- data/lib/vendor/fssm/monitor.rb +10 -6
- data/lib/vendor/fssm/path.rb +24 -21
- data/lib/vendor/fssm/state.rb +37 -29
- data/lib/vendor/fssm/support.rb +3 -7
- data/lib/vendor/fssm/tree.rb +176 -0
- data/test/command_line_helper.rb +8 -4
- data/test/command_line_test.rb +2 -2
- data/test/compass_test.rb +14 -4
- data/test/configuration_test.rb +5 -5
- data/test/fixtures/stylesheets/blueprint/css/typography.css +5 -3
- data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
- data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
- data/test/fixtures/stylesheets/compass/css/print.css +2 -8
- data/test/fixtures/stylesheets/image_urls/css/screen.css +2 -0
- data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
- data/test/fixtures/stylesheets/relative/config.rb +9 -0
- data/test/fixtures/stylesheets/relative/css/ie.css +1 -0
- data/test/fixtures/stylesheets/relative/css/print.css +1 -0
- data/test/fixtures/stylesheets/relative/css/screen.css +1 -0
- data/test/fixtures/stylesheets/relative/sass/ie.sass +6 -0
- data/test/fixtures/stylesheets/relative/sass/print.sass +6 -0
- data/test/fixtures/stylesheets/relative/sass/screen.sass +3 -0
- data/test/rails_integration_test.rb +1 -1
- data/test/sass_extensions_test.rb +2 -2
- metadata +120 -2
@@ -0,0 +1 @@
|
|
1
|
+
stylesheet 'screen.sass', :media => "screen, projection"
|
@@ -3,7 +3,7 @@ module Compass
|
|
3
3
|
module Rails
|
4
4
|
module ConfigurationDefaults
|
5
5
|
|
6
|
-
def
|
6
|
+
def project_type_without_default
|
7
7
|
:rails
|
8
8
|
end
|
9
9
|
|
@@ -11,6 +11,10 @@ module Compass
|
|
11
11
|
File.join("public", "images")
|
12
12
|
end
|
13
13
|
|
14
|
+
def default_fonts_dir
|
15
|
+
File.join("public", "fonts")
|
16
|
+
end
|
17
|
+
|
14
18
|
def default_javascripts_dir
|
15
19
|
File.join("public", "javascripts")
|
16
20
|
end
|
@@ -23,6 +27,10 @@ module Compass
|
|
23
27
|
"/javascripts"
|
24
28
|
end
|
25
29
|
|
30
|
+
def default_http_fonts_path
|
31
|
+
"/fonts"
|
32
|
+
end
|
33
|
+
|
26
34
|
def default_http_stylesheets_path
|
27
35
|
"/stylesheets"
|
28
36
|
end
|
data/lib/compass/compiler.rb
CHANGED
@@ -48,7 +48,15 @@ module Compass
|
|
48
48
|
directory dir
|
49
49
|
end
|
50
50
|
sass_files.zip(css_files).each do |sass_filename, css_filename|
|
51
|
-
|
51
|
+
begin
|
52
|
+
compile sass_filename, css_filename, options
|
53
|
+
rescue Sass::SyntaxError => e
|
54
|
+
full_exception = Compass.configuration.environment == :development
|
55
|
+
logger.record :error, basename(sass_filename), "(Line #{e.sass_line}: #{e.message})"
|
56
|
+
write_file(css_filename,
|
57
|
+
Sass::SyntaxError.exception_to_css(e, :full_exception => full_exception),
|
58
|
+
options.merge(:force => true))
|
59
|
+
end
|
52
60
|
end
|
53
61
|
end
|
54
62
|
end
|
@@ -1,34 +1,39 @@
|
|
1
1
|
module Compass
|
2
2
|
module Configuration
|
3
3
|
|
4
|
+
def self.attributes_for_directory(dir_name, http_dir_name = dir_name)
|
5
|
+
[
|
6
|
+
"#{dir_name}_dir",
|
7
|
+
"#{dir_name}_path",
|
8
|
+
("http_#{http_dir_name}_dir" if http_dir_name),
|
9
|
+
("http_#{http_dir_name}_path" if http_dir_name)
|
10
|
+
].compact.map{|a| a.to_sym}
|
11
|
+
end
|
12
|
+
|
4
13
|
ATTRIBUTES = [
|
14
|
+
# What kind of project?
|
5
15
|
:project_type,
|
16
|
+
# Where is the project?
|
6
17
|
:project_path,
|
7
|
-
:css_dir,
|
8
|
-
:sass_dir,
|
9
|
-
:images_dir,
|
10
|
-
:javascripts_dir,
|
11
|
-
:extensions_dir,
|
12
|
-
:css_path,
|
13
|
-
:sass_path,
|
14
|
-
:images_path,
|
15
|
-
:javascripts_path,
|
16
|
-
:extensions_path,
|
17
18
|
:http_path,
|
18
|
-
|
19
|
-
:
|
20
|
-
:
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
19
|
+
# Where are the various bits of the project
|
20
|
+
attributes_for_directory(:css, :stylesheets),
|
21
|
+
attributes_for_directory(:sass, nil),
|
22
|
+
attributes_for_directory(:images),
|
23
|
+
attributes_for_directory(:javascripts),
|
24
|
+
attributes_for_directory(:fonts),
|
25
|
+
attributes_for_directory(:extensions, nil),
|
26
|
+
# Compilation options
|
24
27
|
:output_style,
|
25
28
|
:environment,
|
26
29
|
:relative_assets,
|
27
30
|
:additional_import_paths,
|
28
31
|
:sass_options,
|
29
32
|
:asset_host,
|
30
|
-
:asset_cache_buster
|
31
|
-
|
33
|
+
:asset_cache_buster,
|
34
|
+
:line_comments,
|
35
|
+
:color_output
|
36
|
+
].flatten
|
32
37
|
|
33
38
|
end
|
34
39
|
end
|
@@ -49,7 +49,7 @@ module Compass
|
|
49
49
|
load_paths = []
|
50
50
|
load_paths << sass_path if sass_path
|
51
51
|
Compass::Frameworks::ALL.each do |framework|
|
52
|
-
load_paths << framework.stylesheets_directory
|
52
|
+
load_paths << framework.stylesheets_directory if File.exists?(framework.stylesheets_directory)
|
53
53
|
end
|
54
54
|
load_paths += resolve_additional_import_paths
|
55
55
|
load_paths
|
@@ -14,6 +14,14 @@ module Compass
|
|
14
14
|
"extensions"
|
15
15
|
end
|
16
16
|
|
17
|
+
def default_fonts_dir
|
18
|
+
File.join(top_level.css_dir, "fonts")
|
19
|
+
end
|
20
|
+
|
21
|
+
def default_environment
|
22
|
+
:development
|
23
|
+
end
|
24
|
+
|
17
25
|
def default_output_style
|
18
26
|
if top_level.environment == :development
|
19
27
|
:expanded
|
@@ -26,6 +34,10 @@ module Compass
|
|
26
34
|
top_level.environment == :development
|
27
35
|
end
|
28
36
|
|
37
|
+
def default_color_output
|
38
|
+
true
|
39
|
+
end
|
40
|
+
|
29
41
|
def default_sass_path
|
30
42
|
if (pp = top_level.project_path) && (dir = top_level.sass_dir)
|
31
43
|
File.join(pp, dir)
|
@@ -56,6 +68,12 @@ module Compass
|
|
56
68
|
end
|
57
69
|
end
|
58
70
|
|
71
|
+
def default_fonts_path
|
72
|
+
if (pp = top_level.project_path) && (dir = top_level.fonts_dir)
|
73
|
+
File.join(pp, dir)
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
59
77
|
|
60
78
|
def default_http_images_dir
|
61
79
|
top_level.images_dir
|
@@ -73,6 +91,18 @@ module Compass
|
|
73
91
|
http_root_relative top_level.http_stylesheets_dir
|
74
92
|
end
|
75
93
|
|
94
|
+
def default_http_fonts_dir
|
95
|
+
if fd = top_level.fonts_dir_without_default
|
96
|
+
fd
|
97
|
+
else
|
98
|
+
"#{top_level.http_stylesheets_dir}/fonts"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
def default_http_fonts_path
|
103
|
+
http_root_relative top_level.http_fonts_dir
|
104
|
+
end
|
105
|
+
|
76
106
|
def default_http_javascripts_dir
|
77
107
|
top_level.javascripts_dir
|
78
108
|
end
|
data/lib/compass/frameworks.rb
CHANGED
@@ -1,3 +1,31 @@
|
|
1
|
-
@import blueprint/
|
1
|
+
@import blueprint/colors.sass
|
2
|
+
@import blueprint/grid.sass
|
3
|
+
@import blueprint/typography.sass
|
4
|
+
@import blueprint/utilities.sass
|
5
|
+
@import blueprint/form.sass
|
6
|
+
@import blueprint/interaction.sass
|
7
|
+
@import blueprint/debug.sass
|
2
8
|
@import blueprint/print.sass
|
3
9
|
@import blueprint/ie.sass
|
10
|
+
|
11
|
+
// Usage examples:
|
12
|
+
// As a top-level mixin, apply to any page that includes the stylesheet:
|
13
|
+
// +blueprint
|
14
|
+
// Scoped by a presentational class:
|
15
|
+
// body.blueprint
|
16
|
+
// +blueprint(true)
|
17
|
+
// Scoped by semantic selectors:
|
18
|
+
// body#page-1, body#page-2, body.a-special-page-type
|
19
|
+
// +blueprint(true)
|
20
|
+
// Deprecated:
|
21
|
+
// You can pass the body selector as the first argument when used as a top-level mixin
|
22
|
+
// +blueprint("body#page-1, body#page-2, body.a-special-page-type")
|
23
|
+
=blueprint(!body_selector = "body")
|
24
|
+
@if not (!body_selector == "body" or !body_selector == true)
|
25
|
+
@debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +blueprint, pass true as the first argument and mix it into #{!body_selector}."
|
26
|
+
+blueprint-typography(!body_selector)
|
27
|
+
+blueprint-utilities
|
28
|
+
+blueprint-grid
|
29
|
+
+blueprint-debug
|
30
|
+
+blueprint-interaction
|
31
|
+
+blueprint-form
|
@@ -0,0 +1,84 @@
|
|
1
|
+
@import compass/css3/inline_block.sass
|
2
|
+
@import compass/utilities/general/float.sass
|
3
|
+
|
4
|
+
// Button Font
|
5
|
+
!blueprint_button_font_family ||= "\"Lucida Grande\", Tahoma, Arial, Verdana, sans-serif"
|
6
|
+
|
7
|
+
// Default Button Colors
|
8
|
+
!blueprint_button_border_color ||= #DEDEDE
|
9
|
+
!blueprint_button_background_color ||= #F5F5F5
|
10
|
+
!blueprint_button_font_color ||= #565656
|
11
|
+
|
12
|
+
// Default Button Hover Colors
|
13
|
+
!blueprint_button_hover_border_color ||= #C2E1EF
|
14
|
+
!blueprint_button_hover_background_color ||= #DFF4FF
|
15
|
+
!blueprint_button_hover_font_color ||= #336699
|
16
|
+
|
17
|
+
// Default Button Active Colors
|
18
|
+
!blueprint_button_active_border_color ||= #6299C5
|
19
|
+
!blueprint_button_active_background_color ||= #6299C5
|
20
|
+
!blueprint_button_active_font_color ||= #FFF
|
21
|
+
|
22
|
+
//**
|
23
|
+
Sets the colors for a button
|
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
|
+
=button-colors(!font_color = !blueprint_button_font_color, !bg_color = !blueprint_button_background_color, !border_color = !blueprint_button_border_color, !border_highlight_color = !border_color + #101010)
|
27
|
+
background-color= !bg_color
|
28
|
+
border-color= !border_highlight_color !border_color !border_color !border_highlight_color
|
29
|
+
color= !font_color
|
30
|
+
|
31
|
+
//**
|
32
|
+
Sets the colors for a button in the active state
|
33
|
+
@param border_highlight_color
|
34
|
+
The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
|
35
|
+
=button-active-colors(!font_color = !blueprint_button_active_font_color, !bg_color = !blueprint_button_active_background_color, !border_color = !blueprint_button_active_border_color, !border_highlight_color = !border_color + #101010)
|
36
|
+
&:active
|
37
|
+
+button-colors(!font_color, !bg_color, !border_color, !border_highlight_color)
|
38
|
+
|
39
|
+
//**
|
40
|
+
Sets the colors for a button in the hover state.
|
41
|
+
@param border_highlight_color
|
42
|
+
The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
|
43
|
+
=button-hover-colors(!font_color = !blueprint_button_hover_font_color, !bg_color = !blueprint_button_hover_background_color, !border_color = !blueprint_button_hover_border_color, !border_highlight_color = !border_color + #101010)
|
44
|
+
&:hover
|
45
|
+
+button-colors(!font_color, !bg_color, !border_color, !border_highlight_color)
|
46
|
+
|
47
|
+
=button-base(!float = false)
|
48
|
+
@if !float
|
49
|
+
display: block
|
50
|
+
+float(!float)
|
51
|
+
@else
|
52
|
+
+inline-block
|
53
|
+
margin: 0.7em 0.5em 0.7em 0
|
54
|
+
border-width: 1px
|
55
|
+
border-style: solid
|
56
|
+
font-family= !blueprint_button_font_family
|
57
|
+
font-size: 100%
|
58
|
+
line-height: 130%
|
59
|
+
text-decoration: none
|
60
|
+
font-weight: bold
|
61
|
+
cursor: pointer
|
62
|
+
img
|
63
|
+
margin: 0 3px -3px 0 !important
|
64
|
+
padding: 0
|
65
|
+
border: none
|
66
|
+
width: 16px
|
67
|
+
height: 16px
|
68
|
+
float: none
|
69
|
+
|
70
|
+
|
71
|
+
=anchor-button(!float = false)
|
72
|
+
+button-base(!float)
|
73
|
+
padding: 5px 10px 5px 7px
|
74
|
+
|
75
|
+
=button-button(!float = false)
|
76
|
+
+button-base(!float)
|
77
|
+
width: auto
|
78
|
+
overflow: visible
|
79
|
+
padding: 4px 10px 3px 7px
|
80
|
+
&[type]
|
81
|
+
padding: 4px 10px 4px 7px
|
82
|
+
line-height: 17px
|
83
|
+
*:first-child+html &[type]
|
84
|
+
padding: 4px 10px 3px 7px
|
@@ -0,0 +1,33 @@
|
|
1
|
+
!font_color ||= #333
|
2
|
+
!quiet_color ||= !font_color + #333
|
3
|
+
!loud_color ||= !font_color - #222
|
4
|
+
|
5
|
+
!header_color ||= !font_color - #111
|
6
|
+
|
7
|
+
!link_color ||= #009
|
8
|
+
!link_hover_color ||= #000
|
9
|
+
!link_focus_color ||= !link_hover_color
|
10
|
+
!link_active_color ||= !link_color + #C00
|
11
|
+
!link_visited_color ||= !link_color - #333
|
12
|
+
|
13
|
+
!feedback_border_color ||= #DDD
|
14
|
+
!success_color ||= #264409
|
15
|
+
!success_bg_color ||= #E6EFC2
|
16
|
+
!success_border_color ||= #C6D880
|
17
|
+
|
18
|
+
!notice_color ||= #514721
|
19
|
+
!notice_bg_color ||= #FFF6BF
|
20
|
+
!notice_border_color ||= #FFD324
|
21
|
+
|
22
|
+
!error_color ||= #8A1F11
|
23
|
+
!error_bg_color ||= #FBE3E4
|
24
|
+
!error_border_color ||= #FBC2C4
|
25
|
+
|
26
|
+
!highlight_color ||= #FF0
|
27
|
+
!added_color ||= #FFF
|
28
|
+
!added_bg_color ||= #060
|
29
|
+
!removed_color ||= #FFF
|
30
|
+
!removed_bg_color ||= #900
|
31
|
+
|
32
|
+
!blueprint_table_header_color ||= #C3D9FF
|
33
|
+
!blueprint_table_stripe_color ||= #E5ECF9
|
@@ -0,0 +1,82 @@
|
|
1
|
+
@import typography.sass
|
2
|
+
|
3
|
+
//
|
4
|
+
To install the fancy type plugin:
|
5
|
+
1. import the fancy_type module: @import blueprint/fancy_type
|
6
|
+
2. mixin +fancy-type to your project's body or at the top level of your stylesheet:
|
7
|
+
body
|
8
|
+
+fancy-type
|
9
|
+
|
10
|
+
=fancy-type
|
11
|
+
+fancy-paragraphs
|
12
|
+
.caps
|
13
|
+
+caps
|
14
|
+
.dquo
|
15
|
+
+dquo
|
16
|
+
.alt
|
17
|
+
+alt
|
18
|
+
|
19
|
+
// Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
|
20
|
+
=sibling-indentation
|
21
|
+
text-indent: 2em
|
22
|
+
margin-top: -1.5em
|
23
|
+
/* Don't want this in forms.
|
24
|
+
form &
|
25
|
+
text-indent: 0
|
26
|
+
|
27
|
+
//
|
28
|
+
For great looking type, use this code instead of asdf:
|
29
|
+
<span class="alt">asdf</span>
|
30
|
+
Best used on prepositions and ampersands.
|
31
|
+
|
32
|
+
=alt
|
33
|
+
color: #666
|
34
|
+
font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif
|
35
|
+
font-style: italic
|
36
|
+
font-weight: normal
|
37
|
+
|
38
|
+
//
|
39
|
+
For great looking quote marks in titles, replace "asdf" with:
|
40
|
+
<span class="dquo">“</span>asdf”
|
41
|
+
(That is, when the title starts with a quote mark).
|
42
|
+
(You may have to change this value depending on your font size).
|
43
|
+
=dquo(!offset = 0.5em)
|
44
|
+
margin-left: -!offset
|
45
|
+
|
46
|
+
//
|
47
|
+
Reduced size type with incremental leading
|
48
|
+
(http://www.markboulton.co.uk/journal/comments/incremental_leading/)
|
49
|
+
|
50
|
+
This could be used for side notes. For smaller type, you don't necessarily want to
|
51
|
+
follow the 1.5x vertical rhythm -- the line-height is too much.
|
52
|
+
|
53
|
+
Using this mixin, reduces your font size and line-height so that for
|
54
|
+
every four lines of normal sized type, there is five lines of the sidenote. eg:
|
55
|
+
|
56
|
+
Arguments:
|
57
|
+
font_size - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
|
58
|
+
base_font_size - The base font size in pixels. Defaults to 12px
|
59
|
+
old_line_height - The old line height. Defaults to 1.5 times the base_font_size
|
60
|
+
=incr(!font_size = 10px, !base_font_size = !blueprint_font_size, !old_line_height = !base_font_size * 1.5)
|
61
|
+
font-size= 1em * !font_size / !base_font_size
|
62
|
+
line-height= 1em * !old_line_height / !font_size * 4 / 5
|
63
|
+
margin-bottom: 1.5em
|
64
|
+
|
65
|
+
//
|
66
|
+
Surround uppercase words and abbreviations with this class.
|
67
|
+
Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/]
|
68
|
+
=caps
|
69
|
+
font-variant: small-caps
|
70
|
+
letter-spacing: 1px
|
71
|
+
text-transform: lowercase
|
72
|
+
font-size: 1.2em
|
73
|
+
line-height: 1%
|
74
|
+
font-weight: bold
|
75
|
+
padding: 0 2px
|
76
|
+
|
77
|
+
=fancy-paragraphs
|
78
|
+
p + p
|
79
|
+
+sibling-indentation
|
80
|
+
p.incr,
|
81
|
+
.incr p
|
82
|
+
+incr
|