scrivito_highlightjs_widget 1.0.3 → 1.0.4

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: e79186c1e3a768ed66c81ce4f036e2b1559ca1c5
4
- data.tar.gz: ffef3cd6560abc36915004e0e9e69044cca69287
3
+ metadata.gz: 83126f028c47a20deef838d002a400e3604501ca
4
+ data.tar.gz: fea3f445fb7f1bef9b93e0fc78ca588d6aa5831a
5
5
  SHA512:
6
- metadata.gz: a275ee782afaa25e60250000b328924b19a12fb4ce7e0c15ba1affcd36b115db84d557d90ca54662bb511259741dd8d2dbda544724caea0ab306cf1bee4172a7
7
- data.tar.gz: 563a5500ee70303322b85bb16ecce4f0e0831ece42fdc78fe48bce48d6eebcb54ac7dc8901476283f5a06130cb9aec9b646fb0a58ec153bae18679dbbb9017f9
6
+ metadata.gz: eb309bbe92e26bc2c13ccead73ba748f7f8a27b0ba86697e04642b0ea2a2a58d949b5cf7a0f0f5e966fa8224ab6c8f20830958832fca9d8279deb33a49d05cf5
7
+ data.tar.gz: 72da0e714051c4a3d40646b57b6ebc2b7bca97ba22246ca13fbff637018329c3e71c7fca6046e27f37c0b42d07ee3c354620ad4ef0130d44f8c03114992cb125
Binary file
@@ -1 +1,8 @@
1
- .hljs{display:block;overflow-x:auto;padding:0.5em;background:#23241f;-webkit-text-size-adjust:none}.hljs,.hljs-tag,.css .hljs-rules,.css .hljs-value,.css .hljs-function .hljs-preprocessor,.hljs-pragma{color:#f8f8f2}.hljs-strongemphasis,.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-blockquote,.hljs-horizontal_rule,.hljs-number,.hljs-regexp,.alias .hljs-keyword,.hljs-literal,.hljs-hexcolor{color:#ae81ff}.hljs-tag .hljs-value,.hljs-code,.hljs-title,.css .hljs-class,.hljs-class .hljs-title:last-child{color:#a6e22e}.hljs-link_url{font-size:80%}.hljs-strong,.hljs-strongemphasis{font-weight:bold}.hljs-emphasis,.hljs-strongemphasis,.hljs-class .hljs-title:last-child{font-style:italic}.hljs-keyword,.hljs-function,.hljs-change,.hljs-winutils,.hljs-flow,.nginx .hljs-title,.tex .hljs-special,.hljs-header,.hljs-attribute,.hljs-symbol,.hljs-symbol .hljs-string,.hljs-tag .hljs-title,.hljs-value,.alias .hljs-keyword:first-child,.css .hljs-tag,.css .unit,.css .hljs-important{color:#f92672}.hljs-function .hljs-keyword,.hljs-class .hljs-keyword:first-child,.hljs-constant,.css .hljs-attribute{color:#66d9ef}.hljs-variable,.hljs-params,.hljs-class .hljs-title{color:#f8f8f2}.hljs-string,.css .hljs-id,.hljs-subst,.hljs-type,.ruby .hljs-class .hljs-parent,.hljs-built_in,.django .hljs-template_tag,.django .hljs-variable,.smalltalk .hljs-class,.django .hljs-filter .hljs-argument,.smalltalk .hljs-localvars,.smalltalk .hljs-array,.hljs-attr_selector,.hljs-pseudo,.hljs-addition,.hljs-stream,.hljs-envvar,.apache .hljs-tag,.apache .hljs-cbracket,.tex .hljs-command,.hljs-prompt,.hljs-link_label,.hljs-link_url{color:#e6db74}.hljs-comment,.hljs-javadoc,.hljs-annotation,.hljs-decorator,.hljs-template_comment,.hljs-pi,.hljs-doctype,.hljs-deletion,.hljs-shebang,.apache .hljs-sqbracket,.tex .hljs-formula{color:#75715e}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata,.xml .php,.php .xml{opacity:0.5}
1
+ .hljs{display:block;overflow-x:auto;padding:0.5em;background:#23241f;-webkit-text-size-adjust:none}.hljs,.hljs-tag,.css .hljs-rules,.css .hljs-value,.css .hljs-function .hljs-preprocessor,.hljs-pragma{color:#f8f8f2}.hljs-strongemphasis,.hljs-strong,.hljs-emphasis{color:#a8a8a2}.hljs-bullet,.hljs-blockquote,.hljs-horizontal_rule,.hljs-number,.hljs-regexp,.alias .hljs-keyword,.hljs-literal,.hljs-hexcolor{color:#ae81ff}.hljs-tag .hljs-value,.hljs-code,.hljs-title,.css .hljs-class,.hljs-class .hljs-title:last-child{color:#a6e22e}.hljs-link_url{font-size:80%}.hljs-strong,.hljs-strongemphasis{font-weight:bold}.hljs-emphasis,.hljs-strongemphasis,.hljs-class .hljs-title:last-child{font-style:italic}.hljs-keyword,.hljs-function,.hljs-change,.hljs-winutils,.hljs-flow,.nginx .hljs-title,.tex .hljs-special,.hljs-header,.hljs-attribute,.hljs-symbol,.hljs-symbol .hljs-string,.hljs-tag .hljs-title,.hljs-value,.alias .hljs-keyword:first-child,.css .hljs-tag,.css .unit,.css .hljs-important{color:#f92672}.hljs-function .hljs-keyword,.hljs-class .hljs-keyword:first-child,.hljs-constant,.css .hljs-attribute{color:#66d9ef}.hljs-variable,.hljs-params,.hljs-class .hljs-title{color:#f8f8f2}.hljs-string,.css .hljs-id,.hljs-subst,.hljs-type,.ruby .hljs-class .hljs-parent,.hljs-built_in,.django .hljs-template_tag,.django .hljs-variable,.smalltalk .hljs-class,.django .hljs-filter .hljs-argument,.smalltalk .hljs-localvars,.smalltalk .hljs-array,.hljs-attr_selector,.hljs-pseudo,.hljs-addition,.hljs-stream,.hljs-envvar,.apache .hljs-tag,.apache .hljs-cbracket,.tex .hljs-command,.hljs-prompt,.hljs-link_label,.hljs-link_url{color:#e6db74}.hljs-comment,.hljs-javadoc,.hljs-annotation,.hljs-decorator,.hljs-template_comment,.hljs-pi,.hljs-doctype,.hljs-deletion,.hljs-shebang,.apache .hljs-sqbracket,.tex .hljs-formula{color:#75715e}.coffeescript .javascript,.javascript .xml,.tex .hljs-formula,.xml .javascript,.xml .vbscript,.xml .css,.xml .hljs-cdata,.xml .php,.php .xml{opacity:0.5}
2
+
3
+ pre.highlightjs {
4
+ background-color: transparent;
5
+ border: none;
6
+ padding: 0;
7
+ margin: 0;
8
+ }
@@ -1,10 +1,10 @@
1
- <div class="editing highlightjs_widget">
2
- <h4>Code</h4>
1
+ <%= scrivito_details_for 'Code' do %>
3
2
  <pre class="highlightjs">
4
3
  <%= scrivito_tag(:textarea, widget, :code, data: {editor: "textfield-editor"}, style: "width:100%;height:168px;") %>
5
4
  </pre>
6
-
7
- <h4>Language</h4>
5
+ <% end %>
6
+
7
+ <%= scrivito_details_for 'Language' do %>
8
8
  <div class="alert alert-info">
9
9
  If automatic language detection does not work for you.
10
10
  <p>
@@ -12,4 +12,4 @@
12
12
  </p>
13
13
  </div>
14
14
  <%= scrivito_tag(:div, widget, :language) %>
15
- </div>
15
+ <% end %>
@@ -1,13 +1,3 @@
1
- <div class="editing-dialog-thumbnail">
2
- <div class="visualization">
3
- <span class="icon editing-code"></span>
4
- </div>
5
-
6
- <div class="title">
7
- Syntac Highlighter
8
- </div>
9
-
10
- <div class="description">
11
- Highlight your Source Code.
12
- </div>
13
- </div>
1
+ <%= scrivito_thumbnail 'Syntac Highlighter', image_tag("highlight.png") do %>
2
+ Highlight your Source Code.
3
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoHighlightjsWidget
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_highlightjs_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,6 +61,7 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - LICENSE
63
63
  - Rakefile
64
+ - app/assets/images/highlight.png
64
65
  - app/assets/javascripts/scrivito_highlightjs_widget.js
65
66
  - app/assets/javascripts/scrivito_highlightjs_widget/application.js
66
67
  - app/assets/javascripts/scrivito_highlightjs_widget/editing.js