compass-edge 0.9.5.0 → 0.10.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +0 -153
- data/README.markdown +2 -12
- data/REVISION +1 -1
- data/Rakefile +2 -37
- data/VERSION.yml +1 -1
- data/examples/blueprint_default/index.html.haml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +0 -2
- 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/src/utilities.sass +2 -2
- data/examples/downloader.rb +2 -2
- data/lib/compass/app_integration.rb +0 -21
- data/lib/compass/app_integration/rails.rb +0 -18
- data/lib/compass/app_integration/rails/configuration_defaults.rb +0 -16
- data/lib/compass/app_integration/rails/installer.rb +6 -6
- data/lib/compass/app_integration/stand_alone.rb +1 -20
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -5
- data/lib/compass/app_integration/stand_alone/installer.rb +17 -29
- data/lib/compass/commands.rb +2 -2
- data/lib/compass/commands/create_project.rb +1 -10
- data/lib/compass/commands/generate_grid_background.rb +1 -1
- data/lib/compass/commands/help.rb +7 -34
- data/lib/compass/commands/installer_command.rb +11 -15
- data/lib/compass/commands/project_base.rb +2 -2
- data/lib/compass/commands/update_project.rb +1 -51
- data/lib/compass/commands/validate_project.rb +3 -59
- data/lib/compass/commands/watch_project.rb +2 -4
- data/lib/compass/commands/write_configuration.rb +3 -84
- data/lib/compass/compiler.rb +4 -13
- data/lib/compass/configuration.rb +18 -23
- data/lib/compass/configuration/adapters.rb +1 -1
- data/lib/compass/configuration/data.rb +2 -5
- data/lib/compass/configuration/defaults.rb +1 -32
- data/lib/compass/configuration/helpers.rb +10 -47
- data/lib/compass/configuration/inheritance.rb +1 -1
- data/lib/compass/configuration/serialization.rb +2 -2
- data/lib/compass/errors.rb +1 -4
- data/lib/compass/exec.rb +0 -1
- data/lib/compass/exec/project_options_parser.rb +0 -4
- data/lib/compass/frameworks.rb +1 -40
- data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +1 -29
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +4 -1
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +2 -57
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +29 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +140 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +122 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +160 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -2
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
- data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +0 -12
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
- data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +0 -13
- data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +0 -24
- data/lib/compass/frameworks/blueprint/templates/project/screen.sass +7 -1
- data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +1 -9
- data/lib/compass/frameworks/compass/stylesheets/_compass.sass +1 -2
- data/lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass +1 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_css3.sass +6 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_border_radius.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_shadow.sass +12 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_box_sizing.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_columns.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_inline_block.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_opacity.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +2 -2
- data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +1 -26
- data/lib/compass/frameworks/compass/templates/extension/manifest.rb +2 -16
- data/lib/compass/frameworks/compass/templates/project/manifest.rb +0 -1
- data/lib/compass/grid_builder.rb +1 -1
- data/lib/compass/installers.rb +1 -1
- data/lib/compass/installers/base.rb +52 -13
- data/lib/compass/installers/manifest.rb +1 -33
- data/lib/compass/logger.rb +2 -28
- data/lib/compass/sass_extensions/functions.rb +1 -3
- data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
- data/lib/compass/sass_extensions/functions/inline_image.rb +1 -22
- data/lib/compass/sass_extensions/functions/urls.rb +0 -20
- data/lib/compass/sass_extensions/monkey_patches.rb +2 -2
- data/lib/compass/validator.rb +3 -2
- data/lib/vendor/fssm.rb +6 -19
- data/lib/vendor/fssm/backends/fsevents.rb +60 -19
- data/lib/vendor/fssm/backends/polling.rb +18 -20
- data/lib/vendor/fssm/ext.rb +0 -30
- data/lib/vendor/fssm/monitor.rb +6 -10
- data/lib/vendor/fssm/path.rb +21 -24
- data/lib/vendor/fssm/state.rb +29 -37
- data/lib/vendor/fssm/support.rb +7 -3
- data/test/command_line_helper.rb +4 -12
- data/test/command_line_test.rb +2 -2
- data/test/compass_test.rb +4 -14
- data/test/configuration_test.rb +5 -5
- data/test/fixtures/stylesheets/blueprint/css/typography.css +3 -5
- 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 +8 -2
- data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
- data/test/fixtures/stylesheets/image_urls/css/screen.css +0 -2
- data/test/io_helper.rb +1 -18
- data/test/rails_integration_test.rb +41 -3
- data/test/sass_extensions_test.rb +2 -2
- data/test/test_helper.rb +0 -1
- metadata +9 -124
- data/examples/compass/bootstrap.rb +0 -3
- data/examples/compass/extensions/yui/stylesheets/_yui.sass +0 -7
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +0 -70
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +0 -45
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +0 -385
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +0 -61
- data/examples/compass/extensions/yui/templates/project/manifest.rb +0 -1
- data/examples/compass/extensions/yui/templates/project/screen.sass +0 -4
- data/examples/css3/config.rb +0 -6
- 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 +0 -7
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -5
- data/examples/css3/images/fresh-peas.jpg +0 -0
- data/examples/css3/index.html.haml +0 -55
- data/examples/css3/src/_base.sass +0 -14
- data/examples/css3/src/fancy-fonts.sass +0 -7
- data/examples/css3/src/gradient.sass +0 -10
- data/examples/css3/src/main.sass +0 -80
- data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
- data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
- data/examples/susy/bootstrap.rb +0 -3
- data/examples/susy/config.rb +0 -9
- data/examples/susy/extensions/susy/LICENSE.txt +0 -28
- data/examples/susy/extensions/susy/README.mkdn +0 -235
- data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +0 -35
- data/examples/susy/extensions/susy/docs/tutorial/build.sh +0 -141
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +0 -100
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +0 -98
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +0 -19
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +0 -48
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +0 -14
- 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 +0 -63
- data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +0 -1450
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +0 -100
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +0 -91
- 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 +0 -301
- data/examples/susy/extensions/susy/lib/susy.rb +0 -2
- data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +0 -5
- data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +0 -79
- data/examples/susy/extensions/susy/sass/susy/_grid.sass +0 -128
- data/examples/susy/extensions/susy/sass/susy/_reset.sass +0 -7
- data/examples/susy/extensions/susy/sass/susy/_susy.sass +0 -23
- data/examples/susy/extensions/susy/sass/susy/_text.sass +0 -15
- data/examples/susy/extensions/susy/sass/susy/_utils.sass +0 -81
- data/examples/susy/extensions/susy/templates/project/_base.sass +0 -62
- data/examples/susy/extensions/susy/templates/project/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/templates/project/ie.sass +0 -9
- data/examples/susy/extensions/susy/templates/project/manifest.rb +0 -5
- data/examples/susy/extensions/susy/templates/project/print.sass +0 -7
- data/examples/susy/extensions/susy/templates/project/screen.sass +0 -44
- data/examples/susy/src/_base.sass +0 -62
- data/examples/susy/src/_defaults.sass +0 -148
- data/examples/susy/src/screen.sass +0 -114
- data/features/command_line.feature +0 -226
- data/features/extensions.feature +0 -20
- data/features/step_definitions/command_line_steps.rb +0 -223
- data/features/step_definitions/extension_steps.rb +0 -13
- data/lib/compass/commands/interactive.rb +0 -61
- data/lib/compass/commands/project_stats.rb +0 -162
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +0 -84
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +0 -33
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +0 -9
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +0 -82
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +0 -56
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +0 -179
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +0 -58
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +0 -44
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +0 -141
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +0 -123
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +0 -49
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +0 -162
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +0 -37
- data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +0 -14
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +0 -16
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +0 -18
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +0 -14
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +0 -20
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +0 -31
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +0 -40
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +0 -15
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +0 -60
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +0 -57
- data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +0 -32
- data/lib/compass/installers/bare_installer.rb +0 -58
- data/lib/compass/installers/manifest_installer.rb +0 -59
- data/lib/compass/sass_extensions/functions/color_stop.rb +0 -10
- data/lib/compass/sass_extensions/functions/font_files.rb +0 -11
- data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
- data/lib/compass/stats.rb +0 -92
- data/lib/vendor/fssm/cache.rb +0 -193
- data/lib/vendor/fssm/fsevents.rb +0 -129
- data/lib/vendor/fssm/tree.rb +0 -176
- data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
- data/test/fixtures/stylesheets/relative/config.rb +0 -9
- data/test/fixtures/stylesheets/relative/css/ie.css +0 -1
- data/test/fixtures/stylesheets/relative/css/print.css +0 -1
- data/test/fixtures/stylesheets/relative/css/screen.css +0 -1
- data/test/fixtures/stylesheets/relative/sass/ie.sass +0 -6
- data/test/fixtures/stylesheets/relative/sass/print.sass +0 -6
- data/test/fixtures/stylesheets/relative/sass/screen.sass +0 -3
- data/test/rails_helper.rb +0 -40
@@ -1,2 +1,56 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
// Global reset rules.
|
2
|
+
// For more specific resets, use the reset mixins provided below
|
3
|
+
=blueprint-global-reset
|
4
|
+
html, body
|
5
|
+
+blueprint-reset
|
6
|
+
+blueprint-nested-reset
|
7
|
+
|
8
|
+
// Reset all elements within some selector scope.To reset the selector itself,
|
9
|
+
// mixin the appropriate reset mixin for that element type as well. This could be
|
10
|
+
// useful if you want to style a part of your page in a dramatically different way.
|
11
|
+
=blueprint-nested-reset
|
12
|
+
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
13
|
+
pre, a, abbr, acronym, address, code, del, dfn, em, img,
|
14
|
+
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr
|
15
|
+
+blueprint-reset
|
16
|
+
blockquote, q
|
17
|
+
+blueprint-reset-quotation
|
18
|
+
th, td, caption
|
19
|
+
+blueprint-reset-table-cell
|
20
|
+
table
|
21
|
+
+blueprint-reset-table
|
22
|
+
a img
|
23
|
+
border: none
|
24
|
+
|
25
|
+
=blueprint-reset-box-model
|
26
|
+
margin: 0
|
27
|
+
padding: 0
|
28
|
+
border: 0
|
29
|
+
|
30
|
+
=blueprint-reset
|
31
|
+
+blueprint-reset-box-model
|
32
|
+
font:
|
33
|
+
weight: inherit
|
34
|
+
style: inherit
|
35
|
+
size: 100%
|
36
|
+
family: inherit
|
37
|
+
vertical-align: baseline
|
38
|
+
|
39
|
+
=blueprint-reset-quotation
|
40
|
+
+blueprint-reset
|
41
|
+
quotes: "" ""
|
42
|
+
&:before,
|
43
|
+
&:after
|
44
|
+
content: ""
|
45
|
+
|
46
|
+
=blueprint-reset-table-cell
|
47
|
+
+blueprint-reset
|
48
|
+
text-align: left
|
49
|
+
font-weight: normal
|
50
|
+
vertical-align: middle
|
51
|
+
|
52
|
+
=blueprint-reset-table
|
53
|
+
+blueprint-reset
|
54
|
+
border-collapse: separate
|
55
|
+
border-spacing: 0
|
56
|
+
vertical-align: middle
|
@@ -1,2 +1,122 @@
|
|
1
|
-
@
|
2
|
-
@import
|
1
|
+
@import grid.sass
|
2
|
+
@import compass/utilities/general/float.sass
|
3
|
+
|
4
|
+
// Main layout grid, override these constants to build your grid and container sizes.
|
5
|
+
!blueprint_grid_columns ||= 24
|
6
|
+
!blueprint_grid_width ||= 30px
|
7
|
+
!blueprint_grid_margin ||= 10px
|
8
|
+
|
9
|
+
!blueprint_grid_outer_width = !blueprint_grid_width + !blueprint_grid_margin
|
10
|
+
!blueprint_container_size = !blueprint_grid_outer_width * !blueprint_grid_columns - !blueprint_grid_margin
|
11
|
+
|
12
|
+
// Columns
|
13
|
+
// Note: If you use this mixin without the class and want to support ie6
|
14
|
+
// you must set text-align left on your container element in an IE stylesheet.
|
15
|
+
=container
|
16
|
+
width= !blueprint_container_size
|
17
|
+
margin: 0 auto
|
18
|
+
direction: rtl
|
19
|
+
+clearfix
|
20
|
+
|
21
|
+
// The last column in a row needs this mixin or it will end up on the next row.
|
22
|
+
// TODO add this to span mixin when we have optional arguments
|
23
|
+
=last
|
24
|
+
margin-left: 0
|
25
|
+
|
26
|
+
=column-base(!last = false)
|
27
|
+
+float-right
|
28
|
+
@if !last
|
29
|
+
+last
|
30
|
+
@else
|
31
|
+
margin-left= !blueprint_grid_margin
|
32
|
+
* html &
|
33
|
+
overflow-x: hidden
|
34
|
+
|
35
|
+
// Mixin to a column to append n empty cols.
|
36
|
+
=append(!n)
|
37
|
+
padding-left= (!blueprint_grid_outer_width) * !n
|
38
|
+
|
39
|
+
// Mixin to a column to prepend n empty cols.
|
40
|
+
=prepend(!n)
|
41
|
+
padding-right= (!blueprint_grid_outer_width) * !n
|
42
|
+
|
43
|
+
// mixin to a column to move it n columns to the left
|
44
|
+
=pull(!n, !last = false)
|
45
|
+
position: relative
|
46
|
+
@if !last
|
47
|
+
margin-right= (-!blueprint_grid_outer_width * !n) + !blueprint_grid_margin
|
48
|
+
@else
|
49
|
+
margin-right= -!blueprint_grid_outer_width * !n
|
50
|
+
|
51
|
+
// mixin to a column to push it n columns to the right
|
52
|
+
=push(!n)
|
53
|
+
+float-right
|
54
|
+
position: relative
|
55
|
+
margin:
|
56
|
+
top: 0
|
57
|
+
left= -!blueprint_grid_outer_width * !n
|
58
|
+
bottom: 1.5em
|
59
|
+
right= !blueprint_grid_outer_width * !n
|
60
|
+
|
61
|
+
// Border on left hand side of a column.
|
62
|
+
=border
|
63
|
+
padding-left= !blueprint_grid_margin / 2 - 1
|
64
|
+
margin-left= !blueprint_grid_margin / 2
|
65
|
+
border-left: 1px solid #eee
|
66
|
+
|
67
|
+
// Border with more whitespace, spans one column.
|
68
|
+
=colborder
|
69
|
+
padding-left= (!blueprint_grid_width - 2 * !blueprint_grid_margin - 1)/2
|
70
|
+
margin-left= (!blueprint_grid_width - 2 * !blueprint_grid_margin)/2
|
71
|
+
border-left: 1px solid #eee
|
72
|
+
|
73
|
+
// Usage examples:
|
74
|
+
// As a top-level mixin, apply to any page that includes the stylesheet:
|
75
|
+
// +rtl-typography
|
76
|
+
// Scoped by a presentational class:
|
77
|
+
// body.blueprint
|
78
|
+
// +rtl-typography(true)
|
79
|
+
// Scoped by semantic selectors:
|
80
|
+
// body#page-1, body#page-2, body.a-special-page-type
|
81
|
+
// +rtl-typography(true)
|
82
|
+
// Deprecated:
|
83
|
+
// You can pass the body selector as the first argument when used as a top-level mixin
|
84
|
+
// +rtl-typography("body#page-1, body#page-2, body.a-special-page-type")
|
85
|
+
=rtl-typography(!body_selector = "body")
|
86
|
+
@if !body_selector == true
|
87
|
+
html &
|
88
|
+
font-family: Arial, sans-serif
|
89
|
+
+rtl-typography-defaults
|
90
|
+
@else
|
91
|
+
html #{!body_selector}
|
92
|
+
font-family: Arial, sans-serif
|
93
|
+
@if !body_selector != "body"
|
94
|
+
@debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +rtl-typography, pass true as the first argument and mix it into #{!body_selector}."
|
95
|
+
+rtl-typography-defaults
|
96
|
+
@if !body_selector == "body"
|
97
|
+
body
|
98
|
+
+rtl-typography-defaults
|
99
|
+
|
100
|
+
=rtl-typography-defaults
|
101
|
+
h1, h2, h3, h4, h5, h6
|
102
|
+
font-family: Arial, sans-serif
|
103
|
+
|
104
|
+
pre, code, tt
|
105
|
+
font-family: monospace
|
106
|
+
|
107
|
+
p
|
108
|
+
img.right
|
109
|
+
+float-left
|
110
|
+
margin: 1.5em 1.5em 1.5em 0
|
111
|
+
padding: 0
|
112
|
+
img.left
|
113
|
+
+float-right
|
114
|
+
margin: 1.5em 0 1.5em 1.5em
|
115
|
+
padding: 0
|
116
|
+
|
117
|
+
dd, ul, ol
|
118
|
+
margin-left: 0
|
119
|
+
margin-right: 1.5em
|
120
|
+
|
121
|
+
td, th
|
122
|
+
text-align: right
|
@@ -1,2 +1,47 @@
|
|
1
|
-
@
|
2
|
-
|
1
|
+
@import grid.sass
|
2
|
+
// The styles contained here are meant to provide for an attractive experience out of the box
|
3
|
+
// and are expected to be removed once custom visual design begins.
|
4
|
+
|
5
|
+
// The +blueprint-scaffolding mixin must be mixed into the top level of your stylesheet.
|
6
|
+
// However, you can customize the body selector if you wish to control the scope
|
7
|
+
// of this mixin. Examples:
|
8
|
+
// Apply to any page including the stylesheet:
|
9
|
+
// +blueprint-scaffolding
|
10
|
+
// Scoped by a single presentational body class:
|
11
|
+
// +blueprint-scaffolding("body.blueprint")
|
12
|
+
// Semantically:
|
13
|
+
// +blueprint-scaffolding("body#page-1, body#page-2, body.a-special-page-type")
|
14
|
+
// Alternatively, you can use the +blueprint-scaffolding-body and +blueprint-scaffolding-defaults
|
15
|
+
// mixins to construct your own semantic style rules.
|
16
|
+
|
17
|
+
=blueprint-scaffolding(!body_selector = "body")
|
18
|
+
#{!body_selector}
|
19
|
+
@if !body_selector != "body"
|
20
|
+
+blueprint-scaffolding-defaults
|
21
|
+
@if !body_selector == "body"
|
22
|
+
+blueprint-scaffolding-defaults
|
23
|
+
|
24
|
+
// The styles this mixin provides were deprecated in Blueprint 0.9 and is no longer part of the
|
25
|
+
// main scaffolding, but the mixin is still available if you want to use it.
|
26
|
+
=blueprint-scaffolding-body
|
27
|
+
margin: 1.5em 0
|
28
|
+
|
29
|
+
// Mixin +box to create a padded box inside a column.
|
30
|
+
=box
|
31
|
+
padding: 1.5em
|
32
|
+
margin-bottom: 1.5em
|
33
|
+
background: #E5ECF9
|
34
|
+
|
35
|
+
=blueprint-scaffolding-defaults
|
36
|
+
.box
|
37
|
+
+box
|
38
|
+
// Border on right hand side of a column. You can comment this out if you don't plan to use it.
|
39
|
+
div.border
|
40
|
+
+border
|
41
|
+
// Border with more whitespace, spans one column.
|
42
|
+
div.colborder
|
43
|
+
+colborder
|
44
|
+
hr
|
45
|
+
+colruler
|
46
|
+
hr.space
|
47
|
+
+colspacer
|
@@ -1,2 +1,160 @@
|
|
1
|
-
@
|
2
|
-
@import
|
1
|
+
@import colors.sass
|
2
|
+
@import compass/utilities/links/link_colors.sass
|
3
|
+
@import compass/utilities/general/float.sass
|
4
|
+
|
5
|
+
!blueprint_font_family ||= "Helvetica Neue, Arial, Helvetica, sans-serif"
|
6
|
+
!blueprint_fixed_font_family ||= "'andale mono', 'lucida console', monospace"
|
7
|
+
!blueprint_font_size ||= 12px
|
8
|
+
|
9
|
+
// Usage examples:
|
10
|
+
// As a top-level mixin, apply to any page that includes the stylesheet:
|
11
|
+
// +blueprint-typography
|
12
|
+
// Scoped by a presentational class:
|
13
|
+
// body.blueprint
|
14
|
+
// +blueprint-typography(true)
|
15
|
+
// Scoped by semantic selectors:
|
16
|
+
// body#page-1, body#page-2, body.a-special-page-type
|
17
|
+
// +blueprint-typography(true)
|
18
|
+
// Deprecated:
|
19
|
+
// You can pass the body selector as the first argument when used as a top-level mixin
|
20
|
+
// +blueprint-typography("body#page-1, body#page-2, body.a-special-page-type")
|
21
|
+
=blueprint-typography(!body_selector = "body")
|
22
|
+
@if !body_selector == true
|
23
|
+
+blueprint-typography-body
|
24
|
+
+blueprint-typography-defaults
|
25
|
+
@else
|
26
|
+
#{!body_selector}
|
27
|
+
+blueprint-typography-body
|
28
|
+
@if !body_selector != "body"
|
29
|
+
@debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +blueprint-typography, pass true as the first argument and mix it into #{!body_selector}."
|
30
|
+
+blueprint-typography-defaults
|
31
|
+
@if !body_selector == "body"
|
32
|
+
+blueprint-typography-defaults
|
33
|
+
|
34
|
+
=normal-text
|
35
|
+
font-family= !blueprint_font_family
|
36
|
+
color= !font_color
|
37
|
+
|
38
|
+
=fixed-width-text
|
39
|
+
font= 1em !blueprint_fixed_font_family
|
40
|
+
line-height: 1.5
|
41
|
+
|
42
|
+
=header-text
|
43
|
+
font-weight: normal
|
44
|
+
color= !header_color
|
45
|
+
|
46
|
+
=quiet
|
47
|
+
color= !quiet_color
|
48
|
+
|
49
|
+
=loud
|
50
|
+
color= !loud_color
|
51
|
+
|
52
|
+
=blueprint-typography-body(!font_size = !blueprint_font_size)
|
53
|
+
line-height: 1.5
|
54
|
+
+normal-text
|
55
|
+
font-size= 100% * !font_size / 16px
|
56
|
+
|
57
|
+
=blueprint-typography-defaults
|
58
|
+
h1
|
59
|
+
+header-text
|
60
|
+
font-size: 3em
|
61
|
+
line-height: 1
|
62
|
+
margin-bottom: 0.5em
|
63
|
+
img
|
64
|
+
margin: 0
|
65
|
+
h2
|
66
|
+
+header-text
|
67
|
+
font-size: 2em
|
68
|
+
margin-bottom: 0.75em
|
69
|
+
h3
|
70
|
+
+header-text
|
71
|
+
font-size: 1.5em
|
72
|
+
line-height: 1
|
73
|
+
margin-bottom: 1em
|
74
|
+
h4
|
75
|
+
+header-text
|
76
|
+
font-size: 1.2em
|
77
|
+
line-height: 1.25
|
78
|
+
margin-bottom: 1.25em
|
79
|
+
h5
|
80
|
+
+header-text
|
81
|
+
font-size: 1em
|
82
|
+
font-weight: bold
|
83
|
+
margin-bottom: 1.5em
|
84
|
+
h6
|
85
|
+
+header-text
|
86
|
+
font-size: 1em
|
87
|
+
font-weight: bold
|
88
|
+
h2 img, h3 img, h4 img, h5 img, h6 img
|
89
|
+
margin: 0
|
90
|
+
p
|
91
|
+
margin: 0 0 1.5em
|
92
|
+
img.left
|
93
|
+
+float-left
|
94
|
+
margin: 1.5em 1.5em 1.5em 0
|
95
|
+
padding: 0
|
96
|
+
img.right
|
97
|
+
+float-right
|
98
|
+
margin: 1.5em 0 1.5em 1.5em
|
99
|
+
padding: 0
|
100
|
+
a
|
101
|
+
text-decoration: underline
|
102
|
+
+link-colors(!link_color, !link_hover_color, !link_active_color, !link_visited_color, !link_focus_color)
|
103
|
+
blockquote
|
104
|
+
margin: 1.5em
|
105
|
+
color: #666
|
106
|
+
font-style: italic
|
107
|
+
strong
|
108
|
+
font-weight: bold
|
109
|
+
em
|
110
|
+
font-style: italic
|
111
|
+
dfn
|
112
|
+
font-style: italic
|
113
|
+
font-weight: bold
|
114
|
+
sup, sub
|
115
|
+
line-height: 0
|
116
|
+
abbr, acronym
|
117
|
+
border-bottom: 1px dotted #666
|
118
|
+
address
|
119
|
+
margin: 0 0 1.5em
|
120
|
+
font-style: italic
|
121
|
+
del
|
122
|
+
color: #666
|
123
|
+
pre
|
124
|
+
margin: 1.5em 0
|
125
|
+
white-space: pre
|
126
|
+
pre, code, tt
|
127
|
+
+fixed-width-text
|
128
|
+
li ul, li ol
|
129
|
+
margin: 0 1.5em
|
130
|
+
ul
|
131
|
+
margin: 0 1.5em 1.5em 1.5em
|
132
|
+
list-style-type: disc
|
133
|
+
ol
|
134
|
+
margin: 0 1.5em 1.5em 1.5em
|
135
|
+
list-style-type: decimal
|
136
|
+
dl
|
137
|
+
margin: 0 0 1.5em 0
|
138
|
+
dt
|
139
|
+
font-weight: bold
|
140
|
+
dd
|
141
|
+
margin-left: 1.5em
|
142
|
+
table
|
143
|
+
margin-bottom: 1.4em
|
144
|
+
width: 100%
|
145
|
+
th
|
146
|
+
font-weight: bold
|
147
|
+
thead th
|
148
|
+
background= !blueprint_table_header_color
|
149
|
+
th, td, caption
|
150
|
+
padding: 4px 10px 4px 5px
|
151
|
+
tr.even td
|
152
|
+
background= !blueprint_table_stripe_color
|
153
|
+
tfoot
|
154
|
+
font-style: italic
|
155
|
+
caption
|
156
|
+
background: #eee
|
157
|
+
.quiet
|
158
|
+
+quiet
|
159
|
+
.loud
|
160
|
+
+loud
|
@@ -1,2 +1,37 @@
|
|
1
|
-
@
|
2
|
-
@import
|
1
|
+
@import compass/utilities/text/nowrap.sass
|
2
|
+
@import compass/utilities/general/float.sass
|
3
|
+
|
4
|
+
// Most of these utility classes are not "semantic". If you use them,
|
5
|
+
// you are mixing your content and presentation. For shame!
|
6
|
+
|
7
|
+
=blueprint-utilities
|
8
|
+
// Regular clearing apply to column that should drop below previous ones.
|
9
|
+
.clear
|
10
|
+
clear: both
|
11
|
+
// turn off text wrapping for the element.
|
12
|
+
.nowrap
|
13
|
+
+nowrap
|
14
|
+
// Apply to an element that has floated children to make the bottom
|
15
|
+
// of the element fall _below_ the floated children.
|
16
|
+
.clearfix
|
17
|
+
+clearfix
|
18
|
+
.small
|
19
|
+
font-size: .8em
|
20
|
+
margin-bottom: 1.875em
|
21
|
+
line-height: 1.875em
|
22
|
+
.large
|
23
|
+
font-size: 1.2em
|
24
|
+
line-height: 2.5em
|
25
|
+
margin-bottom: 1.25em
|
26
|
+
.first
|
27
|
+
margin-left: 0
|
28
|
+
padding-left: 0
|
29
|
+
.last
|
30
|
+
margin-right: 0
|
31
|
+
padding-right: 0
|
32
|
+
.top
|
33
|
+
margin-top: 0
|
34
|
+
padding-top: 0
|
35
|
+
.bottom
|
36
|
+
margin-bottom: 0
|
37
|
+
padding-bottom: 0
|
@@ -1,5 +1,5 @@
|
|
1
1
|
@import compass/utilities/general/float.sass
|
2
|
-
@import blueprint/buttons.sass
|
2
|
+
@import blueprint/modules/buttons.sass
|
3
3
|
|
4
4
|
//
|
5
5
|
Use the following HTML code to place the buttons on your site:
|
@@ -23,7 +23,7 @@ a.button
|
|
23
23
|
+anchor-button("left")
|
24
24
|
// All the button color mixins take 4 optional arguments:
|
25
25
|
// font color, background color, border color, border highlight color
|
26
|
-
// the first three default to constants set in blueprint/buttons.sass
|
26
|
+
// the first three default to constants set in blueprint/modules/buttons.sass
|
27
27
|
// the last one defaults to a shade lighter than the border color.
|
28
28
|
+button-colors
|
29
29
|
+button-hover-colors
|