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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f393d8585145e5e6fe97370c220369d2df74b2ab
|
4
|
+
data.tar.gz: ec17150c0df816cb28deb5d6fc03647fe7fdbc66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 = $(
|
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:
|
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
|
}
|
data/lib/lalala/version.rb
CHANGED
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.
|
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-
|
16
|
+
date: 2014-11-04 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activeadmin
|