lalala 4.0.0.dev.368 → 4.0.0.dev.372

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: 44c250f007b62ca6dfe065496e04624542e7ee80
4
- data.tar.gz: 57bee0fda5580c1261d1f6e7f71769c0b2e7e045
3
+ metadata.gz: f393d8585145e5e6fe97370c220369d2df74b2ab
4
+ data.tar.gz: ec17150c0df816cb28deb5d6fc03647fe7fdbc66
5
5
  SHA512:
6
- metadata.gz: 2f825b2b9897fe468001a0c1d43e9e0579d7dc753f0719f918a7ff8d1da0f48ed00517f5f851504c7882d7f615fba176c097788c083c7e390c88b0dd7ea77963
7
- data.tar.gz: 45c77800fb7d61bd690b773971c7a87b0930626de1fa933418bc035d9dce327d4382660284adff7e91684a63766c38f0322ebb8f9dda92fe41deae56f162df0a
6
+ metadata.gz: 8f9380cfc531b77f532a5b1256b7a4bc2c9d1d6e52e78078d43a9c571879f105abe9061cbcd00693213e550e51a068e0999e2c534cf9a67c13a98c11a3e70b7b
7
+ data.tar.gz: a24e369858434e5c5d43cd4902ebcd986350162716d1f317557f63bc691ff57d7e7a3996cbc7dc889b92fe71905f10e43702afdc6712c03210adf66cf1d9fed6
@@ -15,6 +15,7 @@ function setup() {
15
15
  $markitup_wrapper.find('.fullscreen').click(open_fullscreen);
16
16
  $markitup_wrapper.find('.close-fullscreen').click(close_fullscreen);
17
17
  $markitup_wrapper.find('.markdown-cheatsheet').click(toggle_cheatsheet);
18
+ $('body').on('click', '.markdown-cheatsheet-close', toggle_cheatsheet);
18
19
  }
19
20
 
20
21
  //
@@ -24,14 +25,21 @@ function open_fullscreen(event) {
24
25
  var $markitup_wrapper = $(this).closest('.markItUp');
25
26
  $markitup_wrapper.find('.markItUpHeader .preview').trigger('mouseup');
26
27
  $markitup_wrapper.addClass('fullscreen');
28
+
29
+ $('body').on('keyup.MARKDOWN_FULLSCREEN', function (event) {
30
+ if (event.which === 27) {
31
+ close_fullscreen(event);
32
+ }
33
+ });
27
34
  }
28
35
 
29
36
  //
30
37
  // Close fullscreen
31
38
  //
32
39
  function close_fullscreen(event) {
33
- var $markitup_wrapper = $(this).closest('.markItUp');
40
+ var $markitup_wrapper = $('.close-fullscreen').closest('.markItUp');
34
41
  $markitup_wrapper.removeClass('fullscreen');
42
+ $('body').off('keyup.MARKDOWN_FULLSCREEN');
35
43
  }
36
44
 
37
45
  //
@@ -1,6 +1,6 @@
1
1
  #markdown-cheatsheet {
2
2
  @include box-shadow(0 0 10px gray(100));
3
- background-color: rgba(255,255,255, 0.95);
3
+ background-color: #fff;
4
4
  bottom: 0;
5
5
  overflow: auto;
6
6
  padding: 15px;
@@ -42,4 +42,20 @@
42
42
 
43
43
  }
44
44
 
45
+ .markdown-cheatsheet-close {
46
+ @include transition(color 220ms ease-in-out);
47
+ font-size: 20px;
48
+ font-weight: 100;
49
+ text-decoration: none;
50
+ color: rgba(0, 0, 0, 0.45);
51
+ position: absolute;
52
+ right: 10px;
53
+ padding: 10px;
54
+ top: 10px;
55
+
56
+ &:hover {
57
+ color: rgba(0, 0, 0, 1);
58
+ }
59
+ }
60
+
45
61
  }
@@ -1,3 +1,5 @@
1
+ <a href="#" class="markdown-cheatsheet-close">&times;</a>
2
+
1
3
  <h2>Markdown Cheatsheet:</h2>
2
4
 
3
5
  <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.0.0"
3
- BUILD = "368"
3
+ BUILD = "372"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lalala
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.dev.368
4
+ version: 4.0.0.dev.372
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2014-11-03 00:00:00.000000000 Z
16
+ date: 2014-11-04 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: activeadmin