tolaria 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/admin/views/fields/markdown_composer.js +5 -0
- data/app/assets/stylesheets/admin/components/forms/_attachment_field.scss +4 -0
- data/app/assets/stylesheets/admin/components/forms/_markdown_composer.scss +38 -40
- data/lib/tolaria/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad9a0fd53507635be02a3f66a8e48013e91c7c47
|
4
|
+
data.tar.gz: ec22b6a019726b19695f2dd1bd7d258f143b86b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f07432b01569d8849aa1b06d12efe4a42aef9d20698260081f907d1614bbc98eb7ba67c201cd0f3d06f920b9028e8e4ba64da57b7b76e57bce46c6cf813991f9
|
7
|
+
data.tar.gz: 2357aa1ed19e27cb05bb112e4ed006816d2cb0300852516e6cc2cba8f8e1ba534f9cfa8921ef8c35caaa6b0e525023ea6557fda704adab59f6ea667427da4e04
|
@@ -110,6 +110,9 @@ var MarkdownComposerView = Backbone.View.extend({
|
|
110
110
|
|
111
111
|
event.preventDefault();
|
112
112
|
|
113
|
+
// Save current scroll position of textarea so we can reset it after we update the text
|
114
|
+
var scrollPos = this.$textarea.scrollTop();
|
115
|
+
|
113
116
|
var selectedText = this.$textarea.selection("get");
|
114
117
|
var buttonOps = ComposerButtons[mode];
|
115
118
|
|
@@ -133,6 +136,8 @@ var MarkdownComposerView = Backbone.View.extend({
|
|
133
136
|
|
134
137
|
this.updatePreview();
|
135
138
|
|
139
|
+
// Reset scroll position
|
140
|
+
this.$textarea.scrollTop(scrollPos);
|
136
141
|
},
|
137
142
|
|
138
143
|
// Show an error message in the preview with dimmed text
|
@@ -2,21 +2,20 @@
|
|
2
2
|
|
3
3
|
@include min-width($bpFull) {
|
4
4
|
float: left;
|
5
|
-
width: 79%;
|
6
5
|
max-width: 620px;
|
6
|
+
width: 79%;
|
7
7
|
}
|
8
8
|
|
9
9
|
&-controls {
|
10
|
-
|
11
10
|
@include clearfix;
|
12
11
|
background: $cWhite;
|
12
|
+
border-bottom: 0;
|
13
13
|
border-radius: 2px 2px 0 0;
|
14
14
|
border: 1px solid $cGrey;
|
15
|
-
|
15
|
+
margin: 0 auto -1px auto;
|
16
|
+
max-width: 1150px;
|
16
17
|
padding: 12px 10px 12px 10px;
|
17
18
|
transition: background-color 100ms linear, border-color 100ms linear;
|
18
|
-
max-width: 1150px;
|
19
|
-
margin: 0 auto -1px auto;
|
20
19
|
-moz-user-select: none;
|
21
20
|
-ms-user-select: none;
|
22
21
|
-webkit-user-select: none;
|
@@ -32,11 +31,18 @@
|
|
32
31
|
|
33
32
|
.-focused &,
|
34
33
|
.-fullscreen & {
|
35
|
-
border-color: darken($cSapphire, 10);
|
36
34
|
border-bottom: 0;
|
35
|
+
border-color: darken($cSapphire, 10);
|
37
36
|
border-right-color: $cSapphire;
|
38
37
|
}
|
38
|
+
}// end controls
|
39
|
+
|
40
|
+
&-workspace {
|
41
|
+
@include clearfix();
|
39
42
|
|
43
|
+
textarea {
|
44
|
+
float: none;
|
45
|
+
}
|
40
46
|
}
|
41
47
|
|
42
48
|
textarea {
|
@@ -44,61 +50,66 @@
|
|
44
50
|
border-top: 1px dashed $cGrey;
|
45
51
|
color: #000;
|
46
52
|
font-family: $fMonospace;
|
47
|
-
max-width: none;
|
48
53
|
font-size: 14px;
|
54
|
+
max-width: none;
|
49
55
|
padding: 12px 12px 12px 12px;
|
50
56
|
width: 100%;
|
57
|
+
|
51
58
|
&:focus {
|
52
59
|
border-top-color: $cGrey;
|
53
60
|
}
|
54
|
-
}
|
61
|
+
}// end textarea
|
55
62
|
|
56
63
|
// THIS ISN'T EVEN MY FINAL FORM!
|
57
64
|
|
58
65
|
.-fullscreen-toggle {
|
59
66
|
display: none;
|
67
|
+
|
60
68
|
@include min-width($bpFull) {
|
61
69
|
display: block;
|
62
70
|
}
|
63
71
|
}
|
64
72
|
|
65
73
|
&.-fullscreen {
|
66
|
-
|
74
|
+
background: $cCoolGrey;
|
75
|
+
background: $cWhite;
|
67
76
|
display: block;
|
77
|
+
height: 100%;
|
78
|
+
left: 0;
|
79
|
+
max-width: none;
|
80
|
+
padding: 3% 5%;
|
68
81
|
position: fixed;
|
69
|
-
z-index: 1000000;
|
70
82
|
top: 0;
|
71
|
-
left: 0;
|
72
83
|
width: 100%;
|
73
|
-
|
74
|
-
background: $cWhite;
|
75
|
-
padding: 3% 5%;
|
76
|
-
background: $cCoolGrey;
|
77
|
-
max-width: none;
|
84
|
+
z-index: 1000000;
|
78
85
|
|
79
86
|
.markdown-composer-workspace {
|
80
|
-
@include clearfix;
|
81
|
-
position: relative;
|
82
87
|
height: 100%;
|
83
|
-
max-width: 1150px;
|
84
88
|
margin: 0 auto;
|
89
|
+
max-width: 1150px;
|
90
|
+
position: relative;
|
85
91
|
}
|
86
92
|
|
87
93
|
textarea {
|
94
|
+
border-bottom-color: $cSapphire;
|
95
|
+
border-left-color: darken($cSapphire, 10);
|
96
|
+
border-right-color: $cTaupe;
|
88
97
|
display: block;
|
89
|
-
|
98
|
+
font-size: 14px;
|
99
|
+
float: left;
|
90
100
|
height: 94%;
|
101
|
+
left: 0;
|
91
102
|
position: absolute;
|
92
103
|
top: 0;
|
93
|
-
|
94
|
-
font-size: 14px;
|
95
|
-
border-left-color: darken($cSapphire, 10);
|
96
|
-
border-bottom-color: $cSapphire;
|
97
|
-
border-right-color: $cTaupe;
|
104
|
+
width: 50%;
|
98
105
|
}
|
99
106
|
|
100
107
|
.markdown-composer-preview {
|
101
|
-
|
108
|
+
background: #fdfdfd;
|
109
|
+
border-bottom: 1px solid $cSapphire;
|
110
|
+
border-radius: 0 0 2px 0;
|
111
|
+
border-right: 1px solid $cSapphire;
|
112
|
+
border-top: 1px dashed $cGrey;
|
102
113
|
height: 94%;
|
103
114
|
overflow-y: scroll;
|
104
115
|
padding: 12px 16px;
|
@@ -106,21 +117,11 @@
|
|
106
117
|
right: 0;
|
107
118
|
top: 0;
|
108
119
|
width: 50%;
|
109
|
-
|
110
|
-
background: #fdfdfd;
|
111
|
-
border-top: 1px dashed $cGrey;
|
112
|
-
border-radius: 0 0 2px 0;
|
113
|
-
border-bottom: 1px solid $cSapphire;
|
114
|
-
border-right: 1px solid $cSapphire;
|
115
|
-
|
116
120
|
}
|
117
|
-
|
118
|
-
}
|
119
|
-
|
121
|
+
}// end -fullscreen
|
120
122
|
}
|
121
123
|
|
122
124
|
.markdown-composer-button {
|
123
|
-
|
124
125
|
background: none;
|
125
126
|
color: $cGrey;
|
126
127
|
transition: color 100ms linear;
|
@@ -131,7 +132,6 @@
|
|
131
132
|
line-height: 16px;
|
132
133
|
text-transform: uppercase;
|
133
134
|
}
|
134
|
-
|
135
135
|
}
|
136
136
|
|
137
137
|
.markdown-composer.-focused,
|
@@ -144,6 +144,4 @@
|
|
144
144
|
color: $cSapphire;
|
145
145
|
}
|
146
146
|
}
|
147
|
-
|
148
147
|
}
|
149
|
-
|
data/lib/tolaria/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tolaria
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Csuhta
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bcrypt
|
@@ -503,4 +503,3 @@ test_files:
|
|
503
503
|
- test/unit/markdown_test.rb
|
504
504
|
- test/unit/menu_test.rb
|
505
505
|
- test/unit/random_tokens_test.rb
|
506
|
-
has_rdoc:
|