compass-edge 0.9.4 → 0.9.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +32 -2
- data/README.markdown +12 -2
- data/REVISION +1 -1
- data/Rakefile +3 -1
- data/VERSION.yml +1 -2
- data/examples/blueprint_default/index.html.haml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +2 -0
- data/examples/blueprint_default/src/screen.sass +1 -1
- data/examples/blueprint_plugins/index.html.haml +6 -6
- data/examples/blueprint_plugins/src/buttons.sass +2 -2
- data/examples/blueprint_plugins/src/link_icons.sass +1 -1
- data/examples/blueprint_plugins/src/rtl_screen.sass +3 -3
- data/examples/blueprint_plugins/src/screen.sass +2 -2
- data/examples/blueprint_semantic/src/liquid.sass +4 -4
- data/examples/blueprint_semantic/src/screen.sass +3 -3
- data/examples/compass/bootstrap.rb +3 -0
- data/examples/compass/extensions/yui/stylesheets/_yui.sass +7 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/examples/compass/extensions/yui/templates/project/manifest.rb +1 -0
- data/examples/compass/extensions/yui/templates/project/screen.sass +4 -0
- data/examples/compass/src/utilities.sass +2 -2
- data/examples/css3/config.rb +6 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass +7 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +5 -0
- data/examples/css3/images/fresh-peas.jpg +0 -0
- data/examples/css3/index.html.haml +55 -0
- data/examples/css3/src/_base.sass +14 -0
- data/examples/css3/src/fancy-fonts.sass +7 -0
- data/examples/css3/src/gradient.sass +10 -0
- data/examples/css3/src/main.sass +80 -0
- data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
- data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
- data/examples/downloader.rb +2 -2
- data/examples/ninesixty/extensions/ninesixty/README.mkdn +56 -0
- data/examples/ninesixty/extensions/ninesixty/compass-960-plugin.gemspec +36 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty.rb +1 -0
- data/examples/ninesixty/extensions/ninesixty/lib/ninesixty/compass_plugin.rb +5 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_grid.sass +64 -0
- data/examples/ninesixty/extensions/ninesixty/sass/960/_text.sass +59 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/grid.sass +34 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/manifest.rb +2 -0
- data/examples/ninesixty/extensions/ninesixty/templates/project/text.sass +10 -0
- data/examples/susy/bootstrap.rb +3 -0
- data/examples/susy/config.rb +9 -0
- data/examples/susy/extensions/susy/LICENSE.txt +28 -0
- data/examples/susy/extensions/susy/README.mkdn +235 -0
- data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +35 -0
- data/examples/susy/extensions/susy/docs/tutorial/build.sh +141 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +100 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +98 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +19 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +48 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +14 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/grid.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/images/susy_logo.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/src/_base.sass +63 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +1450 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +100 -0
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +91 -0
- data/examples/susy/extensions/susy/docs/tutorial/figures/susy_element.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/figures/susy_grid.png +0 -0
- data/examples/susy/extensions/susy/docs/tutorial/index.mkdn +301 -0
- data/examples/susy/extensions/susy/lib/susy.rb +2 -0
- data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +5 -0
- data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +79 -0
- data/examples/susy/extensions/susy/sass/susy/_grid.sass +128 -0
- data/examples/susy/extensions/susy/sass/susy/_reset.sass +7 -0
- data/examples/susy/extensions/susy/sass/susy/_susy.sass +23 -0
- data/examples/susy/extensions/susy/sass/susy/_text.sass +15 -0
- data/examples/susy/extensions/susy/sass/susy/_utils.sass +81 -0
- data/examples/susy/extensions/susy/templates/project/_base.sass +62 -0
- data/examples/susy/extensions/susy/templates/project/_defaults.sass +147 -0
- data/examples/susy/extensions/susy/templates/project/ie.sass +9 -0
- data/examples/susy/extensions/susy/templates/project/manifest.rb +5 -0
- data/examples/susy/extensions/susy/templates/project/print.sass +7 -0
- data/examples/susy/extensions/susy/templates/project/screen.sass +44 -0
- data/examples/susy/src/_base.sass +62 -0
- data/examples/susy/src/_defaults.sass +148 -0
- data/examples/susy/src/screen.sass +114 -0
- data/examples/yui/extensions/yui/stylesheets/_yui.sass +7 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_base.sass +70 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_fonts.sass +45 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_grids.sass +385 -0
- data/examples/yui/extensions/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/examples/yui/extensions/yui/templates/project/manifest.rb +1 -0
- data/examples/yui/extensions/yui/templates/project/screen.sass +4 -0
- data/lib/compass/app_integration/rails/configuration_defaults.rb +9 -1
- data/lib/compass/commands/watch_project.rb +1 -1
- data/lib/compass/compiler.rb +9 -1
- data/lib/compass/configuration.rb +23 -18
- data/lib/compass/configuration/adapters.rb +1 -1
- data/lib/compass/configuration/defaults.rb +30 -0
- data/lib/compass/frameworks.rb +1 -1
- data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +29 -1
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +84 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +33 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +9 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +82 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +56 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +179 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +58 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +44 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +141 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +1 -4
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +57 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +123 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +49 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +2 -29
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +162 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +37 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +2 -84
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +2 -33
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +2 -9
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +2 -82
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +2 -55
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +2 -178
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +2 -58
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +2 -44
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +2 -140
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +2 -56
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +2 -122
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +2 -47
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +2 -160
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +2 -37
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
- data/lib/compass/frameworks/blueprint/templates/project/screen.sass +1 -7
- data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +5 -2
- data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +8 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +16 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +18 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +14 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +18 -10
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +31 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +40 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +15 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +60 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +57 -0
- data/lib/compass/grid_builder.rb +1 -1
- data/lib/compass/installers/base.rb +5 -1
- data/lib/compass/installers/manifest.rb +1 -0
- data/lib/compass/logger.rb +28 -2
- data/lib/compass/sass_extensions/functions.rb +3 -1
- data/lib/compass/sass_extensions/functions/color_stop.rb +10 -0
- data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
- data/lib/compass/sass_extensions/functions/font_files.rb +11 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +22 -1
- data/lib/compass/sass_extensions/functions/urls.rb +20 -0
- data/lib/vendor/fssm.rb +19 -6
- data/lib/vendor/fssm/backends/fsevents.rb +19 -60
- data/lib/vendor/fssm/backends/polling.rb +20 -18
- data/lib/vendor/fssm/cache.rb +193 -0
- data/lib/vendor/fssm/ext.rb +30 -0
- data/lib/vendor/fssm/fsevents.rb +129 -0
- data/lib/vendor/fssm/monitor.rb +10 -6
- data/lib/vendor/fssm/path.rb +24 -21
- data/lib/vendor/fssm/state.rb +37 -29
- data/lib/vendor/fssm/support.rb +3 -7
- data/lib/vendor/fssm/tree.rb +176 -0
- data/test/command_line_helper.rb +8 -4
- data/test/command_line_test.rb +2 -2
- data/test/compass_test.rb +14 -4
- data/test/configuration_test.rb +5 -5
- data/test/fixtures/stylesheets/blueprint/css/typography.css +5 -3
- data/test/fixtures/stylesheets/blueprint/sass/screen.sass +1 -1
- data/test/fixtures/stylesheets/blueprint/sass/typography.sass +2 -2
- data/test/fixtures/stylesheets/compass/css/print.css +2 -8
- data/test/fixtures/stylesheets/image_urls/css/screen.css +2 -0
- data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
- data/test/fixtures/stylesheets/relative/config.rb +9 -0
- data/test/fixtures/stylesheets/relative/css/ie.css +1 -0
- data/test/fixtures/stylesheets/relative/css/print.css +1 -0
- data/test/fixtures/stylesheets/relative/css/screen.css +1 -0
- data/test/fixtures/stylesheets/relative/sass/ie.sass +6 -0
- data/test/fixtures/stylesheets/relative/sass/print.sass +6 -0
- data/test/fixtures/stylesheets/relative/sass/screen.sass +3 -0
- data/test/rails_integration_test.rb +1 -1
- data/test/sass_extensions_test.rb +2 -2
- metadata +120 -2
@@ -0,0 +1,61 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.net/yui/license.txt
|
5
|
+
version: 3.0.0pr2
|
6
|
+
|
7
|
+
=reset
|
8
|
+
html
|
9
|
+
:color #000
|
10
|
+
:background #FFF
|
11
|
+
|
12
|
+
body, div, dl, dt, dd, ul, ol, li,
|
13
|
+
h1, h2, h3, h4, h5, h6, pre, code,
|
14
|
+
form, fieldset, legend,input,
|
15
|
+
textarea, p, blockquote, th, td
|
16
|
+
:margin 0
|
17
|
+
:padding 0
|
18
|
+
|
19
|
+
li
|
20
|
+
:list-style none
|
21
|
+
|
22
|
+
h1, h2, h3, h4, h5, h6
|
23
|
+
:font-size 100%
|
24
|
+
:font-weight normal
|
25
|
+
|
26
|
+
code, th, address, caption,
|
27
|
+
cite, dfn, em, strong, var
|
28
|
+
:font-style normal
|
29
|
+
:font-weight normal
|
30
|
+
|
31
|
+
fieldset, img, abbr, acronym
|
32
|
+
:border 0
|
33
|
+
|
34
|
+
legend
|
35
|
+
:color #000
|
36
|
+
|
37
|
+
input, textarea, select
|
38
|
+
:font-family inherit
|
39
|
+
:font-size inherit
|
40
|
+
:font-weight inherit
|
41
|
+
:*font-size 100%
|
42
|
+
|
43
|
+
th, caption
|
44
|
+
:text-align left
|
45
|
+
|
46
|
+
table
|
47
|
+
:border-collapse collapse
|
48
|
+
:border-spacing 0
|
49
|
+
|
50
|
+
q
|
51
|
+
&:before, &:after
|
52
|
+
:content ''
|
53
|
+
|
54
|
+
abbr, acronym
|
55
|
+
:font-variant normal
|
56
|
+
|
57
|
+
sup
|
58
|
+
:vertical-align text-top
|
59
|
+
|
60
|
+
sub
|
61
|
+
:vertical-align text-bottom
|
@@ -0,0 +1 @@
|
|
1
|
+
stylesheet 'screen.sass', :media => "screen, projection"
|
@@ -1,8 +1,8 @@
|
|
1
1
|
@import compass/reset.sass
|
2
2
|
@import compass/utilities.sass
|
3
3
|
@import yui/modules/base.sass
|
4
|
-
@import blueprint/
|
5
|
-
@import blueprint/
|
4
|
+
@import blueprint/grid.sass
|
5
|
+
@import blueprint/scaffolding.sass
|
6
6
|
@import compass/utilities/text/ellipsis.sass
|
7
7
|
|
8
8
|
html
|
Binary file
|
Binary file
|
@@ -0,0 +1,55 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%link(href="stylesheets/fancy-fonts.css" rel="stylesheet" type="text/css")
|
5
|
+
%link(href="stylesheets/main.css" rel="stylesheet" type="text/css")
|
6
|
+
%link(href="stylesheets/gradient.css" rel="stylesheet" type="text/css")
|
7
|
+
%body
|
8
|
+
%h1 Compass CSS3 Module
|
9
|
+
#container
|
10
|
+
.examples
|
11
|
+
#background-clip.example
|
12
|
+
%h2 Background Clip & Origin
|
13
|
+
%pre.padding-box
|
14
|
+
%code<>
|
15
|
+
+background-clip("padding-box")<br />+background-origin("padding-box")
|
16
|
+
%pre.border-box
|
17
|
+
%code<>
|
18
|
+
+background-clip("border-box")<br />+background-origin("border-box")
|
19
|
+
.gutter
|
20
|
+
#background-size.example
|
21
|
+
%h2 Background Size
|
22
|
+
%pre.top-left
|
23
|
+
%code<>
|
24
|
+
+background-size(50% 50%)
|
25
|
+
%pre.centered
|
26
|
+
%code<>
|
27
|
+
+background-size(50% 50%)<br />background-position: center center
|
28
|
+
.gutter
|
29
|
+
#gradients.example
|
30
|
+
%h2 Gradients
|
31
|
+
%pre.horizontal
|
32
|
+
%code<>
|
33
|
+
+h-gradient(#d92626, #2626d9)
|
34
|
+
%pre.vertical
|
35
|
+
%code<>
|
36
|
+
+v-gradient(#d92626, #2626d9)
|
37
|
+
%pre.diagonal
|
38
|
+
%code<
|
39
|
+
+linear-gradient("left top",
|
40
|
+
"right bottom",
|
41
|
+
\#d92626, #2626d9)
|
42
|
+
%pre.radial
|
43
|
+
%code<>
|
44
|
+
+radial-gradient(<br /> "center center, 10, center center, 100",<br /> #d92626, #2626d9)
|
45
|
+
.examples
|
46
|
+
#border-radius.example
|
47
|
+
%h2 Border Radius
|
48
|
+
.gutter
|
49
|
+
#box-shadow.example
|
50
|
+
%h2 Box Shadow
|
51
|
+
.gutter
|
52
|
+
#box-sizing.example
|
53
|
+
%h2 Box Sizing
|
54
|
+
|
55
|
+
|
@@ -0,0 +1,80 @@
|
|
1
|
+
@import blueprint/reset.sass
|
2
|
+
@import base.sass
|
3
|
+
|
4
|
+
!border_color = #aaa
|
5
|
+
|
6
|
+
#container
|
7
|
+
+container
|
8
|
+
|
9
|
+
!min_width = 340px
|
10
|
+
.examples
|
11
|
+
margin-bottom: 1em
|
12
|
+
+row
|
13
|
+
min-width= !min_width * 3 + 20px * 2 + 20px
|
14
|
+
|
15
|
+
h1
|
16
|
+
text-align: center
|
17
|
+
|
18
|
+
.example, .gutter
|
19
|
+
min-height: 21em
|
20
|
+
|
21
|
+
.example
|
22
|
+
+column
|
23
|
+
width: 30%
|
24
|
+
min-width= !min_width
|
25
|
+
border: 4px solid #{!border_color}
|
26
|
+
+border-radius(0.667em)
|
27
|
+
+box-shadow(darken(!border_color, 40), 5px, 5px, 2px)
|
28
|
+
margin-bottom: 1em
|
29
|
+
h2
|
30
|
+
font-family: Angelina
|
31
|
+
margin: 0.5em 0 1em
|
32
|
+
text-align: center
|
33
|
+
|
34
|
+
.gutter
|
35
|
+
display: block
|
36
|
+
float: left
|
37
|
+
width: 2.5%
|
38
|
+
min-width: 20px
|
39
|
+
content: " "
|
40
|
+
|
41
|
+
.example
|
42
|
+
+v-gradient(#fff, #ccc)
|
43
|
+
pre
|
44
|
+
padding: 1em
|
45
|
+
margin: 1em
|
46
|
+
color: white
|
47
|
+
text-shadow: 1px 1px 2px #000
|
48
|
+
font-weight: bold
|
49
|
+
#background-clip
|
50
|
+
pre
|
51
|
+
background: transparent #{image-url("fresh-peas.jpg")} no-repeat
|
52
|
+
border: 1em solid #{transparentize(red, .75)}
|
53
|
+
.padding-box
|
54
|
+
+background-clip("padding-box")
|
55
|
+
+background-origin("padding-box")
|
56
|
+
.border-box
|
57
|
+
+background-clip("border-box")
|
58
|
+
+background-origin("border-box")
|
59
|
+
|
60
|
+
#background-size
|
61
|
+
pre
|
62
|
+
background: transparent #{image-url("fresh-peas.jpg")} no-repeat
|
63
|
+
border: 1em solid #{transparentize(red, .75)}
|
64
|
+
.top-left
|
65
|
+
+background-size(50% 50%)
|
66
|
+
.centered
|
67
|
+
+background-size(50% 50%)
|
68
|
+
background-position: center center
|
69
|
+
|
70
|
+
#gradients
|
71
|
+
.horizontal
|
72
|
+
+h-gradient(#d92626, #2626d9)
|
73
|
+
.vertical
|
74
|
+
+v-gradient(#d92626, #2626d9)
|
75
|
+
.diagonal
|
76
|
+
+linear-gradient("left top", "right bottom", #d92626, #2626d9)
|
77
|
+
.radial
|
78
|
+
+radial-gradient("center center, 10, center center, 100", #d92626, #2626d9)
|
79
|
+
background-color: #2626d9
|
80
|
+
|
Binary file
|
Binary file
|
data/examples/downloader.rb
CHANGED
@@ -24,8 +24,8 @@ def fetch(uri_str, limit = 10)
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
def install_from_github(user, project, ext_name, working_directory = Dir.pwd)
|
28
|
-
download_link = "http://github.com/#{user}/#{project}/zipball
|
27
|
+
def install_from_github(user, project, ext_name, branch = "master", working_directory = Dir.pwd)
|
28
|
+
download_link = "http://github.com/#{user}/#{project}/zipball/#{branch}"
|
29
29
|
extdir = File.join(working_directory,'extensions')
|
30
30
|
|
31
31
|
if !File.exists?(extdir)
|
@@ -0,0 +1,56 @@
|
|
1
|
+
960 Grid System - Compass Plugin
|
2
|
+
================================
|
3
|
+
|
4
|
+
* Port of Version 1.0
|
5
|
+
* 2008-03-24
|
6
|
+
|
7
|
+
Created by Nathan Smith. See the official site for more info: <http://960.gs/>
|
8
|
+
|
9
|
+
---------
|
10
|
+
|
11
|
+
This plugin adds the 960 Grid System framework to [Compass](http://compass-style.org/).
|
12
|
+
|
13
|
+
Install
|
14
|
+
=======
|
15
|
+
|
16
|
+
sudo gem install chriseppstein-compass
|
17
|
+
sudo gem install chriseppstein-compass-960-plugin
|
18
|
+
|
19
|
+
Create a 960-based Compass Project
|
20
|
+
==================================
|
21
|
+
|
22
|
+
compass -r ninesixty -f 960 <project name>
|
23
|
+
|
24
|
+
Then edit your `grid.sass` and `text.sass` files accordingly. A reset is added into grid.sass automatically.
|
25
|
+
|
26
|
+
Customizing your Grid System
|
27
|
+
============================
|
28
|
+
|
29
|
+
To create a grid system with other number of columns use the `+grid-system` mixin to generate
|
30
|
+
the corresponding classes.
|
31
|
+
|
32
|
+
Example:
|
33
|
+
|
34
|
+
#wrap
|
35
|
+
+grid-system(24)
|
36
|
+
|
37
|
+
Making Semantic Grids
|
38
|
+
=====================
|
39
|
+
|
40
|
+
* Use the `+grid-container` mixin to declare your container element.
|
41
|
+
* Use the `+grid` mixin to declare a grid element.
|
42
|
+
* Use the `+alpha` and `+omega` mixins to declare the first and last grid elements for a row.
|
43
|
+
* User the `+grid-prefix` and `+grid-suffix` mixins to add grid columns before or after a grid element.
|
44
|
+
|
45
|
+
Example:
|
46
|
+
|
47
|
+
#wrap
|
48
|
+
+grid-container
|
49
|
+
#left-nav
|
50
|
+
+alpha
|
51
|
+
+grid(5,16)
|
52
|
+
#main-content
|
53
|
+
+grid-prefix(1,16)
|
54
|
+
+grid(10, 16)
|
55
|
+
+omega
|
56
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{compass-960-plugin}
|
5
|
+
s.version = "0.9.10"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Chris Eppstein"]
|
9
|
+
s.date = %q{2009-09-27}
|
10
|
+
s.description = %q{The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. http://960.gs/}
|
11
|
+
s.email = %q{chris@eppsteins.net}
|
12
|
+
s.extra_rdoc_files = ["lib/ninesixty/compass_plugin.rb", "lib/ninesixty.rb", "README.mkdn"]
|
13
|
+
s.files = ["compass-960-plugin.gemspec", "lib/ninesixty/compass_plugin.rb", "lib/ninesixty.rb", "Manifest", "Rakefile", "README.mkdn", "sass/960/_grid.sass", "sass/960/_text.sass", "templates/project/grid.sass", "templates/project/manifest.rb", "templates/project/text.sass", "VERSION"]
|
14
|
+
s.homepage = %q{http://github.com/chriseppstein/compass-960-plugin}
|
15
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass-960-plugin", "--main", "README.mkdn"]
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
s.rubyforge_project = %q{compass-960-plugin}
|
18
|
+
s.rubygems_version = %q{1.3.3}
|
19
|
+
s.summary = %q{Compass compatible Sass port of 960.gs.}
|
20
|
+
|
21
|
+
if s.respond_to? :specification_version then
|
22
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
|
+
s.specification_version = 3
|
24
|
+
|
25
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
+
s.add_runtime_dependency(%q<chriseppstein-compass>, [">= 0"])
|
27
|
+
s.add_development_dependency(%q<echoe>, [">= 0"])
|
28
|
+
else
|
29
|
+
s.add_dependency(%q<chriseppstein-compass>, [">= 0"])
|
30
|
+
s.add_dependency(%q<echoe>, [">= 0"])
|
31
|
+
end
|
32
|
+
else
|
33
|
+
s.add_dependency(%q<chriseppstein-compass>, [">= 0"])
|
34
|
+
s.add_dependency(%q<echoe>, [">= 0"])
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'ninesixty', 'compass_plugin')
|
@@ -0,0 +1,5 @@
|
|
1
|
+
options = Hash.new
|
2
|
+
options[:stylesheets_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'sass'))
|
3
|
+
options[:templates_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates'))
|
4
|
+
|
5
|
+
Compass::Frameworks.register('960', options)
|
@@ -0,0 +1,64 @@
|
|
1
|
+
!ninesixty_gutter_width ||= 20px
|
2
|
+
!ninesixty_grid_width ||= 960px
|
3
|
+
!ninesixty_columns ||= 12
|
4
|
+
|
5
|
+
=grid-container
|
6
|
+
:margin-left auto
|
7
|
+
:margin-right auto
|
8
|
+
:width= !ninesixty_grid_width
|
9
|
+
|
10
|
+
=grid-width(!n, !cols = !ninesixty_columns, !gutter_width = !ninesixty_gutter_width)
|
11
|
+
:width= (!ninesixty_grid_width / !cols) * !n - !gutter_width
|
12
|
+
|
13
|
+
=grid-unit-base(!gutter_width = !ninesixty_gutter_width)
|
14
|
+
:display inline
|
15
|
+
:float left
|
16
|
+
:margin
|
17
|
+
:left= !gutter_width / 2
|
18
|
+
:right= !gutter_width / 2
|
19
|
+
|
20
|
+
=grid(!n, !cols = !ninesixty_columns, !gutter_width = !ninesixty_gutter_width)
|
21
|
+
+grid-unit-base(!gutter_width)
|
22
|
+
+grid-width(!n, !cols, !gutter_width)
|
23
|
+
|
24
|
+
=alpha
|
25
|
+
:margin-left 0
|
26
|
+
|
27
|
+
=omega
|
28
|
+
:margin-right 0
|
29
|
+
|
30
|
+
=grids(!cols = !ninesixty_columns, !gutter_width = !ninesixty_gutter_width)
|
31
|
+
#{enumerate(".grid",1,!cols,"_")}
|
32
|
+
+grid-unit-base
|
33
|
+
@for !n from 1 through !cols
|
34
|
+
.grid_#{!n}
|
35
|
+
+grid-width(!n, !cols, !gutter_width)
|
36
|
+
|
37
|
+
=grid-prefix(!n, !cols = !ninesixty_columns)
|
38
|
+
:padding-left= (!ninesixty_grid_width / !cols) * !n
|
39
|
+
|
40
|
+
=grid-prefixes(!cols = !ninesixty_columns)
|
41
|
+
@for !n from 1 through !cols - 1
|
42
|
+
.prefix_#{!n}
|
43
|
+
+grid-prefix(!n, !cols)
|
44
|
+
|
45
|
+
=grid-suffix(!n, !cols = !ninesixty_columns)
|
46
|
+
:padding-right= (!ninesixty_grid_width / !cols) * !n
|
47
|
+
|
48
|
+
=grid-suffixes(!cols = !ninesixty_columns)
|
49
|
+
@for !n from 1 through !cols - 1
|
50
|
+
.suffix_#{!n}
|
51
|
+
+grid-suffix(!n, !cols)
|
52
|
+
|
53
|
+
=grid-children
|
54
|
+
.alpha
|
55
|
+
+alpha
|
56
|
+
.omega
|
57
|
+
+omega
|
58
|
+
|
59
|
+
=grid-system(!cols = !ninesixty_columns)
|
60
|
+
+grid-container
|
61
|
+
+grids(!cols)
|
62
|
+
+grid-prefixes(!cols)
|
63
|
+
+grid-suffixes(!cols)
|
64
|
+
+grid-children
|