alchemy_cms 3.4.2 → 3.5.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +9 -3
  3. data/.teatro.yml +1 -0
  4. data/.travis.yml +14 -17
  5. data/CHANGELOG.md +44 -6
  6. data/Gemfile +7 -4
  7. data/README.md +60 -10
  8. data/Rakefile +1 -1
  9. data/alchemy_cms.gemspec +5 -8
  10. data/app/assets/javascripts/alchemy/admin.js +2 -0
  11. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +1 -0
  12. data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +1 -0
  13. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +1 -1
  14. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +9 -7
  15. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +1 -0
  16. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +11 -7
  17. data/app/assets/javascripts/alchemy/alchemy.sitemap.js.coffee +1 -1
  18. data/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee +8 -3
  19. data/app/assets/javascripts/alchemy/alchemy.tooltips.coffee +10 -0
  20. data/app/assets/javascripts/alchemy/alchemy.uploader.js.coffee +104 -73
  21. data/app/assets/stylesheets/alchemy/_defaults.scss +1 -4
  22. data/app/assets/stylesheets/alchemy/_extends.scss +13 -35
  23. data/app/assets/stylesheets/alchemy/_mixins.scss +82 -18
  24. data/app/assets/stylesheets/alchemy/_variables.scss +21 -8
  25. data/app/assets/stylesheets/alchemy/admin.scss +4 -0
  26. data/app/assets/stylesheets/alchemy/archive.scss +8 -12
  27. data/app/assets/stylesheets/alchemy/attachments.scss +39 -0
  28. data/app/assets/stylesheets/alchemy/base.scss +26 -15
  29. data/app/assets/stylesheets/alchemy/buttons.scss +59 -31
  30. data/app/assets/stylesheets/alchemy/dashboard.scss +3 -3
  31. data/app/assets/stylesheets/alchemy/dialogs.scss +10 -8
  32. data/app/assets/stylesheets/alchemy/elements.scss +65 -41
  33. data/app/assets/stylesheets/alchemy/errors.scss +7 -0
  34. data/app/assets/stylesheets/alchemy/flash.scss +1 -1
  35. data/app/assets/stylesheets/alchemy/form_fields.scss +0 -37
  36. data/app/assets/stylesheets/alchemy/forms.scss +18 -27
  37. data/app/assets/stylesheets/alchemy/frame.scss +104 -204
  38. data/app/assets/stylesheets/alchemy/hints.scss +62 -0
  39. data/app/assets/stylesheets/alchemy/icon-font.scss +2 -1
  40. data/app/assets/stylesheets/alchemy/icons.scss +9 -4
  41. data/app/assets/stylesheets/alchemy/image_library.scss +6 -6
  42. data/app/assets/stylesheets/alchemy/jquery-ui.scss +6 -4
  43. data/app/assets/stylesheets/alchemy/lists.scss +0 -1
  44. data/app/assets/stylesheets/alchemy/menubar.scss +3 -4
  45. data/app/assets/stylesheets/alchemy/modules.scss +0 -6
  46. data/app/assets/stylesheets/alchemy/navigation.scss +242 -0
  47. data/app/assets/stylesheets/alchemy/pagination.scss +3 -3
  48. data/app/assets/stylesheets/alchemy/print.scss +1 -0
  49. data/app/assets/stylesheets/alchemy/resource_info.scss +45 -0
  50. data/app/assets/stylesheets/alchemy/search.scss +72 -1
  51. data/app/assets/stylesheets/alchemy/selects.scss +38 -44
  52. data/app/assets/stylesheets/alchemy/sitemap.scss +89 -79
  53. data/app/assets/stylesheets/alchemy/tables.scss +6 -10
  54. data/app/assets/stylesheets/alchemy/toolbar.scss +7 -36
  55. data/app/assets/stylesheets/alchemy/upload.scss +12 -3
  56. data/app/assets/stylesheets/tinymce/skins/alchemy/content.min.css.scss +6 -3
  57. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.svg +58 -170
  58. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.ttf +0 -0
  59. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.woff +0 -0
  60. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.svg +124 -148
  61. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.ttf +0 -0
  62. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.woff +0 -0
  63. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +426 -144
  64. data/app/controllers/alchemy/admin/attachments_controller.rb +24 -16
  65. data/app/controllers/alchemy/admin/clipboard_controller.rb +1 -1
  66. data/app/controllers/alchemy/admin/essence_files_controller.rb +1 -1
  67. data/app/controllers/alchemy/admin/essence_pictures_controller.rb +9 -8
  68. data/app/controllers/alchemy/admin/layoutpages_controller.rb +1 -0
  69. data/app/controllers/alchemy/admin/pages_controller.rb +2 -2
  70. data/app/controllers/alchemy/admin/resources_controller.rb +2 -2
  71. data/app/controllers/alchemy/admin/tags_controller.rb +1 -1
  72. data/app/controllers/alchemy/api/pages_controller.rb +16 -0
  73. data/app/controllers/alchemy/messages_controller.rb +1 -1
  74. data/app/controllers/concerns/alchemy/admin/uploader_responses.rb +2 -2
  75. data/app/helpers/alchemy/admin/attachments_helper.rb +11 -0
  76. data/app/helpers/alchemy/admin/base_helper.rb +37 -4
  77. data/app/helpers/alchemy/admin/contents_helper.rb +11 -4
  78. data/app/helpers/alchemy/admin/elements_helper.rb +0 -19
  79. data/app/helpers/alchemy/admin/essences_helper.rb +7 -30
  80. data/app/helpers/alchemy/admin/navigation_helper.rb +13 -51
  81. data/app/helpers/alchemy/admin/pages_helper.rb +21 -16
  82. data/app/helpers/alchemy/admin/pictures_helper.rb +9 -0
  83. data/app/helpers/alchemy/deprecated_pages_helper.rb +54 -0
  84. data/app/helpers/alchemy/essences_helper.rb +1 -1
  85. data/app/helpers/alchemy/pages_helper.rb +8 -109
  86. data/app/helpers/alchemy/url_helper.rb +8 -13
  87. data/app/models/alchemy/attachment.rb +7 -4
  88. data/app/models/alchemy/cell.rb +2 -2
  89. data/app/models/alchemy/content.rb +2 -2
  90. data/app/models/alchemy/content/factory.rb +12 -9
  91. data/app/models/alchemy/element.rb +6 -3
  92. data/app/models/alchemy/essence_file.rb +1 -1
  93. data/app/models/alchemy/essence_picture.rb +37 -47
  94. data/app/models/alchemy/essence_picture_view.rb +8 -1
  95. data/app/models/alchemy/folded_page.rb +3 -2
  96. data/app/models/alchemy/legacy_page_url.rb +3 -3
  97. data/app/models/alchemy/page.rb +50 -5
  98. data/app/models/alchemy/page/fixed_attributes.rb +63 -0
  99. data/app/models/alchemy/page/page_elements.rb +10 -7
  100. data/app/models/alchemy/page/page_natures.rb +19 -0
  101. data/app/models/alchemy/picture.rb +1 -0
  102. data/app/models/alchemy/picture/transformations.rb +1 -1
  103. data/app/models/alchemy/picture/url.rb +82 -0
  104. data/app/serializers/alchemy/page_tree_serializer.rb +29 -8
  105. data/app/views/alchemy/_edit_mode.html.erb +2 -0
  106. data/app/views/alchemy/_menubar.html.erb +1 -1
  107. data/app/views/alchemy/_preview_mode_code.html.erb +6 -0
  108. data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +1 -1
  109. data/app/views/alchemy/admin/attachments/_attachment.html.erb +25 -5
  110. data/app/views/alchemy/admin/attachments/_replace_button.html.erb +26 -0
  111. data/app/views/alchemy/admin/attachments/index.html.erb +1 -1
  112. data/app/views/alchemy/admin/attachments/show.html.erb +52 -0
  113. data/app/views/alchemy/admin/elements/_element_header.html.erb +6 -3
  114. data/app/views/alchemy/admin/elements/create.js.erb +0 -2
  115. data/app/views/alchemy/admin/elements/trash.js.erb +0 -1
  116. data/app/views/alchemy/admin/elements/update.js.erb +0 -2
  117. data/app/views/alchemy/admin/essence_pictures/crop.html.erb +1 -4
  118. data/app/views/alchemy/admin/essence_pictures/edit.html.erb +1 -1
  119. data/app/views/alchemy/admin/languages/index.html.erb +1 -0
  120. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +26 -27
  121. data/app/views/alchemy/admin/layoutpages/edit.html.erb +1 -1
  122. data/app/views/alchemy/admin/pages/_form.html.erb +13 -40
  123. data/app/views/alchemy/admin/pages/_locked_page.html.erb +1 -1
  124. data/app/views/alchemy/admin/pages/_page.html.erb +119 -61
  125. data/app/views/alchemy/admin/pages/_page_for_links.html.erb +4 -2
  126. data/app/views/alchemy/admin/pages/_page_infos.html.erb +12 -12
  127. data/app/views/alchemy/admin/pages/_page_status.html.erb +1 -1
  128. data/app/views/alchemy/admin/pages/_publication_fields.html.erb +35 -0
  129. data/app/views/alchemy/admin/pages/edit.html.erb +13 -2
  130. data/app/views/alchemy/admin/pages/index.html.erb +3 -8
  131. data/app/views/alchemy/admin/pages/info.html.erb +15 -2
  132. data/app/views/alchemy/admin/pages/sort.js.erb +1 -1
  133. data/app/views/alchemy/admin/pages/update.js.erb +1 -14
  134. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +12 -8
  135. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +4 -4
  136. data/app/views/alchemy/admin/partials/_search_form.html.erb +1 -1
  137. data/app/views/alchemy/admin/partials/_sub_navigation.html.erb +9 -6
  138. data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +1 -1
  139. data/app/views/alchemy/admin/pictures/_picture.html.erb +1 -6
  140. data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +1 -6
  141. data/app/views/alchemy/admin/pictures/index.html.erb +1 -1
  142. data/app/views/alchemy/admin/pictures/show.html.erb +1 -6
  143. data/app/views/alchemy/admin/uploader/_button.html.erb +4 -4
  144. data/app/views/alchemy/base/500.html.erb +15 -1
  145. data/app/views/alchemy/essences/_essence_boolean_editor.html.erb +13 -15
  146. data/app/views/alchemy/essences/_essence_boolean_view.html.erb +1 -3
  147. data/app/views/alchemy/essences/_essence_date_editor.html.erb +0 -2
  148. data/app/views/alchemy/essences/_essence_date_view.html.erb +0 -2
  149. data/app/views/alchemy/essences/_essence_file_editor.html.erb +2 -7
  150. data/app/views/alchemy/essences/_essence_file_view.html.erb +1 -3
  151. data/app/views/alchemy/essences/_essence_html_editor.html.erb +0 -2
  152. data/app/views/alchemy/essences/_essence_html_view.html.erb +1 -3
  153. data/app/views/alchemy/essences/_essence_link_editor.html.erb +0 -2
  154. data/app/views/alchemy/essences/_essence_link_view.html.erb +0 -2
  155. data/app/views/alchemy/essences/_essence_picture_editor.html.erb +47 -49
  156. data/app/views/alchemy/essences/_essence_picture_view.html.erb +1 -3
  157. data/app/views/alchemy/essences/_essence_richtext_editor.html.erb +0 -2
  158. data/app/views/alchemy/essences/_essence_richtext_view.html.erb +1 -3
  159. data/app/views/alchemy/essences/_essence_select_editor.html.erb +27 -29
  160. data/app/views/alchemy/essences/_essence_select_view.html.erb +1 -3
  161. data/app/views/alchemy/essences/_essence_text_editor.html.erb +17 -19
  162. data/app/views/alchemy/essences/_essence_text_view.html.erb +0 -2
  163. data/app/views/alchemy/pages/_meta_data.html.erb +9 -0
  164. data/app/views/layouts/alchemy/admin.html.erb +9 -11
  165. data/bin/alchemy +1 -2
  166. data/config/alchemy/config.yml +1 -1
  167. data/config/alchemy/modules.yml +0 -16
  168. data/config/initializers/dragonfly.rb +0 -18
  169. data/config/initializers/mini_profiler.rb +6 -0
  170. data/config/locales/alchemy.de.yml +9 -1
  171. data/config/locales/alchemy.en.yml +7 -1
  172. data/config/locales/alchemy.es.yml +6 -0
  173. data/config/locales/alchemy.fr.yml +2 -0
  174. data/config/locales/alchemy.it.yml +3 -1
  175. data/config/locales/alchemy.nl.yml +2 -0
  176. data/config/locales/alchemy.ru.yml +2 -0
  177. data/config/routes.rb +3 -8
  178. data/db/migrate/20160912223112_add_index_to_alchemy_pages_rgt.rb +9 -0
  179. data/db/migrate/20160927205604_add_foreign_key_indices_and_null_constraints.rb +20 -0
  180. data/db/migrate/20160928080104_add_foreign_keys.rb +27 -0
  181. data/lib/alchemy/admin/locale.rb +4 -3
  182. data/lib/alchemy/engine.rb +2 -4
  183. data/lib/alchemy/errors.rb +9 -2
  184. data/lib/alchemy/forms/builder.rb +8 -0
  185. data/lib/alchemy/modules.rb +20 -19
  186. data/lib/alchemy/permissions.rb +15 -4
  187. data/lib/alchemy/resources_helper.rb +4 -2
  188. data/lib/alchemy/sass_support.rb +9 -0
  189. data/lib/alchemy/seeder.rb +89 -1
  190. data/lib/alchemy/test_support/essence_shared_examples.rb +2 -0
  191. data/lib/alchemy/test_support/factories/attachment_factory.rb +1 -1
  192. data/lib/alchemy/test_support/factories/content_factory.rb +1 -0
  193. data/lib/alchemy/test_support/factories/element_factory.rb +1 -0
  194. data/lib/alchemy/test_support/factories/picture_factory.rb +1 -1
  195. data/lib/alchemy/test_support/fixtures/image.png +0 -0
  196. data/lib/alchemy/tinymce.rb +2 -6
  197. data/lib/alchemy/upgrader.rb +4 -55
  198. data/lib/alchemy/upgrader/tasks/install_dragonfly_config.rb +14 -0
  199. data/lib/alchemy/upgrader/three_point_five.rb +32 -0
  200. data/lib/alchemy/upgrader/three_point_four.rb +2 -8
  201. data/lib/alchemy/upgrader/three_point_one.rb +30 -30
  202. data/lib/alchemy/upgrader/three_point_three.rb +31 -31
  203. data/lib/alchemy/upgrader/three_point_two.rb +25 -25
  204. data/lib/alchemy/upgrader/three_point_zero.rb +59 -59
  205. data/lib/alchemy/version.rb +1 -1
  206. data/lib/rails/generators/alchemy/elements/templates/view.html.erb +1 -1
  207. data/lib/rails/generators/alchemy/elements/templates/view.html.haml +1 -1
  208. data/lib/rails/generators/alchemy/elements/templates/view.html.slim +1 -1
  209. data/lib/rails/generators/alchemy/essence/templates/editor.html.erb +1 -3
  210. data/lib/rails/generators/alchemy/install/files/_article_view.html.erb +1 -1
  211. data/lib/rails/generators/alchemy/install/files/application.html.erb +3 -4
  212. data/lib/rails/generators/alchemy/install/install_generator.rb +4 -0
  213. data/lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt +35 -0
  214. data/lib/rails/generators/alchemy/module/module_generator.rb +1 -1
  215. data/lib/tasks/alchemy/db.rake +6 -0
  216. data/lib/tasks/alchemy/tidy.rake +85 -0
  217. data/lib/tasks/alchemy/upgrade.rake +165 -16
  218. data/vendor/assets/javascripts/clipboard.min.js +7 -0
  219. data/vendor/assets/javascripts/fileupload/jquery.fileupload-process.js +4 -4
  220. data/vendor/assets/javascripts/fileupload/jquery.fileupload-validate.js +2 -2
  221. data/vendor/assets/javascripts/fileupload/jquery.fileupload.js +29 -14
  222. data/vendor/assets/javascripts/fileupload/jquery.iframe-transport.js +2 -2
  223. data/vendor/assets/javascripts/tinymce/langs/es.js +2 -2
  224. data/vendor/assets/javascripts/tinymce/langs/fr.js +1 -1
  225. data/vendor/assets/javascripts/tinymce/langs/it.js +1 -1
  226. data/vendor/assets/javascripts/tinymce/langs/nl.js +3 -3
  227. data/vendor/assets/javascripts/tinymce/tinymce.min.js +15 -12
  228. metadata +44 -88
  229. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/readme.md +0 -1
  230. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce-small.eot +0 -0
  231. data/app/assets/stylesheets/tinymce/skins/alchemy/fonts/tinymce.eot +0 -0
  232. data/app/assets/stylesheets/tinymce/skins/alchemy/img/wline.gif +0 -0
  233. data/app/assets/stylesheets/tinymce/skins/alchemy/skin.ie7.min.css +0 -1
  234. data/app/controllers/alchemy/pictures_controller.rb +0 -97
  235. data/app/views/alchemy/admin/elements/_refresh_editor.js.erb +0 -8
  236. data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.min.js +0 -1
  237. data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.min.js +0 -1
  238. data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.min.js +0 -1
  239. data/vendor/assets/javascripts/tinymce/plugins/code/plugin.min.js +0 -1
  240. data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.min.js +0 -1
  241. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.min.js +0 -1
  242. data/vendor/assets/javascripts/tinymce/plugins/hr/plugin.min.js +0 -1
  243. data/vendor/assets/javascripts/tinymce/plugins/link/plugin.min.js +0 -1
  244. data/vendor/assets/javascripts/tinymce/plugins/paste/plugin.min.js +0 -1
  245. data/vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.min.js +0 -1
  246. data/vendor/assets/javascripts/tinymce/plugins/table/plugin.min.js +0 -1
  247. data/vendor/assets/javascripts/tinymce/themes/modern/theme.min.js +0 -1
@@ -1,85 +1,3 @@
1
- #top_menu {
2
- @include box-sizing(border-box);
3
- position: fixed;
4
- top: 0;
5
- margin-left: 65px;
6
- padding-right: 65px;
7
- z-index: 30;
8
- width: 100%;
9
- @extend .disable-user-select;
10
- }
11
-
12
- #left_menu {
13
- white-space: nowrap;
14
- z-index: 20;
15
- height: 100%;
16
- position: fixed;
17
- top: 0;
18
- left: 0;
19
- width: 65px;
20
- overflow: hidden;
21
- border-right: $default-border;
22
- background: $light-blue;
23
- font-size: 10px;
24
- @extend .disable-user-select;
25
-
26
- label {
27
- display: block;
28
- }
29
-
30
- a {
31
- text-shadow: #fff 0 0px 4px;
32
- }
33
- }
34
-
35
- #main_navi {
36
- padding-top: 20px;
37
- padding-left: 4px;
38
- padding-bottom: 80px;
39
-
40
- .main_navi_entry {
41
- color: #444;
42
- position: relative;
43
- text-align: center;
44
- overflow: hidden;
45
- display: block;
46
- padding-top: 7px;
47
- @extend .left-rounded-border;
48
- border: 1px none #afafaf;
49
- border-right-style: none;
50
- padding-bottom: 6px;
51
- padding-left: 1px;
52
- width: 60px;
53
-
54
- &:hover {
55
- cursor: pointer;
56
- text-decoration: none;
57
- color: $text-color;
58
- }
59
-
60
- &.active {
61
- background: #baced9;
62
- color: $text-color;
63
- cursor: default;
64
- text-shadow: #fff 0 1px 2px;
65
- border: $default-border;
66
- padding-left: 0;
67
- border-right-style: none;
68
- padding-top: 6px;
69
- padding-bottom: 5px;
70
- }
71
-
72
- img {
73
- border-style: none;
74
- height: 24px;
75
- width: 24px;
76
- @include inline-block;
77
- margin-bottom: 4px;
78
- margin-top: 2px;
79
- }
80
- }
81
- }
82
-
83
1
  div#overlay {
84
2
  display: none;
85
3
  position: fixed;
@@ -116,22 +34,36 @@ div#overlay_text_box {
116
34
  }
117
35
 
118
36
  #logout {
37
+ box-sizing: border-box;
119
38
  position: absolute;
120
39
  z-index: 1;
121
40
  bottom: 0;
122
41
  left: 0;
123
- text-align: center;
124
- width: 65px;
125
- background: $light-blue;
42
+ width: $main-menu-width;
43
+ background-color: $main-menu-bg-color;
44
+ border-right: $default-border;
45
+ transition: background-color $transition-duration $transition-easing;
46
+
47
+ &:hover {
48
+ background-color: $main-menu-active-bg-color;
49
+ }
50
+
51
+ .collapsed-menu & {
52
+ width: $collapsed-main-menu-width;
53
+ }
126
54
 
127
55
  a {
128
56
  display: block;
129
- padding-top: 4px;
130
- padding-bottom: 8px;
57
+ padding-left: 3 * $default-padding;
58
+ line-height: 45px;
131
59
 
132
60
  &:hover {
133
61
  text-decoration: none;
134
62
  }
63
+
64
+ label {
65
+ padding-left: 2 * $default-padding;
66
+ }
135
67
  }
136
68
 
137
69
  img {
@@ -139,58 +71,16 @@ div#overlay_text_box {
139
71
  }
140
72
  }
141
73
 
142
- #main_content {
143
- @include box-sizing(border-box);
144
- background-color: $light-gray;
145
- padding: 75px 8px 8px 74px;
146
- z-index: 0;
147
- width: 100%;
148
- height: 100%;
149
- }
150
-
151
- #archive_all {
152
- @include box-sizing(border-box);
153
- height: 100%;
154
- padding-bottom: 60px;
155
-
156
- &.with_tag_filter {
157
- padding-right: 230px;
158
- }
159
-
160
- &.resources-table-wrapper {
161
- padding-top: 47px;
162
- }
163
- }
164
-
165
- div#user_info {
166
- position: absolute;
167
- top: 0;
168
- right: 65px;
169
- line-height: 28px;
170
- font-size: 11px;
171
- padding: 0 8px;
172
- background-color: $light-blue;
173
-
174
- .select2-container {
175
- margin-top: -2px;
176
- margin-right: $default-margin;
177
- }
178
-
179
- .current-user-name {
180
- padding-right: $default-padding;
181
- }
182
- }
183
-
184
- #sub_navigation {
185
- height: 24px;
186
- line-height: 23px;
74
+ #header {
75
+ height: $header-height;
76
+ line-height: $header-height;
187
77
  background: $light-blue;
188
78
  border-bottom: $default-border;
189
- padding-top: 4px;
190
79
  position: relative;
191
80
 
192
81
  a {
193
- @include inline-block;
82
+ display: inline-block;
83
+ vertical-align: middle;
194
84
 
195
85
  &:hover {
196
86
  text-decoration: none;
@@ -200,91 +90,109 @@ div#user_info {
200
90
  .page_status_and_name {
201
91
  padding: 0 8px;
202
92
  background-color: $medium-gray;
203
- text-shadow: 0px 1px 1px #FFFFFF;
93
+ text-shadow: $text-shadow-light;
204
94
  @extend .disable-user-select;
95
+ @extend .locked_page;
205
96
  cursor: default;
206
- float: left;
207
- @extend .top-rounded-border;
208
- border: $default-border;
209
- border-bottom-style: none;
210
- height: 24px;
211
- margin-right: 1px;
97
+ border-bottom-color: $toolbar-bg-color;
212
98
  }
213
99
 
214
100
  .page_name {
215
101
  margin-right: $default-margin;
102
+ line-height: $header-height;
216
103
  }
104
+ }
217
105
 
218
- .page_language {
219
- float: none;
220
- @include inline-block;
221
- color: #3265b1;
222
- margin-right: 2px;
223
- font-size: 10px;
224
- text-transform: uppercase;
225
- }
106
+ #main_content {
107
+ box-sizing: border-box;
108
+ background-color: $light-gray;
109
+ padding: 84px 8px 8px $main-menu-width + 10px;
110
+ z-index: 0;
111
+ width: 100%;
112
+ height: 100%;
113
+ }
226
114
 
227
- .page_site {
228
- float: none;
229
- @include inline-block;
230
- color: #847474;
231
- margin-right: $default-margin;
232
- font-size: 10px;
233
- }
115
+ #archive_all {
116
+ box-sizing: border-box;
117
+ height: 100%;
118
+ padding-bottom: 60px;
234
119
 
235
- .subnavi_tab {
236
- float: left;
237
- line-height: 21px;
238
- height: 23px;
239
- text-shadow: #fff 0 0px 4px;
240
- background: #d6e0e6;
241
- color: #444;
242
- @extend .top-rounded-border;
243
- border: $default-border;
244
- border-bottom-style: none;
245
- margin-right: 1px;
246
-
247
- &.wide {
248
- position: relative;
249
- padding-right: 24px;
250
-
251
- form {
252
- position: absolute;
253
- right: $default-padding;
254
- top: $default-padding;
255
- line-height: 1;
256
- }
120
+ &.with_tag_filter {
121
+
122
+ table {
123
+ padding-right: 230px;
257
124
  }
258
125
 
259
- &:hover {
260
- color: $text-color;
261
- text-decoration: none;
126
+ > .info {
127
+ margin-right: 230px;
262
128
  }
129
+ }
130
+
131
+ &.resources-table-wrapper {
132
+ padding-top: 47px;
263
133
 
264
- &.active {
265
- position: relative;
266
- height: 24px;
267
- color: $text-color;
268
- background-color: $medium-gray;
269
- text-shadow: #fff 0 1px 2px;
270
- @extend .disable-user-select;
271
- cursor: default;
272
- z-index: 10;
134
+ > table {
135
+ padding-bottom: 60px;
273
136
  }
137
+ }
138
+ }
274
139
 
275
- > a {
276
- padding: 0px 8px;
140
+ #user_info {
141
+ position: absolute;
142
+ top: 0;
143
+ right: 0;
144
+ height: $header-height;
145
+ font-size: 11px;
146
+ padding-left: 2*$default-padding;
147
+ background-color: $light-blue;
148
+ border-bottom: $default-border;
149
+
150
+ .select2-container {
151
+ margin-top: -3px;
152
+ padding-right: 2*$default-padding;
153
+ }
154
+
155
+ .select2-choice {
156
+ padding-right: 0;
157
+ background: transparent;
158
+ box-shadow: none;
159
+ border: none;
160
+ border-radius: 0;
161
+ border-left: $default-border;
162
+ height: $header-height + 1;
163
+ line-height: $header-height;
164
+ text-shadow: $text-shadow-light;
165
+
166
+ .select2-arrow {
167
+ width: 14px;
168
+ border-left: none;
169
+
170
+ b {
171
+ color: $muted-text-color;
172
+
173
+ &:before {
174
+ position: absolute;
175
+ top: 50%;
176
+ transform: translateY(-50%);
177
+ }
178
+ }
277
179
  }
180
+ }
278
181
 
279
- .inline.icon {
280
- vertical-align: text-bottom;
182
+ .select2-dropdown-open {
183
+ background-color: $main-menu-bg-color;
184
+
185
+ .select2-choice .select2-arrow b {
186
+ background-position: -20px -5px;
281
187
  }
282
188
  }
189
+
190
+ .current-user-name {
191
+ padding-right: 2*$default-padding;
192
+ }
283
193
  }
284
194
 
285
195
  #locked_pages {
286
- height: 25px;
287
- overflow: hidden;
288
196
 
289
197
  label {
290
198
  float: left;
@@ -303,11 +211,3 @@ div#user_info {
303
211
  padding-right: 0;
304
212
  }
305
213
  }
306
-
307
- .full-iframe {
308
- position: absolute;
309
- top: 0;
310
- left: 0;
311
- width: 100%;
312
- height: 100%;
313
- }
@@ -0,0 +1,62 @@
1
+ .hint-with-icon {
2
+ @extend .with-hint;
3
+ display: inline-block;
4
+ width: 16px;
5
+ height: 16px;
6
+ margin: 0 $default-margin;
7
+
8
+ .toolbar_buttons & {
9
+ margin: 0 2*$default-margin;
10
+ }
11
+
12
+ > .icon {
13
+ text-indent: 0;
14
+ }
15
+ }
16
+
17
+ .with-hint {
18
+ position: relative;
19
+
20
+ &:hover {
21
+ cursor: help;
22
+
23
+ > .hint-bubble {
24
+ @include hint-hover-style;
25
+ }
26
+ }
27
+
28
+ > .hint-bubble {
29
+ visibility: hidden;
30
+ background: $light_yellow;
31
+ @extend %rounded-border;
32
+ box-shadow: 0px 4px 8px rgba(0, 0, 0, .3);
33
+ position: absolute;
34
+ left: 50%;
35
+ transform: translateX(-50%);
36
+ top: 20px;
37
+ z-index: 100;
38
+ padding: 8px;
39
+ line-height: 1.5em;
40
+ min-width: 180px;
41
+ max-width: 300px;
42
+ white-space: normal;
43
+ text-align: left;
44
+ font-size: 12px;
45
+ opacity: 0;
46
+ transition: .3s;
47
+ pointer-events: none;
48
+
49
+ &:before {
50
+ content: '';
51
+ position: absolute;
52
+ top: -8px;
53
+ left: 50%;
54
+ transform: translateX(-50%);
55
+ width: 0px;
56
+ height: 0px;
57
+ border-style: solid;
58
+ border-width: 0 8px 8px 8px;
59
+ border-color: transparent transparent $light_yellow transparent;
60
+ }
61
+ }
62
+ }
@@ -46,7 +46,8 @@
46
46
  color: #666;
47
47
  text-align: center;
48
48
  line-height: 1;
49
- @include inline-block;
49
+ display: inline-block;
50
+ vertical-align: middle;
50
51
  }
51
52
 
52
53
  .icon-angle-double-right:before { content: "\f101" }
@@ -1,5 +1,6 @@
1
1
  .icon {
2
- @include inline-block;
2
+ display: inline-block;
3
+ vertical-align: middle;
3
4
  background: image-url('alchemy/icons.png') no-repeat;
4
5
  width: 16px;
5
6
  height: 16px;
@@ -153,6 +154,10 @@
153
154
  background-position: -32px -40px;
154
155
  }
155
156
 
157
+ &.file_change {
158
+ background-position: -512px -40px;
159
+ }
160
+
156
161
  &.flash {
157
162
  background-position: -256px -136px;
158
163
  }
@@ -161,8 +166,8 @@
161
166
  background-position: -352px -39px;
162
167
  }
163
168
 
164
- &.hint {
165
- background-position: -446px -105px;
169
+ &.questionmark, &.hint {
170
+ background-position: -447px -105px;
166
171
  }
167
172
 
168
173
  &.image {
@@ -319,7 +324,7 @@
319
324
  &.warning, &.warn, &.alert {
320
325
  background-position: 0 -168px;
321
326
 
322
- &.inline { vertical-align: baseline; }
327
+ &.inline { vertical-align: text-bottom; }
323
328
  }
324
329
 
325
330
  &.word {