compass-edge 0.9.4 → 0.9.5.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -1,4 +1,4 @@
|
|
1
|
-
@import
|
1
|
+
@import typography.sass
|
2
2
|
@import compass/utilities/general/float.sass
|
3
3
|
|
4
4
|
|
@@ -62,9 +62,6 @@
|
|
62
62
|
font:
|
63
63
|
size: .9em
|
64
64
|
family= !blueprint_fixed_font_family
|
65
|
-
img
|
66
|
-
+float-left
|
67
|
-
margin: 1.5em 1.5em 1.5em 0
|
68
65
|
a
|
69
66
|
img
|
70
67
|
border: none
|
@@ -1,3 +1,58 @@
|
|
1
|
-
|
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
|
+
html
|
7
|
+
font-size: 100.01%
|
8
|
+
+blueprint-nested-reset
|
2
9
|
|
3
|
-
|
10
|
+
// Reset all elements within some selector scope.To reset the selector itself,
|
11
|
+
// mixin the appropriate reset mixin for that element type as well. This could be
|
12
|
+
// useful if you want to style a part of your page in a dramatically different way.
|
13
|
+
=blueprint-nested-reset
|
14
|
+
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
15
|
+
pre, a, abbr, acronym, address, code, del, dfn, em, img,
|
16
|
+
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr
|
17
|
+
+blueprint-reset
|
18
|
+
blockquote, q
|
19
|
+
+blueprint-reset-quotation
|
20
|
+
th, td, caption
|
21
|
+
+blueprint-reset-table-cell
|
22
|
+
table
|
23
|
+
+blueprint-reset-table
|
24
|
+
a img
|
25
|
+
border: none
|
26
|
+
|
27
|
+
=blueprint-reset-box-model
|
28
|
+
margin: 0
|
29
|
+
padding: 0
|
30
|
+
border: 0
|
31
|
+
|
32
|
+
=blueprint-reset
|
33
|
+
+blueprint-reset-box-model
|
34
|
+
font:
|
35
|
+
weight: inherit
|
36
|
+
style: inherit
|
37
|
+
size: 100%
|
38
|
+
family: inherit
|
39
|
+
vertical-align: baseline
|
40
|
+
|
41
|
+
=blueprint-reset-quotation
|
42
|
+
+blueprint-reset
|
43
|
+
quotes: "" ""
|
44
|
+
&:before,
|
45
|
+
&:after
|
46
|
+
content: ""
|
47
|
+
|
48
|
+
=blueprint-reset-table-cell
|
49
|
+
+blueprint-reset
|
50
|
+
text-align: left
|
51
|
+
font-weight: normal
|
52
|
+
vertical-align: middle
|
53
|
+
|
54
|
+
=blueprint-reset-table
|
55
|
+
+blueprint-reset
|
56
|
+
border-collapse: separate
|
57
|
+
border-spacing: 0
|
58
|
+
vertical-align: middle
|
@@ -0,0 +1,123 @@
|
|
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
|
+
text-align: right
|
33
|
+
* html &
|
34
|
+
overflow-x: hidden
|
35
|
+
|
36
|
+
// Mixin to a column to append n empty cols.
|
37
|
+
=append(!n)
|
38
|
+
padding-left= (!blueprint_grid_outer_width) * !n
|
39
|
+
|
40
|
+
// Mixin to a column to prepend n empty cols.
|
41
|
+
=prepend(!n)
|
42
|
+
padding-right= (!blueprint_grid_outer_width) * !n
|
43
|
+
|
44
|
+
// mixin to a column to move it n columns to the left
|
45
|
+
=pull(!n, !last = false)
|
46
|
+
position: relative
|
47
|
+
@if !last
|
48
|
+
margin-right= (-!blueprint_grid_outer_width * !n) + !blueprint_grid_margin
|
49
|
+
@else
|
50
|
+
margin-right= -!blueprint_grid_outer_width * !n
|
51
|
+
|
52
|
+
// mixin to a column to push it n columns to the right
|
53
|
+
=push(!n)
|
54
|
+
+float-right
|
55
|
+
position: relative
|
56
|
+
margin:
|
57
|
+
top: 0
|
58
|
+
left= -!blueprint_grid_outer_width * !n
|
59
|
+
bottom: 1.5em
|
60
|
+
right= !blueprint_grid_outer_width * !n
|
61
|
+
|
62
|
+
// Border on left hand side of a column.
|
63
|
+
=border
|
64
|
+
padding-left= !blueprint_grid_margin / 2 - 1
|
65
|
+
margin-left= !blueprint_grid_margin / 2
|
66
|
+
border-left: 1px solid #eee
|
67
|
+
|
68
|
+
// Border with more whitespace, spans one column.
|
69
|
+
=colborder
|
70
|
+
padding-left= (!blueprint_grid_width - 2 * !blueprint_grid_margin - 1)/2
|
71
|
+
margin-left= (!blueprint_grid_width - 2 * !blueprint_grid_margin)/2
|
72
|
+
border-left: 1px solid #eee
|
73
|
+
|
74
|
+
// Usage examples:
|
75
|
+
// As a top-level mixin, apply to any page that includes the stylesheet:
|
76
|
+
// +rtl-typography
|
77
|
+
// Scoped by a presentational class:
|
78
|
+
// body.blueprint
|
79
|
+
// +rtl-typography(true)
|
80
|
+
// Scoped by semantic selectors:
|
81
|
+
// body#page-1, body#page-2, body.a-special-page-type
|
82
|
+
// +rtl-typography(true)
|
83
|
+
// Deprecated:
|
84
|
+
// You can pass the body selector as the first argument when used as a top-level mixin
|
85
|
+
// +rtl-typography("body#page-1, body#page-2, body.a-special-page-type")
|
86
|
+
=rtl-typography(!body_selector = "body")
|
87
|
+
@if !body_selector == true
|
88
|
+
html &
|
89
|
+
font-family: Arial, sans-serif
|
90
|
+
+rtl-typography-defaults
|
91
|
+
@else
|
92
|
+
html #{!body_selector}
|
93
|
+
font-family: Arial, sans-serif
|
94
|
+
@if !body_selector != "body"
|
95
|
+
@debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +rtl-typography, pass true as the first argument and mix it into #{!body_selector}."
|
96
|
+
+rtl-typography-defaults
|
97
|
+
@if !body_selector == "body"
|
98
|
+
body
|
99
|
+
+rtl-typography-defaults
|
100
|
+
|
101
|
+
=rtl-typography-defaults
|
102
|
+
h1, h2, h3, h4, h5, h6
|
103
|
+
font-family: Arial, sans-serif
|
104
|
+
|
105
|
+
pre, code, tt
|
106
|
+
font-family: monospace
|
107
|
+
|
108
|
+
p
|
109
|
+
img.right
|
110
|
+
+float-left
|
111
|
+
margin: 1.5em 1.5em 1.5em 0
|
112
|
+
padding: 0
|
113
|
+
img.left
|
114
|
+
+float-right
|
115
|
+
margin: 1.5em 0 1.5em 1.5em
|
116
|
+
padding: 0
|
117
|
+
|
118
|
+
dd, ul, ol
|
119
|
+
margin-left: 0
|
120
|
+
margin-right: 1.5em
|
121
|
+
|
122
|
+
td, th
|
123
|
+
text-align: right
|
@@ -0,0 +1,49 @@
|
|
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
|
48
|
+
form.inline
|
49
|
+
+blueprint-inline-form
|
@@ -1,29 +1,2 @@
|
|
1
|
-
@
|
2
|
-
@import
|
3
|
-
@import modules/typography.sass
|
4
|
-
@import modules/utilities.sass
|
5
|
-
@import modules/form.sass
|
6
|
-
@import modules/interaction.sass
|
7
|
-
@import modules/debug.sass
|
8
|
-
|
9
|
-
// Usage examples:
|
10
|
-
// As a top-level mixin, apply to any page that includes the stylesheet:
|
11
|
-
// +blueprint
|
12
|
-
// Scoped by a presentational class:
|
13
|
-
// body.blueprint
|
14
|
-
// +blueprint(true)
|
15
|
-
// Scoped by semantic selectors:
|
16
|
-
// body#page-1, body#page-2, body.a-special-page-type
|
17
|
-
// +blueprint(true)
|
18
|
-
// Deprecated:
|
19
|
-
// You can pass the body selector as the first argument when used as a top-level mixin
|
20
|
-
// +blueprint("body#page-1, body#page-2, body.a-special-page-type")
|
21
|
-
=blueprint(!body_selector = "body")
|
22
|
-
@if not (!body_selector == "body" or !body_selector == true)
|
23
|
-
@debug "[DEPRECATED] To specify a the selector \"#{!body_selector}\" to +blueprint, pass true as the first argument and mix it into #{!body_selector}."
|
24
|
-
+blueprint-typography(!body_selector)
|
25
|
-
+blueprint-utilities
|
26
|
-
+blueprint-grid
|
27
|
-
+blueprint-debug
|
28
|
-
+blueprint-interaction
|
29
|
-
+blueprint-form
|
1
|
+
@debug "DEPRECATION WARNING: The blueprint/screen.sass will be removed. Please import blueprint.sass instead."
|
2
|
+
@import blueprint.sass
|
@@ -0,0 +1,162 @@
|
|
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
|
129
|
+
ul, ol
|
130
|
+
margin: 0
|
131
|
+
ul, ol
|
132
|
+
margin: 0 1.5em 1.5em 0
|
133
|
+
padding-left: 3.333em
|
134
|
+
ul
|
135
|
+
list-style-type: disc
|
136
|
+
ol
|
137
|
+
list-style-type: decimal
|
138
|
+
dl
|
139
|
+
margin: 0 0 1.5em 0
|
140
|
+
dt
|
141
|
+
font-weight: bold
|
142
|
+
dd
|
143
|
+
margin-left: 1.5em
|
144
|
+
table
|
145
|
+
margin-bottom: 1.4em
|
146
|
+
width: 100%
|
147
|
+
th
|
148
|
+
font-weight: bold
|
149
|
+
thead th
|
150
|
+
background= !blueprint_table_header_color
|
151
|
+
th, td, caption
|
152
|
+
padding: 4px 10px 4px 5px
|
153
|
+
tr.even td
|
154
|
+
background= !blueprint_table_stripe_color
|
155
|
+
tfoot
|
156
|
+
font-style: italic
|
157
|
+
caption
|
158
|
+
background: #eee
|
159
|
+
.quiet
|
160
|
+
+quiet
|
161
|
+
.loud
|
162
|
+
+loud
|
@@ -0,0 +1,37 @@
|
|
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
|