siyelo-flare 0.1.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 ADDED
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2010 Siyelo
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,21 @@
1
+ = siyelo-flare
2
+
3
+ Never copy paste sass mixins between projects again!
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
+ == Contributors
16
+
17
+ Kudos due to Zurb for their "awesome" buttons : http://www.zurb.com/article/266/super-awesome-buttons-with-css3-and-rgba
18
+
19
+ == Copyright
20
+
21
+ Copyright (c) 2010 Siyelo. See LICENSE for details.
data/Rakefile ADDED
@@ -0,0 +1,45 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "siyelo-flare"
8
+ gem.summary = %Q{A collection of useful sass mixins}
9
+ gem.description = %Q{Never copy paste sass mixins between projects again!}
10
+ gem.email = "glenn.roberts@siyelo.com"
11
+ gem.homepage = "http://github.com/siyelo/siyelo-flare"
12
+ gem.authors = ["Glenn Roberts"]
13
+ gem.add_development_dependency "rspec", ">= 1.2.9"
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 'spec/rake/spectask'
22
+ Spec::Rake::SpecTask.new(:spec) do |spec|
23
+ spec.libs << 'lib' << 'spec'
24
+ spec.spec_files = FileList['spec/**/*_spec.rb']
25
+ end
26
+
27
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
28
+ spec.libs << 'lib' << 'spec'
29
+ spec.pattern = 'spec/**/*_spec.rb'
30
+ spec.rcov = true
31
+ end
32
+
33
+ task :spec => :check_dependencies
34
+
35
+ task :default => :spec
36
+
37
+ require 'rake/rdoctask'
38
+ Rake::RDocTask.new do |rdoc|
39
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
+
41
+ rdoc.rdoc_dir = 'rdoc'
42
+ rdoc.title = "siyelo-flare #{version}"
43
+ rdoc.rdoc_files.include('README*')
44
+ rdoc.rdoc_files.include('lib/**/*.rb')
45
+ end
data/TODO ADDED
@@ -0,0 +1 @@
1
+ add image assets
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -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('flare', options)
data/lib/flare.rb ADDED
@@ -0,0 +1 @@
1
+ require File.join(File.dirname(__FILE__), 'flare', 'compass_plugin')
@@ -0,0 +1,100 @@
1
+
2
+ !btn_black = #111
3
+ !btn_dark_grey = #222
4
+
5
+ !btn_shadow_diff = !dark_grey
6
+
7
+ !btn_green = #005200
8
+ !btn_green_border = #30410a
9
+ !btn_dark_blue = #006599
10
+ !btn_light_grey = #DDDDDD
11
+ !btn_medium_grey = #999
12
+
13
+
14
+ =rounded( !pixels = 5px )
15
+ -webkit-border-radius= !pixels
16
+ -moz-border-radius= !pixels
17
+
18
+ =rounded-bottom( !pixels = 5px )
19
+ -moz-border-radius-bottomleft= !pixels
20
+ -moz-border-radius-bottomright= !pixels
21
+
22
+ =rounded-top( !pixels = 5px )
23
+ -moz-border-radius-topleft= !pixels
24
+ -moz-border-radius-topright= !pixels
25
+
26
+ =awesome_color( !bg_color, !color, !border_color = !color )
27
+ background-color= !bg_color
28
+ color= !color
29
+ border= !border_color " 1px solid "
30
+
31
+ =awesome_hover_color( !bg_color, !color )
32
+ background-color= !bg_color - !shadow_diff
33
+ color= !color
34
+ text-decoration: none
35
+
36
+ =build_awesome_button( !btn_name, !bg_color, !color, !border_color = !color)
37
+ #{!btn_name}.awesome, #{!btn_name}.awesome:visited
38
+ +awesome-btn_color( !bg_color, !color, !border_color )
39
+ #{!btn_name}.awesome:hover, #{!btn_name}.awesome:focus
40
+ +awesome-btn_hover_color( !bg_color, !color)
41
+
42
+ =awesome-btn
43
+ float: left
44
+ margin-right: 5px
45
+ background= !btn_dark_grey image_url("alert-overlay.png") " repeat-x"
46
+ display: inline-block
47
+ padding: 5px 10px 6px
48
+ color: white
49
+ text-decoration: none
50
+ font-weight: bold
51
+ line-height: 1
52
+ +rounded
53
+ -moz-box-shadow= " 0 1px 3px " !btn_medium_grey
54
+ -webkit-box-shadow= " 0 1px 3px " !btn_medium_grey
55
+ border-bottom= " 1px solid " !btn_dark_grey
56
+ position: relative
57
+ cursor: pointer
58
+
59
+ &:hover
60
+ background-color= !btn_black
61
+ color: white
62
+
63
+ =medium
64
+ font-size: 13px
65
+ font-weight: bold
66
+ line-height: 1
67
+
68
+ =flare-buttons(!body_selector = "body")
69
+ #{!body_selector}
70
+
71
+ // this is just a default input button style - targeted at the signup/pw reset/resend confirmation/subscribe forms etc
72
+ // (better than changing the styles several places)
73
+ input[type=submit]
74
+ +awesome-btn
75
+ +medium
76
+ +awesome-btn_color( !btn_light_grey, !btn_dark_blue )
77
+
78
+ &:hover, &:focus
79
+ +awesome-btn_hover_color( !btn_light_grey, !btn_dark_blue )
80
+
81
+ .awesome, .awesome:visited
82
+ +awesome-btn
83
+
84
+ .awesome:active
85
+ top: 1px
86
+
87
+ .small.awesome, .small.awesome:visited
88
+ font-size: 11px
89
+ margin-top: 2px
90
+
91
+ .awesome, .awesome:visited, .medium.awesome, .medium.awesome:visited
92
+ +medium
93
+
94
+ .large.awesome, .large.awesome:visited
95
+ font-size: 14px
96
+ padding: 8px 14px 9px
97
+
98
+ +build_awesome_button( ".grey", !btn_light_grey , !btn_dark_blue )
99
+ +build_awesome_button( ".white", #fff , !btn_dark_blue )
100
+ +build_awesome_button( ".green", !btn_green , #fff, !btn_green_border)
@@ -0,0 +1,7 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "SiyeloFlare" do
4
+ it "fails" do
5
+ fail "hey buddy, you should probably rename this file and start specing for real"
6
+ end
7
+ end
data/spec/spec.opts ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -0,0 +1,9 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ require 'siyelo-flare'
4
+ require 'spec'
5
+ require 'spec/autorun'
6
+
7
+ Spec::Runner.configure do |config|
8
+
9
+ end
@@ -0,0 +1,8 @@
1
+ /*
2
+ Siyelo Flare - Sassy.
3
+
4
+ Licensed under GPL and MIT.
5
+
6
+ @import flare/buttons.sass
7
+
8
+ +flare-buttons("body.three-col")
@@ -0,0 +1 @@
1
+ stylesheet 'buttons.sass', :media => "screen, projection"
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: siyelo-flare
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Glenn Roberts
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-03-02 00:00:00 +02:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ description: Never copy paste sass mixins between projects again!
26
+ email: glenn.roberts@siyelo.com
27
+ executables: []
28
+
29
+ extensions: []
30
+
31
+ extra_rdoc_files:
32
+ - LICENSE
33
+ - README.rdoc
34
+ - TODO
35
+ files:
36
+ - .document
37
+ - .gitignore
38
+ - LICENSE
39
+ - README.rdoc
40
+ - Rakefile
41
+ - VERSION
42
+ - lib/flare.rb
43
+ - lib/flare/compass_plugin.rb
44
+ - sass/flare/_buttons.sass
45
+ - spec/siyelo-flare_spec.rb
46
+ - spec/spec.opts
47
+ - spec/spec_helper.rb
48
+ - templates/project/buttons.sass
49
+ - templates/project/manifest.rb
50
+ - TODO
51
+ has_rdoc: true
52
+ homepage: http://github.com/siyelo/siyelo-flare
53
+ licenses: []
54
+
55
+ post_install_message:
56
+ rdoc_options:
57
+ - --charset=UTF-8
58
+ require_paths:
59
+ - lib
60
+ required_ruby_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: "0"
65
+ version:
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ version:
72
+ requirements: []
73
+
74
+ rubyforge_project:
75
+ rubygems_version: 1.3.5
76
+ signing_key:
77
+ specification_version: 3
78
+ summary: A collection of useful sass mixins
79
+ test_files:
80
+ - spec/siyelo-flare_spec.rb
81
+ - spec/spec_helper.rb