compass-edge 0.9.5.0 → 0.10.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +0 -153
- data/README.markdown +2 -12
- data/REVISION +1 -1
- data/Rakefile +2 -37
- data/VERSION.yml +1 -1
- data/examples/blueprint_default/index.html.haml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +0 -2
- 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/src/utilities.sass +2 -2
- data/examples/downloader.rb +2 -2
- data/lib/compass/app_integration.rb +0 -21
- data/lib/compass/app_integration/rails.rb +0 -18
- data/lib/compass/app_integration/rails/configuration_defaults.rb +0 -16
- data/lib/compass/app_integration/rails/installer.rb +6 -6
- data/lib/compass/app_integration/stand_alone.rb +1 -20
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -5
- data/lib/compass/app_integration/stand_alone/installer.rb +17 -29
- data/lib/compass/commands.rb +2 -2
- data/lib/compass/commands/create_project.rb +1 -10
- data/lib/compass/commands/generate_grid_background.rb +1 -1
- data/lib/compass/commands/help.rb +7 -34
- data/lib/compass/commands/installer_command.rb +11 -15
- data/lib/compass/commands/project_base.rb +2 -2
- data/lib/compass/commands/update_project.rb +1 -51
- data/lib/compass/commands/validate_project.rb +3 -59
- data/lib/compass/commands/watch_project.rb +2 -4
- data/lib/compass/commands/write_configuration.rb +3 -84
- data/lib/compass/compiler.rb +4 -13
- data/lib/compass/configuration.rb +18 -23
- data/lib/compass/configuration/adapters.rb +1 -1
- data/lib/compass/configuration/data.rb +2 -5
- data/lib/compass/configuration/defaults.rb +1 -32
- data/lib/compass/configuration/helpers.rb +10 -47
- data/lib/compass/configuration/inheritance.rb +1 -1
- data/lib/compass/configuration/serialization.rb +2 -2
- data/lib/compass/errors.rb +1 -4
- data/lib/compass/exec.rb +0 -1
- data/lib/compass/exec/project_options_parser.rb +0 -4
- data/lib/compass/frameworks.rb +1 -40
- data/lib/compass/frameworks/blueprint/stylesheets/_blueprint.sass +1 -29
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_ie.sass +2 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_print.sass +4 -1
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_reset.sass +2 -57
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_screen.sass +29 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +178 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +140 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +122 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +160 -2
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -2
- data/lib/compass/frameworks/blueprint/templates/buttons/buttons.sass +2 -2
- data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +0 -12
- data/lib/compass/frameworks/blueprint/templates/link_icons/link_icons.sass +1 -1
- data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +0 -13
- data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +0 -24
- data/lib/compass/frameworks/blueprint/templates/project/screen.sass +7 -1
- data/lib/compass/frameworks/blueprint/templates/project/welcome.html.haml +1 -9
- data/lib/compass/frameworks/compass/stylesheets/_compass.sass +1 -2
- data/lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass +1 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/_css3.sass +6 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_border_radius.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_shadow.sass +12 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_box_sizing.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_columns.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_inline_block.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{css3 → utilities/css3}/_opacity.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +2 -2
- data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +1 -26
- data/lib/compass/frameworks/compass/templates/extension/manifest.rb +2 -16
- data/lib/compass/frameworks/compass/templates/project/manifest.rb +0 -1
- data/lib/compass/grid_builder.rb +1 -1
- data/lib/compass/installers.rb +1 -1
- data/lib/compass/installers/base.rb +52 -13
- data/lib/compass/installers/manifest.rb +1 -33
- data/lib/compass/logger.rb +2 -28
- data/lib/compass/sass_extensions/functions.rb +1 -3
- data/lib/compass/sass_extensions/functions/enumerate.rb +2 -2
- data/lib/compass/sass_extensions/functions/inline_image.rb +1 -22
- data/lib/compass/sass_extensions/functions/urls.rb +0 -20
- data/lib/compass/sass_extensions/monkey_patches.rb +2 -2
- data/lib/compass/validator.rb +3 -2
- data/lib/vendor/fssm.rb +6 -19
- data/lib/vendor/fssm/backends/fsevents.rb +60 -19
- data/lib/vendor/fssm/backends/polling.rb +18 -20
- data/lib/vendor/fssm/ext.rb +0 -30
- data/lib/vendor/fssm/monitor.rb +6 -10
- data/lib/vendor/fssm/path.rb +21 -24
- data/lib/vendor/fssm/state.rb +29 -37
- data/lib/vendor/fssm/support.rb +7 -3
- data/test/command_line_helper.rb +4 -12
- data/test/command_line_test.rb +2 -2
- data/test/compass_test.rb +4 -14
- data/test/configuration_test.rb +5 -5
- data/test/fixtures/stylesheets/blueprint/css/typography.css +3 -5
- 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 +8 -2
- data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
- data/test/fixtures/stylesheets/image_urls/css/screen.css +0 -2
- data/test/io_helper.rb +1 -18
- data/test/rails_integration_test.rb +41 -3
- data/test/sass_extensions_test.rb +2 -2
- data/test/test_helper.rb +0 -1
- metadata +9 -124
- data/examples/compass/bootstrap.rb +0 -3
- data/examples/compass/extensions/yui/stylesheets/_yui.sass +0 -7
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_base.sass +0 -70
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_fonts.sass +0 -45
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_grids.sass +0 -385
- data/examples/compass/extensions/yui/stylesheets/yui/modules/_reset.sass +0 -61
- data/examples/compass/extensions/yui/templates/project/manifest.rb +0 -1
- data/examples/compass/extensions/yui/templates/project/screen.sass +0 -4
- data/examples/css3/config.rb +0 -6
- 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 +0 -7
- data/examples/css3/extensions/fancy-fonts/templates/project/manifest.rb +0 -5
- data/examples/css3/images/fresh-peas.jpg +0 -0
- data/examples/css3/index.html.haml +0 -55
- data/examples/css3/src/_base.sass +0 -14
- data/examples/css3/src/fancy-fonts.sass +0 -7
- data/examples/css3/src/gradient.sass +0 -10
- data/examples/css3/src/main.sass +0 -80
- data/examples/css3/stylesheets/fonts/Vtks Revolt.ttf +0 -0
- data/examples/css3/stylesheets/fonts/angelina.ttf +0 -0
- data/examples/susy/bootstrap.rb +0 -3
- data/examples/susy/config.rb +0 -9
- data/examples/susy/extensions/susy/LICENSE.txt +0 -28
- data/examples/susy/extensions/susy/README.mkdn +0 -235
- data/examples/susy/extensions/susy/compass-susy-plugin.gemspec +0 -35
- data/examples/susy/extensions/susy/docs/tutorial/build.sh +0 -141
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/_defaults.sass +0 -100
- data/examples/susy/extensions/susy/docs/tutorial/code/01_target/src/screen.sass +0 -98
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/docs/tutorial/code/02_container/src/screen.sass +0 -19
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/docs/tutorial/code/03_structure/src/screen.sass +0 -48
- data/examples/susy/extensions/susy/docs/tutorial/code/_common/config.rb +0 -14
- 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 +0 -63
- data/examples/susy/extensions/susy/docs/tutorial/code/_tools/Markdown.pl +0 -1450
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/_defaults.sass +0 -100
- data/examples/susy/extensions/susy/docs/tutorial/code/site/src/screen.sass +0 -91
- 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 +0 -301
- data/examples/susy/extensions/susy/lib/susy.rb +0 -2
- data/examples/susy/extensions/susy/lib/susy/compass_plugin.rb +0 -5
- data/examples/susy/extensions/susy/lib/susy/sass_extensions.rb +0 -79
- data/examples/susy/extensions/susy/sass/susy/_grid.sass +0 -128
- data/examples/susy/extensions/susy/sass/susy/_reset.sass +0 -7
- data/examples/susy/extensions/susy/sass/susy/_susy.sass +0 -23
- data/examples/susy/extensions/susy/sass/susy/_text.sass +0 -15
- data/examples/susy/extensions/susy/sass/susy/_utils.sass +0 -81
- data/examples/susy/extensions/susy/templates/project/_base.sass +0 -62
- data/examples/susy/extensions/susy/templates/project/_defaults.sass +0 -147
- data/examples/susy/extensions/susy/templates/project/ie.sass +0 -9
- data/examples/susy/extensions/susy/templates/project/manifest.rb +0 -5
- data/examples/susy/extensions/susy/templates/project/print.sass +0 -7
- data/examples/susy/extensions/susy/templates/project/screen.sass +0 -44
- data/examples/susy/src/_base.sass +0 -62
- data/examples/susy/src/_defaults.sass +0 -148
- data/examples/susy/src/screen.sass +0 -114
- data/features/command_line.feature +0 -226
- data/features/extensions.feature +0 -20
- data/features/step_definitions/command_line_steps.rb +0 -223
- data/features/step_definitions/extension_steps.rb +0 -13
- data/lib/compass/commands/interactive.rb +0 -61
- data/lib/compass/commands/project_stats.rb +0 -162
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_buttons.sass +0 -84
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_colors.sass +0 -33
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_debug.sass +0 -9
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_fancy_type.sass +0 -82
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_form.sass +0 -56
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_grid.sass +0 -179
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_interaction.sass +0 -58
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_link_icons.sass +0 -44
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +0 -141
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_rtl.sass +0 -123
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_scaffolding.sass +0 -49
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_typography.sass +0 -162
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/_utilities.sass +0 -37
- data/lib/compass/frameworks/compass/stylesheets/compass/_css3.sass +0 -14
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_clip.sass +0 -16
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_origin.sass +0 -18
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_background_size.sass +0 -14
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass +0 -20
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_font_face.sass +0 -31
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_gradient.sass +0 -40
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_text_shadow.sass +0 -15
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transform.sass +0 -60
- data/lib/compass/frameworks/compass/stylesheets/compass/css3/_transition.sass +0 -57
- data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +0 -32
- data/lib/compass/installers/bare_installer.rb +0 -58
- data/lib/compass/installers/manifest_installer.rb +0 -59
- data/lib/compass/sass_extensions/functions/color_stop.rb +0 -10
- data/lib/compass/sass_extensions/functions/font_files.rb +0 -11
- data/lib/compass/sass_extensions/monkey_patches/traversal.rb +0 -23
- data/lib/compass/stats.rb +0 -92
- data/lib/vendor/fssm/cache.rb +0 -193
- data/lib/vendor/fssm/fsevents.rb +0 -129
- data/lib/vendor/fssm/tree.rb +0 -176
- data/test/fixtures/stylesheets/relative/assets/images/testing.png +0 -0
- data/test/fixtures/stylesheets/relative/config.rb +0 -9
- data/test/fixtures/stylesheets/relative/css/ie.css +0 -1
- data/test/fixtures/stylesheets/relative/css/print.css +0 -1
- data/test/fixtures/stylesheets/relative/css/screen.css +0 -1
- data/test/fixtures/stylesheets/relative/sass/ie.sass +0 -6
- data/test/fixtures/stylesheets/relative/sass/print.sass +0 -6
- data/test/fixtures/stylesheets/relative/sass/screen.sass +0 -3
- data/test/rails_helper.rb +0 -40
@@ -1,61 +0,0 @@
|
|
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
|
@@ -1 +0,0 @@
|
|
1
|
-
stylesheet 'screen.sass', :media => "screen, projection"
|
data/examples/css3/config.rb
DELETED
Binary file
|
Binary file
|
Binary file
|
@@ -1,55 +0,0 @@
|
|
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
|
-
|
data/examples/css3/src/main.sass
DELETED
@@ -1,80 +0,0 @@
|
|
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/susy/bootstrap.rb
DELETED
data/examples/susy/config.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
project_type = :stand_alone
|
2
|
-
# Set this to the root of your project when deployed:
|
3
|
-
http_path = "/"
|
4
|
-
css_dir = "stylesheets"
|
5
|
-
sass_dir = "src"
|
6
|
-
images_dir = "images"
|
7
|
-
output_style = :compact
|
8
|
-
# To enable relative paths to assets via compass helper functions. Uncomment:
|
9
|
-
# relative_assets = true
|
@@ -1,28 +0,0 @@
|
|
1
|
-
Copyright (c) 2009, Eric Meyer
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
Redistribution and use in source and binary forms, with or without
|
5
|
-
modification, are permitted provided that the following conditions are
|
6
|
-
met:
|
7
|
-
|
8
|
-
* Redistributions of source code must retain the above copyright
|
9
|
-
notice, this list of conditions and the following disclaimer.
|
10
|
-
* Redistributions in binary form must reproduce the above
|
11
|
-
copyright notice, this list of conditions and the following
|
12
|
-
disclaimer in the documentation and/or other materials provided
|
13
|
-
with the distribution.
|
14
|
-
* Neither the name of the author nor the names of other
|
15
|
-
contributors may be used to endorse or promote products derived
|
16
|
-
from this software without specific prior written permission.
|
17
|
-
|
18
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -1,235 +0,0 @@
|
|
1
|
-
Susy - Compass Plugin
|
2
|
-
=====================
|
3
|
-
|
4
|
-
Susy is a semantic CSS framework creator entirely native to
|
5
|
-
[Compass](http://compass-style.org/).
|
6
|
-
Susy is an expert at fluid grids in an elastic (or fluid, or fixed) shell that
|
7
|
-
will never activate that bloody side-scroll bar. Susy sets your width on the
|
8
|
-
outer element (`container`), adds a `max-width` of `100%` and builds the rest
|
9
|
-
of your grid in percentages. The philosophy and technique are based on
|
10
|
-
[Natalie Downe](http://natbat.net/)'s "[CSS
|
11
|
-
Systems](http://natbat.net/2008/Sep/28/css-systems/)" - which introduces
|
12
|
-
difficult math in the service of beautiful structure. With the power of
|
13
|
-
Compass/Sass, Susy will do that math for you.
|
14
|
-
|
15
|
-
Using simple mixins, columns can be created, suffixed, prefixed, and nested
|
16
|
-
easily - and always in flexible percentages.
|
17
|
-
|
18
|
-
Install
|
19
|
-
=======
|
20
|
-
|
21
|
-
sudo gem sources --add http://gemcutter.org/
|
22
|
-
sudo gem install compass-susy-plugin
|
23
|
-
|
24
|
-
Create a Susy-based Compass Project
|
25
|
-
===================================
|
26
|
-
|
27
|
-
compass -r susy -f susy <project name>
|
28
|
-
|
29
|
-
Then edit your `_base.sass`, `_defaults.sass`, `screen.sass` and `print.sass`
|
30
|
-
files accordingly. A reset is added automatically, and includes help for some
|
31
|
-
HTML5 elements.
|
32
|
-
|
33
|
-
Philosophy and Goals
|
34
|
-
--------------------
|
35
|
-
|
36
|
-
The method comes from [Natalie Downe](http://natbat.net/)'s "[CSS
|
37
|
-
Systems](http://natbat.net/2008/Sep/28/css-systems/)", but I'll cover it here.
|
38
|
-
|
39
|
-
It is important for accessibility and usability that we are:
|
40
|
-
|
41
|
-
* Responsive to text sizing: In order for our site to be accessible we need to
|
42
|
-
allow different font-sizes to be set by the client. In order to maintain
|
43
|
-
design integrity of proportions and line-lengths, the grid needs to respond
|
44
|
-
to those sizes.
|
45
|
-
|
46
|
-
* Responsive to window sizing: In order to maintain usability across
|
47
|
-
platforms/monitors, our grid needs to respond to the size of the viewport.
|
48
|
-
This is mainly an issue as the viewport shrinks and we are given a
|
49
|
-
side-scroll bar. No one likes that. On the large end our design integrity
|
50
|
-
and line lengths are more important than taking up all the possible space.
|
51
|
-
|
52
|
-
In order to achieve both goals we need to combine the best of the elastic
|
53
|
-
(em-based) and fluid (%-based) models. The solution is simple: First we build
|
54
|
-
a fluid grid, then place it inside an elastic shell, and apply a maximum width
|
55
|
-
to that shell so that it never exceeds the size of the viewport. It's simple
|
56
|
-
in theory, but daunting in practice, as you constantly have to adjust your
|
57
|
-
math based on the context.
|
58
|
-
|
59
|
-
But Susy harnesses the power of Compass and Sass to do all the math for you.
|
60
|
-
|
61
|
-
Grid Basics
|
62
|
-
===========
|
63
|
-
|
64
|
-
* Set up your default grid values (total columns, column width, gutter
|
65
|
-
width, side gutter width), your base font size, and important mixins
|
66
|
-
in `_base.sass`.
|
67
|
-
|
68
|
-
* Set defaults for all the important HTML tags in `_defaults.sass`. It's
|
69
|
-
better than using the browser defaults. And better than using ours.
|
70
|
-
|
71
|
-
* Create your grid in `screen.sass`: apply the `+susy` mixin to the `body`
|
72
|
-
element and the `+container` mixin to the element that contains the page
|
73
|
-
grid.
|
74
|
-
|
75
|
-
* Use the `+columns` mixin to declare the width in columns of an element,
|
76
|
-
or `+full` for any element spanning the full width of its context.
|
77
|
-
|
78
|
-
* Use `+alpha` and `+omega` to declare elements which include the first or
|
79
|
-
last column within their parent element (`+full` to declare both `+alpha`
|
80
|
-
and `+omega`). Note: `+alpha` is actually only needed in the very top level,
|
81
|
-
and does nothing in nested contexts. Neither is needed on a `+full` element.
|
82
|
-
|
83
|
-
* Use `+prefix` or `+suffix` to give the width (in columns) of an elements
|
84
|
-
left or right margin, or `+pad` to give both `+prefix` and `+suffix` at
|
85
|
-
once.
|
86
|
-
|
87
|
-
* In nested contexts, all of these mixins take an extra final argument, the
|
88
|
-
width in columns of the parent (nesting) element.
|
89
|
-
|
90
|
-
That's it for the basics! Here's a sample Susy grid layout:
|
91
|
-
|
92
|
-
body
|
93
|
-
+susy
|
94
|
-
|
95
|
-
#page
|
96
|
-
+container
|
97
|
-
|
98
|
-
#brand
|
99
|
-
+full
|
100
|
-
+pad(1,1)
|
101
|
-
h1
|
102
|
-
+full(8)
|
103
|
-
+pad(1,2,8)
|
104
|
-
|
105
|
-
#nav
|
106
|
-
+columns(2)
|
107
|
-
+alpha
|
108
|
-
|
109
|
-
#content
|
110
|
-
+columns(8)
|
111
|
-
+omega
|
112
|
-
#description
|
113
|
-
+columns(5,8)
|
114
|
-
#credit
|
115
|
-
+columns(3,8)
|
116
|
-
+omega(8)
|
117
|
-
|
118
|
-
Tutorial
|
119
|
-
========
|
120
|
-
|
121
|
-
For more details, read [the tutorial](http://www.oddbird.net/susy/tutorial/).
|
122
|
-
It's also included with Susy in the docs/ folder.
|
123
|
-
|
124
|
-
Extra Utility Mixins
|
125
|
-
=====================
|
126
|
-
|
127
|
-
Extra utilities are included in Susy's `utils.sass` file, with additional list
|
128
|
-
options, experimental (CSS3/proprietary) CSS, and more.
|
129
|
-
|
130
|
-
* `+show-grid(!src)` - Repeat the specified grid image on an element. Good for
|
131
|
-
testing your baseline grid.
|
132
|
-
|
133
|
-
* `+inline-block-list([!horizontalpadding])` - Make list items inline-block
|
134
|
-
when floating just won't do the trick (if you need them centered or right).
|
135
|
-
|
136
|
-
* `+hide` - Hide content from visual browsers while keeping accessability
|
137
|
-
intact.
|
138
|
-
|
139
|
-
* `+skip-link([!top = 0, !right, !bottom, !left])` - Hide a link, and then show
|
140
|
-
it again on focus. the TRBL settings allow you to place it absolutely on
|
141
|
-
display. Default will be top left of the positioning context.
|
142
|
-
|
143
|
-
And then the fun stuff in `_CSS3.sass`:
|
144
|
-
|
145
|
-
* `+opacity(!opacity)` - add cross-browser opacity settings (takes a range of
|
146
|
-
0 to 1). `+transprent` and `+opaque` are available as shortcuts.
|
147
|
-
|
148
|
-
* `+border-radius(!radius)` - Rounded corners in supporting browsers.
|
149
|
-
`+border-bottom-left-radius` etc. all work.
|
150
|
-
|
151
|
-
* `+box-sizing(!model)` - Set the box sizing model in supporting browsers.
|
152
|
-
|
153
|
-
* `+box-shadow(!verticaloffset, !horizontaloffset, !blur, !color)` -
|
154
|
-
Box-shadow in supporting browsers.
|
155
|
-
|
156
|
-
* `+column-count(!number)`, `+column-gap(!length)`, `+column-width(!length)`,
|
157
|
-
and `+column-rule(!width, !style, !color)` - CSS columns in supporting
|
158
|
-
browsers.
|
159
|
-
|
160
|
-
Advanced Options
|
161
|
-
================
|
162
|
-
|
163
|
-
Susy is built for flexibility, so that you always write the code you want to
|
164
|
-
write. While everything should 'just work' out of the box, there are plenty of
|
165
|
-
advanced options hidden inside. Here's a few:
|
166
|
-
|
167
|
-
* `!hacks` is a boolean constant that you can set in your base.sass file to
|
168
|
-
choose between using targeted hacks for IE (a variation of the star hack in
|
169
|
-
most cases) in your screen.css, or using a conditional-comment targeted
|
170
|
-
ie.css. All the needed mixins are available for either setting. `!hacks` is
|
171
|
-
true by default so there is no extra work maintaining multiple files unless
|
172
|
-
you want to.
|
173
|
-
|
174
|
-
Example 1:
|
175
|
-
|
176
|
-
!hacks = true
|
177
|
-
|
178
|
-
#nav
|
179
|
-
+inline-block-list
|
180
|
-
|
181
|
-
Example 2:
|
182
|
-
|
183
|
-
!hacks = false
|
184
|
-
|
185
|
-
(in screen.sass)
|
186
|
-
#nav
|
187
|
-
+inline-block-list
|
188
|
-
|
189
|
-
(in ie.sass)
|
190
|
-
#nav li
|
191
|
-
+ie-inline-block
|
192
|
-
|
193
|
-
It requires more maintenance on your part, but the result is a
|
194
|
-
hack-free output.
|
195
|
-
|
196
|
-
The Susy mixins that use either hacks or targeted mixins are
|
197
|
-
`+omega` (`+ie-omega([!right-floated = false])`), `+inline-block`
|
198
|
-
(`+ie-inline-block`), and `+inline-block-list` which sets
|
199
|
-
`+inline-block` on the list items.
|
200
|
-
|
201
|
-
The ie-specific mixins only add the needed ie-specific adjustments,
|
202
|
-
so they need to be used in addition to their counterparts, not on
|
203
|
-
their own.
|
204
|
-
|
205
|
-
* `gutter(!context)` is a function that you can call at any time to return the
|
206
|
-
size of a gutter in your given context using percentages. The number is
|
207
|
-
returned without units so that you can perform math on it. In order to use
|
208
|
-
it, you will have to add "%" to it.
|
209
|
-
|
210
|
-
Example:
|
211
|
-
|
212
|
-
#nav
|
213
|
-
padding-right= gutter(5) + "%"
|
214
|
-
|
215
|
-
* `columns(!number, !context)` returns the span of `!number` columns in
|
216
|
-
`!context` as a percentage (again without the units declared). This span
|
217
|
-
includes any gutters between the columns spanned.
|
218
|
-
|
219
|
-
Example:
|
220
|
-
|
221
|
-
#nav
|
222
|
-
padding-left= columns(3,5) + "%"
|
223
|
-
|
224
|
-
* `side_gutter()` is also available and takes no arguments since it is always
|
225
|
-
used at the top nesting level.
|
226
|
-
|
227
|
-
* `px2em()` takes one numeric argument representing the number of pixels you
|
228
|
-
want to mimic. The return is an em value (with no units declared) that
|
229
|
-
approximates that number of pixels. Useful for keeping your entire design
|
230
|
-
fluid.
|
231
|
-
|
232
|
-
Example:
|
233
|
-
|
234
|
-
#nav
|
235
|
-
border-bottom= px2em(2) + "em"
|