google-buttons-sass 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -14
- metadata +3 -19
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Google Buttons for Sass
|
2
2
|
|
3
|
-
`google-buttons-sass` is an
|
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 Rails apps.
|
4
4
|
|
5
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
6
|
|
@@ -17,8 +17,11 @@ Enjoy.
|
|
17
17
|
In your Gemfile:
|
18
18
|
|
19
19
|
gem 'sass-rails', '~> 3.1'
|
20
|
+
gem 'google-buttons-sass'
|
21
|
+
|
22
|
+
If you don't have Twitter Bootstrap assets installed into your project manually, you may want to install [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sass):
|
23
|
+
|
20
24
|
gem 'bootstrap-sass', '~> 2.0.4.0'
|
21
|
-
gem 'google-buttons-sass', '~> 0.1.0'
|
22
25
|
|
23
26
|
#### CSS
|
24
27
|
|
@@ -77,15 +80,3 @@ Need to configure a variable or two? Simply define the value of the variable you
|
|
77
80
|
@import "google-buttons";
|
78
81
|
|
79
82
|
**Note**: It's important that the file you are importing is not named `google-buttons`, since this will cause an import loop. As a general rule, errors are something you should try to avoid.
|
80
|
-
|
81
|
-
### Passing multiple values to mixins
|
82
|
-
|
83
|
-
Some CSS3 properties take multiple values, such as `box-shadow` or `text-shadow`. To pass multiple values to the Bootstrap mixins, you must escape the values or else the Sass parser will choke on the commas. Here's how to escape the values in Sass:
|
84
|
-
|
85
|
-
.selector {
|
86
|
-
@include box-shadow(#{0 2px 5px rgba(0,0,0,.25) inset, 0 -2px 5px rgba(0,0,0,.25) inset});
|
87
|
-
}
|
88
|
-
|
89
|
-
### Bundler?
|
90
|
-
|
91
|
-
gem 'google-buttons-sass', '~> 0.1.0'
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-buttons-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Thomas McDonald, Tim O'Donnell
|
8
|
+
- Pete Brousalis, Thomas McDonald, Tim O'Donnell
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: compass
|
@@ -43,22 +43,6 @@ dependencies:
|
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '3.1'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: bootstrap-sass
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 2.0.4.0
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 2.0.4.0
|
62
46
|
description: Tim O'Donnell's CSS3 Google Buttons coverted to SASS including images
|
63
47
|
and javascript. This gem is based on Thomas McDonald's bootstrap-sass gem.
|
64
48
|
email: brousapg@gmail.com
|