compass 0.10.6 → 0.11.alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -15,19 +15,17 @@
|
|
15
15
|
// +blueprint-scaffolding("body#page-1, body#page-2, body.a-special-page-type")
|
16
16
|
// Alternatively, you can use the +blueprint-scaffolding-body and +blueprint-scaffolding-defaults
|
17
17
|
// mixins to construct your own semantic style rules.
|
18
|
-
|
19
|
-
@mixin blueprint-scaffolding($
|
20
|
-
@if $
|
21
|
-
|
22
|
-
@include blueprint-scaffolding-defaults;
|
23
|
-
}
|
24
|
-
} @else {
|
25
|
-
@include blueprint-scaffolding-defaults;
|
18
|
+
// @deprecated It is no longer necessary to pass any argument.
|
19
|
+
@mixin blueprint-scaffolding($nested: deprecated) {
|
20
|
+
@if $nested != deprecated {
|
21
|
+
@warn "It is no longer necessary to pass any argument to the blueprint-scaffolding mixin."
|
26
22
|
}
|
23
|
+
@include blueprint-scaffolding-defaults;
|
27
24
|
}
|
28
25
|
|
29
|
-
// The styles this mixin provides were deprecated in Blueprint 0.9 and is no
|
30
|
-
// main scaffolding, but the mixin is still available if
|
26
|
+
// The styles this mixin provides were deprecated in Blueprint 0.9 and is no
|
27
|
+
// longer part of the main scaffolding, but the mixin is still available if
|
28
|
+
// you want to use it.
|
31
29
|
@mixin blueprint-scaffolding-body {
|
32
30
|
margin: 1.5em 0; }
|
33
31
|
|
@@ -41,10 +39,10 @@
|
|
41
39
|
.box {
|
42
40
|
@include box; }
|
43
41
|
// Border on right hand side of a column. You can comment this out if you don't plan to use it.
|
44
|
-
|
42
|
+
.border {
|
45
43
|
@include border; }
|
46
44
|
// Border with more whitespace, spans one column.
|
47
|
-
|
45
|
+
.colborder {
|
48
46
|
@include colborder; }
|
49
47
|
hr {
|
50
48
|
@include colruler; }
|
@@ -25,27 +25,13 @@ $blueprint-font-size: 12px !default;
|
|
25
25
|
// body#page-1, body#page-2, body.a-special-page-type
|
26
26
|
// +blueprint-typography(true)
|
27
27
|
// </pre>
|
28
|
-
|
29
|
-
|
30
|
-
// You can pass the body selector as the first argument when used as a top-level mixin
|
31
|
-
// <pre class="source-code sass">
|
32
|
-
// +blueprint-typography("body#page-1, body#page-2, body.a-special-page-type")
|
33
|
-
// </pre>
|
34
|
-
@mixin blueprint-typography($body-selector: body) {
|
35
|
-
@if $body-selector == true {
|
28
|
+
@mixin blueprint-typography($nested: false) {
|
29
|
+
@if $nested {
|
36
30
|
@include blueprint-typography-body;
|
37
31
|
@include blueprint-typography-defaults;
|
38
32
|
} @else {
|
39
|
-
|
40
|
-
|
41
|
-
@if $body-selector != body {
|
42
|
-
@warn "[DEPRECATED] To specify the selector \"#{$body-selector}\" to +blueprint-typography, pass true as the first argument and mix it into #{$body-selector}.";
|
43
|
-
@include blueprint-typography-defaults;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
@if $body-selector == body {
|
47
|
-
@include blueprint-typography-defaults;
|
48
|
-
}
|
33
|
+
body { @include blueprint-typography-body; }
|
34
|
+
@include blueprint-typography-defaults;
|
49
35
|
}
|
50
36
|
}
|
51
37
|
|
@@ -63,42 +49,42 @@ $blueprint-font-size: 12px !default;
|
|
63
49
|
|
64
50
|
@mixin blueprint-typography-defaults {
|
65
51
|
#{headers(all)} { @include header-text;
|
66
|
-
img
|
52
|
+
img { margin: 0; } }
|
67
53
|
h1 { font-size: 3em; line-height: 1; margin-bottom: 0.50em; }
|
68
54
|
h2 { font-size: 2em; margin-bottom: 0.75em; }
|
69
55
|
h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1.00em; }
|
70
56
|
h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
|
71
57
|
h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.50em; }
|
72
58
|
h6 { font-size: 1em; font-weight: bold; }
|
73
|
-
p { margin: 0 0 1.5em;
|
74
|
-
|
75
|
-
|
76
|
-
}
|
59
|
+
p { margin: 0 0 1.5em;
|
60
|
+
.left { @include float-left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
|
61
|
+
.right { @include float-right; margin: 1.5em 0 1.5em 1.5em; padding: 0; } }
|
77
62
|
a { text-decoration: underline; @include link-colors($link-color, $link-hover-color, $link-active-color, $link-visited-color, $link-focus-color); }
|
78
|
-
blockquote { margin: 1.5em; color: $
|
79
|
-
strong
|
80
|
-
em
|
81
|
-
dfn { font-style: italic; font-weight: bold; }
|
63
|
+
blockquote { margin: 1.5em; color: $alt-text-color; font-style: italic; }
|
64
|
+
strong, dfn { font-weight: bold; }
|
65
|
+
em, dfn { font-style: italic; }
|
82
66
|
sup, sub { line-height: 0; }
|
83
67
|
abbr, acronym { border-bottom: 1px dotted #666666; }
|
84
68
|
address { margin: 0 0 1.5em; font-style: italic; }
|
85
|
-
del { color: $
|
69
|
+
del { color: $alt-text-color; }
|
86
70
|
pre { margin: 1.5em 0; white-space: pre; }
|
87
71
|
pre, code, tt { @include fixed-width-text; }
|
88
72
|
li ul, li ol { margin: 0; }
|
89
|
-
ul, ol { margin: 0 1.5em 1.5em 0; padding-left:
|
73
|
+
ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 1.5em; }
|
90
74
|
ul { list-style-type: disc; }
|
91
75
|
ol { list-style-type: decimal; }
|
92
76
|
dl { margin: 0 0 1.5em 0;
|
93
|
-
dt
|
77
|
+
dt { font-weight: bold; } }
|
94
78
|
dd { margin-left: 1.5em; }
|
95
79
|
table { margin-bottom: 1.4em; width: 100%; }
|
96
80
|
th { font-weight: bold; }
|
97
81
|
thead th { background: $blueprint-table-header-color; }
|
98
82
|
th, td, caption { padding: 4px 10px 4px 5px; }
|
99
|
-
|
83
|
+
table.striped tr:nth-child(even) td,
|
84
|
+
table tr.even td
|
85
|
+
{ background: $blueprint-table-stripe-color; }
|
100
86
|
tfoot { font-style: italic; }
|
101
|
-
caption { background: $
|
87
|
+
caption { background: $blueprint-background-color; }
|
102
88
|
.quiet { @include quiet; }
|
103
89
|
.loud { @include loud; }
|
104
90
|
}
|
@@ -1,58 +1,83 @@
|
|
1
1
|
// Global reset rules.
|
2
2
|
// For more specific resets, use the reset mixins provided below
|
3
3
|
@mixin blueprint-global-reset {
|
4
|
-
html
|
5
|
-
|
6
|
-
html {
|
7
|
-
font-size: 100.01%; }
|
4
|
+
html { @include blueprint-reset-box-model; }
|
5
|
+
body { @extend .bp-reset-element; }
|
8
6
|
@include blueprint-nested-reset; }
|
9
7
|
|
10
8
|
// Reset all elements within some selector scope.To reset the selector itself,
|
11
9
|
// mixin the appropriate reset mixin for that element type as well. This could be
|
12
10
|
// useful if you want to style a part of your page in a dramatically different way.
|
13
11
|
@mixin blueprint-nested-reset {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
12
|
+
.bp-reset-element,
|
13
|
+
div, span, object, iframe, p,
|
14
|
+
pre, a, abbr, acronym, address,
|
15
|
+
code, del, dfn, em, img,
|
16
|
+
dl, dt, dd, ol, ul, li, fieldset,
|
17
|
+
form, label, legend,
|
18
|
+
caption, tbody, tfoot, thead, tr { @include blueprint-basic-reset; }
|
19
|
+
#{headers(all)} { @include blueprint-basic-reset(bp-reset-element); }
|
20
|
+
#{elements-of-type(html5)} { @include blueprint-reset-html5-element(bp-reset-element); }
|
21
|
+
blockquote, q { @include blueprint-reset-quotation(bp-reset-element); }
|
22
|
+
th, td, caption { @include blueprint-reset-table-cell(bp-reset-element); }
|
23
|
+
table { @include blueprint-reset-table(bp-reset-element); }
|
24
|
+
a img { border: none; }
|
25
|
+
}
|
26
|
+
|
27
|
+
@mixin blueprint-reset-html5-element($reset-base-class: false) {
|
28
|
+
@if $reset-base-class { @extend .#{$reset-base-class}; }
|
29
|
+
@else { @include blueprint-reset; }
|
30
|
+
display: block;
|
31
|
+
}
|
26
32
|
|
27
33
|
@mixin blueprint-reset-box-model {
|
28
34
|
margin: 0;
|
29
35
|
padding: 0;
|
30
|
-
border: 0;
|
36
|
+
border: 0;
|
37
|
+
}
|
31
38
|
|
32
39
|
@mixin blueprint-reset {
|
33
|
-
@
|
40
|
+
@warn "The blueprint-reset mixin is deprecated. Please use blueprint-basic-reset instead.";
|
41
|
+
@include blueprint-basic-reset;
|
42
|
+
}
|
43
|
+
|
44
|
+
@mixin blueprint-basic-reset($reset-base-class: false) {
|
45
|
+
@if $reset-base-class {
|
46
|
+
@extend .#{$reset-base-class};
|
47
|
+
} @else {
|
48
|
+
@include blueprint-reset-box-model;
|
49
|
+
@include blueprint-reset-typography;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
@mixin blueprint-reset-typography {
|
34
54
|
font: {
|
35
55
|
weight: inherit;
|
36
56
|
style: inherit;
|
37
57
|
size: 100%;
|
38
58
|
family: inherit; };
|
39
|
-
vertical-align: baseline;
|
59
|
+
vertical-align: baseline;
|
60
|
+
}
|
40
61
|
|
41
|
-
@mixin blueprint-reset-quotation {
|
42
|
-
@
|
62
|
+
@mixin blueprint-reset-quotation($reset-base-class: false) {
|
63
|
+
@if $reset-base-class { @extend .#{$reset-base-class}; }
|
64
|
+
@else { @include blueprint-reset; }
|
43
65
|
quotes: "" "";
|
44
66
|
&:before,
|
45
67
|
&:after {
|
46
68
|
content: ""; } }
|
47
69
|
|
48
|
-
@mixin blueprint-reset-table-cell {
|
49
|
-
@
|
70
|
+
@mixin blueprint-reset-table-cell($reset-base-class: false) {
|
71
|
+
@if $reset-base-class { @extend .#{$reset-base-class}; }
|
72
|
+
@else { @include blueprint-reset; }
|
73
|
+
float: none !important;
|
50
74
|
text-align: left;
|
51
75
|
font-weight: normal;
|
52
76
|
vertical-align: middle; }
|
53
77
|
|
54
|
-
@mixin blueprint-reset-table {
|
55
|
-
@
|
78
|
+
@mixin blueprint-reset-table($reset-base-class: false) {
|
79
|
+
@if $reset-base-class { @extend .#{$reset-base-class}; }
|
80
|
+
@else { @include blueprint-reset; }
|
56
81
|
border-collapse: separate;
|
57
82
|
border-spacing: 0;
|
58
83
|
vertical-align: middle; }
|
@@ -1,15 +1 @@
|
|
1
|
-
@import "css3/
|
2
|
-
@import "css3/inline-block";
|
3
|
-
@import "css3/opacity";
|
4
|
-
@import "css3/box-shadow";
|
5
|
-
@import "css3/text-shadow";
|
6
|
-
@import "css3/columns";
|
7
|
-
@import "css3/box-sizing";
|
8
|
-
@import "css3/box";
|
9
|
-
@import "css3/gradient";
|
10
|
-
@import "css3/background-clip";
|
11
|
-
@import "css3/background-origin";
|
12
|
-
@import "css3/background-size";
|
13
|
-
@import "css3/font-face";
|
14
|
-
@import "css3/transform";
|
15
|
-
@import "css3/transition";
|
1
|
+
@import "css3/version-1";
|
@@ -23,3 +23,7 @@ $experimental-support-for-opera : true !default;
|
|
23
23
|
$experimental-support-for-microsoft : true !default;
|
24
24
|
// Support for khtml in experimental css3 properties.
|
25
25
|
$experimental-support-for-khtml : true !default;
|
26
|
+
// Support for svg in experimental css3 properties.
|
27
|
+
// Setting this to true might add significant size to your
|
28
|
+
// generated stylesheets.
|
29
|
+
$experimental-support-for-svg : false !default;
|
@@ -0,0 +1,98 @@
|
|
1
|
+
// @doc off
|
2
|
+
// These defaults make the arguments optional for this mixin
|
3
|
+
// If you like, set different defaults before importing.
|
4
|
+
// @doc on
|
5
|
+
|
6
|
+
@import "shared";
|
7
|
+
|
8
|
+
|
9
|
+
// The default color for box shadows
|
10
|
+
$default-box-shadow-color: #333333 !default;
|
11
|
+
|
12
|
+
// The default horizontal offset. Positive is to the right.
|
13
|
+
$default-box-shadow-h-offset: 0px !default;
|
14
|
+
|
15
|
+
// The default vertical offset. Positive is down.
|
16
|
+
$default-box-shadow-v-offset: 0px !default;
|
17
|
+
|
18
|
+
// The default blur length.
|
19
|
+
$default-box-shadow-blur: 5px !default;
|
20
|
+
|
21
|
+
// The default spread length.
|
22
|
+
$default-box-shadow-spread : false !default;
|
23
|
+
|
24
|
+
// The default shadow instet: inset or false (for standard shadow).
|
25
|
+
$default-box-shadow-inset : false !default;
|
26
|
+
|
27
|
+
// Provides cross-browser CSS box shadows for Webkit, Gecko, and CSS3.
|
28
|
+
// Arguments are color, horizontal offset, vertical offset, blur length, spread length, and inset.
|
29
|
+
@mixin single-box-shadow(
|
30
|
+
$color : $default-box-shadow-color,
|
31
|
+
$hoff : $default-box-shadow-h-offset,
|
32
|
+
$voff : $default-box-shadow-v-offset,
|
33
|
+
$blur : $default-box-shadow-blur,
|
34
|
+
$spread : $default-box-shadow-spread,
|
35
|
+
$inset : $default-box-shadow-inset
|
36
|
+
) {
|
37
|
+
@if not ($inset == true or $inset == false or $inset == inset) {
|
38
|
+
@warn "$inset expected to be true or the inset keyword. Got #{$inset} instead. Using: inset";
|
39
|
+
}
|
40
|
+
|
41
|
+
@if $color == none {
|
42
|
+
@include multiple-box-shadows(none);
|
43
|
+
} @else {
|
44
|
+
$full : $hoff $voff;
|
45
|
+
@if $blur { $full: $full $blur; }
|
46
|
+
@if $spread { $full: $full $spread; }
|
47
|
+
@if $color { $full: $full $color; }
|
48
|
+
@if $inset { $full: inset $full; }
|
49
|
+
@include multiple-box-shadows($full);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// Provides cross-browser box shadows when one or more box shadows are needed.
|
54
|
+
@mixin multiple-box-shadows(
|
55
|
+
$shadow-1 : default,
|
56
|
+
$shadow-2 : false,
|
57
|
+
$shadow-3 : false,
|
58
|
+
$shadow-4 : false,
|
59
|
+
$shadow-5 : false,
|
60
|
+
$shadow-6 : false,
|
61
|
+
$shadow-7 : false,
|
62
|
+
$shadow-8 : false,
|
63
|
+
$shadow-9 : false,
|
64
|
+
$shadow-10: false
|
65
|
+
) {
|
66
|
+
|
67
|
+
@if not ($default-box-shadow-inset == true or $default-box-shadow-inset == false or $default-box-shadow-inset == inset) {
|
68
|
+
@warn "$default-box-shadow-inset expected to be true or the inset keyword. Got #{$default-box-shadow-inset} instead. Using: inset";
|
69
|
+
}
|
70
|
+
|
71
|
+
@if $shadow-1 == default {
|
72
|
+
$shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
|
73
|
+
}
|
74
|
+
|
75
|
+
$shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
|
76
|
+
@include experimental(box-shadow, $shadow,
|
77
|
+
-moz, -webkit, -o, not -ms, not -khtml, official
|
78
|
+
);
|
79
|
+
}
|
80
|
+
|
81
|
+
@mixin box-shadow(
|
82
|
+
$shadow-1 : default,
|
83
|
+
$shadow-2 : false,
|
84
|
+
$shadow-3 : false,
|
85
|
+
$shadow-4 : false,
|
86
|
+
$shadow-5 : false,
|
87
|
+
$shadow-6 : false,
|
88
|
+
$shadow-7 : false,
|
89
|
+
$shadow-8 : false,
|
90
|
+
$shadow-9 : false,
|
91
|
+
$shadow-10: false
|
92
|
+
) {
|
93
|
+
@include multiple-box-shadows(
|
94
|
+
$shadow-1, $shadow-2, $shadow-3,
|
95
|
+
$shadow-4, $shadow-5, $shadow-6,
|
96
|
+
$shadow-7, $shadow-8, $shadow-9, $shadow-10
|
97
|
+
);
|
98
|
+
}
|
@@ -1,31 +1,8 @@
|
|
1
|
-
|
2
|
-
// These defaults make the arguments optional for this mixin
|
3
|
-
// If you like, set different defaults before importing.
|
4
|
-
// @doc on
|
5
|
-
|
6
|
-
@import "shared";
|
7
|
-
|
8
|
-
// The default color for box shadows
|
9
|
-
$default-box-shadow-color: #333333 !default;
|
10
|
-
|
11
|
-
// The default horizontal offset. Positive is to the right.
|
12
|
-
$default-box-shadow-h-offset: 1px !default;
|
13
|
-
|
14
|
-
// The default vertical offset. Positive is down.
|
15
|
-
$default-box-shadow-v-offset: 1px !default;
|
16
|
-
|
17
|
-
// The default blur length.
|
18
|
-
$default-box-shadow-blur: 5px !default;
|
19
|
-
|
20
|
-
// The default spread length.
|
21
|
-
$default-box-shadow-spread : 0 !default;
|
22
|
-
|
23
|
-
// The default shadow instet: inset or false (for standard shadow).
|
24
|
-
$default-box-shadow-inset : false !default;
|
25
|
-
|
26
|
-
// Provides cross-browser CSS box shadows for Webkit, Gecko, and CSS3.
|
27
|
-
// Arguments are color, horizontal offset, vertical offset, blur length, spread length, and inset.
|
1
|
+
@import "box-shadow-v2";
|
28
2
|
|
3
|
+
// This mixin is deprecated.
|
4
|
+
// Use the box-shadow mixin from compass/css3/box-shadow-v2 instead.
|
5
|
+
// @deprecated
|
29
6
|
@mixin box-shadow(
|
30
7
|
$color : $default-box-shadow-color,
|
31
8
|
$hoff : $default-box-shadow-h-offset,
|
@@ -34,17 +11,7 @@ $default-box-shadow-inset : false !default;
|
|
34
11
|
$spread : $default-box-shadow-spread,
|
35
12
|
$inset : $default-box-shadow-inset
|
36
13
|
) {
|
37
|
-
|
38
|
-
@
|
39
|
-
$full: $full $inset;
|
40
|
-
}
|
41
|
-
@if $color == none {
|
42
|
-
@include experimental(box-shadow, none,
|
43
|
-
-moz, -webkit, -o, not -ms, not -khtml, official
|
44
|
-
);
|
45
|
-
} @else {
|
46
|
-
@include experimental(box-shadow, $full,
|
47
|
-
-moz, -webkit, -o, not -ms, not -khtml, official
|
48
|
-
);
|
49
|
-
}
|
14
|
+
@warn "This version of the box-shadow mixin has been deprecated. Please read: http://compass-style.org/docs/upgrading/css3-v2/#box-shadow for details.";
|
15
|
+
@include single-box-shadow($color, $hoff, $voff, $blur, $spread, $inset);
|
50
16
|
}
|
17
|
+
|
@@ -1,55 +1,60 @@
|
|
1
1
|
@import "shared";
|
2
2
|
|
3
3
|
// Specify the number of columns
|
4
|
-
@mixin column-count($
|
5
|
-
@include experimental(column-count, $
|
4
|
+
@mixin column-count($count) {
|
5
|
+
@include experimental(column-count, $count,
|
6
6
|
-moz, -webkit, -o, not -ms, not -khtml, official
|
7
7
|
);
|
8
8
|
}
|
9
9
|
|
10
10
|
// Specify the gap between columns e.g. `20px`
|
11
|
-
@mixin column-gap($
|
12
|
-
@include experimental(column-gap, $
|
11
|
+
@mixin column-gap($width) {
|
12
|
+
@include experimental(column-gap, $width,
|
13
13
|
-moz, -webkit, -o, not -ms, not -khtml, official
|
14
14
|
);
|
15
15
|
}
|
16
16
|
|
17
17
|
// Specify the width of columns e.g. `100px`
|
18
|
-
@mixin column-width($
|
19
|
-
@include experimental(column-width, $
|
18
|
+
@mixin column-width($width) {
|
19
|
+
@include experimental(column-width, $width,
|
20
20
|
-moz, -webkit, -o, not -ms, not -khtml, official
|
21
21
|
);
|
22
22
|
}
|
23
23
|
|
24
24
|
// Specify the width of the rule between columns e.g. `1px`
|
25
|
-
@mixin column-rule-width($
|
26
|
-
@include experimental(rule-width, $
|
25
|
+
@mixin column-rule-width($width) {
|
26
|
+
@include experimental(rule-width, $width,
|
27
27
|
-moz, -webkit, -o, not -ms, not -khtml, official
|
28
28
|
);
|
29
29
|
}
|
30
30
|
|
31
31
|
// Specify the style of the rule between columns e.g. `dotted`.
|
32
32
|
// This works like border-style.
|
33
|
-
@mixin column-rule-style($
|
34
|
-
@include experimental(rule-style, unquote($
|
33
|
+
@mixin column-rule-style($style) {
|
34
|
+
@include experimental(rule-style, unquote($style),
|
35
35
|
-moz, -webkit, -o, not -ms, not -khtml, official
|
36
36
|
);
|
37
37
|
}
|
38
38
|
|
39
|
-
// Specify the
|
39
|
+
// Specify the color of the rule between columns e.g. `blue`.
|
40
40
|
// This works like border-color.
|
41
|
-
|
42
|
-
@
|
43
|
-
@include experimental(rule-color, unquote($s),
|
41
|
+
@mixin column-rule-color($color) {
|
42
|
+
@include experimental(rule-color, $color,
|
44
43
|
-moz, -webkit, -o, not -ms, not -khtml, official
|
45
44
|
);
|
46
45
|
}
|
47
46
|
|
48
|
-
// Mixin encompassing all column rule
|
47
|
+
// Mixin encompassing all column rule properties
|
49
48
|
// For example:
|
50
|
-
//
|
51
|
-
@
|
52
|
-
|
49
|
+
//
|
50
|
+
// @include column-rule(1px, solid, #c00)
|
51
|
+
//
|
52
|
+
// Or the values can be space separated:
|
53
|
+
//
|
54
|
+
// @include column-rule(1px solid #c00)
|
55
|
+
@mixin column-rule($width, $style: false, $color: false) {
|
56
|
+
$full : -compass-space-list(compact($width, $style, $color));
|
57
|
+
@include experimental(column-rule, $full,
|
53
58
|
-moz, -webkit, -o, not -ms, not -khtml, official
|
54
59
|
);
|
55
60
|
}
|