trusty-cms 4.0.1 → 4.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -3
  3. data/Gemfile.lock +106 -106
  4. data/Rakefile +7 -7
  5. data/app/assets/images/admin/spinner.gif +0 -0
  6. data/app/assets/javascripts/admin.js +3 -0
  7. data/app/assets/javascripts/admin/more-or-less.js +2 -2
  8. data/app/assets/javascripts/admin/tabcontrol.js.erb +1 -2
  9. data/app/assets/stylesheets/admin/_base.scss +22 -6
  10. data/app/assets/stylesheets/admin/_multi_site_main.scss +28 -29
  11. data/app/assets/stylesheets/admin/_reset.scss +5 -4
  12. data/app/assets/stylesheets/admin/_site_chooser.scss +44 -69
  13. data/app/assets/stylesheets/admin/assets.scss +138 -141
  14. data/app/assets/stylesheets/admin/main.scss +10 -12
  15. data/app/assets/stylesheets/admin/modules/_boxes.scss +0 -3
  16. data/app/assets/stylesheets/admin/modules/_buttons.scss +30 -0
  17. data/app/assets/stylesheets/admin/modules/_links.scss +1 -1
  18. data/app/assets/stylesheets/admin/partials/_actions.scss +29 -46
  19. data/app/assets/stylesheets/admin/partials/_avatars.scss +3 -2
  20. data/app/assets/stylesheets/admin/partials/_content.scss +15 -38
  21. data/app/assets/stylesheets/admin/partials/_dateinput.scss +23 -14
  22. data/app/assets/stylesheets/admin/partials/_drawer.scss +78 -0
  23. data/app/assets/stylesheets/admin/partials/_dropdown.scss +9 -12
  24. data/app/assets/stylesheets/admin/partials/_footer.scss +4 -3
  25. data/app/assets/stylesheets/admin/partials/_forms.scss +64 -491
  26. data/app/assets/stylesheets/admin/partials/_header.scss +9 -118
  27. data/app/assets/stylesheets/admin/partials/_layout.scss +26 -2
  28. data/app/assets/stylesheets/admin/partials/_login_form.scss +28 -0
  29. data/app/assets/stylesheets/admin/partials/_messages.scss +10 -5
  30. data/app/assets/stylesheets/admin/partials/_popup.scss +61 -50
  31. data/app/assets/stylesheets/admin/partials/_preferences.scss +37 -0
  32. data/app/assets/stylesheets/admin/partials/_sidebar.scss +55 -0
  33. data/app/assets/stylesheets/admin/partials/_tabcontrol.scss +24 -36
  34. data/app/assets/stylesheets/admin/partials/{_index.scss → _table.scss} +53 -84
  35. data/app/assets/stylesheets/admin/partials/_toolbar.scss +11 -6
  36. data/app/assets/stylesheets/admin/partials/_treetable.scss +1 -71
  37. data/app/assets/stylesheets/admin/partials/_typography.scss +30 -55
  38. data/app/assets/stylesheets/admin/partials/_validations.scss +6 -5
  39. data/app/assets/stylesheets/rad_social/rad_screen.scss +65 -64
  40. data/app/controllers/admin/assets_controller.rb +21 -31
  41. data/app/controllers/admin/configuration_controller.rb +9 -11
  42. data/app/controllers/admin/extensions_controller.rb +3 -3
  43. data/app/controllers/admin/layouts_controller.rb +3 -4
  44. data/app/controllers/admin/page_attachments_controller.rb +5 -5
  45. data/app/controllers/admin/page_fields_controller.rb +3 -4
  46. data/app/controllers/admin/page_parts_controller.rb +4 -5
  47. data/app/controllers/admin/pages_controller.rb +55 -56
  48. data/app/controllers/admin/references_controller.rb +1 -1
  49. data/app/controllers/admin/resource_controller.rb +132 -128
  50. data/app/controllers/admin/sites_controller.rb +4 -4
  51. data/app/controllers/admin/snippets_controller.rb +3 -4
  52. data/app/controllers/admin/users_controller.rb +16 -16
  53. data/app/controllers/application_controller.rb +47 -48
  54. data/app/controllers/site_controller.rb +51 -48
  55. data/app/controllers/social_mailer_controller.rb +13 -16
  56. data/app/helpers/admin/configuration_helper.rb +19 -20
  57. data/app/helpers/admin/layouts_helper.rb +0 -1
  58. data/app/helpers/admin/node_helper.rb +27 -24
  59. data/app/helpers/admin/pages_helper.rb +2 -2
  60. data/app/helpers/admin/preferences_helper.rb +0 -1
  61. data/app/helpers/admin/references_helper.rb +9 -10
  62. data/app/helpers/admin/regions_helper.rb +3 -3
  63. data/app/helpers/application_helper.rb +34 -35
  64. data/app/helpers/rad_social_helper.rb +8 -11
  65. data/app/helpers/scoped_helper.rb +1 -3
  66. data/app/helpers/sites_helper.rb +4 -4
  67. data/app/mailers/devise_mailer.rb +3 -4
  68. data/app/mailers/rad_social_mailer.rb +8 -8
  69. data/app/models/asset.rb +62 -63
  70. data/app/models/asset_type.rb +38 -39
  71. data/app/models/deprecated_tags.rb +3 -4
  72. data/app/models/file_not_found_page.rb +1 -3
  73. data/app/models/haml_filter.rb +1 -1
  74. data/app/models/layout.rb +4 -5
  75. data/app/models/legacy_user.rb +2 -2
  76. data/app/models/menu_renderer.rb +16 -18
  77. data/app/models/page.rb +96 -93
  78. data/app/models/page_attachment.rb +1 -2
  79. data/app/models/page_context.rb +11 -12
  80. data/app/models/page_part.rb +3 -4
  81. data/app/models/rails_page.rb +10 -12
  82. data/app/models/site.rb +22 -21
  83. data/app/models/snippet.rb +6 -8
  84. data/app/models/snippet_finder.rb +3 -3
  85. data/app/models/snippet_tags.rb +4 -4
  86. data/app/models/standard_tags.rb +258 -252
  87. data/app/models/status.rb +8 -8
  88. data/app/models/trusty_cms/config.rb +25 -25
  89. data/app/models/trusty_cms/page_response_cache_director.rb +2 -3
  90. data/app/models/user.rb +15 -14
  91. data/app/models/user_action_observer.rb +3 -3
  92. data/app/users/_choose_site.html.haml +3 -7
  93. data/app/views/admin/assets/_form.html.haml +2 -1
  94. data/app/views/admin/assets/_search.html.haml +2 -1
  95. data/app/views/admin/assets/edit.html.haml +2 -10
  96. data/app/views/admin/assets/index.html.haml +4 -2
  97. data/app/views/admin/assets/new.html.haml +4 -8
  98. data/app/views/admin/assets/remove.html.haml +2 -1
  99. data/app/views/admin/configuration/edit.html.haml +7 -7
  100. data/app/views/admin/configuration/show.html.haml +6 -8
  101. data/app/views/admin/layouts/_choose_site.html.haml +2 -3
  102. data/app/views/admin/layouts/_form.html.haml +13 -12
  103. data/app/views/admin/layouts/_site_chooser.html.haml +2 -2
  104. data/app/views/admin/layouts/index.html.haml +11 -4
  105. data/app/views/admin/layouts/remove.html.haml +6 -5
  106. data/app/views/admin/page_attachments/_attachment.html.haml +2 -2
  107. data/app/views/admin/page_fields/_page_field.html.haml +3 -3
  108. data/app/views/admin/page_parts/_page_part.html.haml +5 -6
  109. data/app/views/admin/pages/_asset_popups.html.haml +15 -16
  110. data/app/views/admin/pages/_assets.html.haml +8 -7
  111. data/app/views/admin/pages/_fields.html.haml +16 -13
  112. data/app/views/admin/pages/_node.html.haml +3 -3
  113. data/app/views/admin/pages/_popups.html.haml +11 -11
  114. data/app/views/admin/pages/edit.html.haml +2 -2
  115. data/app/views/admin/pages/index.html.haml +5 -2
  116. data/app/views/admin/pages/new.html.haml +3 -3
  117. data/app/views/admin/pages/remove.html.haml +4 -3
  118. data/app/views/admin/preferences/edit.html.haml +5 -5
  119. data/app/views/admin/references/filters.haml +1 -1
  120. data/app/views/admin/references/tags.haml +3 -3
  121. data/app/views/admin/removed/_assets_bucket.html.haml +3 -3
  122. data/app/views/admin/removed/_assets_container.html.haml +18 -18
  123. data/app/views/admin/removed/_bucket.html.haml +1 -1
  124. data/app/views/admin/removed/_bucket_asset.html.haml +3 -3
  125. data/app/views/admin/removed/_show_bucket_link.html.haml +1 -1
  126. data/app/views/admin/removed/_upload_to_page.html.haml +5 -5
  127. data/app/views/admin/sites/_form.haml +18 -18
  128. data/app/views/admin/sites/edit.haml +1 -1
  129. data/app/views/admin/sites/index.haml +8 -4
  130. data/app/views/admin/sites/new.haml +1 -1
  131. data/app/views/admin/snippets/_choose_site.html.haml +4 -5
  132. data/app/views/admin/snippets/_form.html.haml +8 -9
  133. data/app/views/admin/snippets/edit.html.haml +1 -1
  134. data/app/views/admin/snippets/index.html.haml +11 -4
  135. data/app/views/admin/snippets/new.html.haml +1 -1
  136. data/app/views/admin/snippets/remove.html.haml +7 -6
  137. data/app/views/admin/users/_avatar.html.haml +2 -2
  138. data/app/views/admin/users/_choose_site.html.haml +3 -7
  139. data/app/views/admin/users/_form.html.haml +18 -21
  140. data/app/views/admin/users/_password_fields.html.haml +6 -6
  141. data/app/views/admin/users/index.html.haml +13 -6
  142. data/app/views/admin/users/remove.html.haml +4 -4
  143. data/app/views/admin/welcome/login.html.haml +8 -8
  144. data/app/views/devise/passwords/edit.html.haml +6 -6
  145. data/app/views/devise/passwords/new.html.haml +3 -3
  146. data/app/views/devise/sessions/new.html.haml +8 -8
  147. data/app/views/devise/shared/_links.html.haml +2 -2
  148. data/app/views/layouts/application.html.haml +24 -19
  149. data/app/views/rad_social_mailer/social_mail_form.html.haml +15 -15
  150. data/app/views/widget/_email_form.html.haml +14 -14
  151. data/app/views/widget/_horizontal_widget.html.haml +5 -5
  152. data/bin/rails +4 -4
  153. data/bin/trusty_cms +3 -5
  154. data/config.ru +1 -1
  155. data/config/application.rb +14 -15
  156. data/config/boot.rb +1 -2
  157. data/config/environment.rb +1 -1
  158. data/config/environments/production.rb +0 -1
  159. data/config/environments/test.rb +1 -2
  160. data/config/initializers/devise.rb +1 -1
  161. data/config/initializers/kraken.rb +2 -2
  162. data/config/initializers/tmp.rb +1 -1
  163. data/config/initializers/trusty_cms_config.rb +48 -48
  164. data/config/locales/en.yml +8 -8
  165. data/config/routes.rb +6 -7
  166. data/lib/active_record_extensions/active_record_extensions.rb +1 -2
  167. data/lib/annotatable.rb +3 -5
  168. data/lib/configuration_extensions/configuration_extensions.rb +1 -1
  169. data/lib/inheritable_class_attributes.rb +13 -9
  170. data/lib/login_system.rb +73 -73
  171. data/lib/method_observer.rb +13 -12
  172. data/lib/ostruct.rb +7 -10
  173. data/lib/simpleton.rb +0 -4
  174. data/lib/string_extensions/string_extensions.rb +3 -3
  175. data/lib/symbol_extensions/symbol_extensions.rb +1 -1
  176. data/lib/tasks/database.rake +28 -28
  177. data/lib/tasks/extensions.rake +18 -18
  178. data/lib/tasks/framework.rake +68 -68
  179. data/lib/tasks/radiant_config.rake +4 -4
  180. data/lib/tasks/snippets_extension_tasks.rake +11 -11
  181. data/lib/tasks/translate.rake +14 -14
  182. data/lib/tasks/upgrade_to_devise.rake +1 -1
  183. data/lib/translation_support.rb +22 -22
  184. data/lib/trusty_cms.rb +2 -2
  185. data/lib/trusty_cms/admin_ui.rb +19 -16
  186. data/lib/trusty_cms/admin_ui/region_partials.rb +4 -3
  187. data/lib/trusty_cms/admin_ui/region_set.rb +4 -5
  188. data/lib/trusty_cms/available_locales.rb +2 -4
  189. data/lib/trusty_cms/config/definition.rb +11 -8
  190. data/lib/trusty_cms/engine.rb +14 -14
  191. data/lib/trusty_cms/extension.rb +14 -16
  192. data/lib/trusty_cms/extension_loader.rb +6 -6
  193. data/lib/trusty_cms/extension_migrator.rb +42 -41
  194. data/lib/trusty_cms/extension_path.rb +20 -19
  195. data/lib/trusty_cms/initializer.rb +5 -8
  196. data/lib/trusty_cms/pagination/controller.rb +7 -10
  197. data/lib/trusty_cms/pagination/link_renderer.rb +2 -2
  198. data/lib/trusty_cms/resource_responses.rb +3 -3
  199. data/lib/trusty_cms/setup.rb +130 -132
  200. data/lib/trusty_cms/taggable.rb +19 -22
  201. data/lib/trusty_cms/task_support.rb +9 -6
  202. data/package.json +10 -2
  203. data/public/dispatch.fcgi +1 -1
  204. data/public/dispatch.rb +2 -2
  205. data/script/extension +1 -1
  206. data/script/rails +2 -2
  207. data/spec/dummy/package.json +1 -1
  208. data/spec/dummy/yarn.lock +3 -3
  209. data/trusty_cms.gemspec +25 -25
  210. data/vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb +1 -1
  211. data/yarn.lock +1992 -4
  212. metadata +54 -42
  213. data/app/assets/stylesheets/admin/partials/_deprecated.scss +0 -65
  214. data/app/assets/stylesheets/admin/partials/_jquery-ui-structure.scss +0 -258
  215. data/app/assets/stylesheets/admin/partials/_jquery-ui-theme.scss +0 -410
  216. data/app/assets/stylesheets/admin/partials/_jquery-ui.scss +0 -650
  217. data/app/views/admin/assets/refresh.html.haml +0 -14
@@ -33,8 +33,7 @@
33
33
  }
34
34
 
35
35
  TabControl.addTab = function(tabText) {
36
- var relative_url_root = "<%= ActionController::Base.relative_url_root %>";
37
- $('div#tab_control .tabs').append("<a id='tab_" + tabText + "' href='#' class='tab'><span>" + tabText + "</span><img src='" + relative_url_root + "<%= asset_path('admin/tab_close.png') %>' class='close' alt='Remove part' title='Remove part' /></a>");
36
+ $('div#tab_control .tabs').append("<a id='tab_" + tabText + "' href='#' class='tab'><span>" + tabText + "</span><i class='fas fa-times-circle close' title='Remove part'></i></a>");
38
37
  var $page_part_index = $('#page_part_index_field');
39
38
  $page_part_index.val(parseInt($page_part_index.val()) + 1);
40
39
  }
@@ -1,16 +1,32 @@
1
1
  // Fonts
2
- $base-font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
3
- $base-font-size: 15px;
2
+ $base-font-family: "Open Sans", sans-serif;
3
+ $base-font-size: 16px;
4
+
5
+ //colors
6
+ $white: #FFFFFF;
7
+ $light-blue: #e0f0ff;
8
+ $dark-blue: #3C3A4B;
9
+ $darker-blue: #292733;
10
+
11
+ $dark-gray: #3A3A3A;
12
+ $gray: #919191;
13
+ $light-gray: #F3F3F4;
14
+
15
+ $dark-red: #8C0E19;
16
+ $red: #BA1321;
17
+ $light-red: #f3c2c2;
18
+
4
19
 
5
20
  // Links
6
- $base-link-color:#94BDC3 ;
7
- $alt-link-color: red;
21
+ $base-link-color: #3c3a4b;
22
+ $alt-link-color: #8C0E19;
8
23
 
9
24
  // Header
10
- $header: #000 !default;
11
- $primary-tab: rgba(236, 6, 115, 0.6);
25
+ $header: #3c3a4b !default;
26
+ $primary-tab: #3c3a4b;
12
27
  $primary-tab-current: white;
13
28
 
14
29
  // Modules
15
30
  @import "modules/links";
16
31
  @import "modules/boxes";
32
+ @import "modules/buttons";
@@ -5,13 +5,14 @@ $font_2: Times New Roman;
5
5
  $font_3: Times;
6
6
  $font_4: serif;
7
7
 
8
- #content {
8
+ .content {
9
9
  table.index {
10
10
  tr.node {
11
11
  td {
12
12
  padding: .5em;
13
13
  }
14
14
  }
15
+
15
16
  &.node {
16
17
  &.site {
17
18
  small {
@@ -21,28 +22,45 @@ $font_4: serif;
21
22
  font-weight: normal;
22
23
  margin-left: .5em;
23
24
  }
25
+
24
26
  a {
25
27
  &:visited {
28
+ color: black;
26
29
  font-size: 115%;
27
30
  font-weight: bold;
28
- color: black;
29
31
  text-decoration: none;
30
32
  }
31
33
  }
32
34
  }
33
35
  }
34
36
  }
37
+
35
38
  .form-area {
36
39
  p {
37
40
  &.domain {
38
41
  float: left;
39
- width: 40%;
40
42
  margin: 1em 1em 0 0;
41
43
  overflow: hidden;
44
+ width: 40%;
45
+
46
+ label {
47
+ display: block;
48
+ position: relative;
49
+ }
50
+ }
51
+
52
+ &.homepage {
53
+ float: right;
54
+ margin: 1em 0 0;
55
+ overflow: hidden;
56
+ width: 16%;
57
+
42
58
  label {
43
-
59
+ display: block;
60
+ position: relative;
44
61
  }
45
62
  }
63
+
46
64
  &.subtitle {
47
65
  margin: 1em 0 0 0;
48
66
  }
@@ -50,28 +68,9 @@ $font_4: serif;
50
68
  }
51
69
  }
52
70
 
53
-
54
- #content {
55
- div.form-area p.homepage {
56
- float: right;
57
- width: 16%;
58
- margin: 1em 0 0;
59
- overflow: hidden;
60
- }
61
- .form-area p {
62
- &.domain label {
63
- display: block;
64
- position: relative;
65
- }
66
- &.homepage label {
67
- display: block;
68
- position: relative;
69
- }
70
- }
71
- }
72
71
  p.formnote {
73
- clear: both;
74
- padding: 2em 0;
72
+ clear: both;
73
+ padding: 2em 0;
75
74
  }
76
75
 
77
76
 
@@ -79,7 +78,7 @@ p.formnote {
79
78
  //original selectors
80
79
  //#content div.form-area p.domain .textbox, #content div.form-area p.homepage .textbox, #content div.form-area p.subtitle .textbox, #content div.form-area p.subtitle select
81
80
  %extend_1 {
82
- font-family: $font_0, $font_1, $font_2, $font_3, $font_4;
83
- font-size: 140%;
84
- width: 100%;
85
- }
81
+ font-family: $font_0, $font_1, $font_2, $font_3, $font_4;
82
+ font-size: 140%;
83
+ width: 100%;
84
+ }
@@ -5,17 +5,17 @@ del, dfn, em, img, ins, kbd, q, s, samp,
5
5
  small, strike, strong, sub, sup, tt, var,
6
6
  b, u, i, center,
7
7
  dl, dt, dd, ol, ul, li,
8
- fieldset, form, label, legend,
8
+ fieldset, form, label, legend, input,
9
9
  table, caption, tbody, tfoot, thead, tr, th, td,
10
10
  article, aside, canvas, details, embed,
11
11
  figure, figcaption, footer, header, hgroup,
12
12
  menu, nav, output, ruby, section, summary,
13
13
  time, mark, audio, video {
14
- margin: 0;
15
- padding: 0;
16
14
  border: 0;
17
15
  font: inherit;
18
16
  font-size: 100%;
17
+ margin: 0;
18
+ padding: 0;
19
19
  vertical-align: baseline;
20
20
  }
21
21
 
@@ -33,14 +33,15 @@ table {
33
33
  }
34
34
 
35
35
  caption, th, td {
36
- text-align: left;
37
36
  font-weight: normal;
37
+ text-align: left;
38
38
  vertical-align: middle;
39
39
  }
40
40
 
41
41
  q, blockquote {
42
42
  quotes: none;
43
43
  }
44
+
44
45
  q:before, q:after, blockquote:before, blockquote:after {
45
46
  content: "";
46
47
  content: none;
@@ -1,73 +1,48 @@
1
1
  //colors
2
- $color_turquoise_blue_approx: #66d9e0;
3
- $white: #fff;
4
- $black: #000;
5
2
 
6
- #site_chooser {
7
- width: 20%;
8
- border-collapse: collapse;
9
- float: right;
3
+ .site_chooser {
4
+ border-collapse: collapse;
5
+ float: left;
6
+ padding-left: 1em;
7
+ width: fit-content;
10
8
  }
11
- #nav {
12
- list-style: none;
13
- font-weight: bold;
14
- margin-bottom: 10px;
15
- width: 100%;
16
- padding-top: 10px;
17
- padding-bottom: 10px;
18
- padding-left: 5px;
19
- margin: 0;
20
- cursor: pointer;
21
- li {
22
- margin-right: 10px;
23
- position: relative;
24
- color: $color_turquoise_blue_approx;
25
- &:hover {
26
- a {
27
- background: $black;
28
- text-decoration: underline;
29
- }
30
- ul a {
31
- text-decoration: none;
32
- }
33
- }
34
- }
35
- a {
36
- display: block;
37
- padding: 5px;
38
- color: $white;
39
- background: $black;
40
- text-decoration: none;
41
- &:hover {
42
- color: $white;
43
- background: $black;
44
- text-decoration: underline;
45
- }
46
- &.site-link:hover {
47
- color: $color_turquoise_blue_approx;
48
- transition: all 0.2s;
49
- }
50
- }
51
- ul {
52
- background: $white;
53
- background: rgba(255,255,255,0);
54
- list-style: none;
55
- position: absolute;
56
- margin-top: 10px;
57
- visibility: hidden;
58
- opacity: 0;
59
- transition: opacity 0.2s;
60
- li {
61
- float: none;
62
- }
63
- a {
64
- white-space: nowrap;
65
- }
66
- }
67
- &:hover ul {
68
- visibility: visible;
69
- opacity: 1;
70
- transition: opacity 0.2s;
71
- z-index: 99999;
72
- }
9
+
10
+ .nav {
11
+ color: $white;
12
+ cursor: pointer;
13
+ font-weight: bold;
14
+ list-style: none;
15
+ padding: 1em;
16
+
17
+ ul {
18
+ opacity: 0;
19
+ position: absolute;
20
+ transition: opacity 0.2s;
21
+ visibility: hidden;
22
+
23
+ li {
24
+ padding: 0.75em 5em 0.5em 1em;
25
+ position: relative;
26
+
27
+ &:hover {
28
+ background-color: darken($dark-blue, 15%);
29
+ cursor: pointer;
30
+ }
31
+ }
32
+
33
+ a {
34
+ color: $white;
35
+ text-decoration: none;
36
+ white-space: nowrap;
37
+ }
38
+ }
39
+
40
+ &:hover ul {
41
+ background-color: $dark-blue;
42
+ margin-top: 1em;
43
+ opacity: 1;
44
+ transition: opacity 0.2s;
45
+ visibility: visible;
46
+ z-index: 99999;
47
+ }
73
48
  }
@@ -1,74 +1,50 @@
1
- p.asset {
2
- img.preview {
3
- border: 5px solid white;
4
- box-shadow: 0 5px #333;
5
- }
6
- }
1
+ .search {
2
+ display: grid;
3
+ grid-template-columns: 1fr 1fr;
7
4
 
8
- .asset_filters {
9
- float: left;
10
- padding: 2px 0;
11
- a {
12
- border-radius: 100px;
13
- color: #555555;
14
- padding: 3px 8px;
15
- text-decoration: none;
16
- font-size: 12px;
17
- &:hover {
18
- background: #cccccc;
5
+ .asset_filters {
6
+
7
+ a {
8
+ border: 1px solid #3c3a4b;
9
+ display: inline-block;
10
+ margin: 0.25em;
11
+ padding: 0.5em 0.75em;
12
+ text-decoration: none;
13
+
14
+ &:hover, &.pressed {
15
+ background-color: #3c3a4b;
16
+ color: #ffffff;
17
+ }
18
+ }
19
19
  }
20
- &.pressed {
21
- background: #888888;
22
- box-shadow: inset 0 1px 1px #333;
23
- color: white;
24
- text-shadow: 0 1px 0 #333333;
25
- &:hover {
26
- background: #888888;
27
- box-shadow: inset 0 1px 1px #333;
28
- color: white;
29
- text-shadow: 0 1px 0 #333333;
20
+
21
+ .asset_search {
22
+ display: inline-block;
23
+
24
+ svg, input {
25
+ display: inline;
30
26
  }
31
27
  }
32
28
  }
33
- }
29
+
34
30
 
35
31
  .popup {
36
32
  div.toolbar {
37
- background: white;
38
- background-image: linear-gradient(#ffffff, #dddddd);
39
- border-bottom: 1px solid #cccccc;
40
- box-shadow: 0 1px 0 white;
33
+ border-bottom: 1px solid #f3f3f4;
34
+ font-size: 95%;
41
35
  margin: -20px -20px 0;
42
36
  padding: 6px 10px 3px 10px;
43
- font-size: 95%;
44
- height: 30px;
37
+
45
38
  &:after {
46
39
  clear: both;
47
40
  content: "";
48
41
  display: block;
49
42
  }
50
- .right {
51
- float: right;
52
- }
53
- form.search {
54
- padding: 4px 2px 0;
55
- input[type=search] {
56
- font-size: 12px;
57
- border-radius: 100px;
58
- border: 1px solid #cccccc;
59
- border-top-color: #999999;
60
- border-left-color: #b0b0b0;
61
- border-right-color: #bbbbbb;
62
- background: white url("/assets/admin/search.png") 4px center no-repeat;
63
- box-shadow: inset 0 1px 0 rgba(black, 0.2);
64
- width: 180px;
65
- padding: 2px 8px 2px 20px;
66
- }
67
43
  }
68
- }
44
+
69
45
  #assets_table.assets {
70
46
  overflow: auto;
71
- }
47
+ }
72
48
  }
73
49
 
74
50
  #upload_holders {
@@ -77,215 +53,236 @@ p.asset {
77
53
 
78
54
  #attach_asset {
79
55
  .viewport {
56
+ height: 50vh;
80
57
  overflow-x: hidden;
81
- width: 610px;
82
- height: 310px;
83
- }
58
+ width: 75vw;
59
+ }
84
60
  }
85
61
 
86
62
  .attachment_actions {
87
- text-align: right;
88
63
  margin-bottom: -1em;
64
+ text-align: right;
65
+
89
66
  ul {
90
67
  list-style-type: none;
68
+
91
69
  &, & li {
70
+ display: inline;
92
71
  margin: 0;
93
72
  padding: 0;
94
- display: inline;
95
73
  }
96
74
  }
75
+
97
76
  li {
98
77
  padding-left: 1em;
99
- }
78
+ }
79
+
100
80
  a {
101
81
  color: white !important;
102
82
  text-shadow: 1px 1px 0 #888888;
83
+ }
103
84
  }
85
+
86
+ .asset_attachment {
87
+ margin-bottom: 2em;
88
+ position: relative;
89
+
90
+ .attach-assets {
91
+ .message {
92
+ margin: 1em 0;
93
+ }
94
+ }
104
95
  }
105
96
 
106
97
  .assets {
107
98
  height: 150px;
108
- padding-left: 5px;
109
- padding-right: 5px;
99
+
110
100
  ul {
111
101
  li.asset {
112
102
  display: block;
113
103
  float: left;
104
+ height: 100px;
114
105
  margin: 1em;
115
- width: 110px;
116
- height: 110px;
117
106
  position: relative;
118
- line-height: 1.2em;
107
+ width: 100px;
108
+
119
109
  .front, .back {
120
- display: block;
121
110
  background: #e6eaed;
122
111
  border: 5px solid white;
123
- position: absolute;
124
- width: 100px;
112
+ display: block;
125
113
  height: 100px;
114
+ position: absolute;
126
115
  text-align: center;
127
- }
128
- .front {
129
- box-shadow: 0 5px #333;
130
- text-align: center;
131
- }
116
+ width: 100px;
117
+ }
118
+
132
119
  .back {
133
120
  color: #333333;
134
- overflow: hidden;
135
121
  opacity: 0;
136
- }
122
+ overflow: hidden;
123
+ }
124
+
137
125
  .title {
138
126
  color: #333333;
139
127
  font-size: 10px;
140
- overflow: hidden;
141
- margin: 10px 4px;
142
128
  height: 15px;
143
129
  line-height: 15px;
130
+ margin: 10px 4px;
131
+ overflow: hidden;
144
132
  text-overflow: ellipsis;
145
- }
133
+ }
134
+
146
135
  .icon {
147
136
  height: 63px;
148
137
  line-height: 63px;
138
+
149
139
  img {
150
140
  vertical-align: bottom;
141
+ }
151
142
  }
152
- }
143
+
153
144
  ul.actions {
154
145
  li {
146
+ font-size: 10px;
155
147
  margin: 5px 0;
156
148
  padding: 0 10px;
157
- font-size: 10px;
158
- }
149
+ }
150
+
159
151
  a {
160
152
  background: #666666;
161
- background: rgba(black, 0.8);
162
- border-radius: 5px;
163
- color: #dddddd;
153
+ background: rgba(#000, 0.8);
154
+ color: #ffffff;
164
155
  display: block;
165
- padding: 2px 10px;
156
+ padding: 0.5em;
166
157
  text-decoration: none;
158
+
167
159
  &:hover {
168
160
  background: #999999;
169
161
  background: rgba(black, 0.6);
170
162
  color: white;
163
+ }
171
164
  }
172
165
  }
173
- }
166
+
174
167
  &.unsaved {
175
168
  .front {
176
169
  opacity: 0.4;
170
+ }
177
171
  }
178
- }
172
+
179
173
  &:hover {
180
174
  .back {
181
- opacity: 1;
182
175
  background: rgba(white, 0.6);
176
+ opacity: 1;
177
+ }
183
178
  }
184
- }
179
+
185
180
  &.waiting {
186
181
  background-color: #e6eaed;
182
+
187
183
  .back {
188
184
  display: none;
189
- }
185
+ }
186
+
190
187
  .front {
191
188
  background: transparent url(/assets/admin/spinner.gif) no-repeat center center;
189
+
192
190
  img {
193
191
  opacity: 0.2;
192
+ }
194
193
  }
195
194
  }
196
195
  }
197
196
  }
198
197
  }
199
- }
198
+
200
199
 
201
200
  #attachment_list.assets {
202
201
  border-bottom-left-radius: 5px;
203
202
  border-bottom-right-radius: 5px;
204
203
  margin: -1em 0.5em 1em 0.5em;
205
- overflow-y: hidden;
206
- overflow-x: auto;
204
+ overflow: auto;
205
+
207
206
  ul.empty {
208
207
  display: none;
209
- }
208
+ }
209
+
210
210
  p.note {
211
+ clear: left;
211
212
  margin: 0;
212
213
  padding: 8px;
213
- clear: left;
214
+
214
215
  span.message {
215
- float: right;
216
216
  color: #aaaaaa;
217
+ float: right;
218
+
217
219
  &.important {
218
220
  color: #dd9999;
221
+ }
219
222
  }
220
223
  }
221
- }
224
+
222
225
  ul.sortable {
223
226
  li.asset {
224
227
  div.back {
225
228
  cursor: move;
229
+ }
226
230
  }
227
231
  }
228
232
  }
229
- }
230
233
 
231
234
  #assets_table.assets {
232
- position: relative;
233
235
  font-size: 75%;
236
+ position: relative;
237
+
234
238
  p {
235
- padding: 40px {
236
- top: 45px;
237
- };
238
239
  color: silver;
239
- text-align: center;
240
240
  font-style: oblique;
241
- }
241
+ padding: 45px 40px;
242
+ text-align: center;
243
+ }
244
+
242
245
  ul {
243
246
  clear: both;
247
+
244
248
  li.asset {
245
249
  input {
246
250
  display: none;
251
+ }
247
252
  }
248
253
  }
249
- }
250
- div.pagination {
251
- position: relative;
252
- overflow: hidden;
253
- clear: left;
254
- width: 100%;
255
- height: 3em;
256
- padding: 0.5em 0;
257
- span, a, em {
258
- display: block;
259
- float: left;
260
- padding: 0.25em;
261
- margin: 1em 2px 1em 0;
262
- border-radius: 2px;
254
+
255
+ .pagination {
256
+ clear: both;
257
+ padding: 1em;
258
+
259
+ a, .current {
260
+ border-bottom: 1px solid #3c3a4b;
261
+ border-left: 1px solid #3c3a4b;
262
+ border-right: 1px solid #3c3a4b;
263
+ border-top: 1px solid #3c3a4b;
264
+ margin-left: -5px;
265
+ padding: 0.15em 0.85em;
263
266
  text-decoration: none;
264
- }
265
- span.current {
266
- color: black;
267
- font-weight: bold;
268
- }
269
- span.disabled {
270
- background-color: #eeeeee;
271
- color: #cccccc;
272
- }
273
- a {
274
- background-color: #eeeeee;
275
- color: #444444;
267
+
276
268
  &:hover {
277
- background-color: #BC045C;
278
- color: white;
269
+ background-color: #3c3a4b;
270
+ color: #ffffff;
271
+ }
272
+ }
273
+
274
+ .current {
275
+ background-color: #3c3a4b;
276
+ color: #ffffff;
277
+ }
278
+
279
+ .previous_page, .next_page {
280
+ border: none;
281
+ margin-right: 0.5em;
282
+ }
283
+
284
+ .gap {
285
+ margin-right: 0.5em;
279
286
  }
280
287
  }
281
- span {
282
- color: #888888;
283
- }
284
- span, a {
285
- display: block;
286
- float: left;
287
- padding: 2px 6px;
288
- line-height: 1.5em;
289
- }
290
- }
291
288
  }