refinerycms-core 4.0.3 → 4.1.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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/refinery_core_manifest.js +9 -1
  3. data/app/assets/images/refinery/logo-large.png +0 -0
  4. data/app/assets/images/refinery/logo-medium.png +0 -0
  5. data/app/assets/images/refinery/logo-site-bar.png +0 -0
  6. data/app/assets/images/refinery/logo-small-medium.png +0 -0
  7. data/app/assets/images/refinery/logo-small.png +0 -0
  8. data/app/assets/images/refinery/logo-tiny.png +0 -0
  9. data/app/assets/images/refinery/logo.png +0 -0
  10. data/app/assets/images/refinery/refinery-cms-logo.svg +1 -558
  11. data/app/assets/javascripts/refinery/admin.js.erb +37 -21
  12. data/app/assets/javascripts/refinery/ajaxy_pagination.js +16 -0
  13. data/app/assets/javascripts/refinery/image_crop.js +101 -0
  14. data/app/assets/javascripts/refinery/interface.js.erb +42 -0
  15. data/app/assets/javascripts/refinery/refinery.js.erb +3 -3
  16. data/app/assets/javascripts/refinery/submit_continue.js.erb +23 -0
  17. data/app/assets/stylesheets/refinery/components/_file_type_icons.scss +36 -0
  18. data/app/assets/stylesheets/refinery/components/_icons.scss +89 -47
  19. data/app/assets/stylesheets/refinery/global/_colours.scss +12 -5
  20. data/app/assets/stylesheets/refinery/mixins/_images.scss +99 -0
  21. data/app/assets/stylesheets/refinery/mixins/_locales.scss +22 -0
  22. data/app/assets/stylesheets/refinery/mixins/_rounded.scss +9 -23
  23. data/app/assets/stylesheets/refinery/plugins/_ui.scss +7 -4
  24. data/app/assets/stylesheets/refinery/refinery.scss +4 -1
  25. data/app/assets/stylesheets/refinery/sections/_layout.scss +490 -265
  26. data/app/controllers/refinery/admin/dialogs_controller.rb +6 -6
  27. data/app/helpers/refinery/action_helper.rb +75 -0
  28. data/app/helpers/refinery/icon_helper.rb +51 -0
  29. data/app/helpers/refinery/image_helper.rb +1 -1
  30. data/app/helpers/refinery/pagination_helper.rb +1 -0
  31. data/app/helpers/refinery/site_bar_helper.rb +10 -7
  32. data/app/helpers/refinery/tag_helper.rb +5 -36
  33. data/app/helpers/refinery/translation_helper.rb +12 -1
  34. data/app/views/refinery/_head.html.erb +1 -0
  35. data/app/views/refinery/_matomo_analytics.html.erb +18 -0
  36. data/app/views/refinery/_site_bar.html.erb +9 -9
  37. data/app/views/refinery/admin/_error_messages.html.erb +4 -4
  38. data/app/views/refinery/admin/_locale_picker.html.erb +8 -14
  39. data/config/initializers/assets.rb +5 -1
  40. data/config/initializers/zeitwerk.rb +12 -0
  41. data/config/locales/en.yml +3 -1
  42. data/config/locales/sk.yml +7 -0
  43. data/lib/generators/refinery/cms/cms_generator.rb +24 -20
  44. data/lib/generators/refinery/core/templates/config/initializers/refinery/core.rb.erb +5 -0
  45. data/lib/generators/refinery/dummy/dummy_generator.rb +32 -10
  46. data/lib/generators/refinery/dummy/templates/rails/application.rb.erb +27 -7
  47. data/lib/generators/refinery/dummy/templates/rails/boot.rb.erb +1 -2
  48. data/lib/generators/refinery/dummy/templates/rails/database.yml +55 -14
  49. data/lib/generators/refinery/dummy/templates/rails/manifest.js +3 -0
  50. data/lib/generators/refinery/dummy/templates/rails/storage.yml +7 -0
  51. data/lib/generators/refinery/engine/engine_generator.rb +1 -0
  52. data/lib/generators/refinery/engine/templates/Gemfile +1 -2
  53. data/lib/generators/refinery/engine/templates/Rakefile +2 -2
  54. data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/admin/plural_name_controller.rb.erb +1 -1
  55. data/lib/generators/refinery/engine/templates/app/controllers/refinery/namespace/plural_name_controller.rb.erb +1 -1
  56. data/lib/generators/refinery/engine/templates/app/models/refinery/namespace/singular_name.rb.erb +1 -0
  57. data/lib/generators/refinery/engine/templates/app/views/refinery/namespace/admin/plural_name/_form.html.erb +1 -1
  58. data/lib/generators/refinery/engine/templates/db/migrate/1_create_namespace_plural_name.rb.erb +15 -4
  59. data/lib/generators/refinery/engine/templates/lib/generators/refinery/extension_plural_name_generator.rb.erb +1 -1
  60. data/lib/generators/refinery/engine/templates/lib/refinery/plural_name.rb.erb +1 -1
  61. data/lib/refinery/admin/base_controller.rb +2 -2
  62. data/lib/refinery/application_controller.rb +1 -2
  63. data/lib/refinery/cli.rb +1 -1
  64. data/lib/refinery/core/configuration.rb +4 -1
  65. data/lib/refinery/core/engine.rb +20 -0
  66. data/lib/refinery/core.rb +0 -1
  67. data/lib/refinery/crud.rb +33 -32
  68. data/lib/refinery/extension_generation.rb +55 -8
  69. data/lib/refinery/generators/generated_attribute.rb +13 -0
  70. data/lib/refinery/plugins.rb +1 -1
  71. data/lib/refinery/version.rb +4 -4
  72. data/lib/refinery.rb +9 -2
  73. data/lib/refinerycms/core.rb +1 -0
  74. data/lib/tasks/refinery.rake +3 -3
  75. data/refinerycms-core.gemspec +21 -27
  76. data/spec/controllers/refinery/sitemap_controller_spec.rb +1 -1
  77. data/spec/helpers/refinery/tag_helper_spec.rb +1 -1
  78. data/spec/helpers/refinery/translation_helper_spec.rb +46 -10
  79. data/spec/lib/generators/refinery/cms/cms_generator_spec.rb +6 -6
  80. data/spec/lib/generators/refinery/engine/engine_generator_multiple_resources_spec.rb +23 -2
  81. data/spec/lib/refinery/cli_spec.rb +2 -2
  82. data/spec/lib/refinery/{users_manager_spec.rb → core/users_manager_spec.rb} +1 -1
  83. data/spec/lib/refinery/crud_spec.rb +2 -1
  84. data/spec/presenters/refinery/translated_field_presenter_spec.rb +5 -7
  85. data/spec/support/refinery.rb +2 -2
  86. data/spec/{features → system}/refinery/admin/custom_assets_spec.rb +1 -1
  87. data/spec/system/refinery/admin/dialogs_spec.rb +29 -0
  88. data/spec/{features → system}/refinery/admin/xhr_paging_spec.rb +10 -7
  89. data/spec/{features → system}/refinery/application_layout_spec.rb +3 -4
  90. data/spec/{features → system}/refinery/core_spec.rb +1 -1
  91. data/spec/{features → system}/refinery/site_bar_spec.rb +5 -3
  92. data/vendor/assets/javascripts/canvas-to-blob.js +126 -0
  93. data/vendor/assets/javascripts/cropper.js +3715 -0
  94. data/vendor/assets/stylesheets/cropper.css +305 -0
  95. metadata +108 -171
  96. checksums.yaml.gz.sig +0 -0
  97. data/app/assets/javascripts/refinery/ajaxy_pagination.js.coffee +0 -10
  98. data/app/assets/javascripts/refinery/interface.js.coffee.erb +0 -33
  99. data/app/assets/javascripts/refinery/submit_continue.js.coffee.erb +0 -12
  100. data/spec/features/refinery/admin/dialogs_spec.rb +0 -29
  101. data/spec/support/database_cleaner.rb +0 -21
  102. data.tar.gz.sig +0 -0
  103. metadata.gz.sig +0 -5
  104. /data/lib/generators/refinery/cms/templates/config/{database.yml.mysql → database.mysql.yml} +0 -0
  105. /data/lib/generators/refinery/cms/templates/config/{database.yml.postgresql → database.postgresql.yml} +0 -0
  106. /data/lib/generators/refinery/cms/templates/config/{database.yml.sqlite3 → database.sqlite3.yml} +0 -0
  107. /data/lib/refinery/{users_manager.rb → core/users_manager.rb} +0 -0
@@ -1,14 +1,16 @@
1
1
  $admin_width: 1080px;
2
2
  $menu_width: 120px;
3
- $standard_rounding: 0px;
3
+ $standard_rounding: 0;
4
4
 
5
5
  p {
6
6
  font-size: 14px;
7
7
  line-height: 18px;
8
8
  }
9
+
9
10
  html {
10
11
  height: 100%;
11
12
  }
13
+
12
14
  body {
13
15
  height: 100%;
14
16
  margin: -52px 0;
@@ -19,43 +21,52 @@ body {
19
21
  color: #41403C;
20
22
  background: rgb(217, 217, 217);
21
23
  }
24
+
22
25
  acronym {
23
26
  cursor: help;
24
27
  }
28
+
25
29
  label[for] {
26
30
  cursor: pointer;
27
31
  }
32
+
28
33
  #admin_container,
29
34
  #login_container {
30
35
  font-size: 13px;
31
- margin: 0px auto 15px auto;
36
+ margin: 0 auto 15px auto;
32
37
  text-align: left;
33
38
  position: relative;
34
39
  margin-top: 15px;
35
40
  @include rounded($standard_rounding);
41
+
36
42
  a {
37
43
  color: #41403C;
38
44
  text-decoration: none;
39
45
  }
46
+
40
47
  #menu {
41
48
  a:hover {
42
- border-bottom: 0px;
49
+ border-bottom: 0;
43
50
  }
44
51
  }
52
+
45
53
  .hidden {
46
54
  display: none;
47
55
  }
48
56
  }
57
+
49
58
  #login_container {
50
59
  background: white;
51
60
  width: 620px;
52
61
  }
62
+
53
63
  #admin_container {
54
64
  width: $admin_width;
55
- margin: -5px auto 0px auto;
65
+ margin: -5px auto 0 auto;
56
66
  height: 100%;
57
67
  @include faux_columns_2($menu_width, transparent, white);
58
68
  }
69
+
59
70
  #page_container {
60
71
  background-color: white;
61
72
  padding: 1.5em 1em;
@@ -65,48 +76,59 @@ label[for] {
65
76
  @include box-sizing(border-box);
66
77
  @include right-rounded($standard_rounding);
67
78
  }
79
+
68
80
  #content .field,
69
81
  #content .form-actions {
70
82
  position: relative;
71
83
  }
84
+
72
85
  input.widest,
73
86
  textarea.widest {
74
87
  width: 99%;
75
88
  }
89
+
76
90
  select.widest {
77
91
  max-width: 99%;
78
92
  }
93
+
79
94
  #records {
80
95
  float: left;
81
96
  width: 67.7%;
82
97
  }
98
+
83
99
  #actions {
84
100
  float: right;
85
101
  width: 30%;
86
102
  padding-left: 15px;
87
- padding-top: 0px;
103
+ padding-top: 0;
104
+
88
105
  ul {
89
- margin: 0px 0px 18px 0px;
106
+ margin: 0 0 18px 0;
90
107
  padding: 0;
91
108
  list-style: none;
109
+
92
110
  &#current_locale {
93
111
  margin-top: 30px;
94
112
  }
95
113
  }
114
+
96
115
  li {
97
116
  margin-bottom: 10px;
98
117
  background-color: $action-background-colour;
99
118
  border: 1px solid $action-border-colour;
100
119
  padding: 9px;
101
120
  display: block;
121
+
102
122
  &:empty {
103
123
  display: none
104
124
  }
105
125
  }
106
126
  }
127
+
107
128
  #sort-status {
108
- padding: 5px 5px 5px 0px;
129
+ padding: 5px 5px 5px 0;
109
130
  }
131
+
110
132
  hr {
111
133
  border: 0;
112
134
  border-top: 1px solid #484743;
@@ -114,82 +136,97 @@ hr {
114
136
 
115
137
  .errorExplanation {
116
138
  background-color: #FFB1B1;
117
- padding: 0px 5px 5px 30px;
139
+ padding: 0 5px 5px 30px;
118
140
  font-weight: bold;
119
141
  margin-top: 5px;
120
142
  margin-bottom: 5px;
121
143
  border: 1px solid red;
144
+
122
145
  h2 {
123
146
  color: red;
124
147
  text-transform: none;
125
148
  display: none;
126
149
  }
150
+
127
151
  p {
128
152
  font-weight: normal;
129
153
  }
130
154
  }
155
+
131
156
  .fieldWithErrors input,
132
157
  .fieldWithErrors textarea {
133
158
  border: 1px solid red !important;
134
159
  background-color: #FFECF0 !important;
135
160
  }
161
+
136
162
  .fieldWithErrors iframe,
137
163
  .fieldWithErrors .visual_editor_box {
138
164
  border-color: red !important;
139
165
  }
166
+
140
167
  #message,
141
168
  .flash {
142
169
  padding: 8px 8px 8px 30px;
143
170
  margin-bottom: 15px;
144
171
  position: relative;
145
172
  }
173
+
146
174
  .flash_notice,
147
175
  .flash_message {
148
176
  border: 1px solid #00A017;
149
177
  color: #00A017;
150
178
  @include icon('check-circle', green)
151
179
  }
180
+
152
181
  .flash_notice,
153
182
  .flash_notice * {
154
183
  color: #00A017;
155
184
  }
185
+
156
186
  .flash_error,
157
187
  .flash_alert {
158
188
  border: 1px solid #A00027;
159
189
  color: #A00027;
160
190
  @include icon('question-circle', red)
161
191
  }
192
+
162
193
  .flash.flash_notice #flash_close,
163
194
  .flash.flash_error #flash_close,
164
195
  .flash.flash_alert #flash_close {
165
196
  text-transform: lowercase;
166
197
  @include icon('times-circle', $icon_done_colour, 1.2em)
167
198
  }
199
+
168
200
  .flash.flash_message {
169
201
  background: #E0F5E0;
170
202
  padding: 9px;
171
203
  position: relative;
172
204
  margin-bottom: 32px;
205
+
173
206
  h2 {
174
207
  margin-top: 12px;
175
208
  }
176
209
  }
210
+
177
211
  .flash.flash_message.flash_message,
178
212
  .flash_message * {
179
213
  color: #262719;
180
214
  font-size: 14px;
181
215
  }
216
+
182
217
  .flash a,
183
218
  .flash a:hover {
184
219
  color: #e20003;
185
220
  border-bottom-color: #e20003;
186
221
  }
222
+
187
223
  .flash.flash_error a,
188
224
  .flash.flash_error a:hover,
189
225
  .flash.flash_alert a,
190
226
  .flash.flash_alert a:hover {
191
227
  display: none;
192
228
  }
229
+
193
230
  noscript .flash.flash_error a,
194
231
  noscript .flash.flash_error a:hover,
195
232
  noscript .flash.flash_alert a,
@@ -197,6 +234,7 @@ noscript .flash.flash_alert a:hover {
197
234
  display: inline;
198
235
  font-weight: bold;
199
236
  }
237
+
200
238
  .flash #flash_close {
201
239
  background: none;
202
240
  border: none;
@@ -206,25 +244,31 @@ noscript .flash.flash_alert a:hover {
206
244
  font-size: 1em;
207
245
  margin-top: 3px;
208
246
  }
247
+
209
248
  #content .visual_editor_box a,
210
249
  #content .ui-tabs a {
211
- border-bottom: 0px none;
250
+ border-bottom: 0 none;
212
251
  }
252
+
213
253
  .index #content,
214
254
  .splash #content {
215
255
  background-color: white;
216
256
  background-repeat: repeat-y;
217
257
  }
258
+
218
259
  #content {
219
- padding: 0px;
260
+ padding: 0;
220
261
  background-color: white;
262
+
221
263
  a {
222
264
  border-bottom: 1px dotted #727272;
265
+
223
266
  &.locale {
224
267
  border-bottom: 0;
225
- display:inline;
268
+ display: inline;
226
269
  }
227
270
  }
271
+
228
272
  h1 {
229
273
  font-size: 18px;
230
274
  font-weight: lighter;
@@ -232,71 +276,117 @@ noscript .flash.flash_alert a:hover {
232
276
  border-bottom: 1px solid #99998B;
233
277
  padding-bottom: 10px;
234
278
  }
279
+
235
280
  h2 {
236
281
  font-size: 18px;
237
- color:#41403c;
282
+ color: #41403c;
238
283
  margin-bottom: 15px;
239
284
  margin-top: 10px;
240
285
  font-weight: bold;
241
286
  }
287
+
242
288
  form.edit_image {
243
- width: 70%;
244
- float: left;
289
+ width: 30%;
290
+ float: right;
291
+ margin-top: 3em
245
292
  }
293
+
246
294
  #existing_image {
247
- float: right;
248
- width: 25%;
295
+ float: left;
296
+ width: 60%;
297
+
298
+ #original-image {
299
+ img {
300
+ max-width: 100%;
301
+ }
302
+ }
303
+
304
+ #crops {
305
+ margin-top: 2em;
306
+
307
+ ul {
308
+ list-style: none;
309
+ margin: 0;
310
+ padding: 0;
311
+
312
+ li {
313
+ float: left;
314
+ margin-right: 1em;
315
+ margin-bottom: 1em;
316
+
317
+ img {
318
+ display: block;
319
+ }
320
+
321
+ a.delete_icon {
322
+ display: block;
323
+ float: right;
324
+ }
325
+ }
326
+ }
327
+ }
249
328
  }
329
+
250
330
  .actions {
251
331
  a {
252
332
  display: block;
253
333
  float: right;
254
334
  margin: 3px 3px;
255
335
  line-height: inherit;
256
- border-bottom: 0px none;
336
+ border-bottom: 0 none;
257
337
  }
258
338
  }
259
339
  }
340
+
260
341
  .less-important {
261
342
  color: #727272;
262
343
  }
344
+
263
345
  header,
264
346
  footer,
265
347
  nav {
266
348
  display: block;
267
349
  }
350
+
268
351
  #page_container .login #page h1 {
269
352
  margin: 0;
270
353
  padding: 5px;
271
354
  font-size: 20px;
272
- line-height:22px
355
+ line-height: 22px
273
356
  }
357
+
274
358
  #login_container {
275
359
  #page_container {
276
360
  background: transparent;
277
361
  width: 100%;
362
+
278
363
  div.remember_me label,
279
364
  label.inline {
280
365
  display: inline;
281
366
  }
367
+
282
368
  div.actions {
283
369
  margin-top: 12px;
284
370
  }
371
+
285
372
  div.remember_me {
286
373
  width: 300px;
287
374
  float: left;
288
375
  }
376
+
289
377
  div.forgot_password {
290
378
  float: right;
291
379
  width: 250px;
292
380
  }
293
381
  }
382
+
294
383
  header {
295
384
  background: #eaeaea;
296
385
  height: auto;
297
386
  float: none;
298
387
  width: 100%;
299
388
  @include top-rounded($standard_rounding);
389
+
300
390
  h1 {
301
391
  color: #41403c;
302
392
  vertical-align: middle;
@@ -308,72 +398,90 @@ nav {
308
398
  padding-top: 15px;
309
399
  }
310
400
  }
401
+
311
402
  label {
312
- margin-top: 0px;
403
+ margin-top: 0;
313
404
  }
405
+
314
406
  label,
315
407
  a {
316
408
  font-size: 14px;
317
409
  }
410
+
318
411
  .field {
319
412
  margin-bottom: 20px;
413
+
320
414
  &.remember_me,
321
415
  &.forgot_password {
322
- margin-bottom: 0px;
323
- margin-top: 0px;
416
+ margin-bottom: 0;
417
+ margin-top: 0;
324
418
  }
419
+
325
420
  &.forgot_password {
326
421
  text-align: right;
327
422
  }
423
+
328
424
  &.remember_me label {
329
425
  margin-top: 20px;
330
426
  }
331
427
  }
428
+
332
429
  #flash_container,
333
430
  .errorExplanation {
334
431
  margin-bottom: 12px;
335
432
  }
433
+
336
434
  /* Works in Firefox, Safari, Chrome, IE8+ */
337
435
  input.larger {
338
436
  background: image_url('refinery/text_field_background.png') repeat-x white;
339
437
  height: 31px;
340
438
  }
439
+
341
440
  input.larger:focus {
342
- background-position: 0px -41px;
441
+ background-position: 0 -41px;
343
442
  }
443
+
344
444
  .fieldWithErrors input.larger {
345
- background-position: 0px -82px;
445
+ background-position: 0 -82px;
346
446
  border: 1px solid red;
347
447
  }
348
448
  }
449
+
349
450
  div.field.checkbox_access {
350
451
  margin-top: 20px;
452
+
351
453
  ul.checkboxes li {
352
454
  margin-top: 3px;
353
455
  }
456
+
354
457
  .label_with_help a {
355
458
  font-weight: normal;
356
459
  }
357
460
  }
358
- #menu, {
461
+
462
+ #menu {
359
463
  display: block;
360
- margin: 45px 0px 0px 0px;
361
- padding: 0px;
464
+ margin: 45px 0 0 0;
465
+ padding: 0;
362
466
  position: absolute;
363
467
  background: transparent;
364
468
  }
469
+
365
470
  header {
366
471
  float: left;
367
- margin-bottom: 0px;
472
+ margin-bottom: 0;
368
473
  width: $menu_width;
474
+
369
475
  a, a:hover {
370
- border-bottom: 0px none;
476
+ border-bottom: 0 none;
371
477
  }
478
+
372
479
  #logo {
373
480
  position: absolute;
374
481
  right: 20px;
375
482
  top: 25px;
376
483
  }
484
+
377
485
  h1, h1 a {
378
486
  color: white;
379
487
  font-size: 20px;
@@ -382,6 +490,7 @@ header {
382
490
  padding-bottom: 4px;
383
491
  margin-top: 0;
384
492
  }
493
+
385
494
  p {
386
495
  color: white;
387
496
  font-size: 90%;
@@ -389,15 +498,19 @@ header {
389
498
  margin: 0;
390
499
  }
391
500
  }
501
+
392
502
  #menu {
393
503
  display: block;
394
504
  position: relative;
505
+
395
506
  &.ui-sortable a {
396
507
  cursor: move;
397
508
  }
509
+
398
510
  &.ui-sortable-disabled a {
399
511
  cursor: pointer;
400
512
  }
513
+
401
514
  a {
402
515
  @include box-sizing(border-box);
403
516
  display: block;
@@ -408,10 +521,12 @@ header {
408
521
  color: rgba(7, 112, 173, 1);
409
522
  font-weight: normal;
410
523
  position: relative;
524
+
411
525
  &.active, &:hover, &:focus {
412
526
  background-color: rgba(37, 169, 244, 1);
413
527
  color: white;
414
528
  }
529
+
415
530
  &.active {
416
531
  margin-left: -0.5em;
417
532
  font-weight: bold;
@@ -430,6 +545,7 @@ header {
430
545
  float: right;
431
546
  @include box-sizing(content-box);
432
547
  }
548
+
433
549
  a#menu_reorder_done {
434
550
  background: white;
435
551
  }
@@ -439,174 +555,188 @@ pre {
439
555
  margin: 0;
440
556
  padding: 0;
441
557
  }
558
+
442
559
  .preview {
443
560
  color: #A3A093;
444
561
  }
562
+
445
563
  #site_link {
446
564
  display: block;
447
565
  color: #C2C2B3;
448
566
  float: left;
449
567
  }
568
+
450
569
  #site_link:hover {
451
570
  text-decoration: underline;
452
571
  }
572
+
453
573
  .filter {
454
574
  float: right;
455
575
  }
576
+
456
577
  #records {
457
- > ul, > #recent_activity > ul, > #recent_inquiries > ul,
458
- .pagination_container > ul, .pagination_frame > ul {
578
+ > ul, .pagination_container > ul, .pagination_frame > ul {
459
579
  margin-left: 0;
460
580
  margin-top: 0;
461
581
  padding-left: 0;
462
582
  }
463
- > ul li, > #recent_activity > ul li, > #recent_inquiries > ul li,
464
- .pagination_container > ul li, .pagination_frame > ul {
583
+
584
+ > ul li, .pagination_container > ul li, .pagination_frame > ul {
465
585
  list-style: none;
466
- padding: 0px 5px;
586
+ padding: 0 5px;
467
587
  vertical-align: top;
468
588
  margin-bottom: 2px;
469
589
  line-height: 35px;
470
590
  position: relative;
471
591
  }
472
- > #recent_activity > ul li, > #recent_inquiries > ul li {
473
- max-height: 35px;
474
- }
475
- }
476
- #recent_activity li a, #recent_inquiries li a {
477
- overflow: hidden;
478
- white-space: nowrap;
479
- -o-text-overflow: ellipsis;
480
- -ms-text-overflow: ellipsis;
481
- text-overflow: ellipsis;
482
592
  }
593
+
483
594
  #content #records {
484
595
  > ul li .actions a, .pagination_container > ul li .actions a {
485
596
  line-height: 29px;
486
597
  }
487
598
  }
599
+
488
600
  #records {
489
601
  ul {
490
602
  &.clickable {
491
603
  li {
492
- padding: 0px;
493
- margin-bottom: 0px;
604
+ padding: 0;
605
+ margin-bottom: 0;
606
+
494
607
  a {
495
- padding: 0px 5px;
608
+ padding: 0 5px;
496
609
  vertical-align: top;
497
610
  margin-bottom: 2px;
498
611
  line-height: 35px;
499
612
  display: block;
500
- border-bottom: 0px none;
613
+ border-bottom: 0 none;
501
614
  }
502
615
  }
503
616
  }
504
617
  }
618
+
505
619
  .left-column {
506
620
  float: left;
507
621
  width: 65%;
622
+
508
623
  img {
509
624
  vertical-align: bottom;
510
625
  margin-top: 1px;
511
626
  margin-right: 5px;
512
627
  }
513
628
  }
629
+
514
630
  .right-column {
515
631
  float: right;
516
632
  width: 34%;
517
633
  text-align: right;
518
634
  }
635
+
519
636
  .on {
520
637
  background-color: #EAEAEA;
521
638
  }
639
+
522
640
  .off, .on-hover {
523
641
  background-color: white;
524
642
  }
643
+
525
644
  ul.empty {
526
645
  display: none;
527
646
  }
647
+
528
648
  ul#sortable_list, ul.sortable_list {
529
649
  margin-top: 6px;
530
650
  }
531
- > #recent_activity, > #recent_inquiries {
532
- float: left;
533
- width: 48%;
534
- }
535
- > #recent_inquiries {
536
- margin-left: 21px;
537
- }
538
- }
539
- #records.one_list > #recent_activity, #records.one_list > #recent_inquiries {
540
- width: 100%;
541
651
  }
652
+
542
653
  #pagination ul a:hover, #pagination .on {
543
654
  background: image_url('refinery/hover-gradient.jpg') repeat-x bottom #D4D4C6;
544
655
  }
656
+
545
657
  #records.tree ul li ul, .tree ul li ul {
546
658
  padding: 0;
547
659
  }
660
+
548
661
  #records.tree ul li, .tree ul li {
549
- margin: 0px;
662
+ margin: 0;
550
663
  padding: 4px 0 0 40px;
551
- background: image_url('refinery/branch.gif') no-repeat 15px 0px;
664
+ background: image_url('refinery/branch.gif') no-repeat 15px 0;
552
665
  }
666
+
553
667
  #records.tree li.record ul {
554
668
  margin-left: 0;
555
669
  }
670
+
556
671
  #records.tree .on-hover, #pagination ul.tree a:hover, #pagination .tree .on {
557
- background: image_url('refinery/branch.gif') no-repeat 15px 0px;
672
+ background: image_url('refinery/branch.gif') no-repeat 15px 0;
558
673
  }
674
+
559
675
  #records.tree ul li.branch_start, .tree ul li.branch_start {
560
676
  background-image: image_url('refinery/branch-start.gif');
561
677
  }
678
+
562
679
  #records.tree ul li.branch_end, .tree ul li.branch_end {
563
680
  background-image: image_url('refinery/branch-end.gif');
564
681
  }
682
+
565
683
  #records.tree li {
566
684
  line-height: 25px;
567
685
  }
686
+
568
687
  #records.tree li span.spacing, .tree li span.spacing {
569
688
  display: none;
570
689
  }
690
+
571
691
  #records.tree ul li > div:hover, .tree ul li > div:hover {
572
692
  background-color: #EAEAEA;
573
693
  }
694
+
574
695
  #sortable_list.reordering > li, .sortable_list.reordering > li {
575
696
  cursor: move;
576
697
  }
698
+
577
699
  #records h2, #actions h2 {
578
- margin-top: 0px;
700
+ margin-top: 0;
579
701
  }
702
+
580
703
  .pagination {
581
704
  background-color: #C9DAE2;
582
705
  padding: 5px 5px 4px 5px;
583
- margin: 10px 0px;
706
+ margin: 10px 0;
707
+
584
708
  em {
585
709
  font-weight: bold;
586
710
  font-style: normal;
587
- padding: 0px 6px;
711
+ padding: 0 6px;
588
712
  }
589
713
  }
714
+
590
715
  .pagination {
591
716
  .disabled {
592
717
  color: #A8B9C1;
593
718
  }
594
- a, #content a, .current, .disabled, em {
719
+
720
+ a, #content a, .current, .disabled, em {
595
721
  padding: 7px;
596
722
  line-height: 20px;
597
- border-bottom: 0px none;
723
+ border-bottom: 0 none;
598
724
  }
725
+
599
726
  .current, a:hover, em {
600
727
  background: #A8B9C1;
601
728
  }
602
729
  }
730
+
603
731
  textarea {
604
732
  line-height: 20px;
605
733
  padding: 5px;
606
734
  }
735
+
607
736
  .field-couple {
608
737
  margin-bottom: 20px;
609
738
  }
739
+
610
740
  .submit {
611
741
  border: inherit;
612
742
  width: auto;
@@ -618,6 +748,7 @@ label, .label_with_help {
618
748
  margin-top: 20px;
619
749
  display: block;
620
750
  }
751
+
621
752
  label.input_label {
622
753
  font-size: inherit;
623
754
  margin-bottom: inherit;
@@ -625,53 +756,63 @@ label.input_label {
625
756
  font-weight: normal;
626
757
  margin-top: inherit;
627
758
  }
759
+
628
760
  small label {
629
761
  font-size: inherit;
630
762
  font-weight: inherit;
631
763
  display: inherit;
632
764
  }
765
+
633
766
  label.stripped {
634
767
  float: none;
635
768
  display: inline;
636
769
  font-weight: normal;
637
770
  font-size: 1em;
638
- margin: 0px;
639
- padding: 0px;
771
+ margin: 0;
772
+ padding: 0;
640
773
  }
774
+
641
775
  #body_field {
642
776
  float: left;
643
777
  width: 60%;
644
778
  }
779
+
645
780
  .no_side_body {
646
781
  width: 72% !important;
647
782
  }
783
+
648
784
  #side_body_field {
649
785
  float: left;
650
786
  width: 38%;
651
787
  margin-left: 18px;
652
788
  }
789
+
653
790
  #body_field textarea, #side_body_field textarea {
654
791
  width: 99%;
655
792
  }
793
+
656
794
  .record .title span {
657
795
  line-height: 30px;
658
796
  }
659
797
 
660
798
  #records.files .record .title, #dialog_main #resource_file_area .pages_list ul li a.page_link {
661
- display:inline-block;
662
- padding-left:24px;
663
- min-height:16px;
664
- background-repeat:no-repeat;
665
- background-position:left;
799
+ display: inline-block;
800
+ padding-left: 24px;
801
+ min-height: 16px;
802
+ background-repeat: no-repeat;
803
+ background-position: left;
666
804
  @include icon('file-o', blue)
667
805
  }
668
- #dialog_main #resource_file_area .pages_list ul li a.page_link{
669
- background-position:5px center;
670
- display:block;
806
+
807
+ #dialog_main #resource_file_area .pages_list ul li a.page_link {
808
+ background-position: 5px center;
809
+ display: block;
671
810
  }
811
+
672
812
  #records.files .record .title.pdf, #dialog_main #resource_file_area .pages_list ul li a.page_link.pdf {
673
813
  @include icon('file-pdf-o')
674
814
  }
815
+
675
816
  #records.files .record .title.jpg,
676
817
  #records.files .record .title.gif,
677
818
  #records.files .record .title.jpeg,
@@ -688,27 +829,33 @@ label.stripped {
688
829
  #records.files .record .title.doc, #records.files .record .title.pages, #records.files .record .title.docx, #dialog_main #resource_file_area .pages_list ul li a.page_link.doc, #dialog_main #resource_file_area .pages_list ul li a.page_link.docx, #dialog_main #resource_file_area .pages_list ul li a.page_link.pages {
689
830
  @include icon('file-word-o');
690
831
  }
832
+
691
833
  #records.files .record .title.ppt, #records.files .record .title.keynote, #dialog_main #resource_file_area .pages_list ul li a.page_link.ppt, #dialog_main #resource_file_area .pages_list ul li a.page_link.keynote {
692
834
  @include icon('file-powerpoint-o');
693
835
  }
836
+
694
837
  #records.files .record .title.xls, #records.files .record .title.numbers, #dialog_main #resource_file_area .pages_list ul li a.page_link.xls, #dialog_main #resource_file_area .pages_list ul li a.page_link.numbers {
695
838
  @include icon('file-excel-o');
696
839
  }
840
+
697
841
  #records.files .record .title.zip, #records.files .record .title.rar, #dialog_main #resource_file_area .pages_list ul li a.page_link.zip, #dialog_main #resource_file_area .pages_list ul li a.page_link.rar {
698
842
  @include icon('file-zip-o');
699
843
  }
844
+
700
845
  #records.files .record .title.mp3, #records.files .record .title.wav, #records.files .record .title.aiff, #records.files .record .title.m4a, #dialog_main #resource_file_area .pages_list ul li a.page_link.mp3, #dialog_main #resource_file_area .pages_list ul li a.page_link.wav, #dialog_main #resource_file_area .pages_list ul li a.page_link.aiff, #dialog_main #resource_file_area .pages_list ul li a.page_link.m4a {
701
846
  @include icon('file-audio-o');
702
847
  }
848
+
703
849
  #records .actions {
704
850
  position: absolute;
705
- right: 0px;
706
- top: 0px;
851
+ right: 0;
852
+ top: 0;
707
853
  width: 120px;
708
854
  text-align: right;
709
855
  display: block;
710
856
  line-height: 28px;
711
857
  }
858
+
712
859
  #records.tree.icons .title {
713
860
  display: block;
714
861
  margin: 0 120px 0 20px;
@@ -717,29 +864,36 @@ label.stripped {
717
864
  cursor: pointer;
718
865
  }
719
866
  }
867
+
720
868
  #records.tree .actions {
721
869
  line-height: 22px;
722
870
  top: 1px;
723
871
  }
872
+
724
873
  .published {
725
874
  width: 25px;
726
875
  text-align: center;
727
876
  }
877
+
728
878
  #content #records.tree > ul li .actions a {
729
- margin: 3px 3px 0px 3px;
879
+ margin: 3px 3px 0 3px;
730
880
  line-height: 24px;
731
881
  }
882
+
732
883
  .actions a * {
733
884
  padding: 4px 4px 1px 4px;
734
885
  }
886
+
735
887
  .actions a img {
736
888
  vertical-align: middle;
737
889
  padding: 2px 4px 4px 4px;
738
890
  }
891
+
739
892
  #records.tree .actions a img {
740
893
  padding-top: 4px;
741
894
  }
742
- #records.tree li span.item {
895
+
896
+ #records.tree li span.icon {
743
897
  display: block;
744
898
  float: left;
745
899
  width: 16px;
@@ -749,15 +903,18 @@ label.stripped {
749
903
 
750
904
  &.toggle {
751
905
  cursor: pointer;
752
- @include icon('folder',$icon_folder_colour);
906
+ @include icon('folder', $icon_folder_colour);
753
907
  }
908
+
754
909
  &.toggle.expanded {
755
- @include icon('folder-open',$icon_folder_colour);
910
+ @include icon('folder-open', $icon_folder_colour);
756
911
  }
757
912
  }
913
+
758
914
  #records.tree li.loading > div > span.icon {
759
915
  @include icon('spinner');
760
916
  }
917
+
761
918
  #image_grid .actions a img {
762
919
  padding: 4px 4px 1px 4px;
763
920
  vertical-align: top;
@@ -767,54 +924,70 @@ label.stripped {
767
924
  background: inherit !important;
768
925
  cursor: move;
769
926
  }
927
+
770
928
  #other_records {
771
929
  width: 68%;
772
930
  }
931
+
773
932
  #common_actions {
774
933
  margin: 0;
775
934
  padding: 0;
935
+
776
936
  li {
777
937
  margin: 0;
778
938
  list-style: none;
779
- padding: 5px 0px 5px 0px;
939
+ padding: 5px 0 5px 0;
940
+ }
941
+
942
+ a {
943
+ font-weight: bold;
780
944
  }
781
- a {
782
- font-weight: bold;
783
- }
784
945
  }
946
+
785
947
  .larger {
786
948
  font-size: 200%;
787
949
  }
950
+
788
951
  .brown_border {
789
952
  border: 1px solid #99998B;
790
953
  }
954
+
791
955
  #inquiry, .inquiry {
792
956
  border-collapse: collapse;
793
957
  width: 100%;
794
958
  }
959
+
795
960
  #inquiry td, .inquiry td {
796
961
  border-bottom: 1px solid #CCCCCC;
797
962
  padding: 7px;
798
963
  }
964
+
799
965
  #inquiry tr:last-child td, .inquiry tr:last-child td {
800
- border-bottom: 0px;
966
+ border-bottom: 0;
801
967
  }
968
+
802
969
  #inquiry td label.stripped, .inquiry td label.stripped {
803
970
  font-weight: bold;
804
971
  }
972
+
805
973
  body.dialog {
806
974
  background: #FFF;
807
975
  }
976
+
808
977
  body.dialog, body.visual_editor_dialog {
809
978
  text-align: left;
810
979
  }
980
+
811
981
  body.dialog form {
812
982
  width: 100% !important;
813
983
  }
984
+
814
985
  .visual_editor_dialog_table {
815
986
  height: 250px;
816
987
  }
988
+
817
989
  .no_picked_image_selected {@include icon('warning', $icon_warning_colour)}
990
+
818
991
  .dialog {
819
992
  #dialog_main {
820
993
  float: left;
@@ -822,35 +995,42 @@ body.dialog form {
822
995
  min-height: 405px;
823
996
  width: 696px;
824
997
  }
998
+
825
999
  span.radio {
826
1000
  display: block;
827
1001
  line-height: 18px;
828
- padding: 6px 0px;
1002
+ padding: 6px 0;
829
1003
  }
1004
+
830
1005
  span.radio * {
831
1006
  cursor: pointer;
832
1007
  font-weight: bold;
833
1008
  }
1009
+
834
1010
  #dialog_menu_left {
835
1011
  position: fixed;
836
1012
  left: 12px;
837
1013
  top: 9px;
838
1014
  width: 130px;
839
1015
  }
1016
+
840
1017
  #existing_image_content {
841
1018
  position: relative;
842
1019
  height: 300px;
843
1020
  padding: 12px;
844
1021
  }
845
- #existing_image_area_content {
1022
+
1023
+ #existing_image_area_content, #existing_image_area_crops {
846
1024
  margin-top: 28px;
1025
+
847
1026
  ul {
848
- margin: 0px;
849
- padding: 0px;
1027
+ margin: 0;
1028
+ padding: 0;
1029
+
850
1030
  li {
851
1031
  list-style: none;
852
- padding: 0px;
853
- margin: 0px 2px 0px 0px;
1032
+ padding: 0;
1033
+ margin: 0 2px 0 0;
854
1034
  float: left;
855
1035
  height: 114px;
856
1036
  max-height: 114px;
@@ -860,30 +1040,38 @@ body.dialog form {
860
1040
  cursor: pointer;
861
1041
  text-align: center;
862
1042
  vertical-align: middle;
1043
+
863
1044
  img {
864
1045
  border: 4px solid transparent;
865
1046
  }
1047
+
866
1048
  &.selected img {
867
1049
  border: 4px solid #22A7F2;
868
1050
  }
869
1051
  }
870
1052
  }
871
1053
  }
1054
+
872
1055
  #existing_image_size_area {
873
1056
  margin-top: 18px;
1057
+ margin-bottom: 50px;
1058
+
874
1059
  ul {
875
- margin: 0px;
876
- padding: 10px 0px 0px 0px;
1060
+ margin: 0;
1061
+ padding: 10px 0 0 0;
1062
+
877
1063
  li {
878
1064
  float: left;
879
1065
  list-style: none;
880
- margin: 0px 18px 0px 0px;
881
- text-align:center;
1066
+ margin: 0 18px 0 0;
1067
+ text-align: center;
1068
+
882
1069
  a {
883
1070
  display: block;
884
1071
  border: 1px solid #999999;
885
1072
  font-size: 10px;
886
1073
  }
1074
+
887
1075
  &.selected {
888
1076
  a {
889
1077
  border-color: #22A7F2;
@@ -895,41 +1083,53 @@ body.dialog form {
895
1083
  }
896
1084
  }
897
1085
  }
1086
+
898
1087
  #existing_image_size_area {
899
1088
  #image_dialog_size_0 a { height: 30px; width: 30px; line-height: 30px; margin-top: 10px }
900
- #image_dialog_size_1 a { height: 50px; width: 50px; line-height: 50px; margin-top: 0px }
901
- #image_dialog_size_2 a { height: 70px; width: 70px; line-height: 70px; margin-top:-10px }
902
- #image_dialog_size_3 a { height: 90px; width: 90px; line-height: 90px; margin-top:-20px }
1089
+
1090
+ #image_dialog_size_1 a { height: 50px; width: 50px; line-height: 50px; margin-top: 0 }
1091
+
1092
+ #image_dialog_size_2 a { height: 70px; width: 70px; line-height: 70px; margin-top: -10px }
1093
+
1094
+ #image_dialog_size_3 a { height: 90px; width: 90px; line-height: 90px; margin-top: -20px }
903
1095
  }
1096
+
904
1097
  #content {
905
- padding: 0px;
1098
+ padding: 0;
906
1099
  }
907
1100
  }
1101
+
908
1102
  #upload_image_area, #upload_resource_area {
909
1103
  padding: 12px;
910
1104
  }
1105
+
911
1106
  .visual_editor_dialog #page {
912
1107
  width: 940px;
913
1108
  padding: 6px;
914
1109
  }
1110
+
915
1111
  #dialog_main {
916
1112
  .pagination {
917
- margin: 0px;
1113
+ margin: 0;
918
1114
  position: fixed;
919
1115
  bottom: 5px;
920
1116
  right: 12px;
921
1117
  z-index: 1000;
922
1118
  }
1119
+
923
1120
  .pages_list {
924
1121
  width: 100%;
925
1122
  padding-bottom: 40px;
1123
+
926
1124
  ul {
927
- margin: 0px 12px 0px 12px;
928
- padding: 0px;
1125
+ margin: 0 12px 0 12px;
1126
+ padding: 0;
1127
+
929
1128
  li {
930
1129
  cursor: pointer;
931
1130
  line-height: 24px;
932
1131
  list-style: none;
1132
+
933
1133
  a {
934
1134
  display: block;
935
1135
  padding: 3px 3px 3px 27px;
@@ -937,57 +1137,72 @@ body.dialog form {
937
1137
  border-bottom: none;
938
1138
  border: 1px solid transparent;
939
1139
  }
1140
+
940
1141
  &:hover {
941
1142
  background-color: #C9DAE2;
942
1143
  }
943
1144
  }
1145
+
944
1146
  li.child a {
945
1147
  padding-left: 27px;
946
1148
  }
1149
+
947
1150
  li.child1 a {
948
1151
  padding-left: 47px;
949
1152
  }
1153
+
950
1154
  li.child2 a {
951
1155
  padding-left: 67px;
952
1156
  }
1157
+
953
1158
  li.child3 a {
954
1159
  padding-left: 87px;
955
1160
  }
1161
+
956
1162
  li.child4 a {
957
1163
  padding-left: 107px;
958
1164
  }
959
1165
  }
960
1166
  }
1167
+
961
1168
  .actions {
962
1169
  margin-right: 48px;
963
1170
  }
1171
+
964
1172
  .pages_list .linked a, .pages_list .linked a:hover {
965
1173
  border: 1px solid #00A017;
966
1174
  color: #00A017;
967
1175
  @include icon('check-circle', green);
968
1176
  }
1177
+
969
1178
  .pages_list .linked a em {
970
1179
  color: #00A017;
971
1180
  }
1181
+
972
1182
  #web_address_area, #dialog_main #email_address_area {
973
1183
  padding: 12px;
974
1184
  }
975
1185
  }
1186
+
976
1187
  #link_title {
977
1188
  margin-top: 12px;
1189
+
978
1190
  label {
979
- margin: 3px 0px 0px 0px !important;
1191
+ margin: 3px 0 0 0 !important;
980
1192
  width: 130px;
981
1193
  display: block;
982
1194
  float: left;
983
1195
  }
1196
+
984
1197
  input {
985
1198
  width: 770px;
986
1199
  }
987
1200
  }
1201
+
988
1202
  ul#menu.reordering_menu li a {
989
1203
  cursor: move;
990
1204
  }
1205
+
991
1206
  #search {
992
1207
  border: 1px solid #b3b3b3;
993
1208
  line-height: 18px;
@@ -995,36 +1210,46 @@ ul#menu.reordering_menu li a {
995
1210
  font-size: 16px;
996
1211
  width: 10em;
997
1212
  }
1213
+
998
1214
  .cancel-search {
999
1215
  float: right;
1000
1216
  }
1217
+
1001
1218
  .pt-BR #search {
1002
1219
  width: 107px;
1003
1220
  }
1221
+
1004
1222
  .en #search {
1005
1223
  width: 130px;
1006
1224
  }
1225
+
1007
1226
  .search_form {
1008
1227
  position: relative;
1228
+
1009
1229
  .button, .button-wrapper {
1010
1230
  position: absolute;
1011
- right: 0px;
1231
+ right: 0;
1012
1232
  top: 2px;
1013
1233
  }
1014
1234
  }
1235
+
1015
1236
  form input[type=submit]:hover {
1016
1237
  background: #65c3f7;
1017
1238
  }
1239
+
1018
1240
  .clearfix:after {
1019
- content:".";
1020
- display:block;
1021
- height:0;
1022
- clear:both;
1023
- visibility:hidden;
1241
+ content: ".";
1242
+ display: block;
1243
+ height: 0;
1244
+ clear: both;
1245
+ visibility: hidden;
1024
1246
  }
1025
- .clearfix {display:inline-block;}
1247
+
1248
+ .clearfix {display: inline-block;}
1249
+
1026
1250
  /* Hide from IE Mac \*/
1027
- .clearfix {display:block;}
1251
+ .clearfix {display: block;}
1252
+
1028
1253
  /* End hide from IE Mac */
1029
1254
  /*
1030
1255
  Firefox Dotted Line Fix
@@ -1033,16 +1258,17 @@ Firefox Dotted Line Fix
1033
1258
  a:focus {
1034
1259
  outline: none;
1035
1260
  }
1261
+
1036
1262
  a img {
1037
- border: 0px none;
1263
+ border: 0 none;
1038
1264
  }
1039
1265
 
1040
1266
 
1041
1267
  /* page parts */
1042
1268
 
1043
- ul#page_parts,
1269
+ ul#page_parts,
1044
1270
  ul#page_parts_controls {
1045
- margin: 0;
1271
+ margin: 12px 0 0 0;
1046
1272
  padding: 0;
1047
1273
  }
1048
1274
 
@@ -1063,7 +1289,7 @@ ul#page_parts_controls {
1063
1289
  margin: 0 3px;
1064
1290
 
1065
1291
  a {
1066
- border: 0px none;
1292
+ border: 0 none;
1067
1293
  }
1068
1294
  }
1069
1295
  }
@@ -1072,95 +1298,116 @@ ul#page_parts_controls {
1072
1298
  #page-tabs.ui-sortable.reordering {
1073
1299
  li {
1074
1300
  cursor: move;
1301
+
1075
1302
  a {
1076
1303
  cursor: move;
1077
1304
  }
1078
1305
  }
1079
1306
  }
1307
+
1080
1308
  #page_part_editors {
1081
- clear:left;
1309
+ clear: left;
1082
1310
  }
1083
1311
 
1084
1312
  /* dialog stuff */
1085
1313
  #dialog_frame {
1086
- width:952px;
1087
- height:460px;
1088
- padding: 0px;
1089
- border: 0px solid #F2F1ED;
1314
+ width: 952px;
1315
+ height: 460px;
1316
+ padding: 0;
1317
+ border: 0 solid #F2F1ED;
1090
1318
  }
1319
+
1091
1320
  .visual_editor_hideables {
1092
1321
  display: none;
1093
1322
  }
1323
+
1094
1324
  #content .form-actions, .wym_dialog .form-actions, .ui-dialog .form-actions {
1095
1325
  @include form-actions;
1096
1326
  }
1327
+
1097
1328
  .dialog form {
1098
1329
  margin-bottom: 45px;
1099
1330
  }
1331
+
1100
1332
  .dialog .dialog_area > div > .field label:first-child, .dialog .dialog_area > div > label:first-child {
1101
- margin-top: 0px;
1333
+ margin-top: 0;
1102
1334
  }
1335
+
1103
1336
  .visual_editor_dialog .form-actions, #content.form-actions.dialog-form-actions, .ui-dialog .form-actions {
1104
1337
  margin-top: 16px;
1105
1338
  }
1339
+
1106
1340
  #content .form-actions .form-actions-left, #content .form-actions .form-actions-right,
1107
- .visual_editor_dialog .form-actions .form-actions-left, .visual_editor_dialog .form-actions .form-actions-right,
1108
- .ui-dialog .form-actions .form-actions-left, .ui-dialog .form-actions .form-actions-right {
1341
+ .visual_editor_dialog .form-actions .form-actions-left, .visual_editor_dialog .form-actions .form-actions-right,
1342
+ .ui-dialog .form-actions .form-actions-left, .ui-dialog .form-actions .form-actions-right {
1109
1343
  position: absolute;
1110
1344
  top: 10px;
1111
1345
  }
1346
+
1112
1347
  #content .form-actions .form-actions-left, .visual_editor_dialog .form-actions .form-actions-left, .ui-dialog .form-actions .form-actions-left {
1113
1348
  left: 10px;
1114
1349
  }
1350
+
1115
1351
  #content .form-actions .form-actions-right, .visual_editor_dialog .form-actions .form-actions-right, .ui-dialog .form-actions .form-actions-right {
1116
1352
  right: 10px;
1117
1353
  }
1354
+
1118
1355
  #content .form-actions .save-loader {
1119
1356
  position: absolute;
1120
1357
  right: -24px;
1121
1358
  top: 4px;
1122
1359
  }
1360
+
1123
1361
  .visual_editor_dialog .form-actions, .ui-dialog .form-actions {
1124
- border: 0px none;
1362
+ border: 0 none;
1125
1363
  border-top: 1px solid #E8E8E8;
1126
1364
  }
1365
+
1127
1366
  #dialog_iframe {
1128
1367
  position: relative;
1129
1368
  }
1369
+
1130
1370
  #dialog_container #content .form-actions, .ui-dialog .form-actions, .dialog_container .form-actions {
1131
1371
  position: absolute;
1132
- bottom: 0px;
1133
- left: 0px;
1134
- right: 0px;
1135
- border-right: 0px;
1136
- border-left: 0px;
1137
- border-bottom: 0px;
1372
+ bottom: 0;
1373
+ left: 0;
1374
+ right: 0;
1375
+ border-right: 0;
1376
+ border-left: 0;
1377
+ border-bottom: 0;
1138
1378
  width: auto;
1139
1379
  }
1380
+
1140
1381
  #dialog_container.dialog.iframed #content .form-actions {
1141
1382
  position: fixed;
1142
1383
  }
1384
+
1143
1385
  body.dialog #content .search_form {
1144
1386
  float: right;
1145
1387
  width: auto !important;
1146
1388
  min-width: 300px;
1147
- margin-bottom: 0px;
1389
+ margin-bottom: 0;
1148
1390
  }
1391
+
1149
1392
  #existing_image_area {
1150
- padding-top:6px;
1393
+ padding-top: 6px;
1151
1394
  }
1395
+
1152
1396
  .ui-dialog div.field {
1153
- margin: 0px 10px;
1397
+ margin: 0 10px;
1154
1398
  }
1399
+
1155
1400
  #dialog_container, .dialog_container {
1156
- margin: 0px;
1401
+ margin: 0;
1157
1402
  padding: 12px;
1158
1403
  }
1404
+
1159
1405
  ul#image_grid, .pagination_container > ul#image_grid {
1160
1406
  width: 100%;
1161
1407
  padding: 0px;
1162
1408
  margin: 10px 0px 15px 0px;
1163
1409
  }
1410
+
1164
1411
  ul#image_grid li, .pagination_container > ul#image_grid li {
1165
1412
  position: relative;
1166
1413
  float: left;
@@ -1173,170 +1420,214 @@ ul#image_grid li, .pagination_container > ul#image_grid li {
1173
1420
  text-align: center;
1174
1421
  overflow: hidden;
1175
1422
  }
1423
+
1176
1424
  ul#image_grid li.image_3 {
1177
1425
  margin-left: 0px;
1178
1426
  margin-right: 0px;
1179
1427
  }
1428
+
1180
1429
  #records ul#image_grid li .actions {
1181
1430
  top: auto;
1182
1431
  bottom: 0px;
1183
1432
  }
1433
+
1184
1434
  #records ul#image_grid li .actions a {
1185
1435
  line-height: 24px;
1186
1436
  }
1437
+
1187
1438
  ul#image_grid li.row-end {
1188
1439
  margin-right: 0px;
1189
1440
  float: right;
1190
1441
  }
1442
+
1191
1443
  ul#image_grid li a {
1192
1444
  border: 0 none;
1193
1445
  }
1446
+
1194
1447
  ul#image_grid li p {
1195
1448
  margin: 3px 0;
1196
1449
  }
1450
+
1197
1451
  ul#image_grid li span.actions {
1198
1452
  width: 100%;
1199
1453
  }
1454
+
1200
1455
  ul.checkboxes {
1201
- margin: 0px;
1202
- padding: 0px;
1456
+ margin: 0;
1457
+ padding: 0;
1203
1458
  }
1459
+
1204
1460
  ul.checkboxes li {
1205
1461
  list-style: none;
1206
1462
  }
1463
+
1207
1464
  .label_inline_with_link label {
1208
1465
  float: left;
1209
1466
  margin-right: 6px;
1210
1467
  }
1468
+
1211
1469
  .label_inline_with_link a {
1212
- border: 0px none;
1470
+ border: 0 none;
1213
1471
  margin-top: 19px;
1214
1472
  line-height: 17px;
1215
1473
  float: left;
1216
1474
  }
1475
+
1217
1476
  .label_inline_with_link a img {
1218
1477
  vertical-align: middle;
1219
1478
  }
1479
+
1220
1480
  .remove_picked_image {
1221
- margin-top:8px;
1222
- display:inline-block;
1223
- width:auto;
1481
+ margin-top: 8px;
1482
+ display: inline-block;
1483
+ width: auto;
1224
1484
  }
1485
+
1225
1486
  #new_page_part_dialog .field {
1226
- padding: 0px 10px;
1487
+ padding: 0 10px;
1227
1488
  }
1489
+
1228
1490
  .hide-overflow {
1229
1491
  overflow: hidden;
1230
1492
  }
1493
+
1231
1494
  #remove_resource {
1232
- margin-top:8px;
1233
- display:inline-block;
1234
- width:auto;
1495
+ margin-top: 8px;
1496
+ display: inline-block;
1497
+ width: auto;
1235
1498
  }
1499
+
1236
1500
  .visual_editor_dialog_paste .field textarea {
1237
1501
  width: 98%;
1238
1502
  }
1503
+
1239
1504
  .ui-dialog .visual_editor_dialog_paste .field, .ui-dialog .visual_editor_dialog_paste .field textarea {
1240
- margin: 0px 0px 45px 0px;
1505
+ margin: 0 0 45px 0;
1241
1506
  height: 300px;
1242
1507
  }
1508
+
1243
1509
  input.button, a.button, #content a.button, span.button-wrapper, span.button-wrapper input {
1244
- cursor:pointer;
1510
+ cursor: pointer;
1245
1511
  background: #22a7f2;
1246
1512
  color: white;
1247
- padding: 0px 14px 0px 14px;
1513
+ padding: 0 14px 0 14px;
1248
1514
  font-size: 14px;
1249
1515
  line-height: 24px;
1250
1516
  height: 24px;
1251
1517
  display: inline-block;
1252
- border: 0px none;
1253
- margin-top: 0px;
1254
- margin-bottom: 0px;
1518
+ border: 0 none;
1519
+ margin-top: 0;
1520
+ margin-bottom: 0;
1255
1521
  }
1522
+
1256
1523
  /* for those pesky IE browsers */
1257
1524
  span.button-wrapper {
1258
- padding: 0px;
1525
+ padding: 0;
1259
1526
  }
1527
+
1260
1528
  span.button-wrapper input {
1261
1529
  display: inherit;
1262
1530
  }
1531
+
1263
1532
  /* fixes firefox display */
1264
1533
  input.button {
1265
1534
  padding-bottom: 3px;
1266
1535
  }
1536
+
1267
1537
  input.button.close_dialog, a.button.close_dialog, #content a.button.close_dialog, span.button-wrapper.close_dialog, span.button-wrapper.close_dialog input {
1268
1538
  background: #bcbcbc;
1269
1539
  }
1540
+
1270
1541
  input.button:hover, a.button:hover, #content a.button:hover, span.button-wrapper:hover, span.button-wrapper:hover input {
1271
- background:#62bef2;
1542
+ background: #62bef2;
1272
1543
  }
1544
+
1273
1545
  input.button.close_dialog:hover, a.button.close_dialog:hover, #content a.button.close_dialog:hover, span.button-wrapper.close_dialog:hover {
1274
1546
  background: #cdcdcd;
1275
1547
  }
1548
+
1276
1549
  input.button:active, a.button:active, #content a.button:active, span.button-wrapper:active, span.button-wrapper:active input {
1277
1550
  background: #004a8f;
1278
1551
  }
1279
- input.button.close_dialog:active, a.button.close_dialog:active, #content a.button.close_dialog:active, span.button-wrapper.close_dialog:active, span.button-wrapper.close_dialog:active input {
1552
+
1553
+ input.button.close_dialog:active, a.button.close_dialog:active, #content a.button.close_dialog:active, span.button-wrapper.close_dialog:active, span.button-wrapper.close_dialog:active input {
1280
1554
  background: #808080;
1281
1555
  }
1556
+
1282
1557
  .visual_editor_dialog a.button.visual_editor_cancel.close_dialog {
1283
1558
  margin-left: 6px;
1284
1559
  }
1560
+
1285
1561
  #content a.button.close_dialog:active {
1286
1562
  color: white;
1287
1563
  }
1564
+
1288
1565
  .form-actions a.confirm-delete, #content .form-actions a.confirm-delete {
1289
1566
  background: #ee1100;
1290
1567
  position: absolute;
1291
- right: 0px;
1568
+ right: 0;
1292
1569
  }
1570
+
1293
1571
  .form-actions a.confirm-delete:hover, #content .form-actions a.confirm-delete:hover {
1294
1572
  background: #ff3322;
1295
1573
  }
1574
+
1296
1575
  .form-actions a.confirm-delete:active, #content .form-actions a.confirm-delete:active {
1297
1576
  background: #bb0000;
1298
1577
  }
1578
+
1299
1579
  .field input[type=text], .field input[type=password], .field input[type=email], .field input[type=tel], .field input[type=number], .field textarea {
1300
1580
  border: 1px solid #7f9db9;
1301
1581
  padding: 0.4% 0.5%;
1302
1582
  line-height: 20px;
1303
1583
  }
1584
+
1304
1585
  /* ## Advanced Page Options --------------------------------------------- */
1305
1586
  #more_options_field {
1306
1587
  span#draft_field {float: right;}
1307
1588
  }
1308
- #more_options{
1309
- overflow:hidden;
1589
+
1590
+ #more_options {
1591
+ overflow: hidden;
1310
1592
  }
1593
+
1311
1594
  .hemisquare {
1312
1595
  padding: 10px;
1313
- margin: 0px 0px;
1596
+ margin: 0 0;
1314
1597
  margin-left: 10px;
1315
1598
  float: left;
1316
1599
  width: 45%;
1600
+
1317
1601
  &.right_side {
1318
- float: right;
1602
+ float: right;
1319
1603
  }
1604
+
1320
1605
  input, textarea, select {
1321
- margin: 7px 0px;
1606
+ margin: 7px 0;
1322
1607
  }
1608
+
1323
1609
  textarea {
1324
- margin-bottom: 0px;
1610
+ margin-bottom: 0;
1325
1611
  }
1612
+
1326
1613
  label {
1327
- margin: 0px;
1614
+ margin: 0;
1328
1615
  }
1616
+
1329
1617
  small {
1330
1618
  font-size: 0.9em;
1331
1619
  }
1332
1620
  }
1621
+
1333
1622
  #content .hemisquare h2 {
1334
- margin-top: 0px;
1623
+ margin-top: 0;
1335
1624
  }
1625
+
1336
1626
  #content .hemisquare .field {
1337
- margin: 0 0 20px 0px;
1627
+ margin: 0 0 20px 0;
1338
1628
  width: 98%;
1339
1629
  }
1630
+
1340
1631
  .label_with_help {
1341
1632
  vertical-align: middle;
1342
1633
  }
@@ -1361,124 +1652,46 @@ input.button.close_dialog:active, a.button.close_dialog:active, #content a.butto
1361
1652
  margin-bottom: 12px;
1362
1653
  display: inline-block;
1363
1654
  }
1655
+
1364
1656
  #upgrade_wrapper li a {
1365
1657
  line-height: 20px;
1366
1658
  }
1659
+
1367
1660
  /* resource-picker */
1368
1661
  #resource_actions {
1369
1662
  float: right;
1370
1663
  margin-right: 20px;
1371
1664
  }
1372
1665
 
1373
- /* Locale picker */
1374
- #switch_locale_picker {
1375
- margin: 0px;
1376
- padding: 0px;
1377
- li {
1378
- float: left;
1379
- padding: 0px;
1380
- margin: 0;
1381
- list-style: none;
1382
- a {
1383
- background-color: #cdcdcd;
1384
- background-position: 12px;
1385
- background-repeat: no-repeat;
1386
- border-bottom: 0;
1387
- border-right: solid 1px white;
1388
- margin-bottom: 1px;
1389
- display: block;
1390
- padding: 7px 3px 3px 3px;
1391
- line-height: 0;
1392
- &:hover {
1393
- background-color: #cae7fb;
1394
- }
1395
- &:active {
1396
- background-color: #22A7F2;
1666
+ body.edit {
1667
+ div.locales {
1668
+ @include locale_group {
1669
+ a {
1670
+ @include locale_button;
1671
+ &:after {
1672
+ top: 0.5rem;
1673
+ }
1397
1674
  }
1675
+ &:first-child { @include left-rounded(5px); }
1676
+ &:last-child { @include right-rounded(5px); }
1398
1677
  }
1399
- &:first-child a {
1400
- border-radius-left: 5px;
1401
- -moz-border-radius-topleft: 5px;
1402
- -moz-border-radius-bottomleft: 5px;
1403
- -webkit-border-top-left-radius: 5px;
1404
- -webkit-border-bottom-left-radius: 5px;
1405
- }
1406
- &:last-child a {
1407
- border-radius-right: 5px;
1408
- -moz-border-radius-topright: 5px;
1409
- -moz-border-radius-bottomright: 5px;
1410
- -webkit-border-top-right-radius: 5px;
1411
- -webkit-border-bottom-right-radius: 5px;
1412
- }
1413
- &.selected a {
1414
- background-color: #65c3f7;
1415
- }
1678
+
1416
1679
  }
1417
1680
  }
1418
- #locale_picker {
1419
- li {
1420
- list-style: none;
1421
- margin: 0;
1422
- a {
1423
- background-color: #cdcdcd;
1424
- background-position: 12px;
1425
- background-repeat: no-repeat;
1426
- border: 0;
1427
- border-bottom: solid 1px white;
1428
- display: block;
1429
- padding: 3px 14px 3px 9px;
1430
- position: relative;
1431
- &:hover {
1432
- background-color: #cae7fb;
1433
- }
1434
- &:active {
1435
- background-color: #22A7F2;
1436
- }
1437
- span.action {
1438
- border-bottom: 1px dotted #727272;
1439
- position: absolute;
1440
- right: 9px;
1441
- top: 5px;
1442
- }
1443
- }
1444
- &:first-child a {
1445
- border-radius-top: 5px;
1446
- -moz-border-radius-topleft: 5px;
1447
- -moz-border-radius-topright: 5px;
1448
- -webkit-border-top-left-radius: 5px;
1449
- -webkit-border-top-right-radius: 5px;
1450
- }
1451
- &:last-child a {
1452
- border-radius-bottom: 5px;
1453
- -moz-border-radius-bottomleft: 5px;
1454
- -moz-border-radius-bottomright: 5px;
1455
- -webkit-border-bottom-left-radius: 5px;
1456
- -webkit-border-bottom-right-radius: 5px;
1457
- }
1458
- }
1459
- #current_locale,
1460
- #other_locales {
1461
- margin: 0;
1462
- }
1463
- #current_locale li {
1464
- a {
1465
- background-color: #65c3f7;
1681
+
1682
+ body.index {
1683
+ span.locales {
1684
+ @include locale_group {
1685
+ a:after { top: 0; }
1466
1686
  }
1467
1687
  }
1468
1688
  }
1469
- .locale_marker {
1470
- font-size:8px;
1471
- display: inline;
1472
- .fa-stack .fa-comment {color: $icon_locale_colour; font-size: 24px;}
1473
- }
1474
1689
 
1475
- #content #records .title .preview a.locale {
1476
- border-bottom: 0px none;
1477
- }
1478
1690
  /* AJAX pagination */
1479
1691
  .pagination_container {
1480
1692
  position: relative;
1481
1693
  }
1694
+
1482
1695
  .pagination_frame {
1483
1696
  padding: 0;
1484
1697
  width: 100%;
@@ -1488,12 +1701,15 @@ input.button.close_dialog:active, a.button.close_dialog:active, #content a.butto
1488
1701
  -webkit-transition: all 0.3s ease-in-out;
1489
1702
  transition: all 0.3s ease-in-out;
1490
1703
  }
1704
+
1491
1705
  .pagination_container > div.pagination_frame {
1492
1706
  top: 40px;
1493
1707
  }
1708
+
1494
1709
  .pagination_frame.frame_left {
1495
1710
  left: -3000px;
1496
1711
  }
1712
+
1497
1713
  .pagination_frame.frame_right {
1498
1714
  left: 3000px;
1499
1715
  -moz-transition: all 0.3s ease-in-out;
@@ -1501,21 +1717,26 @@ input.button.close_dialog:active, a.button.close_dialog:active, #content a.butto
1501
1717
  -webkit-transition: all 0.3s ease-in-out;
1502
1718
  transition: all 0.3s ease-in-out;
1503
1719
  }
1720
+
1504
1721
  .pagination_frame.frame_center {
1505
1722
  left: 0;
1506
1723
  }
1724
+
1507
1725
  .pagination_frame li {
1508
1726
  position: relative;
1509
1727
  padding-left: 5px;
1510
1728
  }
1729
+
1511
1730
  a.information:hover {
1512
1731
  background: #22a7f2;
1513
1732
  }
1733
+
1514
1734
  /* dubiously in here */
1515
1735
  .current_image_link {
1516
1736
  display: inline-block;
1517
1737
  width: auto;
1518
1738
  }
1739
+
1519
1740
  .label {
1520
1741
  padding: 1px 3px 2px;
1521
1742
  font-size: 9.75px;
@@ -1525,16 +1746,20 @@ a.information:hover {
1525
1746
  white-space: nowrap;
1526
1747
  background-color: #bfbfbf;
1527
1748
  margin-right: 0.25em;
1528
- &.important{
1749
+
1750
+ &.important {
1529
1751
  background-color: #c43c35;
1530
1752
  }
1531
- &.warning{
1753
+
1754
+ &.warning {
1532
1755
  background-color: #f89406;
1533
1756
  }
1534
- &.success{
1757
+
1758
+ &.success {
1535
1759
  background-color: #46a546;
1536
1760
  }
1537
- &.notice{
1761
+
1762
+ &.notice {
1538
1763
  background-color: #62cffc;
1539
1764
  }
1540
1765
  }