google-buttons-sass 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -7
- data/lib/google-buttons-sass/engine.rb +2 -2
- data/lib/google-buttons-sass.rb +3 -3
- metadata +1 -1
data/README.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# Google Buttons for Sass
|
2
|
-
## Based on [Thomas McDonald's Bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass) and [CSS3 Google Buttons by Tim O'Donnell](https://github.com/todc/css3-google-buttons)
|
3
2
|
|
4
3
|
`google-buttons-sass` is an Sass-powered version of [CSS3 Google Buttons by Tim O'Donnell](https://github.com/todc/css3-google-buttons), ready to drop right into your Sass powered applications.
|
5
4
|
|
6
|
-
This
|
5
|
+
This gem is based off of [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass), a project by [Thomas McDonald](https://twitter.com/#!/thomasmcdonald_). I replaced Twitter Bootstrap with the Google Buttons project.
|
6
|
+
|
7
|
+
This project requires [Twitter Bootstrap](http://twitter.github.com/bootstrap), which can be installed via gem `bootstrap-sass`
|
8
|
+
|
9
|
+
You can see a demo of the gem [here](http://blog.timodonnell.com/css3-google-buttons/index.html).
|
7
10
|
|
8
11
|
Enjoy.
|
9
12
|
|
@@ -15,7 +18,7 @@ In your Gemfile:
|
|
15
18
|
|
16
19
|
gem 'sass-rails', '~> 3.1'
|
17
20
|
gem 'bootstrap-sass', '~> 2.0.4.0'
|
18
|
-
gem 'google-
|
21
|
+
gem 'google-buttons-sass', '~> 0.1.0'
|
19
22
|
|
20
23
|
#### CSS
|
21
24
|
|
@@ -85,7 +88,4 @@ Some CSS3 properties take multiple values, such as `box-shadow` or `text-shadow`
|
|
85
88
|
|
86
89
|
### Bundler?
|
87
90
|
|
88
|
-
gem 'google-buttons-sass', '~> 1'
|
89
|
-
|
90
|
-
## Who
|
91
|
-
bootstrap-sass is a project by [Thomas McDonald](https://twitter.com/#!/thomasmcdonald_), with support from [other awesome people](https://github.com/thomas-mcdonald/bootstrap-sass/graphs/contributors).
|
91
|
+
gem 'google-buttons-sass', '~> 0.1.0'
|
data/lib/google-buttons-sass.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module GoogleButtons
|
2
2
|
class FrameworkNotFound < StandardError; end
|
3
3
|
|
4
4
|
# Inspired by Kaminari
|
@@ -15,7 +15,7 @@ module Bootstrap
|
|
15
15
|
register_rails_engine
|
16
16
|
require 'google-buttons-sass/rails_functions'
|
17
17
|
else
|
18
|
-
raise
|
18
|
+
raise GoogleButtons::FrameworkNotFound, "google-button-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -40,4 +40,4 @@ module Bootstrap
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
-
|
43
|
+
GoogleButtons.load!
|