fa-checkbox 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/app/assets/stylesheets/fa-checkbox-revert.css +10 -1
- data/app/assets/stylesheets/fa-checkbox.css +6 -1
- data/fa-checkbox.gemspec +5 -5
- data/lib/fa-checkbox.rb +2 -2
- data/lib/fa-checkbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f1427f945918a532fbc6e36101f091b402e9f0f
|
4
|
+
data.tar.gz: c3f478399d380c3cd66fed47d0c6aaac4e01c20a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb5e23733eb1bc924955e0c6de477b9013c09e3a1b9dcb578a52897e5e53c2ff991b5469e61fde73fb5c3a3d30f3a02e47ec0e33f6820c20f2e403dd4b1751f8
|
7
|
+
data.tar.gz: b3d137aaa83a1f609c72040410549116a74cced87599982a88b32a3078c7c238e866ddfef5eefcbdf2891ca72fa246ec78c69575a9fb6b5e67ca618cf9214f88
|
data/README.md
CHANGED
@@ -38,7 +38,7 @@ And included it to your application layout depending on your conditions. For exa
|
|
38
38
|
|
39
39
|
```html
|
40
40
|
<!--[if lt IE 9]>
|
41
|
-
<%= stylesheet_link_tag 'fa-checkbox-revert', media: all %>
|
41
|
+
<%= stylesheet_link_tag 'fa-checkbox-revert', media: :all %>
|
42
42
|
<!--<![endif]-->
|
43
43
|
```
|
44
44
|
|
@@ -47,4 +47,4 @@ And included it to your application layout depending on your conditions. For exa
|
|
47
47
|
Make sure that all labels in your application are linked to their checkboxes and radio buttons with `<label for='...'>` attribute properly. Otherwise they will not react to you clicks.
|
48
48
|
|
49
49
|
[1]: http://fortawesome.github.io/Font-Awesome/icons/
|
50
|
-
[2]: https://github.com/bokmann/font-awesome-rails
|
50
|
+
[2]: https://github.com/bokmann/font-awesome-rails
|
data/Rakefile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
2
|
|
@@ -1,5 +1,6 @@
|
|
1
1
|
input[type=checkbox], input[type=radio] {
|
2
|
-
|
2
|
+
position: inherit;
|
3
|
+
opacity: inherit;
|
3
4
|
}
|
4
5
|
|
5
6
|
input[type=checkbox] + label:before, input[type=radio] + label:before {
|
@@ -7,6 +8,14 @@ input[type=checkbox] + label:before, input[type=radio] + label:before {
|
|
7
8
|
width: 0;
|
8
9
|
}
|
9
10
|
|
11
|
+
input[type=checkbox]:disabled + label:before, input[type=radio]:disabled + label:before {
|
12
|
+
color: inherit;
|
13
|
+
}
|
14
|
+
|
15
|
+
input[type=checkbox]:focus + label:before, input[type=radio]:focus + label:before {
|
16
|
+
transform: none;
|
17
|
+
}
|
18
|
+
|
10
19
|
input[type=checkbox] + label:before {
|
11
20
|
content: "";
|
12
21
|
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
/*= require font-awesome */
|
2
2
|
|
3
3
|
input[type=checkbox], input[type=radio] {
|
4
|
-
|
4
|
+
opacity: 0;
|
5
|
+
position: absolute;
|
5
6
|
}
|
6
7
|
|
7
8
|
input[type=checkbox] + label:before, input[type=radio] + label:before {
|
@@ -14,6 +15,10 @@ input[type=checkbox]:disabled + label:before, input[type=radio]:disabled + label
|
|
14
15
|
color: #999999;
|
15
16
|
}
|
16
17
|
|
18
|
+
input[type=checkbox]:focus + label:before, input[type=radio]:focus + label:before {
|
19
|
+
transform: scale(1.15);
|
20
|
+
}
|
21
|
+
|
17
22
|
input[type=checkbox] + label:before {
|
18
23
|
content: "\f096";
|
19
24
|
}
|
data/fa-checkbox.gemspec
CHANGED
@@ -4,19 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'fa-checkbox/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
7
|
+
spec.name = 'fa-checkbox'
|
8
8
|
spec.version = FaCheckbox::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Dmitry Klimensky']
|
10
|
+
spec.email = ['klimensky@gmail.com']
|
11
11
|
spec.summary = %q{Font Awesome checkboxes and radio buttons in Rails applications.}
|
12
12
|
spec.description = %q{This gem replaces standard checkboxes and radio buttons with Font Awesome characters making them look the same across all browsers.}
|
13
|
-
spec.homepage =
|
13
|
+
spec.homepage = 'https://github.com/dmkl/fa-checkbox'
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
-
spec.require_paths = [
|
19
|
+
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'font-awesome-rails', '>= 3.0'
|
22
22
|
end
|
data/lib/fa-checkbox.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'fa-checkbox/version'
|
2
|
+
require 'fa-checkbox/engine' if defined?(::Rails)
|
data/lib/fa-checkbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fa-checkbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Klimensky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: font-awesome-rails
|