tolaria 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d247616fc3a0ed63c654ab55e17000d30b4bdce1
4
- data.tar.gz: 84b540c227fbdd9569a775923c0ee82b3dbf9d06
3
+ metadata.gz: ad9a0fd53507635be02a3f66a8e48013e91c7c47
4
+ data.tar.gz: ec22b6a019726b19695f2dd1bd7d258f143b86b8
5
5
  SHA512:
6
- metadata.gz: 7bde42a805f542d6e3e8883bf4ffa76a7daf3b1b2c4d4b45a0e0c125d1f76acad12241d20b11e0ed5b8895638679b99f3818b506ef59ad4436a10fcdaac82786
7
- data.tar.gz: d8ad521e0f0c519f1eff823593c5bc6246724fdc818f4e4a267f65343ccc78c37cb9093ab1d83642872b0f204b656a6f68a01a92f2fd870b79ccf25888034c98
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
@@ -1,5 +1,9 @@
1
1
  .attachment-field {
2
2
 
3
+ @include min-width($bpFull) {
4
+ float: left;
5
+ }
6
+
3
7
  input[type=file] {
4
8
  display: none;
5
9
  }
@@ -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
- border-bottom: 0;
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
- height: 100%;
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
- width: 50%;
98
+ font-size: 14px;
99
+ float: left;
90
100
  height: 94%;
101
+ left: 0;
91
102
  position: absolute;
92
103
  top: 0;
93
- left: 0;
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
-
@@ -2,7 +2,7 @@ module Tolaria
2
2
 
3
3
  # Returns Tolaria’s version number
4
4
  def self.version
5
- Gem::Version.new("2.0.3")
5
+ Gem::Version.new("2.0.4")
6
6
  end
7
7
 
8
8
  module VERSION
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.3
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-09-19 00:00:00.000000000 Z
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: