compass-edge 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.markdown +123 -0
- data/VERSION.yml +2 -2
- data/lib/compass/app_integration/stand_alone/installer.rb +3 -2
- data/lib/compass/commands/help.rb +15 -0
- data/lib/compass/commands/validate_project.rb +3 -1
- data/lib/compass/commands/write_configuration.rb +17 -2
- data/lib/compass/configuration/inheritance.rb +1 -1
- data/lib/compass/frameworks.rb +35 -0
- data/lib/compass/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +1 -1
- data/lib/compass/frameworks/blueprint/templates/buttons/manifest.rb +12 -0
- data/lib/compass/frameworks/blueprint/templates/link_icons/manifest.rb +13 -0
- data/lib/compass/frameworks/blueprint/templates/project/manifest.rb +24 -0
- data/lib/compass/frameworks/compass/stylesheets/_compass.sass +2 -1
- data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/_css3.sass → _css3.sass} +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass +0 -1
- data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_border_radius.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_box_shadow.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_box_sizing.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_columns.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_inline_block.sass +0 -0
- data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_opacity.sass +0 -0
- data/lib/compass/frameworks/compass/templates/ellipsis/manifest.rb +26 -1
- data/lib/compass/frameworks/compass/templates/extension/manifest.rb +16 -2
- data/lib/compass/frameworks/compass/templates/project/USAGE.markdown +32 -0
- data/lib/compass/frameworks/compass/templates/project/manifest.rb +1 -0
- data/lib/compass/installers/manifest.rb +32 -1
- metadata +10 -9
data/CHANGELOG.markdown
CHANGED
|
@@ -1,6 +1,129 @@
|
|
|
1
1
|
COMPASS CHANGELOG
|
|
2
2
|
=================
|
|
3
3
|
|
|
4
|
+
0.10.0 (UNRELEASED)
|
|
5
|
+
------------
|
|
6
|
+
|
|
7
|
+
Command-Line:
|
|
8
|
+
|
|
9
|
+
* The compass command-line tool has been re-written to allow be easier to
|
|
10
|
+
use and be more flexible. The old command line is still supported at
|
|
11
|
+
this time. "compass help" will get you started on using the new
|
|
12
|
+
command line syntax.
|
|
13
|
+
* Allow specification of a height for the grid image
|
|
14
|
+
* For the truly hardcore compass users, you may now create a
|
|
15
|
+
compass project using "compass create my_project --bare"
|
|
16
|
+
and you'll have a completely bare project created for you with no
|
|
17
|
+
sass files provided for you.
|
|
18
|
+
* Get stats on your compass project with "compass stats". You'll
|
|
19
|
+
need to install the "css_parser" ruby gem to get stats on your
|
|
20
|
+
css files.
|
|
21
|
+
|
|
22
|
+
Configuration:
|
|
23
|
+
|
|
24
|
+
* The entire configuration infrastructure has been re-written to make it
|
|
25
|
+
easier to support the various sources of configuration data (project type,
|
|
26
|
+
config file, command line, and hard coded defaults)
|
|
27
|
+
* Whether to generate relative links to assets is now controlled by a
|
|
28
|
+
separate boolean configuration flag called `relative_assets` in the
|
|
29
|
+
configuration file and `--relative-assets` on the command line.
|
|
30
|
+
Setting `http_images_path` to `:relative` is deprecated.
|
|
31
|
+
* You may now configure the http locations for your project by simply setting
|
|
32
|
+
`http_path` for the top level path of the project. You
|
|
33
|
+
may also set `http_images_dir`, `http_stylesheets_dir`, and
|
|
34
|
+
`http_javascripts_dir` relative to the `http_path` instead of
|
|
35
|
+
setting the absolute `http_XXX_path` counterparts.
|
|
36
|
+
|
|
37
|
+
Compass Core:
|
|
38
|
+
|
|
39
|
+
* A new helper function `stylesheet_url(path)` can now be used to refer
|
|
40
|
+
to assets that are relative to the css directory.
|
|
41
|
+
* Compass sprite mixins are now more flexible and feature rich.
|
|
42
|
+
* Fixed the append_selector function to allow comma-delimited selectors
|
|
43
|
+
for both arguments instead of just the first
|
|
44
|
+
* There is no longer any outline on unstyled links in the :active and :focused states.
|
|
45
|
+
* IE6 bug fixes for sticky-footer
|
|
46
|
+
* New CSS3 Compatibility Mixins. You can import them all with `@import compass/css3`
|
|
47
|
+
* `+opacity(amount)` where amount should be between 0 and 1, where 0 is transparent and 1 is opaque.
|
|
48
|
+
* `+opaque` and `+transparent` mixins for convenience. Built on top of the opacity mixin.
|
|
49
|
+
* `+border-radius(amount)` as well as the following convenience mixins:
|
|
50
|
+
* `+border-top-left-radius(amount)`
|
|
51
|
+
* `+border-top-right-radius(amount)`
|
|
52
|
+
* `+border-top-right-radius(amount)`,
|
|
53
|
+
* `+border-bottom-left-radius(amount)`
|
|
54
|
+
* `+border-bottom-right-radius(amount)`
|
|
55
|
+
* `+border-top-radius(amount)`
|
|
56
|
+
* `+border-right-radius(amount)`
|
|
57
|
+
* `+border-left-radius(amount)`
|
|
58
|
+
* `+border-bottom-radius(amount)`
|
|
59
|
+
* `+box-shadow(!horiz_offset, !vert_offset, !blur, !color)`
|
|
60
|
+
* `+box-sizing(!sizing_mode)`
|
|
61
|
+
* Column support via the following mixins:
|
|
62
|
+
* `+column-count`
|
|
63
|
+
* `+column-gap`
|
|
64
|
+
* `+column-width`
|
|
65
|
+
* `+column-rule-width`
|
|
66
|
+
* `+column-rule-style`
|
|
67
|
+
* `+column-rule-color`
|
|
68
|
+
* `+column-rule`
|
|
69
|
+
* The import for `+inline-block` has moved from compass/utilities/general/inline_block
|
|
70
|
+
to compass/css3/inline_block
|
|
71
|
+
* The import for `+opacity` has moved from compass/utilities/general/opacity
|
|
72
|
+
to compass/css3/opacity
|
|
73
|
+
* Note: If you are using the `+opacity` or `+inline-block` mixins,
|
|
74
|
+
you may need to update your imports.
|
|
75
|
+
|
|
76
|
+
Blueprint:
|
|
77
|
+
|
|
78
|
+
* Make the primary blueprint mixins easier to use by allowing them to be nested when passing true as the first argument.
|
|
79
|
+
The old approach of passing a selector as the first argument is now deprecated in favor of a simple flag to indicate nesting or not.
|
|
80
|
+
|
|
81
|
+
YUI:
|
|
82
|
+
|
|
83
|
+
* YUI was upgraded to 2.7.0
|
|
84
|
+
* Yahoo has deprecated the YUI CSS framework, as such YUI has been extracted to a plugin.
|
|
85
|
+
If you use it, please install it with: `sudo gem install compass-yui`
|
|
86
|
+
|
|
87
|
+
Extensions:
|
|
88
|
+
|
|
89
|
+
* Extensions can now be installed locally by unpacking them into a project's
|
|
90
|
+
"extensions" directory.
|
|
91
|
+
* Extensions can deliver html to projects if they like. The html can be in
|
|
92
|
+
haml and will be transformed to html.
|
|
93
|
+
* All files can be processed using ERB before being copied into the user's
|
|
94
|
+
project.
|
|
95
|
+
* Compass extensions can now add support for other application frameworks.
|
|
96
|
+
These extensions can help compass understand the project structure of that
|
|
97
|
+
framework as well as provide runtime integration for ruby-based apps.
|
|
98
|
+
Contact me if you plan to do this -- the first couple times may be a little
|
|
99
|
+
rough.
|
|
100
|
+
* Compass extensions can now add new command line commands. Contact me if you
|
|
101
|
+
plan to do this -- the first couple times may be a little rough.
|
|
102
|
+
* Extensions can now provide help documentation just after a project is
|
|
103
|
+
created and on demand when the user uses the command line help system.
|
|
104
|
+
This can be done via the manifest file or by adding a USAGE.markdown file
|
|
105
|
+
at the top level of the framework template.
|
|
106
|
+
|
|
107
|
+
Miscellaneous:
|
|
108
|
+
|
|
109
|
+
* The compass configuration object is no longer a singleton, this makes it
|
|
110
|
+
possible for other ruby software to manage multiple compass projects at a
|
|
111
|
+
time.
|
|
112
|
+
* Compass no longer requires rubygems in order to work, this is a ruby
|
|
113
|
+
best-practice.
|
|
114
|
+
* All sass provided by compass now uses css-style property syntax.
|
|
115
|
+
* The command line tool is now tested using the cucumber testing framework.
|
|
116
|
+
|
|
117
|
+
Many thanks to the following Contributors:
|
|
118
|
+
|
|
119
|
+
* Brandon Mathis - CSS3 (+opacity, +border-radius) and sprites
|
|
120
|
+
* Eric Meyer - CSS3 (+box-shadow, +columns, +box-sizing)
|
|
121
|
+
* Jacques Crocker - Merb Compatibility fixes
|
|
122
|
+
* Gabriel Mansour - Fixes to +unstyled-link
|
|
123
|
+
* John Debs - IE6 Fixes for +sticky-footer
|
|
124
|
+
* Brian Johnson - Upgraded to YUI 2.7.0
|
|
125
|
+
* Beau Smith - fixing my dyslexia.
|
|
126
|
+
|
|
4
127
|
0.8.12 (August 22, 2009)
|
|
5
128
|
------------------------
|
|
6
129
|
|
data/VERSION.yml
CHANGED
|
@@ -44,7 +44,7 @@ module Compass
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def finalize(options = {})
|
|
47
|
-
if options[:create]
|
|
47
|
+
if options[:create] && !manifest.welcome_message_options[:replace]
|
|
48
48
|
puts <<-NEXTSTEPS
|
|
49
49
|
|
|
50
50
|
*********************************************************************
|
|
@@ -71,7 +71,8 @@ More Resources:
|
|
|
71
71
|
|
|
72
72
|
NEXTSTEPS
|
|
73
73
|
end
|
|
74
|
-
if manifest.
|
|
74
|
+
puts manifest.welcome_message if manifest.welcome_message
|
|
75
|
+
if manifest.has_stylesheet? && !manifest.welcome_message_options[:replace]
|
|
75
76
|
puts "\nTo import your new stylesheets add the following lines of HTML (or equivalent) to your webpage:"
|
|
76
77
|
puts stylesheet_links
|
|
77
78
|
end
|
|
@@ -21,6 +21,19 @@ Available commands:
|
|
|
21
21
|
end
|
|
22
22
|
banner << "\n"
|
|
23
23
|
end
|
|
24
|
+
|
|
25
|
+
banner << "\nAvailable Frameworks & Patterns:\n\n"
|
|
26
|
+
Compass::Frameworks::ALL.each do |framework|
|
|
27
|
+
banner << " * #{framework.name}\n"
|
|
28
|
+
framework.template_directories.each do |pattern|
|
|
29
|
+
banner << " - #{framework.name}/#{pattern}"
|
|
30
|
+
if description = framework.manifest(pattern).description
|
|
31
|
+
banner << "\t- #{description}"
|
|
32
|
+
end
|
|
33
|
+
banner << "\n"
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
24
37
|
opts.banner = banner
|
|
25
38
|
|
|
26
39
|
super
|
|
@@ -53,6 +66,8 @@ Available commands:
|
|
|
53
66
|
$command = options[:help_command]
|
|
54
67
|
puts Compass::Commands[options[:help_command]].usage
|
|
55
68
|
$command = "help"
|
|
69
|
+
elsif Compass::Frameworks.template_exists? options[:help_command]
|
|
70
|
+
puts Compass::Frameworks.template_usage(options[:help_command])
|
|
56
71
|
else
|
|
57
72
|
raise OptionParser::ParseError, "No such command: #{options[:help_command]}"
|
|
58
73
|
end
|
|
@@ -31,7 +31,9 @@ module Compass
|
|
|
31
31
|
def perform
|
|
32
32
|
require 'compass/validator'
|
|
33
33
|
UpdateProject.new(working_path, options).perform
|
|
34
|
-
|
|
34
|
+
Dir.chdir Compass.configuration.project_path do
|
|
35
|
+
Validator.new(project_css_subdirectory).validate()
|
|
36
|
+
end
|
|
35
37
|
end
|
|
36
38
|
|
|
37
39
|
class << self
|
|
@@ -17,6 +17,9 @@ module Compass
|
|
|
17
17
|
|
|
18
18
|
Options:
|
|
19
19
|
}.strip.split("\n").map{|l| l.gsub(/^ {0,10}/,'')}.join("\n")
|
|
20
|
+
opts.on("--debug [PROPERTY]", "Debug your configuration by printing out details.") do |prop|
|
|
21
|
+
self.options[:debug] = prop.nil? ? true : prop.to_sym
|
|
22
|
+
end
|
|
20
23
|
|
|
21
24
|
super
|
|
22
25
|
end
|
|
@@ -37,8 +40,20 @@ module Compass
|
|
|
37
40
|
end
|
|
38
41
|
|
|
39
42
|
def perform
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
if options[:debug]
|
|
44
|
+
Compass.configuration.debug.each do |prop, values|
|
|
45
|
+
if options[:debug].is_a?(Symbol)
|
|
46
|
+
next unless prop == options[:debug]
|
|
47
|
+
end
|
|
48
|
+
puts "***** #{prop} = #{values.first[:resolved].inspect} *****"
|
|
49
|
+
[:default, :value, :raw, :resolved].each do |kind|
|
|
50
|
+
puts "#{kind}: " + values.inject([]){|m, v| m << v[kind]}.map{|v| v.nil? ? '-' : v.inspect}.join(", ")
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
else
|
|
54
|
+
directory projectize(File.dirname(options[:configuration_file]))
|
|
55
|
+
installer.write_configuration_files(options[:configuration_file])
|
|
56
|
+
end
|
|
42
57
|
end
|
|
43
58
|
|
|
44
59
|
def installer_args
|
|
@@ -156,7 +156,7 @@ module Compass
|
|
|
156
156
|
:raw => (instance.send("raw_#{prop}") rescue nil),
|
|
157
157
|
:value => (instance.send("#{prop}_without_default") rescue nil),
|
|
158
158
|
:default => (instance.send("default_#{prop}") rescue nil),
|
|
159
|
-
:
|
|
159
|
+
:resolved => instance.send(prop)
|
|
160
160
|
}
|
|
161
161
|
end
|
|
162
162
|
normalized_attrs[prop] = values
|
data/lib/compass/frameworks.rb
CHANGED
|
@@ -15,6 +15,16 @@ module Compass
|
|
|
15
15
|
@templates_directory = options[:templates_directory] || File.join(path, 'templates')
|
|
16
16
|
@stylesheets_directory = options[:stylesheets_directory] || File.join(path, 'stylesheets')
|
|
17
17
|
end
|
|
18
|
+
def template_directories
|
|
19
|
+
Dir.glob(File.join(templates_directory, "*")).map{|f| File.basename(f)}
|
|
20
|
+
end
|
|
21
|
+
def manifest_file(pattern)
|
|
22
|
+
File.join(templates_directory, pattern.to_s, "manifest.rb")
|
|
23
|
+
end
|
|
24
|
+
def manifest(pattern, options = {})
|
|
25
|
+
options[:pattern_name] ||= pattern
|
|
26
|
+
Compass::Installers::Manifest.new(manifest_file(pattern), options)
|
|
27
|
+
end
|
|
18
28
|
end
|
|
19
29
|
|
|
20
30
|
def register(name, *arguments)
|
|
@@ -47,6 +57,31 @@ module Compass
|
|
|
47
57
|
end
|
|
48
58
|
end
|
|
49
59
|
|
|
60
|
+
def template_exists?(template)
|
|
61
|
+
framework_name, template = template.split(%r{/}, 2)
|
|
62
|
+
template ||= "project"
|
|
63
|
+
if framework = self[framework_name]
|
|
64
|
+
return File.directory?(File.join(framework.templates_directory, template))
|
|
65
|
+
end
|
|
66
|
+
false
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def template_usage(template)
|
|
70
|
+
framework_name, template = template.split(%r{/}, 2)
|
|
71
|
+
framework = self[framework_name]
|
|
72
|
+
template ||= "project"
|
|
73
|
+
usage_file = File.join(framework.templates_directory, template, "USAGE.markdown")
|
|
74
|
+
if File.exists?(usage_file)
|
|
75
|
+
File.read(usage_file)
|
|
76
|
+
elsif help = framework.manifest(template).help
|
|
77
|
+
help
|
|
78
|
+
else
|
|
79
|
+
<<-END.gsub(/^ {8}/, '')
|
|
80
|
+
No Usage!
|
|
81
|
+
END
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
50
85
|
end
|
|
51
86
|
end
|
|
52
87
|
|
|
@@ -1,5 +1,17 @@
|
|
|
1
|
+
description "Button Plugin"
|
|
1
2
|
stylesheet 'buttons.sass', :media => 'screen, projection'
|
|
2
3
|
|
|
3
4
|
image 'buttons/cross.png'
|
|
4
5
|
image 'buttons/key.png'
|
|
5
6
|
image 'buttons/tick.png'
|
|
7
|
+
|
|
8
|
+
help %Q{
|
|
9
|
+
To install the button plugin:
|
|
10
|
+
compass init --using blueprint/buttons
|
|
11
|
+
|
|
12
|
+
The buttons.sass file is just a recommendation to show you how to use the button mixins.
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
welcome_message %Q{
|
|
16
|
+
The buttons.sass file is just a recommendation to show you how to use the button mixins.
|
|
17
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
description "Icons for common types of links"
|
|
2
|
+
|
|
1
3
|
stylesheet "link_icons.sass", :media => 'screen, projection'
|
|
2
4
|
|
|
3
5
|
image 'link_icons/doc.png'
|
|
@@ -8,3 +10,14 @@ image 'link_icons/im.png'
|
|
|
8
10
|
image 'link_icons/pdf.png'
|
|
9
11
|
image 'link_icons/visited.png'
|
|
10
12
|
image 'link_icons/xls.png'
|
|
13
|
+
|
|
14
|
+
help %Q{
|
|
15
|
+
To install the link_icons plugin:
|
|
16
|
+
compass init --using blueprint/link_icons
|
|
17
|
+
|
|
18
|
+
The link_icons.sass file is just a recommendation to show you how to use the link mixins.
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
welcome_message %Q{
|
|
22
|
+
The link_icons.sass file is just a recommendation to show you how to use the link mixins.
|
|
23
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
description "The blueprint framework."
|
|
2
|
+
|
|
1
3
|
stylesheet 'screen.sass', :media => 'screen, projection'
|
|
2
4
|
stylesheet 'partials/_base.sass'
|
|
3
5
|
stylesheet 'print.sass', :media => 'print'
|
|
@@ -6,3 +8,25 @@ stylesheet 'ie.sass', :media => 'screen, projection', :condition => "lt IE 8
|
|
|
6
8
|
image 'grid.png'
|
|
7
9
|
|
|
8
10
|
html 'welcome.html.haml', :erb => true
|
|
11
|
+
|
|
12
|
+
help %Q{
|
|
13
|
+
Please see the blueprint website for documentation on how blueprint works:
|
|
14
|
+
|
|
15
|
+
http://blueprintcss.org/
|
|
16
|
+
|
|
17
|
+
Docs on the compass port of blueprint can be found on the wiki:
|
|
18
|
+
|
|
19
|
+
http://wiki.github.com/chriseppstein/compass/blueprint-documentation
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
welcome_message %Q{
|
|
23
|
+
Please see the blueprint website for documentation on how blueprint works:
|
|
24
|
+
|
|
25
|
+
http://blueprintcss.org/
|
|
26
|
+
|
|
27
|
+
Docs on the compass port of blueprint can be found on the wiki:
|
|
28
|
+
|
|
29
|
+
http://wiki.github.com/chriseppstein/compass/blueprint-documentation
|
|
30
|
+
|
|
31
|
+
To get started, edit the screen.sass file and read the comments and code there.
|
|
32
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@import compass/utilities.sass
|
|
1
|
+
@import compass/utilities.sass
|
|
2
|
+
@import compass/css3.sass
|
|
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_border_radius.sass
RENAMED
|
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_box_shadow.sass
RENAMED
|
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_box_sizing.sass
RENAMED
|
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_columns.sass
RENAMED
|
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_inline_block.sass
RENAMED
|
File without changes
|
data/lib/compass/frameworks/compass/stylesheets/compass/{utilities/css3 → css3}/_opacity.sass
RENAMED
|
File without changes
|
|
@@ -1,2 +1,27 @@
|
|
|
1
|
+
description "Plugin for cross-browser ellipsis truncated text."
|
|
2
|
+
|
|
1
3
|
file 'xml/ellipsis.xml', :like => :css
|
|
2
|
-
stylesheet 'ellipsis.sass'
|
|
4
|
+
stylesheet 'ellipsis.sass'
|
|
5
|
+
|
|
6
|
+
help %Q{
|
|
7
|
+
First, install the plugin to get the xml file that makes this work in firfox:
|
|
8
|
+
|
|
9
|
+
compass init --using blueprint/link_icons
|
|
10
|
+
|
|
11
|
+
Then mix +ellipsis into your selectors to enable ellipsis
|
|
12
|
+
there when text gets too long.
|
|
13
|
+
|
|
14
|
+
The ellipsis.sass file is just an example for how to use this plugin,
|
|
15
|
+
feel free to delete it.
|
|
16
|
+
|
|
17
|
+
For more information see:
|
|
18
|
+
http://mattsnider.com/css/css-string-truncation-with-ellipsis/
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
welcome_message %Q{
|
|
22
|
+
The ellipsis.sass file is just an example for how to use this plugin,
|
|
23
|
+
feel free to delete it.
|
|
24
|
+
|
|
25
|
+
For more information see:
|
|
26
|
+
http://mattsnider.com/css/css-string-truncation-with-ellipsis/
|
|
27
|
+
}
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
description "Generate a compass extension."
|
|
2
|
+
|
|
3
|
+
file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:pattern_name]||options[:project_name]||'main')}.sass"
|
|
2
4
|
file 'templates/project/manifest.rb'
|
|
3
5
|
file 'templates/project/screen.sass'
|
|
4
6
|
|
|
7
|
+
help %Q{
|
|
8
|
+
To generate a compass extension:
|
|
9
|
+
compass create my_extension --using compass/extension
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
welcome_message %Q{
|
|
13
|
+
For a full tutorial on how to build your own extension see:
|
|
14
|
+
|
|
15
|
+
http://github.com/chriseppstein/compass/blob/edge/docs/EXTENSIONS.markdown
|
|
16
|
+
|
|
17
|
+
}, :replace => true
|
|
18
|
+
|
|
5
19
|
no_configuration_file!
|
|
6
|
-
skip_compilation!
|
|
20
|
+
skip_compilation!
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
When no framework is specified, a new compass project is set up with three stylesheets:
|
|
2
|
+
|
|
3
|
+
* screen.sass
|
|
4
|
+
* print.sass
|
|
5
|
+
* ie.sass
|
|
6
|
+
|
|
7
|
+
It is expected that you will link your html to these like so:
|
|
8
|
+
|
|
9
|
+
<head>
|
|
10
|
+
<link href="/stylesheets/screen.css" media="screen, projection"
|
|
11
|
+
rel="stylesheet" type="text/css" />
|
|
12
|
+
<link href="/stylesheets/print.css" media="print"
|
|
13
|
+
rel="stylesheet" type="text/css" />
|
|
14
|
+
<!--[if IE]>
|
|
15
|
+
<link href="/stylesheets/ie.css" media="screen, projection"
|
|
16
|
+
rel="stylesheet" type="text/css" />
|
|
17
|
+
<![endif]-->
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
You don't have to use these three stylesheets, they are just a recommendation.
|
|
21
|
+
You can rename them, make new stylesheets, and delete them. Compass will
|
|
22
|
+
happily compile whatever sass files you place into your project.
|
|
23
|
+
|
|
24
|
+
Any folders you create in your source directory with sass files in them will be folders
|
|
25
|
+
that get created with css files in them when compiled.
|
|
26
|
+
|
|
27
|
+
Sass files beginning with an underscore are called partials, they are not directly
|
|
28
|
+
compiled to their own css file. You can use these partials by importing them
|
|
29
|
+
into other stylesheets. This is useful for keeping your stylesheets small and manageable
|
|
30
|
+
and single-focused. It is common to create a file called _base.sass at the top level
|
|
31
|
+
of your stylesheets and to import this to set up project-wide constants and mixins.
|
|
32
|
+
|
|
@@ -40,6 +40,37 @@ module Compass
|
|
|
40
40
|
type :file
|
|
41
41
|
type :html
|
|
42
42
|
|
|
43
|
+
def help(value = nil)
|
|
44
|
+
if value
|
|
45
|
+
@help = value
|
|
46
|
+
else
|
|
47
|
+
@help
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
attr_reader :welcome_message_options
|
|
52
|
+
|
|
53
|
+
def welcome_message(value = nil, options = {})
|
|
54
|
+
if value
|
|
55
|
+
@welcome_message = value
|
|
56
|
+
@welcome_message_options = options
|
|
57
|
+
else
|
|
58
|
+
@welcome_message
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def welcome_message_options
|
|
63
|
+
@welcome_message_options || {}
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def description(value = nil)
|
|
67
|
+
if value
|
|
68
|
+
@description = value
|
|
69
|
+
else
|
|
70
|
+
@description
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
43
74
|
# Enumerates over the manifest files
|
|
44
75
|
def each
|
|
45
76
|
@entries.each {|e| yield e}
|
|
@@ -76,4 +107,4 @@ module Compass
|
|
|
76
107
|
end
|
|
77
108
|
|
|
78
109
|
end
|
|
79
|
-
end
|
|
110
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: compass-edge
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Eppstein
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-11-01 00:00:00 -07:00
|
|
13
13
|
default_executable: compass
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -239,12 +239,18 @@ files:
|
|
|
239
239
|
- lib/compass/frameworks/blueprint/templates/project/screen.sass
|
|
240
240
|
- lib/compass/frameworks/blueprint/templates/project/welcome.html.haml
|
|
241
241
|
- lib/compass/frameworks/compass/stylesheets/_compass.sass
|
|
242
|
+
- lib/compass/frameworks/compass/stylesheets/compass/_css3.sass
|
|
242
243
|
- lib/compass/frameworks/compass/stylesheets/compass/_layout.sass
|
|
243
244
|
- lib/compass/frameworks/compass/stylesheets/compass/_misc.sass
|
|
244
245
|
- lib/compass/frameworks/compass/stylesheets/compass/_reset.sass
|
|
245
246
|
- lib/compass/frameworks/compass/stylesheets/compass/_utilities.sass
|
|
247
|
+
- lib/compass/frameworks/compass/stylesheets/compass/css3/_border_radius.sass
|
|
248
|
+
- lib/compass/frameworks/compass/stylesheets/compass/css3/_box_shadow.sass
|
|
249
|
+
- lib/compass/frameworks/compass/stylesheets/compass/css3/_box_sizing.sass
|
|
250
|
+
- lib/compass/frameworks/compass/stylesheets/compass/css3/_columns.sass
|
|
251
|
+
- lib/compass/frameworks/compass/stylesheets/compass/css3/_inline_block.sass
|
|
252
|
+
- lib/compass/frameworks/compass/stylesheets/compass/css3/_opacity.sass
|
|
246
253
|
- lib/compass/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
|
|
247
|
-
- lib/compass/frameworks/compass/stylesheets/compass/utilities/_css3.sass
|
|
248
254
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/_general.sass
|
|
249
255
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/_links.sass
|
|
250
256
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/_lists.sass
|
|
@@ -252,12 +258,6 @@ files:
|
|
|
252
258
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/_sprites.sass
|
|
253
259
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/_tables.sass
|
|
254
260
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/_text.sass
|
|
255
|
-
- lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_border_radius.sass
|
|
256
|
-
- lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_shadow.sass
|
|
257
|
-
- lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_box_sizing.sass
|
|
258
|
-
- lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_columns.sass
|
|
259
|
-
- lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_inline_block.sass
|
|
260
|
-
- lib/compass/frameworks/compass/stylesheets/compass/utilities/css3/_opacity.sass
|
|
261
261
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass
|
|
262
262
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_float.sass
|
|
263
263
|
- lib/compass/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass
|
|
@@ -284,6 +284,7 @@ files:
|
|
|
284
284
|
- lib/compass/frameworks/compass/templates/extension/stylesheets/main.sass
|
|
285
285
|
- lib/compass/frameworks/compass/templates/extension/templates/project/manifest.rb
|
|
286
286
|
- lib/compass/frameworks/compass/templates/extension/templates/project/screen.sass
|
|
287
|
+
- lib/compass/frameworks/compass/templates/project/USAGE.markdown
|
|
287
288
|
- lib/compass/frameworks/compass/templates/project/ie.sass
|
|
288
289
|
- lib/compass/frameworks/compass/templates/project/manifest.rb
|
|
289
290
|
- lib/compass/frameworks/compass/templates/project/print.sass
|