scrivito_icon_box_widget 1.2.0 → 1.2.1

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: fad4a41b40ad05278b267d862712b764363e7b6b
4
- data.tar.gz: 03d4bb7f0196c28cb476cd7b8b1c045bcb7b27d5
3
+ metadata.gz: d21388c61ad2e989cc99ba056d77f12c12272589
4
+ data.tar.gz: fa183d4e58556be4687dae4c926783e5125d79e9
5
5
  SHA512:
6
- metadata.gz: 2e1164ab0ce9af961794f9e43ee4c19a8f454061904154fe5e6dec0f8eca28c6f615bf9c73587d2fe5ae9abd6517c526489fade487730a2a4fc1b8d440280080
7
- data.tar.gz: 64bd2b2116b43eb591631f08ab1f29ed0d1b7b8dd887d8689521fb61ae4f9f66b0981a337607778a1b31956a912a405ae85c0b527cca7ea081d8cbf5fc9b8bad
6
+ metadata.gz: e36a657072263a47062aff37095e5d0b3dc02f1297ccc76b4f3849aef3115aca4994567d999c506e4ec7f0d706cf57de2faaf19b8dde266c553e88b52731dbf6
7
+ data.tar.gz: 61e5df9162f9c13dd326b3565aa6490b984faf60b10e36d6238f485f985f124f9848c63b852c70d1828ee39fe169e02bc0b802972807bb58bdea96536c51f51e
@@ -7,6 +7,9 @@
7
7
  box-sizing: initial;
8
8
  -webkit-box-sizing: initial;
9
9
  -moz-box-sizing: initial;
10
+ border-width: 3px;
11
+ border-style: solid;
12
+ border-color: transparent;
10
13
  }
11
14
 
12
15
  .scrivito-icon-box i {
@@ -22,8 +22,6 @@
22
22
  .scrivito-icon-box.circle,
23
23
  .scrivito-icon-box.square {
24
24
  background: transparent !important;
25
- border-width: 3px;
26
- border-style: solid;
27
25
  }
28
26
 
29
27
  .scrivito-icon-box.small i {
@@ -9,17 +9,17 @@ class IconBoxWidget < Widget
9
9
  if Obj.respond_to?('selectable_color_classes')
10
10
  Obj.selectable_color_classes(class_name, attribute)
11
11
  else
12
- IconBoxWidget.fallback_colors
12
+ ['', 'black', 'gray', 'light-gray', 'red', 'green', 'blue', 'yellow']
13
13
  end
14
14
  end
15
15
 
16
16
  def self.icons
17
- IconBoxWidget.icon_list
17
+ ["none", "plus","minus","warning","paw","send","car","sliders","tree","bell","certificate","cloud","comment","dashboard","female","male","flag","globe","heart","leaf","plane","refresh","rocket","question","star","unlock"]
18
18
  end
19
19
 
20
20
  def self.caption
21
21
  elems = {}
22
- IconBoxWidget.icon_list.each do |elem|
22
+ IconBoxWidget.icons.each do |elem|
23
23
  elems[elem] = "<i class='fa fa-#{elem}'></i>#{elem}".html_safe
24
24
  end
25
25
  return elems
@@ -39,9 +39,4 @@ class IconBoxWidget < Widget
39
39
  c << self.color
40
40
  c.join(' ')
41
41
  end
42
-
43
- private
44
- def self.icon_list
45
- ["none", "plus","minus","warning","paw","send","car","sliders","tree","bell","certificate","cloud","comment","dashboard","female","male","flag","globe","heart","leaf","plane","refresh","rocket","question","star","unlock"]
46
- end
47
42
  end
@@ -1,3 +1,3 @@
1
1
  module ScrivitoIconBoxWidget
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_icon_box_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2016-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler