alchemy_cms 2.6.0.rc5 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/.travis.yml +1 -1
  2. data/Gemfile +2 -1
  3. data/README.md +2 -4
  4. data/alchemy_cms.gemspec +1 -1
  5. data/app/assets/fonts/alchemy/icons.eot +0 -0
  6. data/app/assets/fonts/alchemy/icons.svg +71 -0
  7. data/app/assets/fonts/alchemy/icons.ttf +0 -0
  8. data/app/assets/fonts/alchemy/icons.woff +0 -0
  9. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +6 -8
  10. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +2 -3
  11. data/app/assets/javascripts/alchemy/alchemy.image_cropper.js.coffee +3 -8
  12. data/app/assets/javascripts/alchemy/alchemy.link_overlay.js.coffee +3 -3
  13. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +19 -9
  14. data/app/assets/javascripts/tiny_mce/plugins/alchemy_link/editor_plugin.js +6 -7
  15. data/app/assets/stylesheets/alchemy/admin.css.scss +0 -1
  16. data/app/assets/stylesheets/alchemy/archive.scss +55 -7
  17. data/app/assets/stylesheets/alchemy/base.scss +8 -144
  18. data/app/assets/stylesheets/alchemy/defaults.scss +1 -1
  19. data/app/assets/stylesheets/alchemy/elements.scss +20 -16
  20. data/app/assets/stylesheets/alchemy/flash.scss +1 -1
  21. data/app/assets/stylesheets/alchemy/form_elements.scss +49 -42
  22. data/app/assets/stylesheets/alchemy/icon-font.css.scss +67 -0
  23. data/app/assets/stylesheets/alchemy/icons.scss +16 -4
  24. data/app/assets/stylesheets/alchemy/jquery-ui.scss +40 -26
  25. data/app/assets/stylesheets/alchemy/menubar.css.scss +1 -1
  26. data/app/assets/stylesheets/alchemy/notices.scss +6 -1
  27. data/app/assets/stylesheets/alchemy/search.scss +3 -2
  28. data/app/assets/stylesheets/alchemy/sitemap.scss +72 -13
  29. data/app/assets/stylesheets/alchemy/tables.scss +31 -24
  30. data/app/assets/stylesheets/alchemy/upload.scss +1 -1
  31. data/app/assets/stylesheets/alchemy/variables.scss +2 -1
  32. data/app/assets/stylesheets/tiny_mce/plugins/inlinepopups/skins/{alchemy → alchemy-tinymce-dialog}/window.css.scss +70 -65
  33. data/app/controllers/alchemy/admin/base_controller.rb +7 -4
  34. data/app/controllers/alchemy/admin/pictures_controller.rb +2 -0
  35. data/app/controllers/alchemy/admin/users_controller.rb +1 -1
  36. data/app/controllers/alchemy/user_sessions_controller.rb +1 -1
  37. data/app/helpers/alchemy/admin/base_helper.rb +161 -60
  38. data/app/helpers/alchemy/admin/pages_helper.rb +4 -1
  39. data/app/helpers/alchemy/elements_block_helper.rb +1 -1
  40. data/app/helpers/alchemy/elements_helper.rb +119 -31
  41. data/app/helpers/alchemy/pages_helper.rb +29 -72
  42. data/app/models/alchemy/attachment.rb +0 -2
  43. data/app/models/alchemy/content.rb +1 -1
  44. data/app/models/alchemy/language.rb +1 -0
  45. data/app/models/alchemy/page.rb +8 -8
  46. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +3 -1
  47. data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +1 -1
  48. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +25 -27
  49. data/app/views/alchemy/admin/attachments/index.html.erb +4 -1
  50. data/app/views/alchemy/admin/elements/_elements_select.html.erb +6 -6
  51. data/app/views/alchemy/admin/elements/list.js.erb +1 -1
  52. data/app/views/alchemy/admin/pages/_page.html.erb +1 -1
  53. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +1 -1
  54. data/app/views/alchemy/admin/pages/edit.html.erb +4 -2
  55. data/app/views/alchemy/admin/pictures/_archive.html.erb +0 -1
  56. data/app/views/alchemy/admin/pictures/_filter_bar.html.erb +2 -1
  57. data/app/views/alchemy/admin/pictures/_picture.html.erb +5 -0
  58. data/app/views/alchemy/admin/pictures/index.html.erb +1 -0
  59. data/app/views/alchemy/base/500.html.erb +26 -5
  60. data/app/views/alchemy/essences/_essence_picture_tools.html.erb +1 -1
  61. data/app/views/alchemy/essences/_linkable_essence_tools.html.erb +1 -1
  62. data/app/views/alchemy/language_links/_language.html.erb +12 -0
  63. data/app/views/alchemy/language_links/_spacer.html.erb +1 -0
  64. data/config/locales/alchemy.de.yml +7 -3
  65. data/config/locales/alchemy.en.yml +8 -3
  66. data/lib/alchemy/page_layout.rb +1 -1
  67. data/lib/alchemy/tinymce.rb +1 -1
  68. data/lib/alchemy/upgrader.rb +26 -0
  69. data/lib/alchemy/version.rb +1 -1
  70. data/lib/rails/generators/alchemy/scaffold/scaffold_generator.rb +4 -1
  71. data/lib/tasks/ferret.rake +1 -0
  72. data/spec/controllers/admin/users_controller_spec.rb +5 -5
  73. data/spec/features/admin/pages_controller_spec.rb +1 -1
  74. data/spec/helpers/admin/pages_helper_spec.rb +31 -0
  75. data/spec/helpers/pages_helper_spec.rb +60 -72
  76. data/spec/models/content_spec.rb +2 -1
  77. data/spec/models/page_layout_spec.rb +29 -0
  78. data/spec/models/page_spec.rb +33 -1
  79. data/spec/support/alchemy/test_tweaks.rb +2 -6
  80. metadata +34 -12
  81. data/app/assets/fonts/alchemy-icons.eot +0 -0
  82. data/app/assets/fonts/alchemy-icons.svg +0 -54
  83. data/app/assets/fonts/alchemy-icons.ttf +0 -0
  84. data/app/assets/fonts/alchemy-icons.woff +0 -0
  85. data/app/assets/images/alchemy/placeholder.png +0 -0
  86. data/app/assets/stylesheets/alchemy/fonts.scss +0 -46
@@ -3,4 +3,4 @@
3
3
  @import "sassy-buttons";
4
4
  @import "alchemy/variables";
5
5
  @import "alchemy/extends";
6
- @import "alchemy/fonts";
6
+ @import "alchemy/icon-font";
@@ -62,7 +62,7 @@ div#element_area {
62
62
  position: absolute;
63
63
  top: 0;
64
64
  left: 0;
65
- background: url('icons.png') no-repeat -224px -72px;
65
+ background: image-url('alchemy/icons.png') no-repeat -224px -72px;
66
66
  }
67
67
 
68
68
  .element_handle span.icon {
@@ -122,9 +122,11 @@ div#element_area {
122
122
 
123
123
  .icon {
124
124
  font-size: 30px;
125
+ width: 30px;
126
+ height: 30px;
125
127
  position: absolute;
126
- top: 45px;
127
- left: 45px;
128
+ top: 42px;
129
+ left: 40px;
128
130
  }
129
131
  }
130
132
  }
@@ -217,7 +219,7 @@ div#element_area {
217
219
  padding: 2*$default-padding;
218
220
 
219
221
  label {
220
- top: 21px;
222
+ top: 20px;
221
223
  left: 16px;
222
224
  }
223
225
 
@@ -250,15 +252,15 @@ span.element_tools_icons {
250
252
  }
251
253
 
252
254
  a.delete_element_button {
253
- background: url('icons.png') no-repeat -63px -72px;
255
+ background: image-url('alchemy/icons.png') no-repeat -63px -72px;
254
256
  }
255
257
 
256
258
  a.element_copy_button {
257
- background: url('icons.png') no-repeat -128px -72px;
259
+ background: image-url('alchemy/icons.png') no-repeat -128px -72px;
258
260
  }
259
261
 
260
262
  a.element_move_button {
261
- background: url('icons.png') no-repeat -97px -72px;
263
+ background: image-url('alchemy/icons.png') no-repeat -97px -72px;
262
264
  }
263
265
 
264
266
  .element_head {
@@ -330,7 +332,7 @@ span.linkable_essence_tools {
330
332
  }
331
333
 
332
334
  a.expand_element {
333
- background: url('icons.png') no-repeat -160px -72px;
335
+ background: image-url('alchemy/icons.png') no-repeat -160px -72px;
334
336
  height: 16px;
335
337
  width: 16px;
336
338
  text-decoration: none;
@@ -339,7 +341,7 @@ a.expand_element {
339
341
  }
340
342
 
341
343
  a.fold_element {
342
- background: url('icons.png') no-repeat -192px -72px;
344
+ background: image-url('alchemy/icons.png') no-repeat -192px -72px;
343
345
  height: 16px;
344
346
  width: 16px;
345
347
  text-decoration: none;
@@ -429,10 +431,12 @@ div.essence_picture_editor {
429
431
  border-color: $error_border_color
430
432
  }
431
433
 
432
- .thumbnail_background.missing {
433
- background-image: url('placeholder.png');
434
- background-repeat: no-repeat;
435
- background-position: center 12px;
434
+ .thumbnail_background.missing:before {
435
+ font-family: 'Alchemy Icons';
436
+ @extend .icon-pictures:before;
437
+ font-size: 48px;
438
+ color: $medium-gray;
439
+ vertical-align: top;
436
440
  }
437
441
  }
438
442
 
@@ -493,7 +497,7 @@ div.file_icon span.icon {
493
497
  div.file_icon a.assign_file {
494
498
  display: block;
495
499
  height: 16px;
496
- background: url('icons.png') no-repeat -480px -40px;
500
+ background: image-url('alchemy/icons.png') no-repeat -480px -40px;
497
501
  width: 16px;
498
502
  margin: $default-margin;
499
503
  }
@@ -523,11 +527,11 @@ div.essence_file_tools a {
523
527
  }
524
528
 
525
529
  div.essence_file_tools a.assign_file {
526
- background: url('icons.png') -512px -40px;
530
+ background: image-url('alchemy/icons.png') -512px -40px;
527
531
  }
528
532
 
529
533
  div.essence_file_tools a.edit_file {
530
- background: url('icons.png') -160px -167px;
534
+ background: image-url('alchemy/icons.png') -160px -167px;
531
535
  }
532
536
 
533
537
  td.content_editor_essence_type {
@@ -13,7 +13,7 @@ div#flash_notices {
13
13
  position: absolute;
14
14
  right: 2*$default-padding;
15
15
  top: 2*$default-padding;
16
- @extend .icon-cancel:before;
16
+ @extend .icon-cross:before;
17
17
  font-size: 14px;
18
18
  }
19
19
  }
@@ -91,11 +91,15 @@ button, input[type="submit"], a.button, input.button {
91
91
  .icon {
92
92
  left: auto;
93
93
  position: absolute;
94
- right: 5px;
95
- top: 0px;
94
+ left: 1px;
95
+ top: 2px;
96
96
  width: 8px;
97
97
  height: 8px;
98
98
 
99
+ &:before {
100
+ line-height: 10px;
101
+ }
102
+
99
103
  &.delete-small {
100
104
  background-position: -4px -76px;
101
105
  }
@@ -109,8 +113,8 @@ button, input[type="submit"], a.button, input.button {
109
113
  right: 0px;
110
114
 
111
115
  .icon {
112
- right: 4px;
113
- top: 0px;
116
+ left: 0px;
117
+ top: 2px;
114
118
  }
115
119
  }
116
120
  }
@@ -390,7 +394,7 @@ td.select .selectboxit {
390
394
  }
391
395
 
392
396
  .selectboxit-arrow-container {
393
- width: 16px;
397
+ width: 15px;
394
398
  top: 8px;
395
399
  line-height: 1em;
396
400
  height: 14px !important;
@@ -398,7 +402,9 @@ td.select .selectboxit {
398
402
 
399
403
  .selectboxit-arrow {
400
404
  margin-top: 2px !important;
405
+ margin-left: 0;
401
406
  font-size: 10px;
407
+ line-height: 11px;
402
408
  }
403
409
  }
404
410
 
@@ -429,6 +435,7 @@ td.select .selectboxit {
429
435
  top: 3px;
430
436
  border-left: 1px solid darken($medium-gray, 10%);
431
437
  height: 23px !important;
438
+ line-height: 0;
432
439
  }
433
440
 
434
441
  /* Dropdown List Down Arrow */
@@ -436,14 +443,13 @@ td.select .selectboxit {
436
443
  /* Horizontally centers the down arrow */
437
444
  margin-right: auto;
438
445
  margin-left: auto;
439
- margin-top: 6px !important;
440
- width: 6px;
441
- height: 1em;
442
- line-height: 1em;
443
- margin-left: 0.3em;
446
+ margin-top: 5px !important;
447
+ width: 16px;
448
+ line-height: 16px;
449
+ margin-left: 2px;
444
450
  font-style: normal;
445
451
  display: block;
446
- @extend .icon-double-arrow;
452
+ @extend .icon-menu;
447
453
  }
448
454
 
449
455
  &.with_error { border-color: $error_border_color }
@@ -468,47 +474,48 @@ td.select .selectboxit {
468
474
  @extend .rounded-border;
469
475
  @include box-shadow(0 4px 16px $dark-gray);
470
476
  border: $default-border;
477
+ }
471
478
 
472
- /* Dropdown List Individual Options */
473
- li, .selectboxit-optgroup-header {
474
- line-height: 1.5em; /* Height of Individual Select Box Options */
475
- overflow: hidden;
476
- white-space: nowrap;
477
- list-style: none;
478
- margin: 0;
479
- padding: 6px 8px;
480
- }
479
+ /* Dropdown List Individual Options */
480
+ .selectboxit-option, .selectboxit-optgroup-header {
481
+ line-height: 1.5em; /* Height of Individual Select Box Options */
482
+ overflow: hidden;
483
+ white-space: nowrap;
484
+ list-style: none;
485
+ margin: 0;
486
+ padding: 6px 8px;
487
+ }
481
488
 
482
- li.selectboxit-hover, li.selectboxit-focus, li.active {
483
- background-color: $button-hover-bg-color;
484
- color: $text-color;
485
- }
489
+ .selectboxit-option.selectboxit-hover, .selectboxit-option.selectboxit-focus, .selectboxit-option.active {
490
+ background-color: $button-hover-bg-color;
491
+ color: $text-color;
492
+ }
486
493
 
487
- /* Dropdown List Individual Option Icon Positioning */
488
- li span {
489
- float:left;
490
- }
494
+ .selectboxit-option-icon {
495
+ float: left;
496
+ }
491
497
 
492
- /* Dropdown List Optgroup Headers */
493
- .selectboxit-optgroup-header {
494
- font-weight: bold;
495
- }
498
+ /* Dropdown List Optgroup Headers */
499
+ .selectboxit-optgroup-header {
500
+ font-weight: bold;
501
+ }
496
502
 
497
- /* Dropdown List Optgroup Options */
498
- .selectboxit-optgroup-option {
499
- text-indent: 8px;
500
- }
503
+ /* Dropdown List Optgroup Options */
504
+ .selectboxit-optgroup-option {
505
+ text-indent: 8px;
506
+ }
501
507
 
502
- /* Dropdown List Optgroup Header hover psuedo class */
503
- .selectboxit-optgroup-header[data-disabled='true']:hover {
504
- cursor: default;
505
- }
508
+ /* Dropdown List Optgroup Header hover psuedo class */
509
+ .selectboxit-optgroup-header[data-disabled='true']:hover {
510
+ cursor: default;
506
511
  }
507
512
 
508
513
  .selectboxit-option-anchor {
509
514
  display: block;
515
+ width: 100%;
510
516
  min-height: 19px;
511
517
  max-width: 410px;
518
+ text-align: left;
512
519
  @extend %text-overflow;
513
520
  }
514
521
  }
@@ -518,8 +525,8 @@ td.select .selectboxit {
518
525
 
519
526
  label {
520
527
  position: absolute;
521
- top: 13px;
522
- left: 8px;
528
+ top: 12px;
529
+ left: 4px;
523
530
  }
524
531
 
525
532
  input[data-autocomplete] {
@@ -0,0 +1,67 @@
1
+ @font-face {
2
+ font-family: 'Alchemy Icons';
3
+ src: font-url('alchemy/icons.eot');
4
+ src: font-url('alchemy/icons.eot?#iefix') format('embedded-opentype'),
5
+ font-url('alchemy/icons.woff') format('woff'),
6
+ font-url('alchemy/icons.ttf') format('truetype'),
7
+ font-url('alchemy/icons.svg#Alchemy-Icons') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
12
+ .icon-plus,
13
+ .icon-minus,
14
+ .icon-cross,
15
+ .icon-plus-2,
16
+ .icon-minus-2,
17
+ .icon-pencil,
18
+ .icon-tag,
19
+ .icon-info,
20
+ .icon-warning,
21
+ .icon-checkmark,
22
+ .icon-ccw,
23
+ .icon-trash,
24
+ .icon-cross-2,
25
+ .icon-pictures,
26
+ .icon-menu,
27
+ .icon-magnifying-glass,
28
+ .icon-fullscreen-exit,
29
+ .icon-help,
30
+ .icon-fullscreen,
31
+ .icon-cog {
32
+ font-family: 'Alchemy Icons';
33
+ speak: none;
34
+ font-size: 12px;
35
+ font-style: normal;
36
+ font-weight: normal;
37
+ font-variant: normal;
38
+ text-transform: none;
39
+ text-decoration: none;
40
+ -webkit-font-smoothing: antialiased;
41
+ width: 16px;
42
+ color: #666;
43
+ text-align: center;
44
+ line-height: 1em;
45
+ @include inline-block;
46
+ }
47
+
48
+ .icon-plus:before { content: "\e000" }
49
+ .icon-minus:before { content: "\e001" }
50
+ .icon-cross:before { content: "\e004" }
51
+ .icon-plus-2:before { content: "\e005" }
52
+ .icon-minus-2:before { content: "\e006" }
53
+ .icon-pencil:before { content: "\e007" }
54
+ .icon-tag:before { content: "\e034" }
55
+ .icon-info:before { content: "\e008" }
56
+ .icon-warning:before { content: "\e009" }
57
+ .icon-checkmark:before { content: "\e00a" }
58
+ .icon-ccw:before { content: "\e00b" }
59
+ .icon-trash:before { content: "\f014" }
60
+ .icon-cross-2:before { content: "\e00e" }
61
+ .icon-pictures:before { content: "\e00f" }
62
+ .icon-menu:before { content: "\e010" }
63
+ .icon-magnifying-glass:before { content: "\e011" }
64
+ .icon-fullscreen-exit:before { content: "\e01e" }
65
+ .icon-help:before { content: "\e00c" }
66
+ .icon-fullscreen:before { content: "\e01d" }
67
+ .icon-cog:before { content: "\f013" }
@@ -1,12 +1,12 @@
1
1
  .icon {
2
2
  @include inline-block;
3
- background: url('icons.png') no-repeat;
3
+ background: image-url('alchemy/icons.png') no-repeat;
4
4
  width: 16px;
5
5
  height: 16px;
6
6
 
7
7
  &.add {
8
8
  background: none;
9
- @extend .icon-plus;
9
+ @extend .icon-plus-2;
10
10
  line-height: 1em;
11
11
  font-size: 19px;
12
12
  }
@@ -23,6 +23,18 @@
23
23
  background-position: -192px -136px;
24
24
  }
25
25
 
26
+ &.back {
27
+ background: none;
28
+ line-height: 14px;
29
+ font-size: 20px;
30
+ font-weight: bold;
31
+ color: #666;
32
+
33
+ &:before {
34
+ content: '\00ab';
35
+ }
36
+ }
37
+
26
38
  &.blank {
27
39
  background: transparent;
28
40
  }
@@ -40,7 +52,7 @@
40
52
 
41
53
  &.small {
42
54
  background: none;
43
- @extend .icon-cancel;
55
+ @extend .icon-cross;
44
56
  line-height: 0;
45
57
  }
46
58
  }
@@ -200,7 +212,7 @@
200
212
  &.search {
201
213
  background: none;
202
214
  padding-top: 2px;
203
- @extend .icon-search;
215
+ @extend .icon-magnifying-glass;
204
216
  }
205
217
 
206
218
  &.select_all {
@@ -258,35 +258,35 @@
258
258
  .ui-icon {
259
259
  width: 16px;
260
260
  height: 16px;
261
- background-image: url('ui-icons_666666_256x240.png');
261
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
262
262
  }
263
263
 
264
264
  .ui-widget-content .ui-icon {
265
- background-image: url('ui-icons_666666_256x240.png');
265
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
266
266
  }
267
267
 
268
268
  .ui-widget-header .ui-icon {
269
- background-image: url('ui-icons_666666_256x240.png');
269
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
270
270
  }
271
271
 
272
272
  .ui-state-default .ui-icon {
273
- background-image: url('ui-icons_666666_256x240.png');
273
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
274
274
  }
275
275
 
276
276
  .ui-state-hover .ui-icon, .ui-state-focus .ui-icon {
277
- background-image: url('ui-icons_666666_256x240.png');
277
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
278
278
  }
279
279
 
280
280
  .ui-state-active .ui-icon {
281
- background-image: url('ui-icons_666666_256x240.png');
281
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
282
282
  }
283
283
 
284
284
  .ui-state-highlight .ui-icon {
285
- background-image: url('ui-icons_666666_256x240.png');
285
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
286
286
  }
287
287
 
288
288
  .ui-state-error .ui-icon, .ui-state-error-text .ui-icon {
289
- background-image: url('ui-icons_666666_256x240.png');
289
+ background-image: image-url('alchemy/ui-icons_666666_256x240.png');
290
290
  }
291
291
 
292
292
  /* positioning */
@@ -565,41 +565,40 @@
565
565
 
566
566
  .ui-icon-refresh {
567
567
  background: none !important;
568
- position: relative;
569
- left: 1px;
568
+ @extend .icon-ccw;
570
569
 
571
570
  &:before {
572
571
  text-indent: 0;
573
572
  position: absolute;
574
- right: 1px;
575
- top: 2px;
576
- @extend .icon-reload:before
573
+ right: 4px;
574
+ top: 3px;
577
575
  }
578
576
  }
579
577
 
580
578
  .ui-icon-fullscreen {
581
579
  background: none !important;
582
580
  position: relative;
581
+ @extend .icon-fullscreen;
583
582
 
584
583
  &:before {
585
584
  text-indent: 0;
586
585
  position: absolute;
587
- right: 1px;
586
+ right: 2px;
588
587
  top: 2px;
589
- @extend .icon-fullscreen:before
588
+ font-size: 10px;
590
589
  }
591
590
  }
592
591
 
593
592
  .ui-icon-exit-fullscreen {
594
593
  background: none !important;
595
594
  position: relative;
595
+ @extend .icon-fullscreen-exit;
596
596
 
597
597
  &:before {
598
598
  text-indent: 0;
599
599
  position: absolute;
600
600
  right: 1px;
601
601
  top: 2px;
602
- @extend .icon-exit-fullscreen:before
603
602
  }
604
603
  }
605
604
 
@@ -770,13 +769,13 @@
770
769
  .ui-icon-closethick {
771
770
  background: none !important;
772
771
  position: relative;
772
+ @extend .icon-cross;
773
773
 
774
774
  &:before {
775
- @extend .icon-cancel:before;
776
775
  text-indent: 0;
777
776
  position: absolute;
778
- right: 0px;
779
- top: 2px;
777
+ left: 1px;
778
+ top: 3px;
780
779
  font-size: 16px;
781
780
  }
782
781
  }
@@ -1524,12 +1523,10 @@ button.ui-button::-moz-focus-inner {
1524
1523
  .ui-dialog-titlebar-close {
1525
1524
  position: absolute;
1526
1525
  right: 2 * $default-padding;
1527
- top: 50%;
1526
+ top: 2 * $default-padding;
1528
1527
  width: 19px;
1529
- margin: -10px 0 0 0;
1530
1528
  padding: 1px;
1531
1529
  height: 18px;
1532
- float: right;
1533
1530
 
1534
1531
  &.ui-state-default {
1535
1532
  background: transparent;
@@ -1540,24 +1537,41 @@ button.ui-button::-moz-focus-inner {
1540
1537
  }
1541
1538
 
1542
1539
  &.ui-state-hover {
1543
- @extend %foc
1540
+
1541
+ .ui-icon-closethick:before {
1542
+ right: -1px;
1543
+ top: 3px;
1544
+ }
1544
1545
  }
1545
1546
  }
1546
1547
 
1548
+ .preview-refresh-spinner {
1549
+ position: absolute !important; // when will js lib authors stop to add styles to elements.... :/
1550
+ top: 16px;
1551
+ right: 57px;
1552
+ }
1553
+
1547
1554
  .ui-dialog .ui-dialog-titlebar-refresh {
1548
1555
  position: absolute;
1549
- right: 42px;
1556
+ right: 46px;
1550
1557
  top: 7px;
1551
1558
  height: 18px;
1552
1559
 
1553
- &.ui-state-hover { margin-right: 3px }
1560
+ &.ui-state-hover {
1561
+ margin-right: 3px;
1562
+
1563
+ .ui-icon-refresh:before {
1564
+ top: 2px;
1565
+ right: 2px;
1566
+ }
1567
+ }
1554
1568
  }
1555
1569
 
1556
1570
  .ui-dialog .ui-dialog-titlebar-maximize,
1557
1571
  .ui-dialog .ui-dialog-titlebar-restore,
1558
1572
  .ui-dialog .ui-dialog-titlebar-refresh {
1559
1573
  margin-right: 2px;
1560
- margin-top: 0;
1574
+ margin-top: 1px;
1561
1575
  padding: 0;
1562
1576
 
1563
1577
  .ui-icon {