scrivito_advanced_editors 0.0.13 → 0.0.14

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: b27b6cd44c8c7986a24697828d93333a7b5a1488
4
- data.tar.gz: 77e6a7c4bea27ba81948013f6672f6dd566d10c2
3
+ metadata.gz: 2945a07b81037933d4bbaec2a5b6df9944d10b51
4
+ data.tar.gz: 75bcfe0b0b8fb78db00f741116dfdaaa4911e308
5
5
  SHA512:
6
- metadata.gz: 7964f367f3909d6ae991e5150adc5a1da9919b27bbcf10d75e44a2cdc9680a08390f72ca2c47b1171d199091df1620ee2e390285d3e3df58167bb208e1bbaad7
7
- data.tar.gz: a16d7ec6d09949fd94227c913f83bd10551ffc62fd738791b65096c2979f495939f45cacbda5b1990c3ae38e5abf30185410e85c1b404ec78b49f9874a83c8ba
6
+ metadata.gz: a6c3caa8fc9d4ebd4da9afe4341372afc9cc07ffd4c923e6434ba7c75a1943f991fced66ecc6453bf53f2e20ec8c48cbde15a0445a119ae3fcc0374899ff7ee6
7
+ data.tar.gz: ba2ad15113e912920327cef7543305ac7b96f73db4d4a13d3074eb862ca118a11c71fba900877e28139f023ce7f5a4c6549e902818f044bc0c3774c6e4e18336
@@ -1,5 +1,13 @@
1
+ .button_list.select {
2
+ overflow: hidden;
3
+ padding: 5px;
4
+ background-color: white;
5
+ border-radius: 5px;
6
+ box-shadow: 0 0 5px #888 inset;
7
+ }
8
+
1
9
  .scrivito_dialog .button_list button[data-editor="scrivito-multi-select-button"] {
2
- margin: 4px 0;
10
+ margin: 1px;
3
11
  min-width: 28px;
4
12
  text-shadow: 0 0 2px #222;
5
13
  background: #444;
@@ -8,18 +16,10 @@
8
16
  border: none;
9
17
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
10
18
  font-size: 15px;
11
- border-radius: 0;
19
+ border-radius: 5px;
12
20
  line-height: 15px;
13
21
  width: initial;
14
22
  float: left;
15
- &:first-child {
16
- margin-left: 4px;
17
- border-radius: 5px 0 0 5px;
18
- }
19
- &:last-child {
20
- margin-right: 4px;
21
- border-radius: 0 5px 5px 0;
22
- }
23
23
  }
24
24
 
25
25
  .scrivito_dialog .button_list button[data-editor='scrivito-multi-select-button']:hover {
@@ -1,23 +1,24 @@
1
1
  .tab-list {
2
2
  overflow: hidden;
3
3
  list-style: none;
4
- margin-top: 0;
5
- padding: 0;
6
- box-shadow: 0 0 3px rgba(0,0,0,0.25);
7
- background-color: #f3f3f3;
8
- border-radius: 4px;
4
+ margin: 0;
5
+ padding: 3px 3px 0 3px;
9
6
  }
10
7
 
11
8
  .tab-list li[data-panel-target] {
12
9
  float: left;
13
10
  cursor: pointer;
14
- background: #f3f3f3;
11
+ background: #fff;
15
12
  color: #666;
16
- padding: 8px;
13
+ padding: 8px 14px;
14
+ border-radius: 5px 5px 0 0;
15
+ box-shadow: 0 0 5px rgba(0,0,0,0.2);
16
+ margin: 5px 5px 0 0px;
17
17
  }
18
18
 
19
19
  .tab-list li[data-panel-target]:hover {
20
- background: #fff;
20
+ background: #888;
21
+ color: #f3f3f3;
21
22
  }
22
23
 
23
24
  .tab-list li[data-panel-target].active {
@@ -25,16 +26,19 @@
25
26
  color: #f3f3f3;
26
27
  }
27
28
 
28
- .tab-list li[data-panel-target].active:hover {
29
- background: #888;
30
- }
31
-
32
29
  .tab-list li.inactive {
33
30
  color: #aaa;
34
31
  float: left;
35
32
  padding: 8px;
36
33
  }
37
34
 
35
+ .tab-panels {
36
+ background-color: white;
37
+ padding: 11px;
38
+ box-shadow: rgba(0, 0, 0, 0.298039) 0px 0px 5px;
39
+ margin: 0px 3px 5px;
40
+ }
41
+
38
42
  .tab-panels .tab-panel {
39
43
  display: none;
40
44
  }
@@ -18,7 +18,7 @@ module ScrivitoAdvancedEditors
18
18
  list.map { |elem| fallback_toggle_button(obj, attribute, elem, obj.send(attribute), type) }.join('').html_safe
19
19
  end
20
20
 
21
- content_tag :div, buttons, class: 'button_list'
21
+ content_tag :div, buttons, class: "button_list #{type}"
22
22
  end
23
23
 
24
24
  def scrivito_selectable_color_classes(class_name, attribute)
@@ -76,7 +76,7 @@ module ScrivitoAdvancedEditors
76
76
  def css_class(elem, active)
77
77
  return '' if active.nil?
78
78
  return active == elem[:content] ? 'active' : '' if elem.is_a? Hash
79
- return active == elem ? 'active' : '' if elem.is_a? String
79
+ return active == elem.to_s ? 'active' : '' if (elem.is_a?(String) || elem.is_a?(Fixnum))
80
80
  active.include?(elem) ? 'active' : ''
81
81
  end
82
82
  end
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAdvancedEditors
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_advanced_editors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-22 00:00:00.000000000 Z
11
+ date: 2015-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler