cielo_assets 0.0.3 → 0.0.4

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.
@@ -6,14 +6,12 @@
6
6
  }
7
7
  }
8
8
  label {
9
- width: 60px;
10
- height: 60px;
11
- border: 5px solid #EEE;
9
+ width: 90px;
10
+ height: 90px;
11
+ cursor: default;
12
12
  background-size: contain;
13
13
  background-repeat: no-repeat;
14
14
  background-position: center;
15
- cursor: pointer;
16
- cursor: hand;
17
15
 
18
16
  /* http://stackoverflow.com/questions/471510/hide-text-using-css */
19
17
  /* Hide the text. */
@@ -21,8 +19,14 @@
21
19
  white-space: nowrap;
22
20
  overflow: hidden;
23
21
 
24
- &:hover {
25
- border-color: #AAA;
22
+ &.selectable {
23
+ width: 60px;
24
+ height: 60px;
25
+ border: 5px solid #EEE;
26
+ cursor: hand;
27
+ &:hover {
28
+ border-color: #AAA;
29
+ }
26
30
  }
27
31
  &.amex {
28
32
  background-image: url(<%= asset_path 'cielo_assets/amex.png' %>)
@@ -8,7 +8,7 @@ module CieloAssets
8
8
  [:amex,:diners,:elo,:mastercard,:mastercard_securecode,:verified_by_visa,:visa].collect { |flag|
9
9
  [
10
10
  radio_button(object_name, method, flag, options),
11
- label("#{object_name}_#{method}", flag, options.merge(class: flag))
11
+ label("#{object_name}_#{method}", flag, options.merge(class: "#{flag} selectable"))
12
12
  ].join.html_safe
13
13
  }.join.html_safe
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module CieloAssets
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cielo_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -169,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  segments:
171
171
  - 0
172
- hash: 2341041919125383181
172
+ hash: -1772313288410862178
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  none: false
175
175
  requirements:
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  segments:
180
180
  - 0
181
- hash: 2341041919125383181
181
+ hash: -1772313288410862178
182
182
  requirements: []
183
183
  rubyforge_project:
184
184
  rubygems_version: 1.8.23