chriseppstein-compass 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +143 -0
- data/README.markdown +18 -0
- data/Rakefile +104 -0
- data/VERSION +1 -0
- data/bin/compass +8 -0
- data/compass.gemspec +37 -0
- data/examples/blueprint_default/index.html +73 -0
- data/examples/blueprint_default/parts/elements.html +246 -0
- data/examples/blueprint_default/parts/forms.html +100 -0
- data/examples/blueprint_default/parts/grid.html +206 -0
- data/examples/blueprint_default/parts/test-small.jpg +0 -0
- data/examples/blueprint_default/parts/test.jpg +0 -0
- data/examples/blueprint_default/parts/valid.png +0 -0
- data/examples/blueprint_default/stylesheets/ie.sass +4 -0
- data/examples/blueprint_default/stylesheets/images/grid.png +0 -0
- data/examples/blueprint_default/stylesheets/print.sass +4 -0
- data/examples/blueprint_default/stylesheets/screen.sass +9 -0
- data/examples/blueprint_plugins/index.html +60 -0
- data/examples/blueprint_plugins/parts/fancy_type.html +84 -0
- data/examples/blueprint_plugins/parts/test-small.jpg +0 -0
- data/examples/blueprint_plugins/parts/test.jpg +0 -0
- data/examples/blueprint_plugins/parts/valid.png +0 -0
- data/examples/blueprint_plugins/stylesheets/ie.sass +4 -0
- data/examples/blueprint_plugins/stylesheets/images/grid.png +0 -0
- data/examples/blueprint_plugins/stylesheets/print.sass +4 -0
- data/examples/blueprint_plugins/stylesheets/screen.sass +11 -0
- data/examples/blueprint_scoped/stylesheets/ie.sass +4 -0
- data/examples/blueprint_scoped/stylesheets/print.sass +4 -0
- data/examples/blueprint_scoped/stylesheets/screen.sass +5 -0
- data/examples/blueprint_scoped_form/stylesheets/ie.sass +4 -0
- data/examples/blueprint_scoped_form/stylesheets/print.sass +4 -0
- data/examples/blueprint_scoped_form/stylesheets/screen.sass +9 -0
- data/examples/blueprint_semantic/index.html +68 -0
- data/examples/blueprint_semantic/parts/fancy_type.html +84 -0
- data/examples/blueprint_semantic/parts/liquid.html +84 -0
- data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
- data/examples/blueprint_semantic/parts/test.jpg +0 -0
- data/examples/blueprint_semantic/parts/valid.png +0 -0
- data/examples/blueprint_semantic/stylesheets/ie.sass +4 -0
- data/examples/blueprint_semantic/stylesheets/images/grid.png +0 -0
- data/examples/blueprint_semantic/stylesheets/liquid.sass +70 -0
- data/examples/blueprint_semantic/stylesheets/print.sass +4 -0
- data/examples/blueprint_semantic/stylesheets/screen.sass +69 -0
- data/examples/compass/compass.html +19 -0
- data/examples/compass/stylesheets/compass.sass +47 -0
- data/examples/compass/stylesheets/images/blue_arrow.gif +0 -0
- data/examples/compass/stylesheets/utilities.sass +65 -0
- data/examples/compass/utilities.html.haml +136 -0
- data/examples/yui/divisions.html.haml +179 -0
- data/examples/yui/index.html.haml +19 -0
- data/examples/yui/stylesheets/screen.sass +13 -0
- data/examples/yui/sub_divisions.html.haml +169 -0
- data/examples/yui/templates.html.haml +54 -0
- data/examples/yui/test.jpg +0 -0
- data/examples/yui/typography.html.haml +132 -0
- data/frameworks/blueprint/lib/blueprint/constants.rb +17 -0
- data/frameworks/blueprint/lib/blueprint/grid_builder.rb +54 -0
- data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +19 -0
- data/frameworks/blueprint/stylesheets/blueprint/_print.sass +69 -0
- data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +25 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +85 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +43 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +140 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +55 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +140 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +29 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +131 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +39 -0
- data/frameworks/blueprint/templates/project/grid.png +0 -0
- data/frameworks/blueprint/templates/project/ie.sass +4 -0
- data/frameworks/blueprint/templates/project/print.sass +4 -0
- data/frameworks/blueprint/templates/project/screen.sass +9 -0
- data/frameworks/compass/stylesheets/compass/_reset.sass +19 -0
- data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
- data/frameworks/compass/stylesheets/compass/utilities/_general.sass +4 -0
- data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +1 -0
- data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +11 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +32 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +20 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
- data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +25 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -0
- data/frameworks/compass/templates/project/grid.png +0 -0
- data/frameworks/compass/templates/project/ie.sass +3 -0
- data/frameworks/compass/templates/project/print.sass +4 -0
- data/frameworks/compass/templates/project/screen.sass +4 -0
- data/frameworks/yui/COPYRIGHT +15 -0
- data/frameworks/yui/stylesheets/yui/_screen.sass +7 -0
- data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
- data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
- data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
- data/frameworks/yui/templates/project/screen.sass +5 -0
- data/lib/compass.rb +19 -0
- data/lib/compass/commands/base.rb +94 -0
- data/lib/compass/commands/create_project.rb +30 -0
- data/lib/compass/commands/install_rails.rb +115 -0
- data/lib/compass/commands/print_version.rb +23 -0
- data/lib/compass/commands/update_project.rb +91 -0
- data/lib/compass/commands/watch_project.rb +42 -0
- data/lib/compass/core_ext.rb +39 -0
- data/lib/compass/exec.rb +156 -0
- data/lib/compass/frameworks.rb +27 -0
- data/lib/compass/frameworks/blueprint.rb +2 -0
- data/lib/compass/frameworks/compass.rb +2 -0
- data/lib/compass/frameworks/yui.rb +2 -0
- data/lib/compass/merb.rb +43 -0
- data/lib/compass/test_case.rb +37 -0
- data/lib/compass/validate.rb +13 -0
- data/lib/compass/validate/COPYRIGHT.html +93 -0
- data/lib/compass/validate/JIGSAW_COPYRIGHT +64 -0
- data/lib/compass/validate/README.html +83 -0
- data/lib/compass/validate/XERCES_COPYING.txt +56 -0
- data/lib/compass/validate/css-validator-javadoc.jar +0 -0
- data/lib/compass/validate/css-validator.jar +0 -0
- data/lib/compass/validate/jigsaw.jar +0 -0
- data/lib/compass/validate/xerces.jar +0 -0
- data/lib/compass/validator.rb +59 -0
- data/lib/compass/version.rb +48 -0
- data/lib/sass_extensions.rb +13 -0
- data/test/compass_test.rb +142 -0
- data/test/fixtures/stylesheets/default/sass/ie.sass +4 -0
- data/test/fixtures/stylesheets/default/sass/print.sass +4 -0
- data/test/fixtures/stylesheets/default/sass/screen.sass +18 -0
- data/test/fixtures/stylesheets/yui/css/mixins.css +16 -0
- data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
- data/test/sass_extensions_test.rb +26 -0
- data/test/test_helper.rb +37 -0
- metadata +247 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
// mix this into a body element
|
2
|
+
=blueprint-ie
|
3
|
+
:text-align center
|
4
|
+
.container
|
5
|
+
:text-align left
|
6
|
+
* html &
|
7
|
+
legend
|
8
|
+
:margin -18px -8px 16px 0
|
9
|
+
:padding 0
|
10
|
+
ol
|
11
|
+
:margin-left 2em
|
12
|
+
sup
|
13
|
+
:vertical-align text-top
|
14
|
+
sub
|
15
|
+
:vertical-align text-bottom
|
16
|
+
html>& p code
|
17
|
+
:*white-space normal
|
18
|
+
hr
|
19
|
+
:margin -8px auto 11px
|
@@ -0,0 +1,69 @@
|
|
1
|
+
=blueprint-print
|
2
|
+
&
|
3
|
+
:line-height 1.5
|
4
|
+
:font-family "Helvetica Neue", Helvetica, Arial, sans-serif
|
5
|
+
:color #000
|
6
|
+
:background none
|
7
|
+
:font-size 10pt
|
8
|
+
.container
|
9
|
+
:background none
|
10
|
+
hr
|
11
|
+
:background #ccc
|
12
|
+
:color #ccc
|
13
|
+
:width 100%
|
14
|
+
:height 2px
|
15
|
+
:margin 2em 0
|
16
|
+
:padding 0
|
17
|
+
:border none
|
18
|
+
&.space
|
19
|
+
:background #fff
|
20
|
+
:color #fff
|
21
|
+
h1, h2, h3, h4, h5, h6
|
22
|
+
:font-family "Helvetica Neue", Arial, "Lucida Grande", sans-serif
|
23
|
+
code
|
24
|
+
:font .9em "Courier New", Monaco, Courier, monospace
|
25
|
+
img
|
26
|
+
:float left
|
27
|
+
:margin 1.5em 1.5em 1.5em 0
|
28
|
+
a
|
29
|
+
img
|
30
|
+
:border none
|
31
|
+
&:link
|
32
|
+
:background transparent
|
33
|
+
:font-weight 700
|
34
|
+
:text-decoration underline
|
35
|
+
/* This style is in blueprint, but I think it's annoying and it doesn't work in all browsers.
|
36
|
+
&:after
|
37
|
+
:content " (" attr(href) ") "
|
38
|
+
:font-size 90%
|
39
|
+
p img.top
|
40
|
+
:margin-top 0
|
41
|
+
blockquote
|
42
|
+
:margin 1.5em
|
43
|
+
:padding 1em
|
44
|
+
:font-style italic
|
45
|
+
:font-size .9em
|
46
|
+
.small
|
47
|
+
:font-size .9em
|
48
|
+
.large
|
49
|
+
:font-size 1.1em
|
50
|
+
.quiet
|
51
|
+
:color #999
|
52
|
+
.hide,
|
53
|
+
.noprint,
|
54
|
+
.no-print
|
55
|
+
:display none
|
56
|
+
address, blockquote, center, dir, div, dd, dl, dt, fieldset, form, frameset, h1, h2, h3, h4, h5, h6, hr, isindex, li, menu, noframes, noscript, ol, p, pre, table, tbody, td, tfoot, th, thead, tr, ul
|
57
|
+
&.print-only
|
58
|
+
:display block
|
59
|
+
a, abbr, acronym, b, basefont, bdo, big, br, cite, code, dfn, em, font, i, img, input, kbd, label, q, s, samp, select, small, span, strike, strong, sub, sup, textarea, tt, u, var
|
60
|
+
&.print-only
|
61
|
+
:display inline
|
62
|
+
a:visited
|
63
|
+
:background transparent
|
64
|
+
:font-weight 700
|
65
|
+
:text-decoration underline
|
66
|
+
/*
|
67
|
+
a:visited:after
|
68
|
+
:content " (" attr(href) ") "
|
69
|
+
:font-size 90%
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@import modules/colors.sass
|
2
|
+
@import modules/grid.sass
|
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
|
+
=blueprint
|
10
|
+
+blueprint-grid
|
11
|
+
+blueprint-typography
|
12
|
+
+blueprint-utilities
|
13
|
+
+blueprint-debug
|
14
|
+
+blueprint-interaction
|
15
|
+
+blueprint-form
|
@@ -0,0 +1,25 @@
|
|
1
|
+
!font_color= #333
|
2
|
+
!quiet_color= !font_color + #333
|
3
|
+
!loud_color= !font_color - #222
|
4
|
+
|
5
|
+
!header_color= !font_color - #111
|
6
|
+
|
7
|
+
// !link_color= #009
|
8
|
+
// !link_hover_color= !link_color
|
9
|
+
!link_color= #457ac9
|
10
|
+
!link_hover_color= #399999
|
11
|
+
!link_focus_color= !link_color
|
12
|
+
!link_active_color= !link_color + #c00
|
13
|
+
!link_visited_color= !link_color - #333
|
14
|
+
|
15
|
+
!success_color = #264409
|
16
|
+
!success_bg_color = #E6EFC2
|
17
|
+
!success_border_color = #C6D880
|
18
|
+
|
19
|
+
!notice_color = #514721
|
20
|
+
!notice_bg_color = #FFF6BF
|
21
|
+
!notice_border_color = #FFD324
|
22
|
+
|
23
|
+
!error_color = #8a1f11
|
24
|
+
!error_bg_color = #FBE3E4
|
25
|
+
!error_border_color = #FBC2C4
|
@@ -0,0 +1,9 @@
|
|
1
|
+
=showgrid(!image = images/grid.png)
|
2
|
+
:background= url(!image)
|
3
|
+
|
4
|
+
=blueprint-debug(!grid_image = images/grid.png)
|
5
|
+
// Use this class on any div.span / container to see the grid.
|
6
|
+
// TODO: prefix this with the project path.
|
7
|
+
.showgrid
|
8
|
+
+showgrid(!grid_image)
|
9
|
+
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/*
|
2
|
+
To install the fancy type plugin:
|
3
|
+
1. import the fancy_type module:
|
4
|
+
@import blueprint/modules/fancy_type
|
5
|
+
2. mixin +fancy-type to your project's body:
|
6
|
+
body
|
7
|
+
+fancy-type
|
8
|
+
|
9
|
+
/* Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
|
10
|
+
=sibling-indentation
|
11
|
+
:text-indent 2em
|
12
|
+
:margin-top -1.5em
|
13
|
+
/* Don't want this in forms.
|
14
|
+
form &
|
15
|
+
:text-indent 0
|
16
|
+
|
17
|
+
/*
|
18
|
+
For great looking type, use this code instead of asdf:
|
19
|
+
<span class="alt">asdf</span>
|
20
|
+
Best used on prepositions and ampersands.
|
21
|
+
|
22
|
+
=alt
|
23
|
+
:color #666
|
24
|
+
:font-family "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif
|
25
|
+
:font-style italic
|
26
|
+
:font-weight normal
|
27
|
+
|
28
|
+
/*
|
29
|
+
For great looking quote marks in titles, replace "asdf" with:
|
30
|
+
<span class="dquo">“</span>asdf”
|
31
|
+
(That is, when the title starts with a quote mark).
|
32
|
+
(You may have to change this value depending on your font size).
|
33
|
+
=dquo
|
34
|
+
:margin-left -.5em
|
35
|
+
|
36
|
+
/*
|
37
|
+
Reduced size type with incremental leading
|
38
|
+
(http://www.markboulton.co.uk/journal/comments/incremental_leading/)
|
39
|
+
|
40
|
+
This could be used for side notes. For smaller type, you don't necessarily want to
|
41
|
+
follow the 1.5x vertical rhythm -- the line-height is too much.
|
42
|
+
|
43
|
+
Using this class, it reduces your font size and line-height so that for
|
44
|
+
every four lines of normal sized type, there is five lines of the sidenote. eg:
|
45
|
+
|
46
|
+
New type size in em's:
|
47
|
+
10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems)
|
48
|
+
|
49
|
+
New line-height value:
|
50
|
+
12px x 1.5 = 18px (old line-height)
|
51
|
+
18px x 4 = 72px
|
52
|
+
72px / 5 = 14.4px (new line height)
|
53
|
+
14.4px / 10px = 1.44 (new line height in em's)
|
54
|
+
=incr
|
55
|
+
:font-size 10px
|
56
|
+
:line-height 1.44em
|
57
|
+
:margin-bottom 1.5em
|
58
|
+
|
59
|
+
/*
|
60
|
+
Surround uppercase words and abbreviations with this class.
|
61
|
+
Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */
|
62
|
+
=caps
|
63
|
+
:font-variant small-caps
|
64
|
+
:letter-spacing 1px
|
65
|
+
:text-transform lowercase
|
66
|
+
:font-size 1.2em
|
67
|
+
:line-height 1%
|
68
|
+
:font-weight bold
|
69
|
+
:padding 0 2px
|
70
|
+
|
71
|
+
=fancy-paragraphs
|
72
|
+
p + p
|
73
|
+
+sibling-indentation
|
74
|
+
p.incr,
|
75
|
+
.incr p
|
76
|
+
+incr
|
77
|
+
|
78
|
+
=fancy-type
|
79
|
+
+fancy-paragraphs
|
80
|
+
.caps
|
81
|
+
+caps
|
82
|
+
.dquo
|
83
|
+
+dquo
|
84
|
+
.alt
|
85
|
+
+alt
|
@@ -0,0 +1,43 @@
|
|
1
|
+
@import colors.sass
|
2
|
+
|
3
|
+
=blueprint-form
|
4
|
+
label
|
5
|
+
:font-weight bold
|
6
|
+
fieldset
|
7
|
+
:padding 1.4em
|
8
|
+
:margin 0 0 1.5em 0
|
9
|
+
:border 1px solid #ccc
|
10
|
+
legend
|
11
|
+
:font-weight bold
|
12
|
+
:font-size 1.2em
|
13
|
+
input
|
14
|
+
&.text
|
15
|
+
:margin 0.5em 0
|
16
|
+
:border 1px solid #bbb
|
17
|
+
:width 300px
|
18
|
+
:padding 5px
|
19
|
+
&:focus
|
20
|
+
:border 1px solid #666
|
21
|
+
&.title
|
22
|
+
:font-size 1.5em
|
23
|
+
input.title
|
24
|
+
:margin 0.5em 0
|
25
|
+
:border 1px solid #bbb
|
26
|
+
:width 300px
|
27
|
+
:padding 5px
|
28
|
+
&:focus
|
29
|
+
:border 1px solid #666
|
30
|
+
textarea
|
31
|
+
:margin 0.5em 0
|
32
|
+
:border 1px solid #bbb
|
33
|
+
&:focus
|
34
|
+
:border 1px solid #666
|
35
|
+
select
|
36
|
+
:margin 0.5em 0
|
37
|
+
:border 1px solid #bbb
|
38
|
+
&:focus
|
39
|
+
:border 1px solid #666
|
40
|
+
textarea
|
41
|
+
:width 390px
|
42
|
+
:height 250px
|
43
|
+
:padding 5px
|
@@ -0,0 +1,140 @@
|
|
1
|
+
// --------------------------------------------------------------
|
2
|
+
// SASS Gridification
|
3
|
+
// * Author: Chris Eppstein
|
4
|
+
// A SASS adaptation of Blueprint CSS
|
5
|
+
// * Version: 0.7.1 (2008-02-25)
|
6
|
+
// * Website: http://code.google.com/p/blueprintcss/
|
7
|
+
// Based on work by:
|
8
|
+
// * Lorin Tacket [lorintackett.com]
|
9
|
+
// * Olav Bjorkoy [bjorkoy.com]
|
10
|
+
// * Nathan Borror [playgroundblues.com]
|
11
|
+
// * Jeff Croft [jeffcroft.com]
|
12
|
+
// * Christian Metts [mintchaos.com]
|
13
|
+
// * Khoi Vinh [subtraction.com]
|
14
|
+
// Read more about using a grid here:
|
15
|
+
// * subtraction.com/archives/2007/0318_oh_yeeaahh.php
|
16
|
+
// --------------------------------------------------------------
|
17
|
+
|
18
|
+
@import compass/utilities/general/clearfix.sass
|
19
|
+
|
20
|
+
// Main layout grid, edit these parameters to build your grid and container sizes.
|
21
|
+
!layout_grid_columns = 24
|
22
|
+
!layout_grid_width = 30px
|
23
|
+
!layout_grid_margin = 10px
|
24
|
+
|
25
|
+
// Do not edit below this line unless you really know what you're doing.
|
26
|
+
!layout_grid_outer_width = !layout_grid_width + !layout_grid_margin
|
27
|
+
!layout_grid_size = !layout_grid_width * !layout_grid_columns + (!layout_grid_margin * (!layout_grid_columns - 1))
|
28
|
+
|
29
|
+
// Columns
|
30
|
+
// Note: If you use this mixin without the class and want to support ie6
|
31
|
+
// you must set text-align left on your container element in an IE stylesheet.
|
32
|
+
=container
|
33
|
+
:width = !layout_grid_size
|
34
|
+
:margin 0 auto
|
35
|
+
+clearfix
|
36
|
+
|
37
|
+
// The last column in a row needs this mixin or it will end up on the next row.
|
38
|
+
// TODO add this to span mixin when we have optional arguments
|
39
|
+
=last
|
40
|
+
:margin
|
41
|
+
:right 0
|
42
|
+
|
43
|
+
=span(!n)
|
44
|
+
:width = !layout_grid_width * !n + (!layout_grid_margin * (!n - 1))
|
45
|
+
|
46
|
+
// Use this mixins to set the width of n columns.
|
47
|
+
=column(!n, !last = false)
|
48
|
+
:float left
|
49
|
+
+span(!n)
|
50
|
+
@if !last
|
51
|
+
+last
|
52
|
+
@else
|
53
|
+
:margin-right = !layout_grid_margin
|
54
|
+
|
55
|
+
// Mixin to a column to append n empty cols.
|
56
|
+
=append(!n)
|
57
|
+
:padding-right = (!layout_grid_outer_width) * !n
|
58
|
+
|
59
|
+
// Mixin to a column to prepend n empty cols.
|
60
|
+
=prepend(!n)
|
61
|
+
:padding-left = (!layout_grid_outer_width) * !n
|
62
|
+
|
63
|
+
// mixin to a column to move it n columns to the left
|
64
|
+
=pull(!n, !last = false)
|
65
|
+
:float left
|
66
|
+
:position relative
|
67
|
+
@if !last
|
68
|
+
:margin-left = (-!layout_grid_outer_width * !n) + !layout_grid_margin
|
69
|
+
@else
|
70
|
+
:margin-left = -!layout_grid_outer_width * !n
|
71
|
+
|
72
|
+
// mixin to a column to push it n columns to the right
|
73
|
+
=push(!n)
|
74
|
+
:float right
|
75
|
+
:position relative
|
76
|
+
:margin
|
77
|
+
:top 0
|
78
|
+
:right = -!layout_grid_outer_width * !n
|
79
|
+
:bottom 1.5em
|
80
|
+
:left = !layout_grid_outer_width * !n
|
81
|
+
|
82
|
+
// Border on right hand side of a column.
|
83
|
+
=border
|
84
|
+
:padding-right = !layout_grid_margin / 2 - 1
|
85
|
+
:margin-right = !layout_grid_margin / 2
|
86
|
+
:border-right 1px solid #eee
|
87
|
+
|
88
|
+
// Border with more whitespace, spans one column.
|
89
|
+
=colborder
|
90
|
+
:padding-right= !layout_grid_width - 0.5 * !layout_grid_margin - 1
|
91
|
+
:margin-right= !layout_grid_width - 0.5 * !layout_grid_margin
|
92
|
+
:border-right 1px solid #eee
|
93
|
+
|
94
|
+
// Mixin this to an hr to make a horizontal ruler across a column.
|
95
|
+
=colruler
|
96
|
+
:background #ddd
|
97
|
+
:color #ddd
|
98
|
+
:clear both
|
99
|
+
:float none
|
100
|
+
:width 100%
|
101
|
+
:height .1em
|
102
|
+
:margin 0 0 1.45em
|
103
|
+
:border none
|
104
|
+
|
105
|
+
// Mixin this to an hr to make a horizontal spacer across a column.
|
106
|
+
=colspacer
|
107
|
+
+colruler
|
108
|
+
:background #fff
|
109
|
+
:color #fff
|
110
|
+
|
111
|
+
=blueprint-grid
|
112
|
+
// A container should group all your columns
|
113
|
+
.container
|
114
|
+
+container
|
115
|
+
// Use these classes (or mixins) to set the width of a column.
|
116
|
+
@for !n from 1 to !layout_grid_columns + 1
|
117
|
+
.span-#{!n}
|
118
|
+
+span(!n)
|
119
|
+
div
|
120
|
+
&.span-#{!n}
|
121
|
+
+column(!n, !n == !layout_grid_columns)
|
122
|
+
// The last column in a row needs this class (or mixin) or it will end up on the next row.
|
123
|
+
div.last
|
124
|
+
+last
|
125
|
+
// Add these to a column to append empty cols.
|
126
|
+
@for !n from 1 to !layout_grid_columns
|
127
|
+
.append-#{!n}
|
128
|
+
+append(!n)
|
129
|
+
// Add these to a column to prepend empty cols.
|
130
|
+
@for !n from 1 to !layout_grid_columns
|
131
|
+
.prepend-#{!n}
|
132
|
+
+prepend(!n)
|
133
|
+
// Use these classes on an element to push it into the
|
134
|
+
// next column, or to pull it into the previous column.
|
135
|
+
@for !n from 1 to !layout_grid_columns + 1
|
136
|
+
.pull-#{!n}
|
137
|
+
+pull(!n)
|
138
|
+
@for !n from 1 to !layout_grid_columns + 1
|
139
|
+
.push-#{!n}
|
140
|
+
+push(!n)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
=feedback-base
|
2
|
+
:padding .8em
|
3
|
+
:margin-bottom 1em
|
4
|
+
:border 2px solid #ddd
|
5
|
+
|
6
|
+
=error
|
7
|
+
+feedback-base
|
8
|
+
:background= !error_bg_color
|
9
|
+
:color= !error_color
|
10
|
+
:border-color= !error_border_color
|
11
|
+
a
|
12
|
+
:color= !error_color
|
13
|
+
|
14
|
+
=notice
|
15
|
+
+feedback-base
|
16
|
+
:background= !notice_bg_color
|
17
|
+
:color= !notice_color
|
18
|
+
:border-color= !notice_border_color
|
19
|
+
a
|
20
|
+
:color= !notice_color
|
21
|
+
|
22
|
+
=success
|
23
|
+
+feedback-base
|
24
|
+
:background= !success_bg_color
|
25
|
+
:color= !success_color
|
26
|
+
:border-color= !success_border_color
|
27
|
+
a
|
28
|
+
:color= !success_color
|
29
|
+
|
30
|
+
=highlight
|
31
|
+
:background #ff0
|
32
|
+
|
33
|
+
=added
|
34
|
+
:background #060
|
35
|
+
:color #fff
|
36
|
+
|
37
|
+
=removed
|
38
|
+
:background #900
|
39
|
+
:color #fff
|
40
|
+
|
41
|
+
=blueprint-interaction
|
42
|
+
.error
|
43
|
+
+error
|
44
|
+
.notice
|
45
|
+
+notice
|
46
|
+
.success
|
47
|
+
+success
|
48
|
+
.hide
|
49
|
+
:display none
|
50
|
+
.highlight
|
51
|
+
+highlight
|
52
|
+
.added
|
53
|
+
+added
|
54
|
+
.removed
|
55
|
+
+removed
|