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
@@ -26,19 +26,15 @@
|
|
26
26
|
//| <pre class="source-code sass">
|
27
27
|
//| +blueprint-ie("body#page-1, body#page-2, body.a-special-page-type")
|
28
28
|
//| </pre>
|
29
|
-
@mixin blueprint-ie($
|
30
|
-
@if $
|
29
|
+
@mixin blueprint-ie($nested: false) {
|
30
|
+
@if $nested {
|
31
31
|
@include blueprint-ie-body;
|
32
|
-
@include blueprint-ie-defaults;
|
33
|
-
@else {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
@include blueprint-ie-defaults; } }
|
39
|
-
@if $body_selector == "body" {
|
40
|
-
@include blueprint-ie-defaults; } } }
|
41
|
-
|
32
|
+
@include blueprint-ie-defaults;
|
33
|
+
} @else {
|
34
|
+
body { @include blueprint-ie-body; }
|
35
|
+
@include blueprint-ie-defaults;
|
36
|
+
}
|
37
|
+
}
|
42
38
|
@mixin blueprint-ie-body {
|
43
39
|
text-align: center;
|
44
40
|
@include blueprint-ie-hacks; }
|
@@ -56,9 +52,6 @@
|
|
56
52
|
@mixin blueprint-inline-form-ie {
|
57
53
|
div, p {
|
58
54
|
vertical-align: middle; }
|
59
|
-
label {
|
60
|
-
position: relative;
|
61
|
-
top: -0.25em; }
|
62
55
|
input {
|
63
56
|
&.checkbox, &.radio, &.button, button {
|
64
57
|
margin: 0.5em 0; } } }
|
@@ -76,8 +69,17 @@
|
|
76
69
|
-ms-interpolation-mode: bicubic; }
|
77
70
|
fieldset {
|
78
71
|
padding-top: 0; }
|
72
|
+
legend {
|
73
|
+
margin-top: -0.2em;
|
74
|
+
margin-bottom: 1em;
|
75
|
+
margin-left: -0.5em; }
|
76
|
+
fieldset, #IE8#HACK {padding-top:1.4em;}
|
77
|
+
legend, #IE8#HACK {margin-top:0;margin-bottom:0;}
|
79
78
|
textarea {
|
80
79
|
overflow: auto; }
|
80
|
+
label {
|
81
|
+
position: relative;
|
82
|
+
top: -0.25em; }
|
81
83
|
input {
|
82
84
|
&.text {
|
83
85
|
margin: 0.5em 0;
|
@@ -1,57 +1,66 @@
|
|
1
1
|
@import "colors";
|
2
2
|
|
3
3
|
@mixin blueprint-interaction {
|
4
|
-
.
|
5
|
-
|
6
|
-
.
|
7
|
-
@include notice;
|
8
|
-
.success
|
9
|
-
|
10
|
-
.hide
|
11
|
-
|
12
|
-
.
|
13
|
-
|
14
|
-
|
15
|
-
@include added; }
|
16
|
-
.removed {
|
17
|
-
@include removed; } }
|
4
|
+
.feedback { @include feedback-base; }
|
5
|
+
.error { @include error(feedback); }
|
6
|
+
.alert { @extend .error; }
|
7
|
+
.notice { @include notice(feedback); }
|
8
|
+
.success { @include success(feedback); }
|
9
|
+
.info { @include info(feedback); }
|
10
|
+
.hide { display: none; }
|
11
|
+
.highlight { @include highlight; }
|
12
|
+
.added { @include added; }
|
13
|
+
.removed { @include removed; }
|
14
|
+
}
|
18
15
|
|
19
16
|
@mixin feedback-base {
|
20
17
|
padding: 0.8em;
|
21
18
|
margin-bottom: 1em;
|
22
|
-
border: 2px solid $
|
23
|
-
|
24
|
-
@mixin error {
|
25
|
-
@
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
19
|
+
border: 2px solid $feedback-border-color; }
|
20
|
+
|
21
|
+
@mixin error($feedback-base-class: false) {
|
22
|
+
@if $feedback-base-class { @extend .#{$feedback-base-class}; }
|
23
|
+
@else { @include feedback-base; }
|
24
|
+
background: $error-bg-color;
|
25
|
+
color: $error-color;
|
26
|
+
border-color: $error-border-color;
|
27
|
+
a { color: $error-color; }
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin notice($feedback-base-class: false) {
|
31
|
+
@if $feedback-base-class { @extend .#{$feedback-base-class}; }
|
32
|
+
@else { @include feedback-base; }
|
33
|
+
background: $notice-bg-color;
|
34
|
+
color: $notice-color;
|
35
|
+
border-color: $notice-border-color;
|
36
|
+
a { color: $notice-color; }
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin success($feedback-base-class: false) {
|
40
|
+
@if $feedback-base-class { @extend .#{$feedback-base-class}; }
|
41
|
+
@else { @include feedback-base; }
|
42
|
+
background: $success-bg-color;
|
43
|
+
color: $success-color;
|
44
|
+
border-color: $success-border-color;
|
45
|
+
a { color: $success-color; }
|
46
|
+
}
|
47
|
+
|
48
|
+
@mixin info($feedback-base-class: false) {
|
49
|
+
@if $feedback-base-class { @extend .#{$feedback-base-class}; }
|
50
|
+
@else { @include feedback-base; }
|
51
|
+
background: $info-bg-color;
|
52
|
+
color: $info-color;
|
53
|
+
border-color: $info-border-color;
|
54
|
+
a { color: $info-color; }
|
55
|
+
}
|
47
56
|
|
48
57
|
@mixin highlight {
|
49
|
-
background: $
|
58
|
+
background: $highlight-color; }
|
50
59
|
|
51
60
|
@mixin added {
|
52
|
-
background: $
|
53
|
-
color: $
|
61
|
+
background: $added-bg-color;
|
62
|
+
color: $added-color; }
|
54
63
|
|
55
64
|
@mixin removed {
|
56
|
-
background: $
|
57
|
-
color: $
|
65
|
+
background: $removed-bg-color;
|
66
|
+
color: $removed-color; }
|
@@ -18,7 +18,7 @@
|
|
18
18
|
// * Andrei Michael Herasimchuk
|
19
19
|
// Involution Studios, http://www.involutionstudios.com
|
20
20
|
// Read more about using a grid here:
|
21
|
-
// * subtraction.com/archives/2007/
|
21
|
+
// * subtraction.com/archives/2007/0318-oh-yeeaahh.php
|
22
22
|
// -----
|
23
23
|
// By default, the grid is 80% of window width, with 24 columns.
|
24
24
|
//
|
@@ -36,58 +36,58 @@
|
|
36
36
|
|
37
37
|
// Main layout grid, override these constants to build your grid and container sizes.
|
38
38
|
// The width shown gives the right floored percentage values.
|
39
|
-
$
|
39
|
+
$blueprint-liquid-grid-columns: 24 !default;
|
40
40
|
|
41
|
-
$
|
41
|
+
$blueprint-liquid-grid-width: 3.167% !default;
|
42
42
|
|
43
|
-
$
|
43
|
+
$blueprint-liquid-grid-margin: 1.042% !default;
|
44
44
|
|
45
45
|
// Do not edit below this line unless you really know what you're doing.
|
46
|
-
$
|
46
|
+
$blueprint-liquid-container-width: 80% !default;
|
47
47
|
|
48
|
-
$
|
48
|
+
$blueprint-liquid-container-min-width: 950px !default;
|
49
49
|
|
50
|
-
$
|
50
|
+
$blueprint-liquid-grid-push-pull: -($blueprint-liquid-grid-margin + $blueprint-liquid-grid-width) !default;
|
51
51
|
|
52
52
|
@mixin blueprint-liquid-grid {
|
53
53
|
// A container should group all your columns
|
54
54
|
.container {
|
55
55
|
@include container; }
|
56
56
|
// Use these classes (or mixins) to set the width of a column.
|
57
|
-
@for $n from 1 to $
|
57
|
+
@for $n from 1 to $blueprint-liquid-grid-columns + 1 {
|
58
58
|
.span-#{$n} {
|
59
59
|
@include span($n); }
|
60
60
|
div {
|
61
61
|
&.span-#{$n} {
|
62
|
-
@include column($n, $n == $
|
62
|
+
@include column($n, $n == $blueprint-liquid-grid-columns); } } }
|
63
63
|
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
64
64
|
div.last {
|
65
65
|
@include last; }
|
66
66
|
// Add these to a column to append empty cols.
|
67
|
-
@for $n from 1 to $
|
67
|
+
@for $n from 1 to $blueprint-liquid-grid-columns {
|
68
68
|
.append-#{$n} {
|
69
69
|
@include append($n); } }
|
70
70
|
// Add these to a column to prepend empty cols.
|
71
|
-
@for $n from 1 to $
|
71
|
+
@for $n from 1 to $blueprint-liquid-grid-columns {
|
72
72
|
.prepend-#{$n} {
|
73
73
|
@include prepend($n); } }
|
74
74
|
// Use these classes on an element to push it into the
|
75
75
|
// next column, or to pull it into the previous column.
|
76
|
-
@for $n from 1 to $
|
76
|
+
@for $n from 1 to $blueprint-liquid-grid-columns + 1 {
|
77
77
|
.pull-#{$n} {
|
78
78
|
@include pull($n); } }
|
79
|
-
@for $n from 1 to $
|
79
|
+
@for $n from 1 to $blueprint-liquid-grid-columns + 1 {
|
80
80
|
.push-#{$n} {
|
81
81
|
@include push($n); } } }
|
82
82
|
|
83
83
|
@mixin container {
|
84
|
-
min-width: $
|
85
|
-
width: $
|
84
|
+
min-width: $blueprint-liquid-container-min-width;
|
85
|
+
width: $blueprint-liquid-container-width;
|
86
86
|
margin: 0 auto;
|
87
87
|
@include clearfix; }
|
88
88
|
|
89
89
|
@mixin span($n, $override: false) {
|
90
|
-
$width: $
|
90
|
+
$width: $blueprint-liquid-grid-width * $n + $blueprint-liquid-grid-margin * ($n - 1);
|
91
91
|
@if $override {
|
92
92
|
width: $width !important; }
|
93
93
|
@else {
|
@@ -103,31 +103,31 @@ $blueprint_liquid_grid_push_pull: -($blueprint_liquid_grid_margin + $blueprint_l
|
|
103
103
|
@if $last {
|
104
104
|
@include last; }
|
105
105
|
@else {
|
106
|
-
margin-right: $
|
106
|
+
margin-right: $blueprint-liquid-grid-margin; } }
|
107
107
|
|
108
108
|
@mixin append($n) {
|
109
|
-
padding-right: ($
|
109
|
+
padding-right: ($blueprint-liquid-grid-width + $blueprint-liquid-grid-margin) * $n; }
|
110
110
|
|
111
111
|
@mixin prepend($n) {
|
112
|
-
padding-left: ($
|
112
|
+
padding-left: ($blueprint-liquid-grid-width + $blueprint-liquid-grid-margin) * $n; }
|
113
113
|
|
114
114
|
@mixin pull($n, $last: false) {
|
115
|
-
margin-left: $
|
115
|
+
margin-left: $blueprint-liquid-grid-push-pull * $n; }
|
116
116
|
|
117
117
|
@mixin push($n) {
|
118
118
|
@include float-right;
|
119
119
|
margin: {
|
120
120
|
top: 0;
|
121
|
-
left: $
|
122
|
-
right: $
|
121
|
+
left: $blueprint-liquid-grid-margin;
|
122
|
+
right: $blueprint-liquid-grid-push-pull * $n;
|
123
123
|
bottom: 0; }; }
|
124
124
|
|
125
125
|
@mixin border {
|
126
126
|
border-right: 1px solid #eeeeee; }
|
127
127
|
|
128
128
|
@mixin colborder {
|
129
|
-
padding-right: $
|
130
|
-
margin-right: $
|
129
|
+
padding-right: $blueprint-liquid-grid-margin * 2;
|
130
|
+
margin-right: $blueprint-liquid-grid-margin * 2;
|
131
131
|
@include border; }
|
132
132
|
|
133
133
|
@mixin colruler {
|
@@ -137,8 +137,8 @@ $blueprint_liquid_grid_push_pull: -($blueprint_liquid_grid_margin + $blueprint_l
|
|
137
137
|
width: 100%;
|
138
138
|
height: 0.083em;
|
139
139
|
margin: 0;
|
140
|
-
margin-left: $
|
141
|
-
margin-right: $
|
140
|
+
margin-left: $blueprint-liquid-grid-margin * 2;
|
141
|
+
margin-right: $blueprint-liquid-grid-margin * 2;
|
142
142
|
border: none; }
|
143
143
|
|
144
144
|
@mixin colspacer {
|
@@ -16,25 +16,18 @@
|
|
16
16
|
// body#page-1, body#page-2, body.a-special-page-type
|
17
17
|
// +blueprint-print(true)
|
18
18
|
// </pre>
|
19
|
-
|
20
|
-
|
21
|
-
// <pre class="source-code sass">
|
22
|
-
// +blueprint-print("body#page-1, body#page-2, body.a-special-page-type")
|
23
|
-
// </pre>
|
24
|
-
@mixin blueprint-print($body_selector: body) {
|
25
|
-
@if $body_selector == true {
|
19
|
+
@mixin blueprint-print($nested: false) {
|
20
|
+
@if $nested {
|
26
21
|
@include blueprint-print-body;
|
27
|
-
@include blueprint-print-defaults;
|
28
|
-
@else {
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
@include blueprint-print-defaults; } }
|
34
|
-
@if $body_selector == "body" {
|
35
|
-
@include blueprint-print-defaults; } } }
|
22
|
+
@include blueprint-print-defaults;
|
23
|
+
} @else {
|
24
|
+
body { @include blueprint-print-body; }
|
25
|
+
@include blueprint-print-defaults;
|
26
|
+
}
|
27
|
+
}
|
36
28
|
|
37
|
-
// This style is in blueprint, but
|
29
|
+
// This style is in blueprint, but it can be annoying and
|
30
|
+
// it doesn't work in all browsers.
|
38
31
|
// Feel free to mix it into anchors where you want it.
|
39
32
|
@mixin blueprint-show-link-urls {
|
40
33
|
&:after {
|
@@ -43,7 +36,7 @@
|
|
43
36
|
|
44
37
|
@mixin blueprint-print-body {
|
45
38
|
line-height: 1.5;
|
46
|
-
font-family: $
|
39
|
+
font-family: $blueprint-font-family;
|
47
40
|
color: black;
|
48
41
|
background: none;
|
49
42
|
font-size: 10pt; }
|
@@ -63,11 +56,11 @@
|
|
63
56
|
background: white;
|
64
57
|
color: white; } }
|
65
58
|
h1, h2, h3, h4, h5, h6 {
|
66
|
-
font-family: $
|
59
|
+
font-family: $blueprint-font-family; }
|
67
60
|
code {
|
68
61
|
font: {
|
69
62
|
size: 0.9em;
|
70
|
-
family: $
|
63
|
+
family: $blueprint-fixed-font-family; }; }
|
71
64
|
a {
|
72
65
|
img {
|
73
66
|
border: none; }
|
@@ -2,21 +2,21 @@
|
|
2
2
|
@import "compass/utilities/general/float";
|
3
3
|
|
4
4
|
// Main layout grid, override these constants to build your grid and container sizes.
|
5
|
-
$
|
5
|
+
$blueprint-grid-columns: 24 !default;
|
6
6
|
|
7
|
-
$
|
7
|
+
$blueprint-grid-width: 30px !default;
|
8
8
|
|
9
|
-
$
|
9
|
+
$blueprint-grid-margin: 10px !default;
|
10
10
|
|
11
|
-
$
|
11
|
+
$blueprint-grid-outer-width: $blueprint-grid-width + $blueprint-grid-margin;
|
12
12
|
|
13
|
-
$
|
13
|
+
$blueprint-container-size: $blueprint-grid-outer-width * $blueprint-grid-columns - $blueprint-grid-margin;
|
14
14
|
|
15
15
|
// Columns
|
16
16
|
// Note: If you use this mixin without the class and want to support ie6
|
17
17
|
// you must set text-align left on your container element in an IE stylesheet.
|
18
18
|
@mixin container {
|
19
|
-
width: $
|
19
|
+
width: $blueprint-container-size;
|
20
20
|
margin: 0 auto;
|
21
21
|
direction: rtl;
|
22
22
|
@include clearfix; }
|
@@ -31,26 +31,26 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
31
31
|
@if $last {
|
32
32
|
@include last; }
|
33
33
|
@else {
|
34
|
-
margin-left: $
|
34
|
+
margin-left: $blueprint-grid-margin; }
|
35
35
|
text-align: right;
|
36
36
|
* html & {
|
37
37
|
overflow-x: hidden; } }
|
38
38
|
|
39
39
|
// Mixin to a column to append n empty cols.
|
40
40
|
@mixin append($n) {
|
41
|
-
padding-left: $
|
41
|
+
padding-left: $blueprint-grid-outer-width * $n; }
|
42
42
|
|
43
43
|
// Mixin to a column to prepend n empty cols.
|
44
44
|
@mixin prepend($n) {
|
45
|
-
padding-right: $
|
45
|
+
padding-right: $blueprint-grid-outer-width * $n; }
|
46
46
|
|
47
47
|
// mixin to a column to move it n columns to the left
|
48
48
|
@mixin pull($n, $last: false) {
|
49
49
|
position: relative;
|
50
50
|
@if $last {
|
51
|
-
margin-right: -$
|
51
|
+
margin-right: -$blueprint-grid-outer-width * $n + $blueprint-grid-margin; }
|
52
52
|
@else {
|
53
|
-
margin-right: -$
|
53
|
+
margin-right: -$blueprint-grid-outer-width * $n; } }
|
54
54
|
|
55
55
|
// mixin to a column to push it n columns to the right
|
56
56
|
@mixin push($n) {
|
@@ -58,20 +58,20 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
58
58
|
position: relative;
|
59
59
|
margin: {
|
60
60
|
top: 0;
|
61
|
-
left: -$
|
61
|
+
left: -$blueprint-grid-outer-width * $n;
|
62
62
|
bottom: 1.5em;
|
63
|
-
right: $
|
63
|
+
right: $blueprint-grid-outer-width * $n; }; }
|
64
64
|
|
65
65
|
// Border on left hand side of a column.
|
66
66
|
@mixin border {
|
67
|
-
padding-left: $
|
68
|
-
margin-left: $
|
67
|
+
padding-left: $blueprint-grid-margin / 2 - 1;
|
68
|
+
margin-left: $blueprint-grid-margin / 2;
|
69
69
|
border-left: 1px solid #eeeeee; }
|
70
70
|
|
71
71
|
// Border with more whitespace, spans one column.
|
72
72
|
@mixin colborder {
|
73
|
-
padding-left: ($
|
74
|
-
margin-left: ($
|
73
|
+
padding-left: ($blueprint-grid-width - 2 * $blueprint-grid-margin - 1) / 2;
|
74
|
+
margin-left: ($blueprint-grid-width - 2 * $blueprint-grid-margin) / 2;
|
75
75
|
border-left: 1px solid #eeeeee; }
|
76
76
|
|
77
77
|
// Usage examples:
|
@@ -91,41 +91,29 @@ $blueprint_container_size: $blueprint_grid_outer_width * $blueprint_grid_columns
|
|
91
91
|
// body#page-1, body#page-2, body.a-special-page-type
|
92
92
|
// +rtl-typography(true)
|
93
93
|
// </pre>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
// <pre class="source-code sass">
|
98
|
-
// +rtl-typography("body#page-1, body#page-2, body.a-special-page-type")
|
99
|
-
// </pre>
|
100
|
-
@mixin rtl-typography($body_selector: body) {
|
101
|
-
@if $body_selector == true {
|
102
|
-
html & {
|
103
|
-
font-family: Arial, sans-serif; }
|
94
|
+
@mixin rtl-typography($nested: false) {
|
95
|
+
@if $nested {
|
96
|
+
html & { font-family: Arial, sans-serif; }
|
104
97
|
@include rtl-typography-defaults; }
|
105
98
|
@else {
|
106
|
-
html
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
@include rtl-typography-defaults; } }
|
111
|
-
@if $body_selector == "body" {
|
112
|
-
body {
|
113
|
-
@include rtl-typography-defaults; } } } }
|
99
|
+
html body { font-family: Arial, sans-serif; }
|
100
|
+
body { @include rtl-typography-defaults; }
|
101
|
+
}
|
102
|
+
}
|
114
103
|
|
115
104
|
@mixin rtl-typography-defaults {
|
116
105
|
h1, h2, h3, h4, h5, h6 {
|
117
106
|
font-family: Arial, sans-serif; }
|
118
107
|
pre, code, tt {
|
119
108
|
font-family: monospace; }
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
padding: 0; } }
|
109
|
+
.right {
|
110
|
+
@include float-left;
|
111
|
+
margin: 1.5em 1.5em 1.5em 0;
|
112
|
+
padding: 0; }
|
113
|
+
.left {
|
114
|
+
@include float-right;
|
115
|
+
margin: 1.5em 0 1.5em 1.5em;
|
116
|
+
padding: 0; }
|
129
117
|
dd, ul, ol {
|
130
118
|
margin-left: 0;
|
131
119
|
margin-right: 1.5em; }
|