mercury-rails 0.6.0 → 0.7.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 (61) hide show
  1. data/app/assets/javascripts/mercury.js +1 -0
  2. data/app/assets/javascripts/mercury/lightview.js.coffee +26 -12
  3. data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +3 -5
  4. data/app/assets/javascripts/mercury/locales/da.locale.js.coffee +3 -5
  5. data/app/assets/javascripts/mercury/locales/de.locale.js.coffee +4 -6
  6. data/app/assets/javascripts/mercury/locales/es.locale.js.coffee +3 -5
  7. data/app/assets/javascripts/mercury/locales/example.local.js.coffee +3 -1
  8. data/app/assets/javascripts/mercury/locales/fr.locale.js.coffee +3 -5
  9. data/app/assets/javascripts/mercury/locales/it.locale.js.coffee +3 -5
  10. data/app/assets/javascripts/mercury/locales/ko.local.js.coffee +4 -6
  11. data/app/assets/javascripts/mercury/locales/nl.locale.js.coffee +3 -5
  12. data/app/assets/javascripts/mercury/locales/pt.locale.js.coffee +3 -5
  13. data/app/assets/javascripts/mercury/locales/sv.local.js.coffee +3 -5
  14. data/app/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +3 -5
  15. data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +3 -5
  16. data/app/assets/javascripts/mercury/mercury.js.coffee +1 -1
  17. data/app/assets/javascripts/mercury/modal.js.coffee +38 -23
  18. data/app/assets/javascripts/mercury/modals/htmleditor.js.coffee +1 -0
  19. data/app/assets/javascripts/mercury/modals/insertcharacter.js.coffee +1 -0
  20. data/app/assets/javascripts/mercury/modals/insertlink.js.coffee +111 -60
  21. data/app/assets/javascripts/mercury/modals/insertmedia.js.coffee +80 -35
  22. data/app/assets/javascripts/mercury/modals/insertsnippet.js.coffee +1 -0
  23. data/app/assets/javascripts/mercury/modals/inserttable.js.coffee +59 -51
  24. data/app/assets/javascripts/mercury/page_editor.js.coffee +1 -1
  25. data/app/assets/javascripts/mercury/regions/full.coffee +1 -1
  26. data/app/assets/javascripts/mercury/regions/image.js.coffee +1 -1
  27. data/app/assets/javascripts/mercury/regions/markdown.coffee +1 -1
  28. data/app/assets/javascripts/mercury/regions/simple.js.coffee +1 -1
  29. data/app/assets/javascripts/mercury/regions/snippets.js.coffee +1 -1
  30. data/app/assets/javascripts/mercury/table_editor.js.coffee +16 -0
  31. data/app/assets/javascripts/mercury/toolbar.js.coffee +2 -2
  32. data/app/assets/stylesheets/mercury.css +0 -5
  33. data/app/assets/stylesheets/mercury/bootstrap-ish.css +1367 -0
  34. data/app/assets/stylesheets/mercury/bootstrap-overrides.css +60 -0
  35. data/app/assets/stylesheets/mercury/lightview.css +2 -52
  36. data/app/assets/stylesheets/mercury/mercury.css +2 -2
  37. data/app/assets/stylesheets/mercury/modal.css +13 -31
  38. data/app/assets/stylesheets/mercury/uploader.css +3 -3
  39. data/app/views/mercury/modals/htmleditor.html +2 -6
  40. data/app/views/mercury/modals/link.html +70 -64
  41. data/app/views/mercury/modals/media.html +80 -71
  42. data/app/views/mercury/modals/table.html +79 -73
  43. data/app/views/mercury/snippets/example/options.html.erb +11 -30
  44. data/features/loading/loading.feature +1 -1
  45. data/features/regions/full/inserting_links.feature +4 -4
  46. data/features/regions/full/inserting_media.feature +3 -3
  47. data/features/step_definitions/mercury_steps.rb +5 -5
  48. data/features/support/env.rb +1 -1
  49. data/lib/mercury/version.rb +1 -1
  50. data/spec/javascripts/mercury/lightview_spec.js.coffee +136 -129
  51. data/spec/javascripts/mercury/modal_spec.js.coffee +143 -139
  52. data/spec/javascripts/mercury/modals/insertlink_spec.js.coffee +105 -31
  53. data/spec/javascripts/mercury/modals/insertmedia_spec.js.coffee +76 -38
  54. data/spec/javascripts/mercury/modals/inserttable_spec.js.coffee +32 -35
  55. data/spec/javascripts/mercury/toolbar_spec.js.coffee +8 -0
  56. data/spec/javascripts/templates/mercury/modals/insertlink.html +58 -21
  57. data/spec/javascripts/templates/mercury/modals/insertmedia.html +69 -27
  58. data/spec/javascripts/templates/mercury/modals/inserttable.html +66 -20
  59. metadata +5 -5
  60. data/app/assets/stylesheets/mercury/buttons.css +0 -73
  61. data/app/assets/stylesheets/mercury/form.css +0 -125
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercury-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -328,9 +328,9 @@ files:
328
328
  - app/assets/javascripts/mercury/uploader.js.coffee
329
329
  - app/assets/javascripts/mercury.js
330
330
  - app/assets/stylesheets/mercury/all_images.css.erb
331
- - app/assets/stylesheets/mercury/buttons.css
331
+ - app/assets/stylesheets/mercury/bootstrap-ish.css
332
+ - app/assets/stylesheets/mercury/bootstrap-overrides.css
332
333
  - app/assets/stylesheets/mercury/dialog.css
333
- - app/assets/stylesheets/mercury/form.css
334
334
  - app/assets/stylesheets/mercury/lightview.css
335
335
  - app/assets/stylesheets/mercury/mercury.css
336
336
  - app/assets/stylesheets/mercury/modal.css
@@ -517,7 +517,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
517
517
  version: '0'
518
518
  segments:
519
519
  - 0
520
- hash: -1612885216118549362
520
+ hash: 1994431124283081759
521
521
  required_rubygems_version: !ruby/object:Gem::Requirement
522
522
  none: false
523
523
  requirements:
@@ -526,7 +526,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
526
526
  version: '0'
527
527
  segments:
528
528
  - 0
529
- hash: -1612885216118549362
529
+ hash: 1994431124283081759
530
530
  requirements: []
531
531
  rubyforge_project:
532
532
  rubygems_version: 1.8.21
@@ -1,73 +0,0 @@
1
-
2
- /*
3
- * Buttons TODO: Refactor to a more generic button
4
- *----------------------------------------------------------------------------*/
5
- .btn {
6
- -webkit-background-clip: padding;
7
- -moz-background-clip: padding;
8
- background-clip: padding-box;
9
- border-radius: 0.4em;
10
- display: block;
11
- font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
12
- font-size: 1.2em;
13
- background: #f5f5f5;
14
- border: 1px solid #a9a9a9;
15
- color: #666;
16
- cursor: pointer;
17
- line-height: normal;
18
- text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.75);
19
- padding: 0.4em 0.8em;
20
- }
21
- .btn:visited {
22
- color: #666;
23
- }
24
- .btn:hover,
25
- .btn:focus,
26
- .btn.active {
27
- color: #666;
28
- background: #ededed;
29
- }
30
- .btn:hover,
31
- .btn.active {
32
- border: 1px solid #8f8f8f;
33
- }
34
- .btn:hover {
35
- -webkit-box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.7);
36
- -moz-box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.7);
37
- box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.7);
38
- }
39
- .btn:focus {
40
- -webkit-box-shadow: 0 0 8px rgba(82, 168, 236, 0.6), inset 0 1px 4px rgba(255, 255, 255, 0.7);
41
- -moz-box-shadow: 0 0 8px rgba(82, 168, 236, 0.6), inset 0 1px 4px rgba(255, 255, 255, 0.7);
42
- box-shadow: 0 0 8px rgba(82, 168, 236, 0.6), inset 0 1px 4px rgba(255, 255, 255, 0.7);
43
- border: 1px solid rgba(82, 168, 236, 0.8);
44
- outline: 0;
45
- }
46
- .btn:active,
47
- .btn.active {
48
- -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
49
- -moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
50
- box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
51
- }
52
-
53
- /* Overrides for the blue "important" button */
54
- .btn.important {
55
- background: #268bd2;
56
- border: 1px solid #16527c;
57
- color: #fff;
58
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
59
- }
60
- .btn.important:visited {
61
- color: #fff;
62
- }
63
- .btn.important:hover,
64
- .btn.important:focus,
65
- .btn.important.active {
66
- color: #fff;
67
- background: #2482c5;
68
- }
69
- .btn.important:hover,
70
- .btn.important.active {
71
- border: 1px solid #0f3550;
72
- }
73
-
@@ -1,125 +0,0 @@
1
- /*
2
- * Forms
3
- *---------------------------------------------------------------------------*/
4
- .mercury-form,
5
- .mercury-form ul,
6
- .mercury-form ol,
7
- .mercury-form li,
8
- .mercury-form fieldset,
9
- .mercury-form p {
10
- margin: 0;
11
- padding: 0;
12
- }
13
- .mercury-form abbr {
14
- border: 0;
15
- font-variant: normal;
16
- }
17
- .mercury-form fieldset {
18
- margin-bottom: 10px;
19
- background: #F6F6F6;
20
- border: 1px solid #CCC;
21
- border-radius: 7px;
22
- -moz-border-radius: 7px;
23
- }
24
- .mercury-form fieldset:last-child {
25
- margin-bottom: 0;
26
- }
27
- .mercury-form fieldset legend {
28
- font-weight: bold;
29
- margin-left: 10px;
30
- margin-bottom: -4px;
31
- }
32
- .mercury-form ol {
33
- margin: 12px 9px;
34
- }
35
- .mercury-form ol li {
36
- display: block;
37
- margin-bottom: 10px;
38
- }
39
- .mercury-form label {
40
- display: block;
41
- float: left;
42
- width: 23%;
43
- margin-right: 9px;
44
- text-align: right;
45
- line-height: 27px;
46
- font-size: 1.1em;
47
- overflow: hidden;
48
- text-overflow: ellipsis;
49
- white-space: nowrap;
50
- }
51
- .mercury-form label input {
52
- width: auto !important;
53
- margin: 0 5px 0 2px !important;
54
- }
55
- .mercury-form select,
56
- .mercury-form input[type=text],
57
- .mercury-form input[type=password],
58
- .mercury-form textarea,
59
- .mercury-form input.text {
60
- margin: 0;
61
- border: 2px solid #CCC;
62
- padding: 2px 4px;
63
- font-family: Arial, Geneva, sans-serif;
64
- font-size: 1.5em;
65
- width: 74%;
66
- box-sizing: border-box;
67
- -moz-box-sizing: border-box;
68
- -webkit-box-sizing: border-box;
69
- }
70
- .mercury-form li.boolean {
71
- margin-left: 23%;
72
- padding-left: 9px;
73
- }
74
- .mercury-form li.boolean label {
75
- width: auto;
76
- }
77
- .mercury-form fieldset.buttons,
78
- .mercury-form fieldset.actions {
79
- clear: both;
80
- padding: 0;
81
- background: none;
82
- border: none;
83
- text-align: left;
84
- }
85
- .mercury-form fieldset.buttons ol,
86
- .mercury-form fieldset.actions ol {
87
- margin: 0 -2px 0 0;
88
- float: right;
89
- }
90
- .mercury-form fieldset.buttons ol li,
91
- .mercury-form fieldset.actions ol li {
92
- float: left;
93
- padding-left: 0.5em;
94
- padding-right: 0;
95
- }
96
- .mercury-form fieldset.buttons .commit,
97
- .mercury-form fieldset.actions .action {
98
- margin: 0;
99
- }
100
- .mercury-form fieldset.buttons .commit input,
101
- .mercury-form fieldset.actions .action input {
102
- -webkit-background-clip: padding;
103
- -moz-background-clip: padding;
104
- background-clip: padding-box;
105
- border-radius: 0.4em;
106
- display: block;
107
- font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', sans-serif;
108
- font-size: 1.2em;
109
- background: #268bd2;
110
- border: 1px solid #16527c;
111
- color: #fff;
112
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
113
- cursor: pointer;
114
- line-height: normal;
115
- padding: 0.4em 0.8em;
116
- }
117
- .mercury-form fieldset.buttons .commit input:hover,
118
- .mercury-form fieldset.actions .action input:hover {
119
- color: #fff;
120
- background: #2482c5;
121
- border: 1px solid #0f3550;
122
- -webkit-box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.7);
123
- -moz-box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.7);
124
- box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.7);
125
- }