scrivito_advanced_editors 0.0.16 → 0.0.18

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: b936a7da9517f922553ccd2bbf439a567a75b0fc
4
- data.tar.gz: 044c797cff548ecfd5af6fb9b0562d7e8582a9fd
3
+ metadata.gz: 4e432e6e2a15688c4349d027bfde76389486447d
4
+ data.tar.gz: 90d53fad3de75ba0fc7b46380ba187c37c56e7ec
5
5
  SHA512:
6
- metadata.gz: bedeecc6a95342581cc1cf0896b940e3a0c99edee02417322f6b6563559e68dabca6aae7688a95e047f80b0482e19071003722e52ffbbc29ee92fdc04a4bd7df
7
- data.tar.gz: 6953bca2bfa5654280a8045590981fe9a3b62e6799fdf2a7b44aa2bfa7e67d9ca0699050e98f5823e43b9c286f55b55e729fe6e251b8b8f916aa25ecce96a7e6
6
+ metadata.gz: 2e958561e51608394997d934ca20757b418ae0023fad5ffc13da600c6f4a43046437e38564f9aa500f7910425f8a00f8ccf7e2c448049eb674cd845bbc852b91
7
+ data.tar.gz: 91cc3dc405a95186eba0c5f3ab38bab398ef4032625c10260631fd4e8f9f48f6c16dc8f44da9026daa55d1aac47c1926f4b0f3ed3daf5626ef6377de7b042449
@@ -1,5 +1,6 @@
1
1
  .button_list {
2
2
  overflow: hidden;
3
+ position: relative;
3
4
  }
4
5
 
5
6
  .scrivito_dialog .button_list button[data-editor="scrivito-toggle-button"] {
@@ -23,6 +24,21 @@
23
24
  }
24
25
 
25
26
  .scrivito_dialog .button_list button[data-editor='scrivito-toggle-button'].active {
26
- box-shadow: 0 0px 5px rgba(0,0,0,0.4) inset;
27
+ box-shadow: 0 0px 5px rgba(0,0,0,0.4);
27
28
  background: #888;
28
29
  }
30
+
31
+ .scrivito_dialog .button_list button[data-editor="scrivito-toggle-button"].color-select {
32
+ background: transparent;
33
+ transition: width 0.3s, height 0.3s, margin 0.3s;
34
+ position: relative;
35
+ overflow: hidden;
36
+ margin: 7px 4px;
37
+ }
38
+
39
+ .scrivito_dialog .button_list button[data-editor="scrivito-toggle-button"].color-select.active {
40
+ background: transparent;
41
+ height: 51px;
42
+ width: 51px;
43
+ margin: 4px;
44
+ }
@@ -0,0 +1,25 @@
1
+ .scrivito_dialog .button_list button[data-editor="scrivito-toggle-button"].color-select:before {
2
+ content: '';
3
+ background-color: #fff;
4
+ background-image:
5
+ linear-gradient(45deg, #33312d 25%, transparent 25%, transparent 75%, #33312d 75%, #33312d),
6
+ linear-gradient(45deg, #33312d 25%, transparent 25%, transparent 75%, #33312d 75%, #33312d);
7
+
8
+ background-size: 20px 20px;
9
+ background-position:0 0, 30px 30px;
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ right: 0;
14
+ bottom: 0;
15
+ }
16
+
17
+ .scrivito_dialog .button_list button[data-editor="scrivito-toggle-button"].color-select:after {
18
+ content: '';
19
+ background-color: inherit;
20
+ position: absolute;
21
+ top: 0;
22
+ left: 0;
23
+ right: 0;
24
+ bottom: 0;
25
+ }
@@ -56,9 +56,9 @@ module ScrivitoAdvancedEditors
56
56
  def color_hash(color)
57
57
  {
58
58
  content: color,
59
- caption: (color.present? ? color : 'no selection'),
59
+ caption: (color.present? ? color : 'default'),
60
60
  style: '',
61
- css: "color-select #{color == "" ? "default" : color}",
61
+ css: "color-select #{color == "" ? "default" : color} #{ color.present? ? '' : 'transparent_bg' }",
62
62
  }
63
63
  end
64
64
 
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAdvancedEditors
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.18"
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.16
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-11 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,7 @@ files:
94
94
  - app/assets/stylesheets/scrivito_advanced_editors/scrivito_tabs.css
95
95
  - app/assets/stylesheets/scrivito_advanced_editors/scrivito_toggle_button.css
96
96
  - app/assets/stylesheets/scrivito_advanced_editors/textarea_editor.css.scss
97
+ - app/assets/stylesheets/scrivito_advanced_editors/transparent_bg.css.scss
97
98
  - app/helpers/scrivito_advanced_editors/scrivito_advanced_tag_helper.rb
98
99
  - app/views/scrivito_advanced_editors/_color_picker.html.erb
99
100
  - app/views/scrivito_advanced_editors/_create_obj.html.erb
@@ -121,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
122
  version: '0'
122
123
  requirements: []
123
124
  rubyforge_project:
124
- rubygems_version: 2.2.2
125
+ rubygems_version: 2.4.5
125
126
  signing_key:
126
127
  specification_version: 4
127
128
  summary: Advanced Editors and details view extensions for scrivito