compass-cssfault 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +8 -0
- data/Rakefile +55 -0
- data/VERSION +1 -0
- data/compass-cssfault.gemspec +49 -0
- data/lib/cssfault/compass_plugin.rb +1 -0
- data/lib/cssfault/stylesheets/_cssfault.sass +2 -0
- data/lib/cssfault/stylesheets/modules/_behaviour.sass +22 -0
- data/lib/cssfault/stylesheets/modules/_layout.sass +94 -0
- data/lib/cssfault.rb +1 -0
- metadata +67 -0
data/.document
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Choan Galvez
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "compass-cssfault"
|
8
|
+
gem.summary = %Q{A plugin for Compass tailored for myself}
|
9
|
+
gem.description = %Q{Easily create reusable layouts with Sass and Compass}
|
10
|
+
gem.email = "choan.galvez@gmail.com"
|
11
|
+
gem.homepage = "http://github.com/choan/compass-cssfault"
|
12
|
+
gem.authors = ["Choan Gálvez"]
|
13
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
|
+
end
|
15
|
+
rescue LoadError
|
16
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
17
|
+
end
|
18
|
+
|
19
|
+
require 'rake/testtask'
|
20
|
+
Rake::TestTask.new(:test) do |test|
|
21
|
+
test.libs << 'lib' << 'test'
|
22
|
+
test.pattern = 'test/**/*_test.rb'
|
23
|
+
test.verbose = true
|
24
|
+
end
|
25
|
+
|
26
|
+
begin
|
27
|
+
require 'rcov/rcovtask'
|
28
|
+
Rcov::RcovTask.new do |test|
|
29
|
+
test.libs << 'test'
|
30
|
+
test.pattern = 'test/**/*_test.rb'
|
31
|
+
test.verbose = true
|
32
|
+
end
|
33
|
+
rescue LoadError
|
34
|
+
task :rcov do
|
35
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
task :test => :check_dependencies
|
40
|
+
|
41
|
+
task :default => :test
|
42
|
+
|
43
|
+
require 'rake/rdoctask'
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
if File.exist?('VERSION')
|
46
|
+
version = File.read('VERSION')
|
47
|
+
else
|
48
|
+
version = ""
|
49
|
+
end
|
50
|
+
|
51
|
+
rdoc.rdoc_dir = 'rdoc'
|
52
|
+
rdoc.title = "compass-cssfault #{version}"
|
53
|
+
rdoc.rdoc_files.include('README*')
|
54
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
55
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{compass-cssfault}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Choan G\303\241lvez"]
|
12
|
+
s.date = %q{2010-02-06}
|
13
|
+
s.description = %q{Easily create reusable layouts with Sass and Compass}
|
14
|
+
s.email = %q{choan.galvez@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"compass-cssfault.gemspec",
|
27
|
+
"lib/cssfault.rb",
|
28
|
+
"lib/cssfault/compass_plugin.rb",
|
29
|
+
"lib/cssfault/stylesheets/_cssfault.sass",
|
30
|
+
"lib/cssfault/stylesheets/modules/_behaviour.sass",
|
31
|
+
"lib/cssfault/stylesheets/modules/_layout.sass"
|
32
|
+
]
|
33
|
+
s.homepage = %q{http://github.com/choan/compass-cssfault}
|
34
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
35
|
+
s.require_paths = ["lib"]
|
36
|
+
s.rubygems_version = %q{1.3.5}
|
37
|
+
s.summary = %q{A plugin for Compass tailored for myself}
|
38
|
+
|
39
|
+
if s.respond_to? :specification_version then
|
40
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
41
|
+
s.specification_version = 3
|
42
|
+
|
43
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
44
|
+
else
|
45
|
+
end
|
46
|
+
else
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
Compass::Frameworks.register('cssfault', File.expand_path(File.dirname(__FILE__)))
|
@@ -0,0 +1,22 @@
|
|
1
|
+
=underline_avoid(!selectors = "")
|
2
|
+
@if !selectors != ""
|
3
|
+
#{!selectors}
|
4
|
+
+underline_avoid
|
5
|
+
@else
|
6
|
+
+_underline_avoid
|
7
|
+
|
8
|
+
=_underline_avoid
|
9
|
+
a
|
10
|
+
text-decoration: none
|
11
|
+
|
12
|
+
=underline_on_hover(!selectors = "")
|
13
|
+
@if !selectors != ""
|
14
|
+
#{!selectors}
|
15
|
+
+underline_on_hover
|
16
|
+
@else
|
17
|
+
+_underline_on_hover
|
18
|
+
|
19
|
+
=_underline_on_hover
|
20
|
+
a:hover
|
21
|
+
text-decoration: underline
|
22
|
+
|
@@ -0,0 +1,94 @@
|
|
1
|
+
!layout_width ||= 960px
|
2
|
+
!layout_cols ||= 12
|
3
|
+
!layout_gap_width ||= 10px
|
4
|
+
!selector_main_col ||= ".main"
|
5
|
+
!selector_bar_1 ||= ".bar-1"
|
6
|
+
!selector_bar_2 ||= ".bar-2"
|
7
|
+
|
8
|
+
|
9
|
+
!layout_col_width = (!layout_width - !layout_cols * 2 * !layout_gap_width) / !layout_cols
|
10
|
+
|
11
|
+
=column_width(!size, !reserve = 0)
|
12
|
+
width = !size * !layout_col_width + (!size * 2 - 2) * !layout_gap_width - !reserve * 2
|
13
|
+
|
14
|
+
=column(!size = 2, !pad = 0, !border = 0)
|
15
|
+
float: left
|
16
|
+
display: inline
|
17
|
+
+column_width(!size, !pad + !border)
|
18
|
+
margin-left = !layout_gap_width
|
19
|
+
margin-right = !layout_gap_width
|
20
|
+
@if !pad != 0
|
21
|
+
padding = !pad
|
22
|
+
|
23
|
+
=alpha
|
24
|
+
margin-left: 0
|
25
|
+
|
26
|
+
=omega
|
27
|
+
margin-right: 0
|
28
|
+
|
29
|
+
=layout(!main, !bar_1, !bar_2 = "")
|
30
|
+
#{!selector_main_col}
|
31
|
+
+column(!main)
|
32
|
+
#{!selector_bar_1}
|
33
|
+
+column(!bar_1)
|
34
|
+
@if !bar_2 != ""
|
35
|
+
#{!selector_bar_2}
|
36
|
+
+column(!bar_2)
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
=clearfix(!selectors = "")
|
41
|
+
@if !selectors != ""
|
42
|
+
#{!selectors}
|
43
|
+
+clearfix
|
44
|
+
@else
|
45
|
+
+_clearfix
|
46
|
+
|
47
|
+
=_clearfix
|
48
|
+
zoom: 1
|
49
|
+
&:after
|
50
|
+
content: " "
|
51
|
+
display: block
|
52
|
+
height: 0
|
53
|
+
clear: both
|
54
|
+
visibility: hidden
|
55
|
+
|
56
|
+
=setHasLayout
|
57
|
+
zoom: 1
|
58
|
+
|
59
|
+
=layout_container
|
60
|
+
+clearfix
|
61
|
+
|
62
|
+
=push(!size)
|
63
|
+
margin-left = !size * !layout_col_width + (!size * 2 + 1) * !layout_gap_width
|
64
|
+
|
65
|
+
=pull(!size)
|
66
|
+
+push(-!size)
|
67
|
+
|
68
|
+
=zero
|
69
|
+
margin: 0
|
70
|
+
padding: 0
|
71
|
+
|
72
|
+
=test_nesting
|
73
|
+
div
|
74
|
+
background: #ddd
|
75
|
+
div
|
76
|
+
background: #bbb
|
77
|
+
div
|
78
|
+
background: #aaa
|
79
|
+
div
|
80
|
+
background: #999
|
81
|
+
div
|
82
|
+
background: #eee
|
83
|
+
|
84
|
+
=full_width_block(!selectors = "")
|
85
|
+
@if !selectors != ""
|
86
|
+
#{!selectors}
|
87
|
+
+full_width_block
|
88
|
+
@else
|
89
|
+
+_full_width_block
|
90
|
+
|
91
|
+
=_full_width_block
|
92
|
+
margin = 0 !layout_gap_width
|
93
|
+
|
94
|
+
|
data/lib/cssfault.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'cssfault', 'compass_plugin')
|
metadata
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: compass-cssfault
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- "Choan G\xC3\xA1lvez"
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-02-06 00:00:00 +01:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Easily create reusable layouts with Sass and Compass
|
17
|
+
email: choan.galvez@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- LICENSE
|
24
|
+
- README.rdoc
|
25
|
+
files:
|
26
|
+
- .document
|
27
|
+
- .gitignore
|
28
|
+
- LICENSE
|
29
|
+
- README.rdoc
|
30
|
+
- Rakefile
|
31
|
+
- VERSION
|
32
|
+
- compass-cssfault.gemspec
|
33
|
+
- lib/cssfault.rb
|
34
|
+
- lib/cssfault/compass_plugin.rb
|
35
|
+
- lib/cssfault/stylesheets/_cssfault.sass
|
36
|
+
- lib/cssfault/stylesheets/modules/_behaviour.sass
|
37
|
+
- lib/cssfault/stylesheets/modules/_layout.sass
|
38
|
+
has_rdoc: true
|
39
|
+
homepage: http://github.com/choan/compass-cssfault
|
40
|
+
licenses: []
|
41
|
+
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options:
|
44
|
+
- --charset=UTF-8
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: "0"
|
52
|
+
version:
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
58
|
+
version:
|
59
|
+
requirements: []
|
60
|
+
|
61
|
+
rubyforge_project:
|
62
|
+
rubygems_version: 1.3.5
|
63
|
+
signing_key:
|
64
|
+
specification_version: 3
|
65
|
+
summary: A plugin for Compass tailored for myself
|
66
|
+
test_files: []
|
67
|
+
|