sass-tools 0.0.0
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/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/lib/sass-tools.rb +2 -0
- data/lib/stylesheets/sass-tools/_blog.scss +77 -0
- data/lib/stylesheets/sass-tools/_forms.scss +46 -0
- data/lib/stylesheets/sass-tools/_images.scss +26 -0
- data/lib/stylesheets/sass-tools/_tools.scss +15 -0
- data/sass-tools.gemspec +58 -0
- data/test/helper.rb +10 -0
- data/test/test_sass-tools.rb +7 -0
- metadata +95 -0
data/.document
ADDED
data/.gitignore
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Mario Kuroir Ricalde
|
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
@@ -0,0 +1,17 @@
|
|
1
|
+
= sass-tools
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Note on Patches/Pull Requests
|
6
|
+
|
7
|
+
* Fork the project.
|
8
|
+
* Make your feature addition or bug fix.
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
10
|
+
future version unintentionally.
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
12
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
+
* Send me a pull request. Bonus points for topic branches.
|
14
|
+
|
15
|
+
== Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2010 Mario Kuroir Ricalde. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "sass-tools"
|
8
|
+
gem.summary = %Q{A set of Mixins and Classes to aid your Sass Development.}
|
9
|
+
gem.description = %Q{}
|
10
|
+
gem.email = "mario@destructoid.com"
|
11
|
+
gem.homepage = "http://github.com/kuroir/scss-tools"
|
12
|
+
gem.authors = ["Mario 'Kuroir' Ricalde"]
|
13
|
+
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
end
|
16
|
+
Jeweler::GemcutterTasks.new
|
17
|
+
rescue LoadError
|
18
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
|
+
end
|
20
|
+
|
21
|
+
require 'rake/testtask'
|
22
|
+
Rake::TestTask.new(:test) do |test|
|
23
|
+
test.libs << 'lib' << 'test'
|
24
|
+
test.pattern = 'test/**/test_*.rb'
|
25
|
+
test.verbose = true
|
26
|
+
end
|
27
|
+
|
28
|
+
begin
|
29
|
+
require 'rcov/rcovtask'
|
30
|
+
Rcov::RcovTask.new do |test|
|
31
|
+
test.libs << 'test'
|
32
|
+
test.pattern = 'test/**/test_*.rb'
|
33
|
+
test.verbose = true
|
34
|
+
end
|
35
|
+
rescue LoadError
|
36
|
+
task :rcov do
|
37
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
task :test => :check_dependencies
|
42
|
+
|
43
|
+
task :default => :test
|
44
|
+
|
45
|
+
require 'rake/rdoctask'
|
46
|
+
Rake::RDocTask.new do |rdoc|
|
47
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
48
|
+
|
49
|
+
rdoc.rdoc_dir = 'rdoc'
|
50
|
+
rdoc.title = "sass-tools #{version}"
|
51
|
+
rdoc.rdoc_files.include('README*')
|
52
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
data/lib/sass-tools.rb
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
/* News Item
|
2
|
+
---------------------------------------- */
|
3
|
+
/*
|
4
|
+
<div class="blog-item">
|
5
|
+
<h6 class="date">14 de Julio 2010</h6>
|
6
|
+
<h3><a href="#">Lorem My Ipsum</a></h3>
|
7
|
+
<img src="image.jpg" width="194" height="146" alt="Blog Thumb"/>
|
8
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras nec ipsum magna. Duis porttitor, felis quis eleifend vehicula, mauris mi varius nibh, sit amet iaculis magna magna vitae justo...</p>
|
9
|
+
<p class="read-more"><a href="#">Nota Completa</a></p>
|
10
|
+
</div>
|
11
|
+
*/
|
12
|
+
@mixin news-item($date:#383838, $header:#1491EE) {
|
13
|
+
@include clearfix;
|
14
|
+
.date {
|
15
|
+
color:$date;
|
16
|
+
font:{
|
17
|
+
size:11px;
|
18
|
+
weight:normal;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
img {
|
22
|
+
float:left;
|
23
|
+
padding: 4px 14px 50px 0;
|
24
|
+
}
|
25
|
+
p {
|
26
|
+
color:$link-color;
|
27
|
+
}
|
28
|
+
h3 {
|
29
|
+
margin-bottom:8px;
|
30
|
+
a{
|
31
|
+
color:$header;
|
32
|
+
font-size:15px;
|
33
|
+
font-weight:bold;
|
34
|
+
text-decoration:none;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
/* Pagination Styling
|
41
|
+
---------------------------------------- */
|
42
|
+
/*
|
43
|
+
<div class="pagination">
|
44
|
+
<a href="#" class="prev">Anterior</a>
|
45
|
+
<a href="#">1</a>
|
46
|
+
<a href="#">2</a>
|
47
|
+
<a href="#" class="next">Siguiente</a>
|
48
|
+
</div>
|
49
|
+
*/
|
50
|
+
@mixin pagination(
|
51
|
+
$background : $pagination-background,
|
52
|
+
$normal-border-color : $pagination-border-color,
|
53
|
+
$font-color : $pagination-font-color,
|
54
|
+
$hover-background : $pagination-hover-background,
|
55
|
+
$hover-border-color : $pagination-hover-border-color,
|
56
|
+
$hover-color : $pagination-hover-font-color,
|
57
|
+
$border-radius : $pagination-item-radius
|
58
|
+
) {
|
59
|
+
margin:20px;
|
60
|
+
text-align:center;
|
61
|
+
a {
|
62
|
+
@include border-radius($border-radius);
|
63
|
+
background:$background;
|
64
|
+
border:1px solid $normal-border-color;
|
65
|
+
color:$font-color;
|
66
|
+
padding:2px 8px;
|
67
|
+
text-decoration:none;
|
68
|
+
&:hover {
|
69
|
+
background:$hover-background;
|
70
|
+
border:1px solid $normal-border-color;
|
71
|
+
color:$hover-color;
|
72
|
+
}
|
73
|
+
&:visited {
|
74
|
+
color:$font-color;
|
75
|
+
} //&:visited
|
76
|
+
}
|
77
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/* Survey Styling
|
2
|
+
---------------------------------------- */
|
3
|
+
/*
|
4
|
+
<form action="#" id="encuesta" class="widget" accept-charset="utf-8">
|
5
|
+
<h3>Encuesta</h3>
|
6
|
+
<div><strong>¿Te gusta el nuevo sitio?</strong></div>
|
7
|
+
<div><input name="opt1" id="opt1" type="radio"> Si me gusta</div>
|
8
|
+
<div><input name="opt2" id="opt2" type="radio"> No me gusta</div>
|
9
|
+
<div><input name="opt3" id="opt3" type="radio"> Me da igual</div>
|
10
|
+
<div><a href="#" class="button">Votar</a></div>
|
11
|
+
</form>
|
12
|
+
*/
|
13
|
+
@mixin survey {
|
14
|
+
strong {
|
15
|
+
padding:10px;
|
16
|
+
display:block;
|
17
|
+
font-size:14px;
|
18
|
+
color: $font-color;
|
19
|
+
}
|
20
|
+
div {
|
21
|
+
padding-left:5px;
|
22
|
+
font-size:14px;
|
23
|
+
input {
|
24
|
+
vertical-align:top;
|
25
|
+
}
|
26
|
+
.button {
|
27
|
+
@include button;
|
28
|
+
} //.button
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin button {
|
33
|
+
@include border-radius(4px 4px 4px 4px);
|
34
|
+
background:#8DC30D;
|
35
|
+
color:#fff;
|
36
|
+
text:{
|
37
|
+
decoration:none;
|
38
|
+
align:center;
|
39
|
+
transform:uppercase;
|
40
|
+
};
|
41
|
+
display:block;
|
42
|
+
width:120px;
|
43
|
+
line-height:24px;
|
44
|
+
margin:15px auto;
|
45
|
+
font-size:12px;
|
46
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/*
|
2
|
+
* This Mixin is meant to be used for image replacement of a entities.
|
3
|
+
* Just feed it the image path, width and height relative to the .scss file.
|
4
|
+
*/
|
5
|
+
@mixin image-link($image, $width, $height) {
|
6
|
+
background:transparent url($image) no-repeat top left;
|
7
|
+
width: $width;
|
8
|
+
height: $height;
|
9
|
+
display:block;
|
10
|
+
text-indent:-9999px;
|
11
|
+
overflow:hidden;
|
12
|
+
outline:none;
|
13
|
+
cursor:pointer;
|
14
|
+
}
|
15
|
+
|
16
|
+
/*
|
17
|
+
Mixin for quickly replacing images for any given element.
|
18
|
+
*/
|
19
|
+
@mixin image-replace($image, $width, $height) {
|
20
|
+
background:transparent url($image) no-repeat top left;
|
21
|
+
width: $width;
|
22
|
+
height: $height;
|
23
|
+
display:block;
|
24
|
+
text-indent:-9999px;
|
25
|
+
overflow:hidden;
|
26
|
+
}
|
data/sass-tools.gemspec
ADDED
@@ -0,0 +1,58 @@
|
|
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{sass-tools}
|
8
|
+
s.version = "0.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Mario 'Kuroir' Ricalde"]
|
12
|
+
s.date = %q{2010-09-08}
|
13
|
+
s.description = %q{}
|
14
|
+
s.email = %q{mario@destructoid.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
|
+
"lib/sass-tools.rb",
|
27
|
+
"lib/stylesheets/sass-tools/_blog.scss",
|
28
|
+
"lib/stylesheets/sass-tools/_forms.scss",
|
29
|
+
"lib/stylesheets/sass-tools/_images.scss",
|
30
|
+
"lib/stylesheets/sass-tools/_tools.scss",
|
31
|
+
"sass-tools.gemspec",
|
32
|
+
"test/helper.rb",
|
33
|
+
"test/test_sass-tools.rb"
|
34
|
+
]
|
35
|
+
s.homepage = %q{http://github.com/kuroir/scss-tools}
|
36
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
s.rubygems_version = %q{1.3.7}
|
39
|
+
s.summary = %q{A set of Mixins and Classes to aid your Sass Development.}
|
40
|
+
s.test_files = [
|
41
|
+
"test/helper.rb",
|
42
|
+
"test/test_sass-tools.rb"
|
43
|
+
]
|
44
|
+
|
45
|
+
if s.respond_to? :specification_version then
|
46
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
47
|
+
s.specification_version = 3
|
48
|
+
|
49
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
53
|
+
end
|
54
|
+
else
|
55
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
data/test/helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sass-tools
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
version: 0.0.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Mario 'Kuroir' Ricalde
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-09-08 00:00:00 -05:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: thoughtbot-shoulda
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
version: "0"
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
35
|
+
description: ""
|
36
|
+
email: mario@destructoid.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- LICENSE
|
43
|
+
- README.rdoc
|
44
|
+
files:
|
45
|
+
- .document
|
46
|
+
- .gitignore
|
47
|
+
- LICENSE
|
48
|
+
- README.rdoc
|
49
|
+
- Rakefile
|
50
|
+
- VERSION
|
51
|
+
- lib/sass-tools.rb
|
52
|
+
- lib/stylesheets/sass-tools/_blog.scss
|
53
|
+
- lib/stylesheets/sass-tools/_forms.scss
|
54
|
+
- lib/stylesheets/sass-tools/_images.scss
|
55
|
+
- lib/stylesheets/sass-tools/_tools.scss
|
56
|
+
- sass-tools.gemspec
|
57
|
+
- test/helper.rb
|
58
|
+
- test/test_sass-tools.rb
|
59
|
+
has_rdoc: true
|
60
|
+
homepage: http://github.com/kuroir/scss-tools
|
61
|
+
licenses: []
|
62
|
+
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options:
|
65
|
+
- --charset=UTF-8
|
66
|
+
require_paths:
|
67
|
+
- lib
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
hash: 3
|
83
|
+
segments:
|
84
|
+
- 0
|
85
|
+
version: "0"
|
86
|
+
requirements: []
|
87
|
+
|
88
|
+
rubyforge_project:
|
89
|
+
rubygems_version: 1.3.7
|
90
|
+
signing_key:
|
91
|
+
specification_version: 3
|
92
|
+
summary: A set of Mixins and Classes to aid your Sass Development.
|
93
|
+
test_files:
|
94
|
+
- test/helper.rb
|
95
|
+
- test/test_sass-tools.rb
|