fa-checkbox 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 458c5680e2e26039efda8ed418e1dc5fa78e80b5
4
- data.tar.gz: 78cafae0a61174c82d06ad41d92ac930323e627c
3
+ metadata.gz: 9f1427f945918a532fbc6e36101f091b402e9f0f
4
+ data.tar.gz: c3f478399d380c3cd66fed47d0c6aaac4e01c20a
5
5
  SHA512:
6
- metadata.gz: 27e853690d1d2e3be21d23a9351a110c57eb4b10f719f478df32ce3b39748631160d38285f6cbbff3ddb53efa668881da1249a540bcf9d0d7aa5e714839c75ef
7
- data.tar.gz: 18662f70ae272ca1cf3e3fd20fb642afb39cf3b585a459e155895e4d8a1b9c468b49be1e1d22608aa1ddb207f5726f5d73aa76010c57a9cf5fa56bd88bca4bbe
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 "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
2
 
@@ -1,5 +1,6 @@
1
1
  input[type=checkbox], input[type=radio] {
2
- display: inline-block;
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
- display:none;
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
  }
@@ -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 = "fa-checkbox"
7
+ spec.name = 'fa-checkbox'
8
8
  spec.version = FaCheckbox::VERSION
9
- spec.authors = ["Dmitry Klimensky"]
10
- spec.email = ["klimensky@gmail.com"]
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 = "https://github.com/dmkl/fa-checkbox"
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 = ["lib"]
19
+ spec.require_paths = ['lib']
20
20
 
21
21
  spec.add_runtime_dependency 'font-awesome-rails', '>= 3.0'
22
22
  end
@@ -1,2 +1,2 @@
1
- require "fa-checkbox/version"
2
- require "fa-checkbox/engine" if defined?(::Rails)
1
+ require 'fa-checkbox/version'
2
+ require 'fa-checkbox/engine' if defined?(::Rails)
@@ -1,3 +1,3 @@
1
1
  module FaCheckbox
2
- VERSION = "0.0.2"
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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-07-08 00:00:00.000000000 Z
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