handy-css-rails 0.0.1
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/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +1 -0
- data/README.md +40 -0
- data/Rakefile +32 -0
- data/handy-css-rails.gemspec +19 -0
- data/lib/handy-css-rails/engine.rb +9 -0
- data/lib/handy-css-rails/version.rb +5 -0
- data/lib/handy-css-rails.rb +8 -0
- data/vendor/assets/stylesheets/handy-css-rails/handyCSS.backdrops.css +825 -0
- data/vendor/assets/stylesheets/handy-css-rails/handyCSS.box.css +745 -0
- data/vendor/assets/stylesheets/handy-css-rails/handyCSS.css +1803 -0
- metadata +77 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Public domain
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# HandyCSS-Rails
|
2
|
+
|
3
|
+
Integrates [handyCSS.css](https://github.com/kpvarma/handyCSS/) & [normalize.css](http://necolas.github.com/normalize.css/) with the rails asset pipeline.
|
4
|
+
|
5
|
+
HandyCSS is a bunch of helpful styles, developed with SCSS along with the famous Normalize.css which makes it easier to kick start any project. Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards.
|
6
|
+
Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.
|
7
|
+
Normalize.css was written by Nicolas Gallagher and Jonathan Neal.
|
8
|
+
|
9
|
+
# For Rails 3.1+ only
|
10
|
+
|
11
|
+
## Installation
|
12
|
+
|
13
|
+
Add this line to your application's Gemfile:
|
14
|
+
|
15
|
+
gem 'handy-css-rails'
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
|
24
|
+
And then in your application.css
|
25
|
+
|
26
|
+
*= require_self
|
27
|
+
*= require handy-css-rails
|
28
|
+
*= require handy-css-rails.box
|
29
|
+
*= require handy-css-rails.backdrops
|
30
|
+
*= require_tree .
|
31
|
+
|
32
|
+
Add it before require_tree so that you can override any of its styles.
|
33
|
+
|
34
|
+
## Contributing
|
35
|
+
|
36
|
+
1. Fork it
|
37
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
38
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
39
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
40
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
require 'open-uri'
|
4
|
+
|
5
|
+
desc "Download the latest handyCSS.css"
|
6
|
+
task :update do
|
7
|
+
|
8
|
+
# Updating handyCSS
|
9
|
+
url = "https://raw.github.com/kpvarma/handyCSS/master/css/handyCSS.css"
|
10
|
+
outputfile = "vendor/assets/stylesheets/handy-css-rails/handyCSS.css"
|
11
|
+
|
12
|
+
open(outputfile, 'wb') do |file|
|
13
|
+
file << open(url).read
|
14
|
+
end
|
15
|
+
|
16
|
+
# Updating box styles
|
17
|
+
url = "https://raw.github.com/kpvarma/handyCSS/master/css/handyCSS.box.css"
|
18
|
+
outputfile = "vendor/assets/stylesheets/handy-css-rails/handyCSS.box.css"
|
19
|
+
|
20
|
+
open(outputfile, 'wb') do |file|
|
21
|
+
file << open(url).read
|
22
|
+
end
|
23
|
+
|
24
|
+
# Updating backdrops styles
|
25
|
+
url = "https://raw.github.com/kpvarma/handyCSS/master/css/handyCSS.backdrops.css"
|
26
|
+
outputfile = "vendor/assets/stylesheets/handy-css-rails/handyCSS.backdrops.css"
|
27
|
+
|
28
|
+
open(outputfile, 'wb') do |file|
|
29
|
+
file << open(url).read
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/handy-css-rails/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Krishnaprasad Varma"]
|
6
|
+
gem.email = ["krshnaprsad@gmail.com"]
|
7
|
+
gem.description = %q{A rails gem to integrate handyCSS styles to your rails project.}
|
8
|
+
gem.summary = %q{HandyCSS is a bunch of helpful styles, developed with SCSS along with the famous Normalize.css which makes it easier to kick start any project. Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. }
|
9
|
+
gem.homepage = "https://github.com/kpvarma/handycss-rails"
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "handy-css-rails"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = HandyCss::Rails::VERSION
|
17
|
+
|
18
|
+
gem.add_development_dependency "rake"
|
19
|
+
end
|