weaver 0.8.14 → 0.9.0

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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/data/weaver/css/plugins/codemirror/codemirror.css +97 -96
  3. data/data/weaver/css/style-dark.css +8628 -0
  4. data/data/weaver/css/style.css +37 -0
  5. data/data/weaver/js/plugins/codemirror/codemirror.js +8817 -6763
  6. data/data/weaver/js/plugins/skeuocard/Gruntfile.coffee +74 -0
  7. data/data/weaver/js/plugins/skeuocard/LICENSE +21 -0
  8. data/data/weaver/js/plugins/skeuocard/README.md +393 -0
  9. data/data/weaver/js/plugins/skeuocard/bower.json +40 -0
  10. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.eot +0 -0
  11. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.svg +138 -0
  12. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.ttf +0 -0
  13. data/data/weaver/js/plugins/skeuocard/fonts/ocra-webfont.woff +0 -0
  14. data/data/weaver/js/plugins/skeuocard/images/card-flip-arrow.png +0 -0
  15. data/data/weaver/js/plugins/skeuocard/images/card-front-background.png +0 -0
  16. data/data/weaver/js/plugins/skeuocard/images/card-invalid-indicator.png +0 -0
  17. data/data/weaver/js/plugins/skeuocard/images/card-valid-anim.gif +0 -0
  18. data/data/weaver/js/plugins/skeuocard/images/card-valid-indicator.png +0 -0
  19. data/data/weaver/js/plugins/skeuocard/images/error-pointer.png +0 -0
  20. data/data/weaver/js/plugins/skeuocard/images/issuers/visa-chase-sapphire.png +0 -0
  21. data/data/weaver/js/plugins/skeuocard/images/issuers/visa-simple-front.png +0 -0
  22. data/data/weaver/js/plugins/skeuocard/images/products/amex-front.png +0 -0
  23. data/data/weaver/js/plugins/skeuocard/images/products/dinersclubintl-front.png +0 -0
  24. data/data/weaver/js/plugins/skeuocard/images/products/discover-front.png +0 -0
  25. data/data/weaver/js/plugins/skeuocard/images/products/generic-back.png +0 -0
  26. data/data/weaver/js/plugins/skeuocard/images/products/generic-front.png +0 -0
  27. data/data/weaver/js/plugins/skeuocard/images/products/jcb-front.png +0 -0
  28. data/data/weaver/js/plugins/skeuocard/images/products/maestro-front.png +0 -0
  29. data/data/weaver/js/plugins/skeuocard/images/products/mastercard-front.png +0 -0
  30. data/data/weaver/js/plugins/skeuocard/images/products/unionpay-front.png +0 -0
  31. data/data/weaver/js/plugins/skeuocard/images/products/visa-back.png +0 -0
  32. data/data/weaver/js/plugins/skeuocard/images/products/visa-front.png +0 -0
  33. data/data/weaver/js/plugins/skeuocard/images/src/card-front-background.fw.png +0 -0
  34. data/data/weaver/js/plugins/skeuocard/images/src/error-pointer.png +0 -0
  35. data/data/weaver/js/plugins/skeuocard/images/src/product-amex-front.fw.png +0 -0
  36. data/data/weaver/js/plugins/skeuocard/images/src/product-dinersclub-front.fw.png +0 -0
  37. data/data/weaver/js/plugins/skeuocard/images/src/product-discover-front.fw.png +0 -0
  38. data/data/weaver/js/plugins/skeuocard/images/src/product-generic-front.fw.png +0 -0
  39. data/data/weaver/js/plugins/skeuocard/images/src/product-jcb-front.fw.png +0 -0
  40. data/data/weaver/js/plugins/skeuocard/images/src/product-maestro-front.fw.png +0 -0
  41. data/data/weaver/js/plugins/skeuocard/images/src/product-mastercard-front.fw.png +0 -0
  42. data/data/weaver/js/plugins/skeuocard/images/src/product-unionpay-front.fw.png +0 -0
  43. data/data/weaver/js/plugins/skeuocard/images/src/product-visa-front.fw.png +0 -0
  44. data/data/weaver/js/plugins/skeuocard/index.html +124 -0
  45. data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.js +1748 -0
  46. data/data/weaver/js/plugins/skeuocard/javascripts/skeuocard.min.js +2 -0
  47. data/data/weaver/js/plugins/skeuocard/javascripts/src/CardProduct.coffee +284 -0
  48. data/data/weaver/js/plugins/skeuocard/javascripts/src/ExpirationInputView.coffee +206 -0
  49. data/data/weaver/js/plugins/skeuocard/javascripts/src/FlipTabView.coffee +67 -0
  50. data/data/weaver/js/plugins/skeuocard/javascripts/src/SegmentedCardNumberInputView.coffee +284 -0
  51. data/data/weaver/js/plugins/skeuocard/javascripts/src/Skeuocard.coffee +439 -0
  52. data/data/weaver/js/plugins/skeuocard/javascripts/src/TextInputView.coffee +42 -0
  53. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/cssua.min.js +7 -0
  54. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/demo.fix.js +17 -0
  55. data/data/weaver/js/plugins/skeuocard/javascripts/vendor/jquery-2.0.3.min.js +5 -0
  56. data/data/weaver/js/plugins/skeuocard/package-lock.json +760 -0
  57. data/data/weaver/js/plugins/skeuocard/package.json +19 -0
  58. data/data/weaver/js/plugins/skeuocard/screenshot.png +0 -0
  59. data/data/weaver/js/plugins/skeuocard/styles/demo.css +2 -0
  60. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.css +2 -0
  61. data/data/weaver/js/plugins/skeuocard/styles/skeuocard.reset.css +2 -0
  62. data/data/weaver/js/plugins/skeuocard/styles/src/_browser_hacks.scss +52 -0
  63. data/data/weaver/js/plugins/skeuocard/styles/src/_cards.scss +516 -0
  64. data/data/weaver/js/plugins/skeuocard/styles/src/_util.scss +15 -0
  65. data/data/weaver/js/plugins/skeuocard/styles/src/demo.scss +265 -0
  66. data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.reset.scss +60 -0
  67. data/data/weaver/js/plugins/skeuocard/styles/src/skeuocard.scss +190 -0
  68. data/lib/weaver/page_types/page.rb +5 -0
  69. data/lib/weaver/page_types/structured_page.rb +1 -1
  70. data/lib/weaver/version.rb +1 -1
  71. metadata +69 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08723743ae3b23e4322d7bcd0376e472569878e545913b3e72a7d1af036b06de'
4
- data.tar.gz: af3a195beb9e97cd7fadaa10e45bdf9ab2d63190e0b13192f408e2bd89f78cce
3
+ metadata.gz: 0663b091e33c69d2a8b95db041580f23f0a19d3dfdc06e8cfa481af9dd119697
4
+ data.tar.gz: f0d665ab8ccf9bc0b5da87a38b2450b3e9228d47608204864b886c4cbf2ee101
5
5
  SHA512:
6
- metadata.gz: 71c20a8a9426bab467b196ef08b96c506e60af7de589675a4075b9fadee610731788028818816143720010c15d422ca1571eb1d204929ee285501440f58ae0ac
7
- data.tar.gz: a7b5938d6f398778cb2fa6b9856325572d92d863217ee2b32058ed0348f89452122ea77764359dfe0d9f7ef582b53979f6e81fd2cc6a3ea8eb9ca6a1c8c0d72a
6
+ metadata.gz: 485ee8146aba6779ab48537d5cbcf1d25c93b407315ae7b58654b0c75983f48c51167c88ed0a01342f4eb0530151e2ccee0ebfb4151ce528660d97c1ae0d05db
7
+ data.tar.gz: 3e544cc6e2d47f945f22b6cee13a03e5fddd1d71a9dfe5bd47d37eaa434378effeb2421315933f5cd1f64e2309d2f86343db3a0b0158ecac2640c7490fdf7e7c
@@ -4,10 +4,8 @@
4
4
  /* Set height, width, borders, and global font properties here */
5
5
  font-family: monospace;
6
6
  height: 300px;
7
- }
8
- .CodeMirror-scroll {
9
- /* Set scrolling behaviour here */
10
- overflow: auto;
7
+ color: black;
8
+ direction: ltr;
11
9
  }
12
10
 
13
11
  /* PADDING */
@@ -15,7 +13,8 @@
15
13
  .CodeMirror-lines {
16
14
  padding: 4px 0; /* Vertical padding around content */
17
15
  }
18
- .CodeMirror pre {
16
+ .CodeMirror pre.CodeMirror-line,
17
+ .CodeMirror pre.CodeMirror-line-like {
19
18
  padding: 0 4px; /* Horizontal padding of content */
20
19
  }
21
20
 
@@ -36,8 +35,7 @@
36
35
  min-width: 20px;
37
36
  text-align: right;
38
37
  color: #999;
39
- -moz-box-sizing: content-box;
40
- box-sizing: content-box;
38
+ white-space: nowrap;
41
39
  }
42
40
 
43
41
  .CodeMirror-guttermarker { color: black; }
@@ -45,94 +43,69 @@
45
43
 
46
44
  /* CURSOR */
47
45
 
48
- .CodeMirror div.CodeMirror-cursor {
46
+ .CodeMirror-cursor {
49
47
  border-left: 1px solid black;
48
+ border-right: none;
49
+ width: 0;
50
50
  }
51
51
  /* Shown when moving in bi-directional text */
52
52
  .CodeMirror div.CodeMirror-secondarycursor {
53
53
  border-left: 1px solid silver;
54
54
  }
55
- .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
55
+ .cm-fat-cursor .CodeMirror-cursor {
56
56
  width: auto;
57
- border: 0;
57
+ border: 0 !important;
58
58
  background: #7e7;
59
59
  }
60
- .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursors {
60
+ .cm-fat-cursor div.CodeMirror-cursors {
61
61
  z-index: 1;
62
62
  }
63
-
64
- .cm-animate-fat-cursor {
65
- width: auto;
66
- border: 0;
67
- -webkit-animation: blink 1.06s steps(1) infinite;
68
- -moz-animation: blink 1.06s steps(1) infinite;
69
- animation: blink 1.06s steps(1) infinite;
70
- }
63
+ .cm-fat-cursor .CodeMirror-line::selection,
64
+ .cm-fat-cursor .CodeMirror-line > span::selection,
65
+ .cm-fat-cursor .CodeMirror-line > span > span::selection { background: transparent; }
66
+ .cm-fat-cursor .CodeMirror-line::-moz-selection,
67
+ .cm-fat-cursor .CodeMirror-line > span::-moz-selection,
68
+ .cm-fat-cursor .CodeMirror-line > span > span::-moz-selection { background: transparent; }
69
+ .cm-fat-cursor { caret-color: transparent; }
71
70
  @-moz-keyframes blink {
72
- 0% { background: #7e7; }
73
- 50% { background: none; }
74
- 100% { background: #7e7; }
71
+ 0% {}
72
+ 50% { background-color: transparent; }
73
+ 100% {}
75
74
  }
76
75
  @-webkit-keyframes blink {
77
- 0% { background: #7e7; }
78
- 50% { background: none; }
79
- 100% { background: #7e7; }
76
+ 0% {}
77
+ 50% { background-color: transparent; }
78
+ 100% {}
80
79
  }
81
80
  @keyframes blink {
82
- 0% { background: #7e7; }
83
- 50% { background: none; }
84
- 100% { background: #7e7; }
81
+ 0% {}
82
+ 50% { background-color: transparent; }
83
+ 100% {}
85
84
  }
86
85
 
87
86
  /* Can style cursor different in overwrite (non-insert) mode */
88
- div.CodeMirror-overwrite div.CodeMirror-cursor {}
87
+ .CodeMirror-overwrite .CodeMirror-cursor {}
89
88
 
90
89
  .cm-tab { display: inline-block; text-decoration: inherit; }
91
90
 
91
+ .CodeMirror-rulers {
92
+ position: absolute;
93
+ left: 0; right: 0; top: -50px; bottom: 0;
94
+ overflow: hidden;
95
+ }
92
96
  .CodeMirror-ruler {
93
97
  border-left: 1px solid #ccc;
98
+ top: 0; bottom: 0;
94
99
  position: absolute;
95
100
  }
96
101
 
97
102
  /* DEFAULT THEME */
98
103
 
99
- .cm-s-default .cm-keyword {color: #708;}
100
- .cm-s-default .cm-atom {color: #219;}
101
- .cm-s-default .cm-number {color: #164;}
102
- .cm-s-default .cm-def {color: #00f;}
103
- .cm-s-default .cm-variable,
104
- .cm-s-default .cm-punctuation,
105
- .cm-s-default .cm-property,
106
- .cm-s-default .cm-operator {}
107
- .cm-s-default .cm-variable-2 {color: #05a;}
108
- .cm-s-default .cm-variable-3 {color: #085;}
109
- .cm-s-default .cm-comment {color: #a50;}
110
- .cm-s-default .cm-string {color: #a11;}
111
- .cm-s-default .cm-string-2 {color: #f50;}
112
- .cm-s-default .cm-meta {color: #555;}
113
- .cm-s-default .cm-qualifier {color: #555;}
114
- .cm-s-default .cm-builtin {color: #30a;}
115
- .cm-s-default .cm-bracket {color: #997;}
116
- .cm-s-default .cm-tag {color: #170;}
117
- .cm-s-default .cm-attribute {color: #00c;}
118
- .cm-s-default .cm-header {color: blue;}
119
- .cm-s-default .cm-quote {color: #090;}
120
- .cm-s-default .cm-hr {color: #999;}
121
- .cm-s-default .cm-link {color: #00c;}
122
-
123
- .cm-negative {color: #d44;}
124
- .cm-positive {color: #292;}
125
- .cm-header, .cm-strong {font-weight: bold;}
126
- .cm-em {font-style: italic;}
127
- .cm-link {text-decoration: underline;}
128
-
129
- .cm-s-default .cm-error {color: #f00;}
130
- .cm-invalidchar {color: #f00;}
131
104
 
132
105
  /* Default styles for common addons */
133
106
 
134
- div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
135
- div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
107
+ div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
108
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
136
109
  .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
137
110
  .CodeMirror-activeline-background {background: #e8f2ff;}
138
111
 
@@ -142,38 +115,35 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
142
115
  the editor. You probably shouldn't touch them. */
143
116
 
144
117
  .CodeMirror {
145
- line-height: 1;
146
118
  position: relative;
147
119
  overflow: hidden;
148
120
  background: white;
149
- color: black;
150
121
  }
151
122
 
152
123
  .CodeMirror-scroll {
153
- /* 30px is the magic margin used to hide the element's real scrollbars */
124
+ overflow: scroll !important; /* Things will break if this is overridden */
125
+ /* 50px is the magic margin used to hide the element's real scrollbars */
154
126
  /* See overflow: hidden in .CodeMirror */
155
- margin-bottom: -30px; margin-right: -30px;
156
- padding-bottom: 30px;
127
+ margin-bottom: -50px; margin-right: -50px;
128
+ padding-bottom: 50px;
157
129
  height: 100%;
158
130
  outline: none; /* Prevent dragging from highlighting the element */
159
131
  position: relative;
160
- -moz-box-sizing: content-box;
161
- box-sizing: content-box;
132
+ z-index: 0;
162
133
  }
163
134
  .CodeMirror-sizer {
164
135
  position: relative;
165
- border-right: 30px solid transparent;
166
- -moz-box-sizing: content-box;
167
- box-sizing: content-box;
136
+ border-right: 50px solid transparent;
168
137
  }
169
138
 
170
139
  /* The fake, visible scrollbars. Used to force redraw during scrolling
171
- before actuall scrolling happens, thus preventing shaking and
140
+ before actual scrolling happens, thus preventing shaking and
172
141
  flickering artifacts. */
173
142
  .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
174
143
  position: absolute;
175
144
  z-index: 6;
176
145
  display: none;
146
+ outline: none;
177
147
  }
178
148
  .CodeMirror-vscrollbar {
179
149
  right: 0; top: 0;
@@ -194,32 +164,41 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
194
164
 
195
165
  .CodeMirror-gutters {
196
166
  position: absolute; left: 0; top: 0;
197
- padding-bottom: 30px;
167
+ min-height: 100%;
198
168
  z-index: 3;
199
169
  }
200
170
  .CodeMirror-gutter {
201
171
  white-space: normal;
202
172
  height: 100%;
203
- -moz-box-sizing: content-box;
204
- box-sizing: content-box;
205
- padding-bottom: 30px;
206
- margin-bottom: -32px;
207
173
  display: inline-block;
208
- /* Hack to make IE7 behave */
209
- *zoom:1;
210
- *display:inline;
174
+ vertical-align: top;
175
+ margin-bottom: -50px;
176
+ }
177
+ .CodeMirror-gutter-wrapper {
178
+ position: absolute;
179
+ z-index: 4;
180
+ background: none !important;
181
+ border: none !important;
182
+ }
183
+ .CodeMirror-gutter-background {
184
+ position: absolute;
185
+ top: 0; bottom: 0;
186
+ z-index: 4;
211
187
  }
212
188
  .CodeMirror-gutter-elt {
213
189
  position: absolute;
214
190
  cursor: default;
215
191
  z-index: 4;
216
192
  }
193
+ .CodeMirror-gutter-wrapper ::selection { background-color: transparent }
194
+ .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
217
195
 
218
196
  .CodeMirror-lines {
219
197
  cursor: text;
220
198
  min-height: 1px; /* prevents collapsing before first draw */
221
199
  }
222
- .CodeMirror pre {
200
+ .CodeMirror pre.CodeMirror-line,
201
+ .CodeMirror pre.CodeMirror-line-like {
223
202
  /* Reset some styles that the rest of the page might have set */
224
203
  -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
225
204
  border-width: 0;
@@ -234,8 +213,12 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
234
213
  z-index: 2;
235
214
  position: relative;
236
215
  overflow: visible;
216
+ -webkit-tap-highlight-color: transparent;
217
+ -webkit-font-variant-ligatures: contextual;
218
+ font-variant-ligatures: contextual;
237
219
  }
238
- .CodeMirror-wrap pre {
220
+ .CodeMirror-wrap pre.CodeMirror-line,
221
+ .CodeMirror-wrap pre.CodeMirror-line-like {
239
222
  word-wrap: break-word;
240
223
  white-space: pre-wrap;
241
224
  word-break: normal;
@@ -250,13 +233,25 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
250
233
  .CodeMirror-linewidget {
251
234
  position: relative;
252
235
  z-index: 2;
253
- overflow: auto;
236
+ padding: 0.1px; /* Force widget margins to stay inside of the container */
254
237
  }
255
238
 
256
239
  .CodeMirror-widget {}
257
240
 
258
- .CodeMirror-wrap .CodeMirror-scroll {
259
- overflow-x: hidden;
241
+ .CodeMirror-rtl pre { direction: rtl; }
242
+
243
+ .CodeMirror-code {
244
+ outline: none;
245
+ }
246
+
247
+ /* Force content-box sizing for the elements where we expect it */
248
+ .CodeMirror-scroll,
249
+ .CodeMirror-sizer,
250
+ .CodeMirror-gutter,
251
+ .CodeMirror-gutters,
252
+ .CodeMirror-linenumber {
253
+ -moz-box-sizing: content-box;
254
+ box-sizing: content-box;
260
255
  }
261
256
 
262
257
  .CodeMirror-measure {
@@ -266,19 +261,22 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
266
261
  overflow: hidden;
267
262
  visibility: hidden;
268
263
  }
269
- .CodeMirror-measure pre { position: static; }
270
264
 
271
- .CodeMirror div.CodeMirror-cursor {
265
+ .CodeMirror-cursor {
272
266
  position: absolute;
273
- border-right: none;
274
- width: 0;
267
+ pointer-events: none;
275
268
  }
269
+ .CodeMirror-measure pre { position: static; }
276
270
 
277
271
  div.CodeMirror-cursors {
278
272
  visibility: hidden;
279
273
  position: relative;
280
274
  z-index: 3;
281
275
  }
276
+ div.CodeMirror-dragcursors {
277
+ visibility: visible;
278
+ }
279
+
282
280
  .CodeMirror-focused div.CodeMirror-cursors {
283
281
  visibility: visible;
284
282
  }
@@ -286,15 +284,14 @@ div.CodeMirror-cursors {
286
284
  .CodeMirror-selected { background: #d9d9d9; }
287
285
  .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
288
286
  .CodeMirror-crosshair { cursor: crosshair; }
287
+ .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
288
+ .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
289
289
 
290
290
  .cm-searching {
291
- background: #ffa;
292
- background: rgba(255, 255, 0, .4);
291
+ background-color: #ffa;
292
+ background-color: rgba(255, 255, 0, .4);
293
293
  }
294
294
 
295
- /* IE7 hack to prevent it from returning funny offsetTops on the spans */
296
- .CodeMirror span { *vertical-align: text-bottom; }
297
-
298
295
  /* Used to force a border model for a node */
299
296
  .cm-force-border { padding-right: .1px; }
300
297
 
@@ -305,5 +302,9 @@ div.CodeMirror-cursors {
305
302
  }
306
303
  }
307
304
 
305
+ /* See issue #2901 */
306
+ .cm-tab-wrap-hack:after { content: ''; }
307
+
308
308
  /* Help users use markselection to safely style text background */
309
309
  span.CodeMirror-selectedtext { background: none; }
310
+