suvii 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.travis.yml +10 -0
  4. data/.yardopts +1 -0
  5. data/CHANGELOG.md +1 -0
  6. data/CONTRIBUTING.md +47 -0
  7. data/Gemfile +6 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +51 -0
  10. data/Rakefile +7 -0
  11. data/lib/suvii.rb +40 -0
  12. data/lib/suvii/cache.rb +24 -0
  13. data/lib/suvii/extract.rb +58 -0
  14. data/lib/suvii/extract/targz.rb +49 -0
  15. data/lib/suvii/extract/zip.rb +19 -0
  16. data/lib/suvii/http.rb +31 -0
  17. data/suvii.gemspec +23 -0
  18. data/test/acceptance_test.rb +29 -0
  19. data/test/cache_test.rb +42 -0
  20. data/test/extract/targz_test.rb +28 -0
  21. data/test/extract/zip_test.rb +28 -0
  22. data/test/extract_test.rb +26 -0
  23. data/test/fixtures/results/Trumbowyg-1.1.7/.gitattributes +6 -0
  24. data/test/fixtures/results/Trumbowyg-1.1.7/.jshintrc +15 -0
  25. data/test/fixtures/results/Trumbowyg-1.1.7/Gulpfile.js +167 -0
  26. data/test/fixtures/results/Trumbowyg-1.1.7/LICENSE +21 -0
  27. data/test/fixtures/results/Trumbowyg-1.1.7/README.md +29 -0
  28. data/test/fixtures/results/Trumbowyg-1.1.7/bower.json +36 -0
  29. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/ca.min.js +11 -0
  30. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/da.min.js +9 -0
  31. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/de.min.js +9 -0
  32. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/es.min.js +9 -0
  33. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/es_ar.min.js +9 -0
  34. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/fa.min.js +10 -0
  35. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/fi.min.js +9 -0
  36. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/fr.min.js +10 -0
  37. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/he.min.js +9 -0
  38. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/id.min.js +11 -0
  39. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/it.min.js +8 -0
  40. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/ko.min.js +10 -0
  41. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/pl.min.js +9 -0
  42. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/pt.min.js +11 -0
  43. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/ro.min.js +13 -0
  44. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/ru.min.js +8 -0
  45. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/tr.min.js +10 -0
  46. data/test/fixtures/results/Trumbowyg-1.1.7/dist/langs/zh_cn.min.js +10 -0
  47. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/base64/trumbowyg.base64.js +74 -0
  48. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/base64/trumbowyg.base64.min.js +1 -0
  49. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/colors/trumbowyg.colors.js +69 -0
  50. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/colors/trumbowyg.colors.min.js +1 -0
  51. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/colors/ui/images/icons-2x.png +0 -0
  52. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/colors/ui/images/icons.png +0 -0
  53. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/colors/ui/trumbowyg.colors.css +55 -0
  54. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/colors/ui/trumbowyg.colors.min.css +2 -0
  55. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/upload/trumbowyg.upload.js +140 -0
  56. data/test/fixtures/results/Trumbowyg-1.1.7/dist/plugins/upload/trumbowyg.upload.min.js +1 -0
  57. data/test/fixtures/results/Trumbowyg-1.1.7/dist/trumbowyg.js +1124 -0
  58. data/test/fixtures/results/Trumbowyg-1.1.7/dist/trumbowyg.min.js +2 -0
  59. data/test/fixtures/results/Trumbowyg-1.1.7/dist/ui/images/icons-2x.png +0 -0
  60. data/test/fixtures/results/Trumbowyg-1.1.7/dist/ui/images/icons.png +0 -0
  61. data/test/fixtures/results/Trumbowyg-1.1.7/dist/ui/trumbowyg.css +471 -0
  62. data/test/fixtures/results/Trumbowyg-1.1.7/dist/ui/trumbowyg.min.css +2 -0
  63. data/test/fixtures/results/Trumbowyg-1.1.7/examples/css/main.css +14 -0
  64. data/test/fixtures/results/Trumbowyg-1.1.7/examples/index.html +41 -0
  65. data/test/fixtures/results/Trumbowyg-1.1.7/examples/plugins/colors.html +49 -0
  66. data/test/fixtures/results/Trumbowyg-1.1.7/index.html +252 -0
  67. data/test/fixtures/results/Trumbowyg-1.1.7/package.json +48 -0
  68. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/base64/trumbowyg.base64.js +74 -0
  69. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/colors/Gulpfile.js +101 -0
  70. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/colors/trumbowyg.colors.js +69 -0
  71. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/colors/ui/images/icons-2x/backcolor.png +0 -0
  72. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/colors/ui/images/icons-2x/forecolor.png +0 -0
  73. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/colors/ui/images/icons/backcolor.png +0 -0
  74. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/colors/ui/images/icons/forecolor.png +0 -0
  75. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/colors/ui/sass/trumbowyg.colors.scss +65 -0
  76. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/upload/trumbowyg.upload.js +140 -0
  77. data/test/fixtures/results/Trumbowyg-1.1.7/plugins/upload/trumbowyg.upload.php +49 -0
  78. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/ca.js +58 -0
  79. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/da.js +56 -0
  80. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/de.js +56 -0
  81. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/en.js +14 -0
  82. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/es.js +56 -0
  83. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/es_ar.js +56 -0
  84. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/fa.js +57 -0
  85. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/fi.js +56 -0
  86. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/fr.js +57 -0
  87. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/he.js +58 -0
  88. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/id.js +58 -0
  89. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/it.js +55 -0
  90. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/ko.js +57 -0
  91. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/pl.js +56 -0
  92. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/pt.js +58 -0
  93. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/ro.js +60 -0
  94. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/ru.js +55 -0
  95. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/tr.js +57 -0
  96. data/test/fixtures/results/Trumbowyg-1.1.7/src/langs/zh_cn.js +57 -0
  97. data/test/fixtures/results/Trumbowyg-1.1.7/src/trumbowyg.js +1113 -0
  98. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/attachement.png +0 -0
  99. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/barre.png +0 -0
  100. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/bold.png +0 -0
  101. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/center-align.png +0 -0
  102. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/close.png +0 -0
  103. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/formatting.png +0 -0
  104. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/fullscreen-exit.png +0 -0
  105. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/fullscreen.png +0 -0
  106. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/gras.png +0 -0
  107. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/horizontal-rule.png +0 -0
  108. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/image.png +0 -0
  109. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/italic.png +0 -0
  110. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/justify-align.png +0 -0
  111. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/left-align.png +0 -0
  112. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/link.png +0 -0
  113. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/ordered-list.png +0 -0
  114. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/right-align.png +0 -0
  115. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/souligne.png +0 -0
  116. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/strikethrough.png +0 -0
  117. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/underline.png +0 -0
  118. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/unordered-list.png +0 -0
  119. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/video.png +0 -0
  120. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons-2x/view-html.png +0 -0
  121. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/attachement.png +0 -0
  122. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/barre.png +0 -0
  123. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/bold.png +0 -0
  124. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/center-align.png +0 -0
  125. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/close.png +0 -0
  126. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/formatting.png +0 -0
  127. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/fullscreen-exit.png +0 -0
  128. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/fullscreen.png +0 -0
  129. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/gras.png +0 -0
  130. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/horizontal-rule.png +0 -0
  131. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/image.png +0 -0
  132. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/italic.png +0 -0
  133. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/justify-align.png +0 -0
  134. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/left-align.png +0 -0
  135. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/link.png +0 -0
  136. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/ordered-list.png +0 -0
  137. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/right-align.png +0 -0
  138. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/souligne.png +0 -0
  139. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/strikethrough.png +0 -0
  140. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/underline.png +0 -0
  141. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/unordered-list.png +0 -0
  142. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/video.png +0 -0
  143. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/images/icons/view-html.png +0 -0
  144. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/sass/mixins/_sprite-pos.scss +7 -0
  145. data/test/fixtures/results/Trumbowyg-1.1.7/src/ui/sass/trumbowyg.scss +564 -0
  146. data/test/fixtures/trumbowyg.tar.gz +0 -0
  147. data/test/fixtures/trumbowyg.zip +0 -0
  148. data/test/http_test.rb +61 -0
  149. data/test/test_helper.rb +24 -0
  150. metadata +409 -0
@@ -0,0 +1,7 @@
1
+ @mixin sprite-pos($_item, $retina: false){
2
+ @if($retina == false){
3
+ background-position: nth($_item, 1)+5 nth($_item, 2)+5;
4
+ } @else {
5
+ background-position: round(nth($_item, 1)/ 2)+5 round(nth($_item, 2)/ 2)+5;
6
+ }
7
+ }
@@ -0,0 +1,564 @@
1
+ @import "sprite";
2
+ @import "sprite-2x";
3
+ @import "mixins/sprite-pos";
4
+
5
+ $light-color: #ecf0f1;
6
+
7
+
8
+
9
+ .trumbowyg-box,
10
+ .trumbowyg-editor {
11
+ display: block;
12
+ position: relative;
13
+ border: 1px solid #DDD;
14
+ width: 96%;
15
+ min-height: 300px;
16
+ margin: 17px auto;
17
+ }
18
+ .trumbowyg-box .trumbowyg-editor {
19
+ margin: 0 auto;
20
+ }
21
+ .trumbowyg-box.trumbowyg-fullscreen {
22
+ background: #FEFEFE;
23
+ }
24
+ .trumbowyg-editor,
25
+ .trumbowyg-textarea {
26
+ position: relative;
27
+ box-sizing: border-box;
28
+ padding: 1% 2%;
29
+ min-height: 300px;
30
+ width: 100%;
31
+ border-style: none;
32
+ resize: none;
33
+ outline: none;
34
+ }
35
+ .trumbowyg-box-blur .trumbowyg-editor {
36
+ * {
37
+ color: transparent !important;
38
+ text-shadow: 0 0 7px #333;
39
+ }
40
+ img {
41
+ opacity: .2;
42
+ }
43
+ }
44
+ .trumbowyg-textarea {
45
+ position: relative;
46
+ display: block;
47
+ overflow: auto;
48
+ border: none;
49
+ white-space: normal;
50
+ }
51
+ .trumbowyg-editor[contenteditable=true]:empty:before{
52
+ content: attr(placeholder);
53
+ color: #999;
54
+ }
55
+
56
+ .trumbowyg-button-pane {
57
+ position: relative;
58
+ width: 100%;
59
+ background: $light-color;
60
+ border-bottom: 1px solid darken($light-color, 7%);
61
+ margin: 0;
62
+ padding: 0;
63
+ list-style-type: none;
64
+ line-height: 10px;
65
+ backface-visibility: hidden;
66
+
67
+ li {
68
+ display: inline-block;
69
+ text-align: center;
70
+ overflow: hidden;
71
+
72
+ &.trumbowyg-separator {
73
+ width: 1px;
74
+ background: darken($light-color, 7%);
75
+ margin: 0 5px;
76
+ height: 35px;
77
+ }
78
+ }
79
+
80
+ &.trumbowyg-disable {
81
+ li:not(.trumbowyg-not-disable) button:not(.trumbowyg-active) {
82
+ opacity: .2;
83
+ cursor: default;
84
+ }
85
+ li.trumbowyg-separator {
86
+ background: darken($light-color, 3%);
87
+ }
88
+ }
89
+
90
+ li button {
91
+ // At bottom of this stylesheet
92
+ }
93
+
94
+ &:not(.trumbowyg-disable) li button:hover,
95
+ &:not(.trumbowyg-disable) li button:focus,
96
+ li button.trumbowyg-active,
97
+ li.trumbowyg-not-disable button:hover,
98
+ li.trumbowyg-not-disable button:focus {
99
+ background-color: #FFF;
100
+ outline: none;
101
+ }
102
+
103
+ li .trumbowyg-open-dropdown:after {
104
+ display: block;
105
+ content: " ";
106
+ position: absolute;
107
+ top: 25px;
108
+ right: 3px;
109
+ height: 0;
110
+ width: 0;
111
+ border: 3px solid transparent;
112
+ border-top-color: #555;
113
+ }
114
+
115
+ .trumbowyg-buttons-right {
116
+ float: right;
117
+ width: auto;
118
+
119
+ button {
120
+ float: left;
121
+ }
122
+ }
123
+ }
124
+
125
+ .trumbowyg-dropdown {
126
+ width: 200px;
127
+ border: 1px solid $light-color;
128
+ padding: 5px 0;
129
+ border-top: none;
130
+ background: #FFF;
131
+ margin-left: -1px;
132
+ box-shadow: rgba(0, 0, 0, .1) 0 2px 3px;
133
+
134
+ button {
135
+ display: block;
136
+ width: 100%;
137
+ height: 35px;
138
+ line-height: 35px;
139
+ text-decoration: none;
140
+ background: #FFF;
141
+ padding: 0 14px;
142
+ color: #333;
143
+ border: none;
144
+ cursor: pointer;
145
+ text-align: left;
146
+ font-size: 15px;
147
+ transition: all .15s;
148
+
149
+ &:hover,
150
+ &:focus {
151
+ background: $light-color;
152
+ }
153
+ }
154
+ }
155
+
156
+
157
+ /* Modal box */
158
+ .trumbowyg-modal {
159
+ position: absolute;
160
+ top: 0;
161
+ left: 50%;
162
+ margin-left: -260px;
163
+ width: 520px;
164
+ height: 290px;
165
+ overflow: hidden;
166
+ }
167
+ .trumbowyg-modal-box {
168
+ position: absolute;
169
+ top: 0;
170
+ left: 50%;
171
+ margin-left: -250px;
172
+ width: 500px;
173
+ height: 275px;
174
+ z-index: 1;
175
+ background-color: #FFF;
176
+ text-align: center;
177
+ box-shadow: rgba(0, 0, 0, .2) 0 2px 3px;
178
+ backface-visibility: hidden;
179
+
180
+ .trumbowyg-modal-title {
181
+ font-size: 24px;
182
+ font-weight: bold;
183
+ margin: 0 0 20px;
184
+ padding: 15px 0 13px;
185
+ display: block;
186
+ border-bottom: 1px solid #EEE;
187
+ color: #333;
188
+ background: lighten($light-color, 5%);
189
+ }
190
+
191
+ .trumbowyg-progress {
192
+ width: 100%;
193
+ background: #F00;
194
+ height: 3px;
195
+ position: absolute;
196
+ top: 58px;
197
+
198
+ .trumbowyg-progress-bar {
199
+ background: #2BC06A;
200
+ height: 100%;
201
+ transition: width .15s linear;
202
+ }
203
+ }
204
+
205
+ label {
206
+ display: block;
207
+ position: relative;
208
+ margin: 15px 12px;
209
+ height: 27px;
210
+ line-height: 27px;
211
+ overflow: hidden;
212
+
213
+ .trumbowyg-input-infos {
214
+ display: block;
215
+ text-align: left;
216
+ height: 25px;
217
+ line-height: 25px;
218
+ transition: all .15;
219
+
220
+ span {
221
+ display: block;
222
+ color: darken($light-color, 35%);
223
+ background-color: lighten($light-color, 5%);
224
+ border: 1px solid #DEDEDE;
225
+ padding: 0 2%;
226
+ width: 19.5%;
227
+ }
228
+ span.trumbowyg-msg-error {
229
+ color: #e74c3c;
230
+ }
231
+ }
232
+
233
+ &.trumbowyg-input-error {
234
+ input,
235
+ textarea {
236
+ border: 1px solid #e74c3c;
237
+ }
238
+
239
+ .trumbowyg-input-infos {
240
+ margin-top: -27px;
241
+ }
242
+ }
243
+
244
+ input {
245
+ position: absolute;
246
+ top: 0;
247
+ right: 0;
248
+ height: 25px;
249
+ line-height: 25px;
250
+ border: 1px solid #DEDEDE;
251
+ background: transparent;
252
+ width: 72%;
253
+ padding: 0 2%;
254
+ margin: 0 0 0 23%;
255
+ transition: all .15s;
256
+
257
+ &:hover,
258
+ &:focus {
259
+ outline: none;
260
+ border: 1px solid #95a5a6;
261
+ }
262
+ &:focus {
263
+ background: rgba(230, 230, 255, .1);
264
+ }
265
+ }
266
+ }
267
+
268
+ .error {
269
+ margin-top: 25px;
270
+ display: block;
271
+ color: red;
272
+ }
273
+
274
+ .trumbowyg-modal-button {
275
+ position: absolute;
276
+ bottom: 10px;
277
+ right: 0;
278
+ text-decoration: none;
279
+ color: #FFF;
280
+ display: block;
281
+ width: 100px;
282
+ height: 35px;
283
+ line-height: 33px;
284
+ margin: 0 10px;
285
+ background-color: #333;
286
+ border: none;
287
+ border-top: none;
288
+ cursor: pointer;
289
+ font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif;
290
+ font-size: 16px;
291
+ transition: all .15s;
292
+
293
+ $modal-submit-color : #2ecc71;
294
+ &.trumbowyg-modal-submit {
295
+ right: 110px;
296
+ background: darken($modal-submit-color, 3%);
297
+
298
+ &:hover,
299
+ &:focus {
300
+ background: lighten($modal-submit-color, 5%);
301
+ outline: none;
302
+ }
303
+ &:active {
304
+ background: darken($modal-submit-color, 10%);
305
+ }
306
+ }
307
+
308
+ $modal-reset-color : #EEE;
309
+ &.trumbowyg-modal-reset {
310
+ color: #555;
311
+ background: darken($modal-reset-color, 3%);
312
+
313
+ &:hover,
314
+ &:focus {
315
+ background: lighten($modal-reset-color, 5%);
316
+ outline: none;
317
+ }
318
+ &:active {
319
+ background: darken($modal-reset-color, 10%);
320
+ }
321
+ }
322
+ }
323
+ }
324
+ .trumbowyg-overlay {
325
+ position: absolute;
326
+ background-color: rgba(255, 255, 255, .5);
327
+ width: 100%;
328
+ left: 0;
329
+ display: none;
330
+ }
331
+
332
+
333
+ /**
334
+ * Fullscreen
335
+ */
336
+ .trumbowyg-fullscreen {
337
+ position: fixed;
338
+ top: 0;
339
+ left: 0;
340
+ width: 100%;
341
+ height: 100%;
342
+ margin: 0;
343
+ padding: 0;
344
+ z-index: 99999;
345
+
346
+ &.trumbowyg-box,
347
+ .trumbowyg-editor {
348
+ border: none;
349
+ }
350
+ .trumbowyg-overlay {
351
+ height: 100% !important;
352
+ }
353
+ }
354
+
355
+
356
+
357
+ /*
358
+ * Reset for resetCss option
359
+ */
360
+ .trumbowyg-editor {
361
+ object,
362
+ embed,
363
+ video,
364
+ img {
365
+ width: auto;
366
+ max-width: 100%;
367
+ }
368
+ video,
369
+ img {
370
+ height: auto;
371
+ }
372
+ img { cursor: move; }
373
+
374
+ &.trumbowyg-reset-css {
375
+ background: #FEFEFE !important;
376
+ font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
377
+ font-size: 14px !important;
378
+ line-height: 1.45em !important;
379
+ white-space: normal !important;
380
+ color: #333;
381
+
382
+ a {
383
+ color: #15c !important;
384
+ text-decoration: underline !important;
385
+ }
386
+
387
+ div,
388
+ p,
389
+ ul,
390
+ ol,
391
+ blockquote {
392
+ box-shadow: none !important;
393
+ background: none !important;
394
+ margin: 0 !important;
395
+ margin-bottom: 15px !important;
396
+ line-height: 1.4em !important;
397
+ font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif !important;
398
+ font-size: 14px !important;
399
+ border: none;
400
+ }
401
+ iframe,
402
+ object,
403
+ hr {
404
+ margin-bottom: 15px !important;
405
+ }
406
+ blockquote {
407
+ margin-left: 32px !important;
408
+ font-style: italic !important;
409
+ color: #555;
410
+ }
411
+ ul,
412
+ ol {
413
+ padding-left: 20px !important;
414
+ }
415
+ ul ul,
416
+ ol ol,
417
+ ul ol,
418
+ ol ul {
419
+ border: none;
420
+ margin: 2px !important;
421
+ padding: 0 !important;
422
+ padding-left: 24px !important;
423
+ }
424
+ hr {
425
+ display: block;
426
+ height: 1px;
427
+ border: none;
428
+ border-top: 1px solid #CCC;
429
+ }
430
+
431
+ h1,
432
+ h2,
433
+ h3,
434
+ h4 {
435
+ color: #111;
436
+ background: none;
437
+ margin: 0 !important;
438
+ padding: 0 !important;
439
+ font-weight: bold;
440
+ }
441
+
442
+ h1 {
443
+ font-size: 32px !important;
444
+ line-height: 38px !important;
445
+ margin-bottom: 20px !important;
446
+ }
447
+ h2 {
448
+ font-size: 26px !important;
449
+ line-height: 34px !important;
450
+ margin-bottom: 15px !important;
451
+ }
452
+ h3 {
453
+ font-size: 22px !important;
454
+ line-height: 28px !important;
455
+ margin-bottom: 7px !important;
456
+ }
457
+ h4 {
458
+ font-size: 16px !important;
459
+ line-height: 22px !important;
460
+ margin-bottom: 7px !important;
461
+ }
462
+ }
463
+ }
464
+
465
+
466
+
467
+ /*
468
+ * Buttons icons
469
+ */
470
+ .trumbowyg-button-pane li button {
471
+ display: block;
472
+ position: relative;
473
+ text-indent: -9999px;
474
+ width: 35px;
475
+ height: 35px;
476
+ overflow: hidden;
477
+ background: transparent url($icons) no-repeat;
478
+ border: none;
479
+ cursor: pointer;
480
+ transition: background-color .15s, background-image .15s, opacity .15s;
481
+
482
+ &.trumbowyg-viewHTML-button { @include sprite-pos($view-html); }
483
+ &.trumbowyg-formatting-button { @include sprite-pos($formatting); }
484
+
485
+ /* English and others */
486
+ &.trumbowyg-bold-button, &.trumbowyg-strong-button { @include sprite-pos($bold); }
487
+ &.trumbowyg-italic-button, &.trumbowyg-em-button { @include sprite-pos($italic); }
488
+ &.trumbowyg-underline-button { @include sprite-pos($underline); }
489
+ &.trumbowyg-strikethrough-button, &.trumbowyg-del-button { @include sprite-pos($strikethrough); }
490
+
491
+ &.trumbowyg-link-button { @include sprite-pos($link); }
492
+
493
+ &.trumbowyg-insertImage-button { @include sprite-pos($image); }
494
+
495
+ &.trumbowyg-justifyLeft-button { @include sprite-pos($left-align); }
496
+ &.trumbowyg-justifyCenter-button { @include sprite-pos($center-align); }
497
+ &.trumbowyg-justifyRight-button { @include sprite-pos($right-align); }
498
+ &.trumbowyg-justifyFull-button { @include sprite-pos($justify-align); }
499
+
500
+ &.trumbowyg-unorderedList-button { @include sprite-pos($unordered-list); }
501
+ &.trumbowyg-orderedList-button { @include sprite-pos($ordered-list); }
502
+
503
+ &.trumbowyg-horizontalRule-button { @include sprite-pos($horizontal-rule); }
504
+
505
+ &.trumbowyg-fullscreen-button { @include sprite-pos($fullscreen); }
506
+ &.trumbowyg-close-button { @include sprite-pos($close); }
507
+ }
508
+ .trumbowyg-fullscreen .trumbowyg-button-pane li button.trumbowyg-fullscreen-button { @include sprite-pos($fullscreen-exit); }
509
+ .trumbowyg-button-pane li {
510
+ &:first-child button { margin-left: 6px; }
511
+ &:last-child button { margin-right: 6px; }
512
+ }
513
+
514
+ /* French */
515
+ .trumbowyg-fr .trumbowyg-button-pane li button {
516
+ &.trumbowyg-bold-button, &.trumbowyg-strong-button { @include sprite-pos($gras); }
517
+ &.trumbowyg-underline-button { @include sprite-pos($souligne); }
518
+ &.trumbowyg-strikethrough-button, &.trumbowyg-del-button { @include sprite-pos($barre); }
519
+ }
520
+
521
+
522
+
523
+
524
+
525
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 4/3), only screen and (min-device-pixel-ratio: 1.3), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){
526
+ .trumbowyg-button-pane li button {
527
+ background-size: round($sprite-width-2x / 2) round($sprite-height-2x / 2) !important;
528
+ background-image: url($icons-2x) !important;
529
+
530
+ &.trumbowyg-viewHTML-button { @include sprite-pos($view-html-2x, true); }
531
+ &.trumbowyg-formatting-button { @include sprite-pos($formatting-2x, true); }
532
+
533
+ /* English and others */
534
+ &.trumbowyg-bold-button, &.trumbowyg-strong-button { @include sprite-pos($bold-2x, true); }
535
+ &.trumbowyg-italic-button, &.trumbowyg-em-button { @include sprite-pos($italic-2x, true); }
536
+ &.trumbowyg-underline-button { @include sprite-pos($underline-2x, true); }
537
+ &.trumbowyg-strikethrough-button, &.trumbowyg-del-button { @include sprite-pos($strikethrough-2x, true); }
538
+
539
+ &.trumbowyg-link-button { @include sprite-pos($link-2x, true); }
540
+
541
+ &.trumbowyg-insertImage-button { @include sprite-pos($image-2x, true); }
542
+
543
+ &.trumbowyg-justifyLeft-button { @include sprite-pos($left-align-2x, true); }
544
+ &.trumbowyg-justifyCenter-button { @include sprite-pos($center-align-2x, true); }
545
+ &.trumbowyg-justifyRight-button { @include sprite-pos($right-align-2x, true); }
546
+ &.trumbowyg-justifyFull-button { @include sprite-pos($justify-align-2x, true); }
547
+
548
+ &.trumbowyg-unorderedList-button { @include sprite-pos($unordered-list-2x, true); }
549
+ &.trumbowyg-orderedList-button { @include sprite-pos($ordered-list-2x, true); }
550
+
551
+ &.trumbowyg-horizontalRule-button { @include sprite-pos($horizontal-rule-2x, true); }
552
+
553
+ &.trumbowyg-fullscreen-button { @include sprite-pos($fullscreen-2x, true); }
554
+ &.trumbowyg-close-button { @include sprite-pos($close-2x, true); }
555
+ }
556
+ .trumbowyg-fullscreen .trumbowyg-button-pane li a.trumbowyg-fullscreen-button { @include sprite-pos($fullscreen-exit-2x, true); }
557
+
558
+ /* French */
559
+ .trumbowyg-fr .trumbowyg-button-pane li button {
560
+ &.trumbowyg-bold-button, &.trumbowyg-strong-button { @include sprite-pos($gras-2x, true); }
561
+ &.trumbowyg-underline-button { @include sprite-pos($souligne-2x, true); }
562
+ &.trumbowyg-strikethrough-button, &.trumbowyg-del-button { @include sprite-pos($barre-2x, true); }
563
+ }
564
+ }