chriseppstein-compass 0.6.9 → 0.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/frameworks/blueprint.rb +2 -0
  2. data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
  3. data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +51 -0
  4. data/frameworks/blueprint/stylesheets/blueprint/_print.sass +83 -0
  5. data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
  6. data/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -0
  7. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -0
  8. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
  9. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +81 -0
  10. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +43 -0
  11. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +168 -0
  12. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
  13. data/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -0
  14. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +141 -0
  15. data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +104 -0
  16. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +46 -0
  17. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +154 -0
  18. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
  19. data/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
  20. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  21. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  22. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  23. data/frameworks/blueprint/templates/buttons/manifest.rb +5 -0
  24. data/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
  25. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  26. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  27. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  28. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  29. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  30. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  31. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  32. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  33. data/frameworks/blueprint/templates/link_icons/manifest.rb +10 -0
  34. data/frameworks/blueprint/templates/project/grid.png +0 -0
  35. data/frameworks/blueprint/templates/project/ie.sass +3 -0
  36. data/frameworks/blueprint/templates/project/manifest.rb +5 -0
  37. data/frameworks/blueprint/templates/project/print.sass +3 -0
  38. data/frameworks/blueprint/templates/project/screen.sass +8 -0
  39. data/frameworks/compass.rb +2 -0
  40. data/frameworks/compass/stylesheets/_compass.sass +1 -0
  41. data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
  42. data/frameworks/compass/stylesheets/compass/_misc.sass +24 -0
  43. data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
  44. data/frameworks/compass/stylesheets/compass/_utilities.sass +5 -0
  45. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
  46. data/frameworks/compass/stylesheets/compass/utilities/_general.sass +6 -0
  47. data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
  48. data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
  49. data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
  50. data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +3 -0
  51. data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
  52. data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +24 -0
  53. data/frameworks/compass/stylesheets/compass/utilities/general/_float.sass +17 -0
  54. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +6 -0
  55. data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
  56. data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +56 -0
  57. data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  58. data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
  59. data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
  60. data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
  61. data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
  62. data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
  63. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +52 -0
  64. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
  65. data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
  66. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
  67. data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
  68. data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
  69. data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +10 -0
  70. data/frameworks/compass/templates/project/ie.sass +6 -0
  71. data/frameworks/compass/templates/project/manifest.rb +3 -0
  72. data/frameworks/compass/templates/project/print.sass +6 -0
  73. data/frameworks/compass/templates/project/screen.sass +7 -0
  74. data/frameworks/yui.rb +2 -0
  75. data/frameworks/yui/stylesheets/_yui.sass +7 -0
  76. data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
  77. data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
  78. data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
  79. data/frameworks/yui/stylesheets/yui/modules/_reset.sass +61 -0
  80. data/frameworks/yui/templates/project/manifest.rb +1 -0
  81. data/frameworks/yui/templates/project/screen.sass +4 -0
  82. metadata +100 -7
  83. data/Rakefile +0 -97
  84. data/VERSION.yml +0 -4
@@ -0,0 +1,2 @@
1
+ blueprint_dir = File.join(Compass.base_directory, 'frameworks', 'blueprint')
2
+ Compass::Frameworks.register('blueprint', blueprint_dir)
@@ -0,0 +1,3 @@
1
+ @import blueprint/screen.sass
2
+ @import blueprint/print.sass
3
+ @import blueprint/ie.sass
@@ -0,0 +1,51 @@
1
+ // The blueprint IE mixins should be mixed into a stylesheet that gets conditionally included
2
+ // into IE like so:
3
+ // <!--[if IE]><link rel="stylesheet" href="ie.css"
4
+ // type="text/css" media="screen, projection"><![endif]-->
5
+
6
+ // The +blueprint-ie mixin must be mixed into the top level of your stylesheet.
7
+ // However, you can customize the body selector if you wish to control the scope
8
+ // of this mixin. Examples:
9
+ // Apply to any page including the stylesheet:
10
+ // +blueprint-ie
11
+ // Scoped by a single presentational body class:
12
+ // +blueprint-ie("body.blueprint")
13
+ // Semantically:
14
+ // +blueprint-ie("body#page-1, body#page-2, body.a-special-page-type")
15
+ // Alternatively, you can use the +blueprint-ie-body and +blueprint-ie-defaults
16
+ // mixins to construct your own semantic style rules.
17
+
18
+ =blueprint-ie(!body_selector = "body")
19
+ #{!body_selector}
20
+ +blueprint-ie-body
21
+ @if !body_selector != "body"
22
+ +blueprint-ie-defaults
23
+ @if !body_selector == "body"
24
+ +blueprint-ie-defaults
25
+
26
+ =blueprint-ie-body
27
+ :text-align center
28
+ +blueprint-ie-hacks
29
+
30
+ =blueprint-ie-hacks
31
+ * html &
32
+ legend
33
+ :margin 0px -8px 16px 0
34
+ :padding 0
35
+ html>&
36
+ p code
37
+ :*white-space normal
38
+
39
+ =blueprint-ie-defaults
40
+ .container
41
+ :text-align left
42
+ ol
43
+ :margin-left 2em
44
+ sup
45
+ :vertical-align text-top
46
+ sub
47
+ :vertical-align text-bottom
48
+ hr
49
+ :margin -8px auto 11px
50
+ fieldset
51
+ :padding-top 0
@@ -0,0 +1,83 @@
1
+ @import modules/typography.sass
2
+ @import compass/utilities/general/float.sass
3
+
4
+ // The +blueprint-print mixin must be mixed into the top level of your stylesheet.
5
+ // However, you can customize the body selector if you wish to control the scope
6
+ // of this mixin. Examples:
7
+ // Apply to any page including the stylesheet:
8
+ // +blueprint-print
9
+ // Scoped by a single presentational body class:
10
+ // +blueprint-print("body.blueprint")
11
+ // Semantically:
12
+ // +blueprint-print("body#page-1, body#page-2, body.a-special-page-type")
13
+ // Alternatively, you can use the +blueprint-print-body and +blueprint-print-defaults
14
+ // mixins to construct your own semantic style rules.
15
+
16
+ =blueprint-print(!body_selector = "body")
17
+ #{!body_selector}
18
+ +blueprint-print-body
19
+ @if !body_selector != "body"
20
+ +blueprint-print-defaults
21
+ @if !body_selector == "body"
22
+ +blueprint-print-defaults
23
+
24
+ // This style is in blueprint, but I think it's annoying and it doesn't work in all browsers.
25
+ // Feel free to mix it into anchors where you want it.
26
+ =blueprint-show-link-urls
27
+ &:after
28
+ :content " (" attr(href) ")"
29
+ :font-size 90%
30
+
31
+ =blueprint-print-body
32
+ :line-height 1.5
33
+ :font-family= !blueprint_font_family
34
+ :color #000
35
+ :background none
36
+ :font-size 10pt
37
+
38
+ =blueprint-print-defaults
39
+ .container
40
+ :background none
41
+ hr
42
+ :background #ccc
43
+ :color #ccc
44
+ :width 100%
45
+ :height 2px
46
+ :margin 2em 0
47
+ :padding 0
48
+ :border none
49
+ &.space
50
+ :background #fff
51
+ :color #fff
52
+ h1, h2, h3, h4, h5, h6
53
+ :font-family= !blueprint_font_family
54
+ code
55
+ :font
56
+ :size .9em
57
+ :family= !blueprint_fixed_font_family
58
+ img
59
+ +float-left
60
+ :margin 1.5em 1.5em 1.5em 0
61
+ a
62
+ img
63
+ :border none
64
+ &:link,
65
+ &:visited
66
+ :background transparent
67
+ :font-weight 700
68
+ :text-decoration underline
69
+ p img.top
70
+ :margin-top 0
71
+ blockquote
72
+ :margin 1.5em
73
+ :padding 1em
74
+ :font-style italic
75
+ :font-size .9em
76
+ .small
77
+ :font-size .9em
78
+ .large
79
+ :font-size 1.1em
80
+ .quiet
81
+ :color #999
82
+ .hide
83
+ :display none
@@ -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(!body_selector = "body")
10
+ +blueprint-typography(!body_selector)
11
+ +blueprint-utilities
12
+ +blueprint-grid
13
+ +blueprint-debug
14
+ +blueprint-interaction
15
+ +blueprint-form
@@ -0,0 +1,84 @@
1
+ @import compass/utilities/general/inline_block.sass
2
+ @import compass/utilities/general/float.sass
3
+
4
+ // Button Font
5
+ !blueprint_button_font_family ||= "\"Lucida Grande\", Tahoma, Arial, Verdana, sans-serif"
6
+
7
+ // Default Button Colors
8
+ !blueprint_button_border_color ||= #DEDEDE
9
+ !blueprint_button_background_color ||= #F5F5F5
10
+ !blueprint_button_font_color ||= #565656
11
+
12
+ // Default Button Hover Colors
13
+ !blueprint_button_hover_border_color ||= #C2E1EF
14
+ !blueprint_button_hover_background_color ||= #DFF4FF
15
+ !blueprint_button_hover_font_color ||= #336699
16
+
17
+ // Default Button Active Colors
18
+ !blueprint_button_active_border_color ||= #6299C5
19
+ !blueprint_button_active_background_color ||= #6299C5
20
+ !blueprint_button_active_font_color ||= #FFF
21
+
22
+ //**
23
+ Sets the colors for a button
24
+ @param border_highlight_color
25
+ The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
26
+ =button-colors(!font_color = !blueprint_button_font_color, !bg_color = !blueprint_button_background_color, !border_color = !blueprint_button_border_color, !border_highlight_color = !border_color + #101010)
27
+ :background-color= !bg_color
28
+ :border-color= !border_highlight_color !border_color !border_color !border_highlight_color
29
+ :color= !font_color
30
+
31
+ //**
32
+ Sets the colors for a button in the active state
33
+ @param border_highlight_color
34
+ The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
35
+ =button-active-colors(!font_color = !blueprint_button_active_font_color, !bg_color = !blueprint_button_active_background_color, !border_color = !blueprint_button_active_border_color, !border_highlight_color = !border_color + #101010)
36
+ &:active
37
+ +button-colors(!font_color, !bg_color, !border_color, !border_highlight_color)
38
+
39
+ //**
40
+ Sets the colors for a button in the hover state.
41
+ @param border_highlight_color
42
+ The highlight color defaults to whatever is the value of the border_color but it's one shade lighter.
43
+ =button-hover-colors(!font_color = !blueprint_button_hover_font_color, !bg_color = !blueprint_button_hover_background_color, !border_color = !blueprint_button_hover_border_color, !border_highlight_color = !border_color + #101010)
44
+ &:hover
45
+ +button-colors(!font_color, !bg_color, !border_color, !border_highlight_color)
46
+
47
+ =button-base(!float = false)
48
+ @if !float
49
+ :display block
50
+ +float(!float)
51
+ @else
52
+ +inline-block
53
+ :margin 0.7em 0.5em 0.7em 0
54
+ :border-width 1px
55
+ :border-style solid
56
+ :font-family= !blueprint_button_font_family
57
+ :font-size 100%
58
+ :line-height 130%
59
+ :text-decoration none
60
+ :font-weight bold
61
+ :cursor pointer
62
+ img
63
+ :margin 0 3px -3px 0 !important
64
+ :padding 0
65
+ :border none
66
+ :width 16px
67
+ :height 16px
68
+ :float none
69
+
70
+
71
+ =anchor-button(!float = false)
72
+ +button-base(!float)
73
+ :padding 5px 10px 5px 7px
74
+
75
+ =button-button(!float = false)
76
+ +button-base(!float)
77
+ :width auto
78
+ :overflow visible
79
+ :padding 4px 10px 3px 7px
80
+ &[type]
81
+ :padding 4px 10px 4px 7px
82
+ :line-height 17px
83
+ *:first-child+html &[type]
84
+ :padding 4px 10px 3px 7px
@@ -0,0 +1,33 @@
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 ||= #000
9
+ !link_focus_color ||= !link_hover_color
10
+ !link_active_color ||= !link_color + #C00
11
+ !link_visited_color ||= !link_color - #333
12
+
13
+ !feedback_border_color ||= #DDD
14
+ !success_color ||= #264409
15
+ !success_bg_color ||= #E6EFC2
16
+ !success_border_color ||= #C6D880
17
+
18
+ !notice_color ||= #514721
19
+ !notice_bg_color ||= #FFF6BF
20
+ !notice_border_color ||= #FFD324
21
+
22
+ !error_color ||= #8A1F11
23
+ !error_bg_color ||= #FBE3E4
24
+ !error_border_color ||= #FBC2C4
25
+
26
+ !highlight_color ||= #FF0
27
+ !added_color ||= #FFF
28
+ !added_bg_color ||= #060
29
+ !removed_color ||= #FFF
30
+ !removed_bg_color ||= #900
31
+
32
+ !blueprint_table_header_color ||= #C3D9FF
33
+ !blueprint_table_stripe_color ||= #E5ECF9
@@ -0,0 +1,9 @@
1
+ =showgrid(!image = "grid.png")
2
+ :background= image_url(!image)
3
+
4
+ =blueprint-debug(!grid_image = "grid.png")
5
+ // Use this class on any column or container to see the grid.
6
+ // TODO: prefix this with the project path.
7
+ .showgrid
8
+ +showgrid(!grid_image)
9
+
@@ -0,0 +1,81 @@
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 or at the top level of your stylesheet:
6
+ body
7
+ +fancy-type
8
+
9
+ =fancy-type
10
+ +fancy-paragraphs
11
+ .caps
12
+ +caps
13
+ .dquo
14
+ +dquo
15
+ .alt
16
+ +alt
17
+
18
+ /* Indentation instead of line shifts for sibling paragraphs. Mixin to a style like p + p
19
+ =sibling-indentation
20
+ :text-indent 2em
21
+ :margin-top -1.5em
22
+ /* Don't want this in forms.
23
+ form &
24
+ :text-indent 0
25
+
26
+ /*
27
+ For great looking type, use this code instead of asdf:
28
+ <span class="alt">asdf</span>
29
+ Best used on prepositions and ampersands.
30
+
31
+ =alt
32
+ :color #666
33
+ :font-family "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif
34
+ :font-style italic
35
+ :font-weight normal
36
+
37
+ /*
38
+ For great looking quote marks in titles, replace "asdf" with:
39
+ <span class="dquo">&#8220;</span>asdf&#8221;
40
+ (That is, when the title starts with a quote mark).
41
+ (You may have to change this value depending on your font size).
42
+ =dquo(!offset = 0.5em)
43
+ :margin-left -!offset
44
+
45
+ /*
46
+ Reduced size type with incremental leading
47
+ (http://www.markboulton.co.uk/journal/comments/incremental_leading/)
48
+
49
+ This could be used for side notes. For smaller type, you don't necessarily want to
50
+ follow the 1.5x vertical rhythm -- the line-height is too much.
51
+
52
+ Using this mixin, reduces your font size and line-height so that for
53
+ every four lines of normal sized type, there is five lines of the sidenote. eg:
54
+
55
+ Arguments:
56
+ font_size - The desired font size in pixels. This will be converted to ems for you. Defaults to 10px.
57
+ base_font_size - The base font size in pixels. Defaults to 12px
58
+ old_line_height - The old line height. Defaults to 1.5 times the base_font_size
59
+ =incr(!font_size = 10px, !base_font_size = 12px, !old_line_height = !base_font_size * 1.5)
60
+ :font-size= 1em * !font_size / !base_font_size
61
+ :line-height= 1em * !old_line_height / !font_size * 4 / 5
62
+ :margin-bottom 1.5em
63
+
64
+ /*
65
+ Surround uppercase words and abbreviations with this class.
66
+ Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/]
67
+ =caps
68
+ :font-variant small-caps
69
+ :letter-spacing 1px
70
+ :text-transform lowercase
71
+ :font-size 1.2em
72
+ :line-height 1%
73
+ :font-weight bold
74
+ :padding 0 2px
75
+
76
+ =fancy-paragraphs
77
+ p + p
78
+ +sibling-indentation
79
+ p.incr,
80
+ .incr p
81
+ +incr
@@ -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,168 @@
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 Tackett [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
+ // * http://www.subtraction.com/2007/03/18/oh-yeeaahh
16
+ // --------------------------------------------------------------
17
+
18
+ @import compass/utilities/general/float.sass
19
+
20
+ // Main layout grid, override these constants to build your grid and container sizes.
21
+ !blueprint_grid_columns ||= 24
22
+ !blueprint_grid_width ||= 30px
23
+ !blueprint_grid_margin ||= 10px
24
+
25
+ !blueprint_grid_outer_width = !blueprint_grid_width + !blueprint_grid_margin
26
+ !blueprint_container_size = !blueprint_grid_outer_width * !blueprint_grid_columns - !blueprint_grid_margin
27
+
28
+
29
+ =blueprint-grid
30
+ // A container should group all your columns
31
+ .container
32
+ +container
33
+ .column, #{enumerate("div.span", 1, !blueprint_grid_columns)}
34
+ +column-base
35
+ // The last column in a row needs this class (or mixin) or it will end up on the next row.
36
+ .last, div.last
37
+ +last
38
+ // Use these classes (or mixins) to set the width of a column.
39
+ @for !n from 1 to !blueprint_grid_columns
40
+ .span-#{!n}
41
+ +span(!n)
42
+ .span-#{!blueprint_grid_columns}, div.span-#{!blueprint_grid_columns}
43
+ +span(!blueprint_grid_columns)
44
+ :margin 0
45
+ input, textarea, select
46
+ @for !n from 1 through !blueprint_grid_columns
47
+ &.span-#{!n}
48
+ +span(!n, true)
49
+ // Add these to a column to append empty cols.
50
+ @for !n from 1 to !blueprint_grid_columns
51
+ .append-#{!n}
52
+ +append(!n)
53
+ // Add these to a column to prepend empty cols.
54
+ @for !n from 1 to !blueprint_grid_columns
55
+ .prepend-#{!n}
56
+ +prepend(!n)
57
+ // Use these classes on an element to push it into the
58
+ // next column, or to pull it into the previous column.
59
+ #{enumerate(".pull", 1, !blueprint_grid_columns)}
60
+ +pull-base
61
+ @for !n from 1 through !blueprint_grid_columns
62
+ .pull-#{!n}
63
+ +pull-margins(!n)
64
+ #{enumerate(".push", 1, !blueprint_grid_columns)}
65
+ +push-base
66
+ @for !n from 1 through !blueprint_grid_columns
67
+ .push-#{!n}
68
+ +push-margins(!n)
69
+
70
+
71
+ // Columns
72
+ // Note: If you use this mixin without the class and want to support ie6
73
+ // you must set text-align left on your container element in an IE stylesheet.
74
+ =container
75
+ :width = !blueprint_container_size
76
+ :margin 0 auto
77
+ +clearfix
78
+
79
+ // The last column in a row needs this mixin or it will end up on the next row.
80
+ // TODO add this to span mixin when we have optional arguments
81
+ =last
82
+ :margin-right 0
83
+
84
+ =span(!n, !override = false)
85
+ !width = !blueprint_grid_width * !n + (!blueprint_grid_margin * (!n - 1))
86
+ @if !override
87
+ :width = !width !important
88
+ @else
89
+ :width = !width
90
+
91
+ =column-base(!last = false)
92
+ +float-left
93
+ @if !last
94
+ +last
95
+ @else
96
+ :margin-right = !blueprint_grid_margin
97
+ * html &
98
+ :overflow-x hidden
99
+
100
+ // Use this mixins to set the width of n columns.
101
+ =column(!n, !last = false)
102
+ +column-base(!last)
103
+ +span(!n)
104
+
105
+
106
+ // Mixin to a column to append n empty cols.
107
+ =append(!n)
108
+ :padding-right = (!blueprint_grid_outer_width) * !n
109
+
110
+ // Mixin to a column to prepend n empty cols.
111
+ =prepend(!n)
112
+ :padding-left = (!blueprint_grid_outer_width) * !n
113
+
114
+ =pull-base
115
+ +float-left
116
+ :position relative
117
+
118
+ =pull-margins(!n, !last = false)
119
+ @if !last
120
+ :margin-left = (-!blueprint_grid_outer_width * !n) + !blueprint_grid_margin
121
+ @else
122
+ :margin-left = -!blueprint_grid_outer_width * !n
123
+
124
+ // mixin to a column to move it n columns to the left
125
+ =pull(!n, !last = false)
126
+ +pull-base
127
+ +pull-margins(!n, !last)
128
+
129
+ =push-base
130
+ +float-right
131
+ :position relative
132
+
133
+ =push-margins(!n)
134
+ :margin= 0 (-!blueprint_grid_outer_width * !n) 1.5em (!blueprint_grid_outer_width * !n)
135
+
136
+ // mixin to a column to push it n columns to the right
137
+ =push(!n)
138
+ +push-base
139
+ +push-margins(!n)
140
+
141
+ // Border on right hand side of a column.
142
+ =border
143
+ :padding-right = !blueprint_grid_margin / 2 - 1
144
+ :margin-right = !blueprint_grid_margin / 2
145
+ :border-right 1px solid #eee
146
+
147
+ // Border with more whitespace, spans one column.
148
+ =colborder
149
+ :padding-right= !blueprint_grid_width - 0.5 * !blueprint_grid_margin - 1
150
+ :margin-right= !blueprint_grid_width - 0.5 * !blueprint_grid_margin
151
+ :border-right 1px solid #eee
152
+
153
+ // Mixin this to an hr to make a horizontal ruler across a column.
154
+ =colruler
155
+ :background #ddd
156
+ :color #ddd
157
+ :clear both
158
+ :float none
159
+ :width 100%
160
+ :height .1em
161
+ :margin 0 0 1.45em
162
+ :border none
163
+
164
+ // Mixin this to an hr to make a horizontal spacer across a column.
165
+ =colspacer
166
+ +colruler
167
+ :background #fff
168
+ :color #fff