biovision 0.0.200518.1 → 0.12.211124.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (345) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +105 -52
  3. data/app/assets/images/biovision/icons/back.svg +19 -0
  4. data/app/assets/images/biovision/icons/create.svg +19 -0
  5. data/app/assets/images/biovision/icons/destroy.svg +12 -0
  6. data/app/assets/images/biovision/icons/dropdown.svg +3 -0
  7. data/app/assets/images/biovision/icons/edit.svg +22 -0
  8. data/app/assets/images/biovision/icons/gear.svg +11 -0
  9. data/app/assets/images/biovision/icons/return.svg +25 -0
  10. data/app/assets/images/biovision/icons/world.svg +11 -0
  11. data/app/assets/stylesheets/biovision/admin/components/users.scss +20 -0
  12. data/app/assets/stylesheets/biovision/admin/components.scss +13 -1
  13. data/app/assets/stylesheets/biovision/admin/layout.scss +27 -12
  14. data/app/assets/stylesheets/biovision/biovision.scss +105 -26
  15. data/app/assets/stylesheets/biovision/components/breadcrumbs.scss +13 -0
  16. data/app/assets/stylesheets/biovision/components/buttons.scss +130 -0
  17. data/app/assets/stylesheets/biovision/components/filters.scss +39 -0
  18. data/app/assets/stylesheets/biovision/components/forms.scss +208 -1
  19. data/app/assets/stylesheets/biovision/components/lists.scss +6 -7
  20. data/app/assets/stylesheets/biovision/{biovision → components}/messages.scss +9 -0
  21. data/app/assets/stylesheets/biovision/components/pagination.scss +34 -0
  22. data/app/assets/stylesheets/biovision/components/quick_search.scss +24 -0
  23. data/app/assets/stylesheets/biovision/components/simple_image.scss +112 -0
  24. data/app/assets/stylesheets/biovision/components/toggleable.scss +71 -0
  25. data/app/assets/stylesheets/biovision/components.scss +7 -0
  26. data/app/assets/stylesheets/biovision/default.scss +4 -4
  27. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/dashboard.scss +4 -0
  28. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/form_tabs.scss +101 -0
  29. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/profile.scss +77 -0
  30. data/app/assets/stylesheets/biovision/themes/default_theme/components/users.scss +3 -0
  31. data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +2 -3
  32. data/app/assets/stylesheets/biovision/themes/default_theme/layout/footer.scss +3 -0
  33. data/app/assets/stylesheets/biovision/themes/default_theme/layout/header.scss +12 -0
  34. data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +8 -19
  35. data/app/assets/stylesheets/biovision/themes/default_theme.scss +0 -1
  36. data/app/assets/stylesheets/biovision/vars.scss +5 -0
  37. data/app/controllers/admin/biovision_components_controller.rb +10 -0
  38. data/app/controllers/admin/components_controller.rb +37 -97
  39. data/app/controllers/admin/dynamic_blocks_controller.rb +15 -0
  40. data/app/controllers/admin/dynamic_pages_controller.rb +15 -0
  41. data/app/controllers/admin/index_controller.rb +8 -2
  42. data/app/controllers/admin/navigation_groups_controller.rb +45 -0
  43. data/app/controllers/admin/tokens_controller.rb +15 -0
  44. data/app/controllers/admin/users_controller.rb +101 -0
  45. data/app/controllers/admin_controller.rb +2 -8
  46. data/app/controllers/authentication_controller.rb +6 -34
  47. data/app/controllers/concerns/authentication.rb +12 -12
  48. data/app/controllers/concerns/component_stories.rb +22 -0
  49. data/app/controllers/concerns/crud_entities.rb +140 -0
  50. data/app/controllers/concerns/entity_priority.rb +10 -0
  51. data/app/controllers/concerns/my_crud_entities.rb +146 -0
  52. data/app/controllers/concerns/processed_forms.rb +28 -0
  53. data/app/controllers/concerns/restricted_access.rb +37 -0
  54. data/app/controllers/concerns/toggleable_entity.rb +31 -0
  55. data/app/controllers/contact_controller.rb +49 -0
  56. data/app/controllers/errors_controller.rb +37 -0
  57. data/app/controllers/fallback_controller.rb +12 -0
  58. data/app/controllers/index_controller.rb +1 -0
  59. data/app/controllers/legal_controller.rb +14 -0
  60. data/app/controllers/my/components_controller.rb +26 -0
  61. data/app/controllers/my/confirmations_controller.rb +44 -0
  62. data/app/controllers/my/index_controller.rb +7 -1
  63. data/app/controllers/my/profiles_controller.rb +33 -16
  64. data/app/controllers/oembed_controller.rb +12 -0
  65. data/app/controllers/profile_controller.rb +14 -0
  66. data/app/controllers/users_controller.rb +63 -0
  67. data/app/helpers/biovision_components_helper.rb +7 -3
  68. data/app/helpers/biovision_helper.rb +170 -0
  69. data/app/helpers/entity_helper.rb +77 -0
  70. data/app/helpers/my_helper.rb +34 -0
  71. data/app/helpers/simple_image_helper.rb +125 -0
  72. data/app/jobs/application_job.rb +7 -0
  73. data/app/jobs/send_phone_confirmation_job.rb +16 -0
  74. data/app/lib/biovision/components/base/component_parameters.rb +55 -0
  75. data/app/lib/biovision/components/base/component_privileges.rb +75 -0
  76. data/app/lib/biovision/components/base/component_settings.rb +40 -0
  77. data/app/lib/biovision/components/base/component_stories.rb +30 -0
  78. data/app/lib/biovision/components/base/entity_links.rb +38 -0
  79. data/app/lib/biovision/components/base/image_handling.rb +33 -0
  80. data/app/lib/biovision/components/base_component.rb +63 -95
  81. data/app/lib/biovision/components/contact_component.rb +26 -0
  82. data/app/lib/biovision/components/content/oembed/receiver.rb +98 -0
  83. data/app/lib/biovision/components/content/oembed/twitter_receiver.rb +20 -0
  84. data/app/lib/biovision/components/content/oembed/vimeo_receiver.rb +20 -0
  85. data/app/lib/biovision/components/content/oembed/youtube_receiver.rb +20 -0
  86. data/app/lib/biovision/components/content_component.rb +65 -0
  87. data/app/lib/biovision/components/track_component.rb +3 -0
  88. data/app/lib/biovision/components/users/authentication.rb +15 -7
  89. data/app/lib/biovision/components/users/codes.rb +104 -0
  90. data/app/lib/biovision/components/users/flag_helpers.rb +72 -0
  91. data/app/lib/biovision/components/users/profile_handler.rb +111 -1
  92. data/app/lib/biovision/components/users/registration_handler.rb +40 -52
  93. data/app/lib/biovision/components/users/validation.rb +83 -0
  94. data/app/lib/biovision/components/users_component.rb +114 -19
  95. data/app/lib/biovision/helpers/data_helper.rb +70 -0
  96. data/app/lib/biovision/helpers/export_helper.rb +97 -0
  97. data/app/lib/biovision/migrations/component_migration.rb +56 -0
  98. data/app/lib/biovision/notifiers/base_notifier.rb +2 -2
  99. data/app/lib/biovision/notifiers/contact_notifier.rb +15 -0
  100. data/app/lib/biovision/stories/component_story.rb +55 -0
  101. data/app/lib/canonizer.rb +38 -0
  102. data/app/lib/carrier_wave/image_optim.rb +32 -0
  103. data/app/mailers/code_sender.rb +29 -0
  104. data/app/mailers/feedback_mailer.rb +14 -0
  105. data/app/models/agent.rb +4 -0
  106. data/app/models/biovision_component.rb +39 -3
  107. data/app/models/code.rb +31 -8
  108. data/app/models/concerns/checkable.rb +2 -1
  109. data/app/models/concerns/has_simple_image.rb +9 -0
  110. data/app/models/concerns/has_uploaded_file.rb +26 -0
  111. data/app/models/concerns/meta_texts.rb +25 -5
  112. data/app/models/concerns/simple_tag.rb +30 -0
  113. data/app/models/concerns/toggleable.rb +2 -1
  114. data/app/models/concerns/tree_structure.rb +75 -0
  115. data/app/models/contact_method.rb +47 -0
  116. data/app/models/contact_type.rb +27 -0
  117. data/app/models/dynamic_block.rb +43 -0
  118. data/app/models/dynamic_page.rb +73 -0
  119. data/app/models/feedback_message.rb +65 -0
  120. data/app/models/feedback_response.rb +50 -0
  121. data/app/models/group.rb +48 -0
  122. data/app/models/language.rb +4 -0
  123. data/app/models/metric.rb +4 -0
  124. data/app/models/navigation_group.rb +43 -0
  125. data/app/models/navigation_group_page.rb +23 -0
  126. data/app/models/oembed_domain.rb +25 -0
  127. data/app/models/oembed_link.rb +19 -0
  128. data/app/models/oembed_receiver.rb +15 -0
  129. data/app/models/role.rb +86 -0
  130. data/app/models/role_group.rb +13 -0
  131. data/app/models/simple_image.rb +49 -8
  132. data/app/models/simple_image_tag.rb +1 -16
  133. data/app/models/token.rb +6 -2
  134. data/app/models/uploaded_file.rb +62 -0
  135. data/app/models/uploaded_file_tag.rb +15 -0
  136. data/app/models/uploaded_file_tag_file.rb +13 -0
  137. data/app/models/user.rb +122 -29
  138. data/app/models/user_group.rb +20 -0
  139. data/app/models/user_role.rb +18 -0
  140. data/app/uploaders/simple_file_uploader.rb +23 -0
  141. data/app/uploaders/simple_image_uploader.rb +29 -20
  142. data/app/uploaders/uploaders/path_slug.rb +22 -0
  143. data/app/views/admin/agents/index.html.erb +1 -3
  144. data/app/views/admin/biovision_components/_nav_item.html.erb +6 -0
  145. data/app/views/admin/biovision_components/entity/_in_list.html.erb +12 -0
  146. data/app/views/admin/biovision_components/index.html.erb +11 -0
  147. data/app/views/admin/components/_image.jbuilder +18 -0
  148. data/app/views/admin/components/_list.html.erb +1 -1
  149. data/app/views/admin/components/entity/_links.html.erb +31 -21
  150. data/app/views/admin/components/image.jbuilder +1 -0
  151. data/app/views/admin/components/images.jbuilder +4 -0
  152. data/app/views/admin/components/links/_base.html.erb +1 -0
  153. data/app/views/admin/components/settings/_new_parameter.html.erb +4 -2
  154. data/app/views/admin/components/settings/_parameters.html.erb +8 -2
  155. data/app/views/admin/components/settings/_settings.html.erb +4 -4
  156. data/app/views/admin/components/settings.html.erb +2 -1
  157. data/app/views/admin/components/update_privileges.jbuilder +21 -0
  158. data/app/views/admin/dynamic_blocks/_form.html.erb +16 -0
  159. data/app/views/admin/dynamic_blocks/_nav_item.html.erb +6 -0
  160. data/app/views/admin/dynamic_blocks/entity/_in_list.html.erb +12 -0
  161. data/app/views/admin/dynamic_blocks/index.html.erb +17 -0
  162. data/app/views/admin/dynamic_blocks/show.html.erb +25 -0
  163. data/app/views/admin/dynamic_pages/_dynamic_page.jbuilder +18 -0
  164. data/app/views/admin/dynamic_pages/_form.html.erb +21 -0
  165. data/app/views/admin/dynamic_pages/_nav_item.html.erb +6 -0
  166. data/app/views/admin/dynamic_pages/entity/_in_list.html.erb +17 -0
  167. data/app/views/admin/dynamic_pages/entity/_in_search.html.erb +7 -0
  168. data/app/views/admin/dynamic_pages/index.html.erb +17 -0
  169. data/app/views/admin/dynamic_pages/search.jbuilder +4 -0
  170. data/app/views/admin/dynamic_pages/show.html.erb +28 -0
  171. data/app/views/admin/index/index.html.erb +7 -5
  172. data/app/views/admin/ip_addresses/index.html.erb +2 -4
  173. data/app/views/admin/navigation_group_pages/entity/_in_list.html.erb +26 -0
  174. data/app/views/admin/navigation_groups/_form.html.erb +15 -0
  175. data/app/views/admin/navigation_groups/_nav_item.html.erb +6 -0
  176. data/app/views/admin/navigation_groups/entity/_dynamic_pages.html.erb +38 -0
  177. data/app/views/admin/navigation_groups/entity/_in_list.html.erb +14 -0
  178. data/app/views/admin/navigation_groups/index.html.erb +17 -0
  179. data/app/views/admin/navigation_groups/show.html.erb +33 -0
  180. data/app/views/admin/tokens/_form.html.erb +31 -0
  181. data/app/views/admin/tokens/_nav_item.html.erb +6 -0
  182. data/app/views/admin/tokens/entity/_in_list.html.erb +27 -0
  183. data/app/views/admin/tokens/index.html.erb +11 -0
  184. data/app/views/admin/tokens/show.html.erb +26 -0
  185. data/app/views/admin/unauthorized.html.erb +2 -5
  186. data/app/views/admin/users/_form.html.erb +81 -0
  187. data/app/views/admin/users/_nav_item.html.erb +6 -0
  188. data/app/views/admin/users/_user.jbuilder +18 -0
  189. data/app/views/admin/users/entity/_fields.html.erb +53 -0
  190. data/app/views/admin/users/entity/_in_list.html.erb +38 -0
  191. data/app/views/admin/users/entity/_in_search.html.erb +18 -0
  192. data/app/views/admin/users/entity/_profile.html.erb +26 -0
  193. data/app/views/admin/users/entity/in_list/_additional_data.html.erb +0 -0
  194. data/app/views/admin/users/index.html.erb +24 -0
  195. data/app/views/admin/users/roles/_component.html.erb +22 -0
  196. data/app/views/admin/users/roles.html.erb +23 -0
  197. data/app/views/admin/users/search.jbuilder +4 -0
  198. data/app/views/admin/users/show.html.erb +62 -0
  199. data/app/views/admin/widgets/_filters.html.erb +20 -0
  200. data/app/views/admin/widgets/_quick_search.html.erb +13 -0
  201. data/app/views/admin/widgets/filters/_flag.html.erb +15 -0
  202. data/app/views/admin/widgets/filters/_text.html.erb +7 -0
  203. data/app/views/application/forbidden.html.erb +9 -0
  204. data/app/views/application/forbidden.jbuilder +4 -0
  205. data/app/views/application/not_found.html.erb +9 -0
  206. data/app/views/application/not_found.jbuilder +4 -0
  207. data/app/views/application/unauthorized.html.erb +19 -0
  208. data/app/views/application/unauthorized.jbuilder +4 -0
  209. data/app/views/authentication/new.html.erb +2 -8
  210. data/app/views/components/content/_dynamic_page.html.erb +17 -0
  211. data/app/views/components/content/_dynamic_page_content.html.erb +14 -0
  212. data/app/views/components/users/_form_tabs.html.erb +31 -0
  213. data/app/views/components/users/_join_form.html.erb +192 -0
  214. data/app/views/components/users/_login_form.html.erb +46 -0
  215. data/app/views/components/users/form/_image.html.erb +17 -0
  216. data/app/views/components/users/form/_profile_data.html.erb +54 -0
  217. data/app/views/contact/_form.html.erb +108 -0
  218. data/app/views/contact/create_feedback_message.js.erb +1 -0
  219. data/app/views/contact/feedback.html.erb +13 -0
  220. data/app/views/contact/index.html.erb +16 -0
  221. data/app/views/errors/error.html.erb +1 -0
  222. data/app/views/fallback/show.html.erb +6 -0
  223. data/app/views/feedback_mailer/new_feedback_request.html.erb +11 -0
  224. data/app/views/feedback_mailer/new_feedback_request.text.erb +6 -0
  225. data/app/views/index/index.html.erb +14 -0
  226. data/app/views/layouts/admin/_footer.html.erb +1 -1
  227. data/app/views/layouts/admin/_header.html.erb +7 -2
  228. data/app/views/layouts/admin.html.erb +0 -1
  229. data/app/views/layouts/application/_footer.html.erb +1 -1
  230. data/app/views/layouts/application/header/_authentication.html.erb +4 -1
  231. data/app/views/legal/privacy.html.erb +5 -0
  232. data/app/views/legal/tos.html.erb +5 -0
  233. data/app/views/my/components/index.html.erb +25 -0
  234. data/app/views/my/components/show.html.erb +21 -0
  235. data/app/views/my/confirmations/show.html.erb +62 -0
  236. data/app/views/my/index/_cards.html.erb +15 -0
  237. data/app/views/my/index/_email.html.erb +14 -0
  238. data/app/views/my/index/_navigation.html.erb +33 -0
  239. data/app/views/my/index/index.html.erb +12 -0
  240. data/app/views/my/profiles/_form.html.erb +10 -0
  241. data/app/views/my/profiles/check.jbuilder +4 -0
  242. data/app/views/my/profiles/edit.html.erb +14 -0
  243. data/app/views/my/profiles/form/_basic_parameters.html.erb +9 -0
  244. data/app/views/my/profiles/form/_sensitive_parameters.html.erb +68 -0
  245. data/app/views/my/profiles/new.html.erb +6 -8
  246. data/app/views/my/profiles/show.html.erb +36 -0
  247. data/app/views/my/recoveries/show.html.erb +0 -0
  248. data/app/views/shared/_flash_messages.html.erb +1 -1
  249. data/app/views/shared/_list_of_errors.html.erb +7 -0
  250. data/app/views/shared/admin/_breadcrumbs.html.erb +8 -0
  251. data/app/views/shared/admin/_list.html.erb +10 -19
  252. data/app/views/shared/admin/_list_with_priority.html.erb +10 -19
  253. data/app/views/shared/admin/_priority.html.erb +6 -0
  254. data/app/views/shared/admin/_toggle.html.erb +6 -0
  255. data/app/views/shared/entity/_date_field.html.erb +6 -0
  256. data/app/views/shared/entity/_formatted_text_field.html.erb +10 -0
  257. data/app/views/shared/entity/_image.html.erb +31 -0
  258. data/app/views/shared/entity/_language.html.erb +6 -0
  259. data/app/views/shared/entity/_linked_entity.html.erb +6 -0
  260. data/app/views/shared/entity/_list.html.erb +22 -0
  261. data/app/views/shared/entity/_list_with_priority.html.erb +22 -0
  262. data/app/views/shared/entity/_meta_texts.html.erb +16 -0
  263. data/app/views/shared/entity/_metadata.html.erb +18 -0
  264. data/app/views/shared/entity/_parent.html.erb +6 -0
  265. data/app/views/shared/entity/_priority.html.erb +4 -0
  266. data/app/views/shared/entity/_priority_icons.html.erb +8 -0
  267. data/app/views/shared/entity/_raw_text_field.html.erb +10 -0
  268. data/app/views/shared/entity/_simple_image.html.erb +10 -0
  269. data/app/views/shared/entity/_slug.html.erb +6 -0
  270. data/app/views/shared/entity/_text_field.html.erb +6 -0
  271. data/app/views/shared/entity/_text_fields.html.erb +9 -0
  272. data/app/views/shared/entity/_time_field.html.erb +6 -0
  273. data/app/views/shared/entity/_timestamps.html.erb +13 -0
  274. data/app/views/shared/entity/_toggle.html.erb +12 -0
  275. data/app/views/shared/entity/_track.html.erb +12 -0
  276. data/app/views/shared/entity/_tree_caches.html.erb +19 -0
  277. data/app/views/shared/entity/_uuid.html.erb +4 -0
  278. data/app/views/shared/entity/edit.html.erb +23 -0
  279. data/app/views/shared/entity/new.html.erb +16 -0
  280. data/app/views/shared/forms/_entity_flags.html.erb +15 -0
  281. data/app/views/shared/forms/_field.html.erb +50 -0
  282. data/app/views/shared/forms/_field_with_search.html.erb +17 -0
  283. data/app/views/shared/forms/_fields.html.erb +3 -0
  284. data/app/views/shared/forms/_language.html.erb +40 -0
  285. data/app/views/shared/forms/_meta_texts.html.erb +27 -0
  286. data/app/views/shared/forms/_priority.html.erb +13 -0
  287. data/app/views/shared/forms/_simple_entity_link.html.erb +14 -0
  288. data/app/views/shared/forms/_simple_image.html.erb +47 -0
  289. data/app/views/shared/forms/_state_container.html.erb +7 -0
  290. data/app/views/shared/forms/_text_area.html.erb +25 -0
  291. data/app/views/shared/forms/_text_field.html.erb +24 -0
  292. data/app/views/shared/forms/_text_fields.html.erb +3 -0
  293. data/app/views/shared/forms/check.jbuilder +4 -0
  294. data/app/views/shared/forms/errors.jbuilder +3 -0
  295. data/app/views/shared/forms/simple_image/_browse.html.erb +14 -0
  296. data/app/views/shared/forms/simple_image/_load_image.html.erb +38 -0
  297. data/app/views/shared/my/_list.html.erb +10 -0
  298. data/app/views/shared/my/_list_with_priority.html.erb +10 -0
  299. data/app/views/shared/my/entity/edit.html.erb +25 -0
  300. data/app/views/shared/my/entity/new.html.erb +18 -0
  301. data/app/views/simple_images/_simple_image.jbuilder +13 -0
  302. data/app/views/users/_profile.html.erb +30 -0
  303. data/app/views/users/profile/_data.html.erb +20 -0
  304. data/app/views/users/show.html.erb +21 -0
  305. data/config/locales/biovision-ru.yml +76 -1
  306. data/config/locales/components-ru.yml +55 -4
  307. data/config/locales/contact-ru.yml +110 -0
  308. data/config/locales/content-ru.yml +115 -0
  309. data/config/locales/users-ru.yml +142 -3
  310. data/config/routes.rb +99 -48
  311. data/db/migrate/20191228000000_create_biovision_components.rb +6 -5
  312. data/db/migrate/20200224000000_create_track_component.rb +9 -14
  313. data/db/migrate/20200224000010_create_users_component.rb +14 -83
  314. data/db/migrate/20200404000000_create_simple_images.rb +4 -3
  315. data/db/migrate/20210405000000_create_acl.rb +88 -0
  316. data/db/migrate/20210421000000_create_content_component.rb +80 -0
  317. data/db/migrate/20210421000010_create_contact_component.rb +74 -0
  318. data/db/migrate/20210616000000_create_uploaded_files.rb +52 -0
  319. data/db/migrate/amends/20210816060606_create_oembed_receivers.rb +21 -0
  320. data/db/migrate/amends/20210907070707_add_checksum_to_simple_images.rb +13 -0
  321. data/lib/biovision/base_methods.rb +17 -29
  322. data/lib/biovision/engine.rb +8 -13
  323. data/lib/biovision/version.rb +1 -1
  324. data/lib/tasks/components.rake +51 -0
  325. metadata +266 -27
  326. data/app/assets/images/biovision/placeholders/user.svg +0 -15
  327. data/app/helpers/users_helper.rb +0 -11
  328. data/app/lib/biovision/components/component_settings.rb +0 -30
  329. data/app/lib/biovision/components/privilege_handler.rb +0 -77
  330. data/app/lib/biovision/components/users/code_handler.rb +0 -23
  331. data/app/models/biovision_component_user.rb +0 -21
  332. data/app/models/foreign_site.rb +0 -34
  333. data/app/models/foreign_user.rb +0 -21
  334. data/app/uploaders/user_image_uploader.rb +0 -58
  335. data/app/views/admin/components/links/_track.html.erb +0 -2
  336. data/app/views/admin/components/links/_users.html.erb +0 -11
  337. data/app/views/admin/components/privileges/_component_user.html.erb +0 -17
  338. data/app/views/admin/components/privileges/_links.html.erb +0 -35
  339. data/app/views/admin/components/privileges/_privilege_flag.html.erb +0 -28
  340. data/app/views/admin/components/privileges/_users.html.erb +0 -23
  341. data/app/views/admin/components/privileges.html.erb +0 -20
  342. data/app/views/authentication/_form.html.erb +0 -40
  343. data/app/views/authentication/failed.js.erb +0 -3
  344. data/app/views/my/profiles/new/_form.html.erb +0 -147
  345. data/app/views/shared/admin/_toggleable.html.erb +0 -8
@@ -0,0 +1,13 @@
1
+ .breadcrumbs {
2
+ a {
3
+ background: image_url('biovision/icons/breadcrumb.svg') no-repeat bottom .1rem right / .6rem 1.2rem;
4
+ padding-right: 1rem;
5
+ transition: background .25s;
6
+
7
+ &:active,
8
+ &:focus,
9
+ &:hover {
10
+ background-image: image_url('biovision/icons/breadcrumb-hover.svg');
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,130 @@
1
+ $button-primary-bg: hsl(210, 75%, 50%) !default;
2
+ $button-primary-bg-hover: hsl(230, 75%, 50%) !default;
3
+ $button-primary-color: #fff !default;
4
+ $button-primary-color-hover: #fff !default;
5
+ $button-ghost-bg: transparent !default;
6
+ $button-ghost-bg-hover: hsl(230, 75%, 50%) !default;
7
+ $button-ghost-color: hsl(230, 75%, 50%) !default;
8
+ $button-ghost-color-hover: #fff !default;
9
+ $button-secondary-bg: #fff !default;
10
+ $button-secondary-bg-hover: hsl(30, 75%, 50%) !default;
11
+ $button-secondary-color: hsl(30, 75%, 50%) !default;
12
+ $button-secondary-color-hover: #fff !default;
13
+ $button-save-bg: hsl(120, 25%, 55%) !default;
14
+ $button-save-bg-hover: hsl(120, 25%, 25%) !default;
15
+ $button-save-color: #fff !default;
16
+ $button-save-color-hover: #fff !default;
17
+ $button-danger-bg: hsl(0, 50%, 55%) !default;
18
+ $button-danger-bg-hover: hsl(00, 25%, 50%) !default;
19
+ $button-danger-color: #fff !default;
20
+ $button-danger-color-hover: #fff !default;
21
+
22
+ :root {
23
+ --button-primary-bg: #{$button-primary-bg};
24
+ --button-primary-bg-hover: #{$button-primary-bg-hover};
25
+ --button-primary-color: #{$button-primary-color};
26
+ --button-primary-color-hover: #{$button-primary-color-hover};
27
+ --button-ghost-bg: #{$button-ghost-bg};
28
+ --button-ghost-bg-hover: #{$button-ghost-bg-hover};
29
+ --button-ghost-color: #{$button-ghost-color};
30
+ --button-ghost-color-hover: #{$button-ghost-color-hover};
31
+ --button-secondary-bg: #{$button-secondary-bg};
32
+ --button-secondary-bg-hover: #{$button-secondary-bg-hover};
33
+ --button-secondary-color: #{$button-secondary-color};
34
+ --button-secondary-color-hover: #{$button-secondary-color-hover};
35
+ --button-save-bg: #{$button-save-bg};
36
+ --button-save-bg-hover: #{$button-save-bg-hover};
37
+ --button-save-color: #{$button-save-color};
38
+ --button-save-color-hover: #{$button-save-color-hover};
39
+ --button-danger-bg: #{$button-danger-bg};
40
+ --button-danger-bg-hover: #{$button-danger-bg-hover};
41
+ --button-danger-color: #{$button-danger-color};
42
+ --button-danger-color-hover: #{$button-danger-color-hover};
43
+ }
44
+
45
+ .button {
46
+ border: .1rem solid;
47
+ border-radius: .4rem;
48
+ cursor: pointer;
49
+ font-family: var(--font-family-main);
50
+ font-size: inherit;
51
+ display: inline-block;
52
+ margin: 0;
53
+ padding: var(--spacer-xxs) var(--spacer-xs);
54
+ text-align: center;
55
+ text-decoration: none;
56
+ transition: .25s;
57
+
58
+ &:focus,
59
+ &:hover {
60
+ text-decoration: none;
61
+ }
62
+
63
+ &:disabled {
64
+ cursor: default;
65
+ filter: grayscale(.75);
66
+ opacity: .75;
67
+ }
68
+ }
69
+
70
+ .button-primary {
71
+ background: var(--button-primary-bg);
72
+ border-color: var(--button-primary-bg);
73
+ color: var(--button-primary-color);
74
+
75
+ &:focus,
76
+ &:hover {
77
+ background: var(--button-primary-bg-hover);
78
+ border-color: var(--button-primary-bg-hover);
79
+ color: var(--button-primary-color-hover);
80
+ }
81
+ }
82
+
83
+ .button-secondary {
84
+ background: var(--button-secondary-bg);
85
+ color: var(--button-secondary-color);
86
+
87
+ &:focus,
88
+ &:hover {
89
+ background: var(--button-secondary-bg-hover);
90
+ border-color: var(--button-secondary-bg-hover);
91
+ color: var(--button-secondary-color-hover);
92
+ }
93
+ }
94
+
95
+ .button-ghost {
96
+ background: var(--button-ghost-bg);
97
+ border-color: var(--button-ghost-color);
98
+ color: var(--button-ghost-color);
99
+
100
+ &:focus,
101
+ &:hover {
102
+ background: var(--button-ghost-bg-hover);
103
+ border-color: var(--button-ghost-bg-hover);
104
+ color: var(--button-ghost-color-hover);
105
+ }
106
+ }
107
+
108
+ .button-save {
109
+ background: var(--button-save-bg);
110
+ border-color: var(--button-save-bg);
111
+ color: var(--button-save-color);
112
+
113
+ &:focus,
114
+ &:hover {
115
+ background: var(--button-save-bg-hover);
116
+ color: var(--button-save-color-hover);
117
+ }
118
+ }
119
+
120
+ .button-danger {
121
+ background: var(--button-danger-bg);
122
+ border-color: var(--button-danger-bg);
123
+ color: var(--button-danger-color);
124
+
125
+ &:focus,
126
+ &:hover {
127
+ background: var(--button-danger-bg-hover);
128
+ color: var(--button-danger-color-hover);
129
+ }
130
+ }
@@ -0,0 +1,39 @@
1
+ .widgets__filters {
2
+ fieldset {
3
+ box-shadow: var(--block-shadow);
4
+ }
5
+
6
+ .list {
7
+ align-items: center;
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ gap: var(--spacer-s);
11
+ }
12
+
13
+ .flag {
14
+ align-items: center;
15
+ border: var(--border-secondary);
16
+ display: flex;
17
+ gap: var(--spacer-xs);
18
+ padding: var(--spacer-xs);
19
+ }
20
+
21
+ dfn {
22
+ font-style: normal;
23
+ font-weight: 500;
24
+
25
+ &::after {
26
+ content: ':';
27
+ }
28
+ }
29
+
30
+ label {
31
+ input:checked + span {
32
+ text-decoration: underline;
33
+ }
34
+ }
35
+
36
+ .actions {
37
+ margin-top: var(--spacer-xs);
38
+ }
39
+ }
@@ -1,3 +1,13 @@
1
+ $form-control-color: hsl(220, 75%, 75%) !default;
2
+ $form-field-error: #f00 !default;
3
+ $form-input-bg: #fff !default;
4
+
5
+ :root {
6
+ --form-control-color: #{$form-control-color};
7
+ --form-field-error: #{$form-field-error};
8
+ --form-input-bg: #{$form-input-bg};
9
+ }
10
+
1
11
  form {
2
12
  margin: 0;
3
13
  padding: 0;
@@ -14,7 +24,7 @@ form {
14
24
  }
15
25
 
16
26
  .check-result-error {
17
- color: #f00;
27
+ color: var(--form-field-error);
18
28
 
19
29
  &::before {
20
30
  content: '\261D';
@@ -45,6 +55,30 @@ form {
45
55
  .flags {
46
56
  margin: var(--spacer-xs) 0;
47
57
  }
58
+
59
+ .meta-texts {
60
+ label {
61
+ width: 100%;
62
+ }
63
+ }
64
+
65
+ .errors {
66
+ color: var(--form-field-error);
67
+ padding: var(--spacer-xxs) var(--spacer-xxs) 0 var(--spacer-s);
68
+
69
+ li {
70
+ margin: 0 var(--spacer-xs);
71
+
72
+ &:first-of-type {
73
+ margin-top: var(--spacer-s);
74
+ }
75
+
76
+ &:last-of-type {
77
+ border-bottom: .1rem solid var(--form-field-error);
78
+ padding-bottom: var(--spacer-xs);
79
+ }
80
+ }
81
+ }
48
82
  }
49
83
 
50
84
  .fields {
@@ -68,9 +102,68 @@ form {
68
102
  margin: 0;
69
103
  padding: var(--spacer-xxs) 0;
70
104
  }
105
+
106
+ .text {
107
+ background: #f7f7f7;
108
+ border-radius: .4rem;
109
+ box-shadow: .2rem .2rem .4rem rgba(0, 0, 0, .25);
110
+ padding: var(--spacer-xs);
111
+
112
+ p:first-of-type {
113
+ margin-top: 0;
114
+ }
115
+
116
+ p:last-of-type {
117
+ margin-bottom: 0;
118
+ }
119
+ }
120
+
121
+ .meta-text {
122
+ padding-left: var(--spacer-s);
123
+
124
+ dfn {
125
+ font-style: normal;
126
+ }
127
+
128
+ &:not(:last-of-type) {
129
+ margin-bottom: var(--spacer-xs);
130
+ }
131
+ }
132
+
133
+ .preview {
134
+ a {
135
+ box-shadow: var(--block-shadow);
136
+ display: flex;
137
+ max-width: 48rem;
138
+ }
139
+
140
+ img {
141
+ height: 100%;
142
+ object-fit: contain;
143
+ width: 100%;
144
+ }
145
+
146
+ figcaption {
147
+ color: var(--text-color-secondary);
148
+ font-size: var(--font-size-decreased);
149
+ padding: var(--spacer-xs);
150
+ }
151
+ }
152
+
153
+ input:not([type=radio]):not([type=checkbox]):not([size]):not([type=number]):not([type=date]),
154
+ textarea {
155
+ width: 100%;
156
+ }
157
+
158
+ .secondary-data {
159
+ color: var(--text-color-secondary);
160
+ font-size: var(--font-size-decreased);
161
+ }
71
162
  }
72
163
 
164
+ .input-select,
73
165
  .input-text {
166
+ background-color: var(--form-input-bg);
74
167
  border: .1rem solid var(--input-border);
75
168
  border-radius: var(--spacer-xxs);
76
169
  font-size: var(--font-size-normal);
@@ -83,3 +176,117 @@ form {
83
176
  outline: none;
84
177
  }
85
178
  }
179
+
180
+ .input-select {
181
+ -moz-appearance: none;
182
+ -webkit-appearance: none;
183
+ appearance: none;
184
+ background: var(--form-input-bg) image_url('biovision/icons/dropdown.svg') no-repeat center right var(--spacer-xs) / 1.1rem auto;
185
+ padding-right: 3.2rem;
186
+ }
187
+
188
+ .floating-label {
189
+ display: inline-block;
190
+ padding: 1.4rem 0 0 0;
191
+ position: relative;
192
+
193
+ span {
194
+ top: 1.2rem;
195
+ font-size: 1rem;
196
+ left: .4rem;
197
+ line-height: 1;
198
+ opacity: 0;
199
+ pointer-events: none;
200
+ position: absolute;
201
+ transition: .25s;
202
+ }
203
+
204
+ input:not(:placeholder-shown) + span,
205
+ textarea:not(:placeholder-shown) + span {
206
+ opacity: 1;
207
+ top: .2rem;
208
+ }
209
+ }
210
+
211
+ .flag-label {
212
+ align-items: flex-start;
213
+ display: inline-flex;
214
+ gap: var(--spacer-xxs);
215
+
216
+ input {
217
+ -moz-appearance: none;
218
+ -webkit-appearance: none;
219
+ appearance: none;
220
+ border: .2rem solid var(--form-control-color);
221
+ border-radius: .2rem;
222
+ display: inline-block;
223
+ height: 1.6rem;
224
+ outline: none;
225
+ width: 1.6rem;
226
+
227
+ &[type=radio] {
228
+ border-radius: 50%;
229
+ }
230
+
231
+ &:focus {
232
+ box-shadow: .2rem .2rem .2rem var(--input-border-focus);
233
+ }
234
+
235
+ &:checked {
236
+ background: radial-gradient(#fff, #fff 25%, var(--form-control-color) 25%, var(--form-control-color));
237
+ }
238
+
239
+ &:disabled {
240
+ filter: grayscale(1);
241
+ opacity: .75;
242
+
243
+ + span {
244
+ cursor: default;
245
+ opacity: .5;
246
+ }
247
+ }
248
+ }
249
+
250
+ span {
251
+ cursor: pointer;
252
+ flex: 1;
253
+ padding-top: .1rem;
254
+ }
255
+ }
256
+
257
+ .image-medium {
258
+ width: 32rem;
259
+
260
+ img {
261
+ width: 100%;
262
+ }
263
+ }
264
+
265
+ .entity-links {
266
+ list-style: none;
267
+ margin: var(--spacer-s) 0;
268
+ padding: 0 0 0 var(--spacer-s);
269
+
270
+ > li {
271
+ margin: 0;
272
+ padding: 0;
273
+ }
274
+ }
275
+
276
+ .searchable-list {
277
+ .current {
278
+ margin: var(--spacer-xs) 0;
279
+ }
280
+
281
+ ul {
282
+ list-style: none;
283
+ }
284
+
285
+ .text {
286
+ display: inline-block;
287
+
288
+ &:empty {
289
+ display: none;
290
+ }
291
+ }
292
+ }
@@ -1,4 +1,3 @@
1
-
2
1
  .list-of-entities {
3
2
  margin: var(--spacer-s) 0;
4
3
  padding: 0;
@@ -13,12 +12,13 @@
13
12
  .image {
14
13
  flex: none;
15
14
  margin: 0 var(--spacer-xs) 0 0;
16
- text-align: center;
15
+ overflow: hidden;
17
16
  width: 8rem;
18
17
 
19
18
  img {
20
- max-height: 8rem;
21
- max-width: 8rem;
19
+ height: 100%;
20
+ object-fit: contain;
21
+ width: 100%;
22
22
  }
23
23
 
24
24
  & + .data {
@@ -39,9 +39,8 @@
39
39
  background: var(--row-background-even);
40
40
  }
41
41
 
42
-
43
42
  .data {
44
- width: 100%;
43
+ flex: 1;
45
44
  position: relative;
46
45
 
47
46
  .info {
@@ -52,7 +51,6 @@
52
51
  color: var(--text-color-secondary);
53
52
  }
54
53
 
55
-
56
54
  .compact {
57
55
  align-items: center;
58
56
  display: flex;
@@ -84,6 +82,7 @@ ol.list-of-entities {
84
82
  > li[data-number]::before {
85
83
  content: attr(data-number) ":";
86
84
  display: inline-block;
85
+ flex: none;
87
86
  margin: 0 var(--spacer-xs) 0 0;
88
87
  text-align: right;
89
88
  width: 2.4rem;
@@ -14,8 +14,17 @@ $messages-border-success: hsl(120, 75%, 25%) !default;
14
14
  box-shadow: var(--block-shadow);
15
15
  color: var(--text-color-inverted-primary);
16
16
  margin: var(--spacer-s) auto;
17
+ max-width: var(--content-width);
17
18
  padding: var(--spacer-s) var(--spacer-s) var(--spacer-s) calc(3.2rem + var(--spacer-s) * 2);
18
19
 
20
+ p:first-of-type {
21
+ margin-top: 0;
22
+ }
23
+
24
+ p:last-of-type {
25
+ margin-bottom: 0;
26
+ }
27
+
19
28
  &:empty {
20
29
  display: none;
21
30
  }
@@ -0,0 +1,34 @@
1
+ .pagination {
2
+ margin: var(--spacer-s) 0 0 0;
3
+ display: flex;
4
+ flex-wrap: wrap;
5
+ justify-content: center;
6
+ line-height: 1;
7
+
8
+ .current,
9
+ .gap,
10
+ a {
11
+ display: inline-block;
12
+ padding: var(--spacer-xxs) var(--spacer-xs);
13
+ text-align: center;
14
+ }
15
+
16
+ .current {
17
+ background: #f7f7f7;
18
+ color: #222;
19
+ }
20
+ }
21
+
22
+ @media screen and (max-width: 320px) {
23
+ .pagination {
24
+ font-size: 2.4rem;
25
+
26
+ .page {
27
+ display: none;
28
+
29
+ &.current {
30
+ display: inline-block;
31
+ }
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,24 @@
1
+ .widgets__quick-search {
2
+ --row-background-even: hsl(250, 75%, 95%);
3
+ --row-background-odd: hsl(250, 75%, 98%);
4
+
5
+ background: hsl(250, 75%, 98%);
6
+ box-shadow: var(--block-shadow);
7
+ margin: var(--spacer-s) 0 var(--spacer-m);
8
+ padding: var(--spacer-s) var(--spacer-xxs);
9
+ position: relative;
10
+
11
+ h3 {
12
+ font-weight: 400;
13
+ }
14
+
15
+ .results {
16
+ background: hsla(250, 75%, 98%, .5);
17
+ box-shadow: var(--block-shadow);
18
+ margin-top: 0;
19
+ min-width: 28rem;
20
+ position: absolute;
21
+ top: 100%;
22
+ z-index: 3;
23
+ }
24
+ }
@@ -0,0 +1,112 @@
1
+ .js-simple-image-upload {
2
+ max-width: 64rem;
3
+
4
+ .current-image {
5
+ display: block;
6
+ position: relative;
7
+ height: 20rem;
8
+ margin: 0 auto;
9
+ width: 30rem;
10
+
11
+ &::after {
12
+ bottom: 0;
13
+ content: '\A';
14
+ display: block;
15
+ position: absolute;
16
+ left: 0;
17
+ right: 0;
18
+ top: 0;
19
+ transition: .25s;
20
+ z-index: 3;
21
+ }
22
+
23
+ img {
24
+ height: 100%;
25
+ object-fit: contain;
26
+ width: 100%;
27
+ }
28
+ }
29
+
30
+ .buttons {
31
+ align-items: center;
32
+ display: flex;
33
+ justify-content: space-between;
34
+ margin: var(--spacer-xs) auto 0;
35
+ }
36
+
37
+ .progress::after {
38
+ --progress: 0;
39
+
40
+ -webkit-backdrop-filter: blur(.5rem);
41
+ backdrop-filter: blur(.5rem);
42
+ background: conic-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) var(--progress), rgba(0, 0, 0, .75) var(--progress), rgba(0, 0, 0, .75));
43
+ }
44
+
45
+ .container:not(:empty) {
46
+ border-bottom: var(--border-secondary);
47
+ padding: var(--spacer-s) 0;
48
+
49
+ input {
50
+ display: block;
51
+ margin-bottom: var(--spacer-xxs);
52
+ }
53
+ }
54
+
55
+ nav {
56
+ align-items: center;
57
+ display: flex;
58
+ justify-content: space-between;
59
+ padding: var(--spacer-xxs);
60
+
61
+ button {
62
+ align-items: center;
63
+ background: no-repeat center;
64
+ border: none;
65
+ border-radius: 50%;
66
+ box-shadow: 0 0 .4rem rgba(0, 0, 0, .25);
67
+ color: var(--text-color-primary);
68
+ display: flex;
69
+ font-size: var(--font-size-decreased);
70
+ height: 2.4rem;
71
+ justify-content: center;
72
+ line-height: 1;
73
+ margin: 0 var(--spacer-xxs);
74
+ padding: 0;
75
+ transition: .25s;
76
+ width: 2.4rem;
77
+
78
+ &:not([data-url]),
79
+ &[data-url=""] {
80
+ opacity: 0;
81
+ }
82
+
83
+ &:focus,
84
+ &:hover {
85
+ box-shadow: 0 0 .4rem rgba(0, 0, 0, .5);
86
+ }
87
+ }
88
+ }
89
+
90
+ input[type="file"] {
91
+ &:not(.changed) {
92
+ ~ button {
93
+ display: none;
94
+ }
95
+ }
96
+ }
97
+
98
+ .list-of-entities {
99
+ .data {
100
+ > div:first-of-type {
101
+ overflow: hidden;
102
+ text-overflow: ellipsis;
103
+ }
104
+ }
105
+
106
+ .image {
107
+ img {
108
+ cursor: pointer;
109
+ }
110
+ }
111
+ }
112
+ }