biovision 0.0.200518.1 → 0.1.210414.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +60 -18
  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.scss +3 -1
  12. data/app/assets/stylesheets/biovision/admin/components/users.scss +16 -0
  13. data/app/assets/stylesheets/biovision/admin/layout.scss +6 -17
  14. data/app/assets/stylesheets/biovision/biovision.scss +42 -1
  15. data/app/assets/stylesheets/biovision/components.scss +6 -0
  16. data/app/assets/stylesheets/biovision/components/breadcrumbs.scss +13 -0
  17. data/app/assets/stylesheets/biovision/components/buttons.scss +130 -0
  18. data/app/assets/stylesheets/biovision/components/forms.scss +162 -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/simple_image.scss +112 -0
  23. data/app/assets/stylesheets/biovision/components/toggleable.scss +71 -0
  24. data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +2 -3
  25. data/app/assets/stylesheets/biovision/themes/default_theme/components/users.scss +2 -0
  26. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/form_tabs.scss +101 -0
  27. data/app/assets/stylesheets/biovision/themes/default_theme/components/users/profile.scss +77 -0
  28. data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +2 -16
  29. data/app/controllers/admin/components_controller.rb +9 -19
  30. data/app/controllers/admin/dynamic_blocks_controller.rb +15 -0
  31. data/app/controllers/admin/dynamic_pages_controller.rb +15 -0
  32. data/app/controllers/admin/navigation_groups_controller.rb +14 -0
  33. data/app/controllers/admin/users_controller.rb +70 -0
  34. data/app/controllers/admin_controller.rb +3 -2
  35. data/app/controllers/authentication_controller.rb +6 -34
  36. data/app/controllers/concerns/authentication.rb +12 -12
  37. data/app/controllers/concerns/crud_entities.rb +132 -0
  38. data/app/controllers/concerns/entity_priority.rb +10 -0
  39. data/app/controllers/concerns/toggleable_entity.rb +31 -0
  40. data/app/controllers/contact_controller.rb +49 -0
  41. data/app/controllers/fallback_controller.rb +12 -0
  42. data/app/controllers/index_controller.rb +1 -0
  43. data/app/controllers/legal_controller.rb +14 -0
  44. data/app/controllers/my/components_controller.rb +5 -0
  45. data/app/controllers/my/confirmations_controller.rb +44 -0
  46. data/app/controllers/my/index_controller.rb +8 -0
  47. data/app/controllers/my/profiles_controller.rb +31 -16
  48. data/app/controllers/profile_controller.rb +12 -0
  49. data/app/controllers/users_controller.rb +61 -0
  50. data/app/helpers/biovision_helper.rb +171 -0
  51. data/app/helpers/simple_image_helper.rb +125 -0
  52. data/app/jobs/application_job.rb +7 -0
  53. data/app/jobs/send_phone_confirmation_job.rb +16 -0
  54. data/app/lib/biovision/components/base/component_parameters.rb +44 -0
  55. data/app/lib/biovision/components/base/component_privileges.rb +65 -0
  56. data/app/lib/biovision/components/base/component_settings.rb +32 -0
  57. data/app/lib/biovision/components/base/privilege_handler.rb +79 -0
  58. data/app/lib/biovision/components/base_component.rb +51 -54
  59. data/app/lib/biovision/components/contact_component.rb +22 -0
  60. data/app/lib/biovision/components/content_component.rb +28 -0
  61. data/app/lib/biovision/components/track_component.rb +3 -0
  62. data/app/lib/biovision/components/users/authentication.rb +15 -7
  63. data/app/lib/biovision/components/users/codes.rb +104 -0
  64. data/app/lib/biovision/components/users/flag_helpers.rb +72 -0
  65. data/app/lib/biovision/components/users/profile_handler.rb +111 -1
  66. data/app/lib/biovision/components/users/registration_handler.rb +40 -52
  67. data/app/lib/biovision/components/users/validation.rb +83 -0
  68. data/app/lib/biovision/components/users_component.rb +82 -19
  69. data/app/lib/biovision/notifiers/base_notifier.rb +2 -2
  70. data/app/lib/biovision/notifiers/contact_notifier.rb +15 -0
  71. data/app/lib/canonizer.rb +38 -0
  72. data/app/lib/carrier_wave/image_optim.rb +32 -0
  73. data/app/mailers/code_sender.rb +29 -0
  74. data/app/models/agent.rb +4 -0
  75. data/app/models/biovision_component.rb +22 -2
  76. data/app/models/browser.rb +1 -1
  77. data/app/models/code.rb +32 -9
  78. data/app/models/concerns/has_simple_image.rb +9 -0
  79. data/app/models/concerns/meta_texts.rb +25 -5
  80. data/app/models/concerns/tree_structure.rb +72 -0
  81. data/app/models/contact_method.rb +47 -0
  82. data/app/models/contact_type.rb +27 -0
  83. data/app/models/dynamic_block.rb +43 -0
  84. data/app/models/dynamic_page.rb +71 -0
  85. data/app/models/feedback_message.rb +59 -0
  86. data/app/models/feedback_response.rb +50 -0
  87. data/app/models/group.rb +48 -0
  88. data/app/models/language.rb +4 -0
  89. data/app/models/navigation_group.rb +33 -0
  90. data/app/models/navigation_group_page.rb +23 -0
  91. data/app/models/role.rb +56 -0
  92. data/app/models/role_group.rb +13 -0
  93. data/app/models/simple_image.rb +22 -8
  94. data/app/models/simple_image_tag.rb +1 -1
  95. data/app/models/token.rb +4 -4
  96. data/app/models/user.rb +94 -26
  97. data/app/models/user_group.rb +20 -0
  98. data/app/models/user_role.rb +19 -0
  99. data/app/uploaders/simple_file_uploader.rb +27 -0
  100. data/app/uploaders/simple_image_uploader.rb +20 -0
  101. data/app/views/admin/agents/index.html.erb +0 -2
  102. data/app/views/admin/components/_image.jbuilder +18 -0
  103. data/app/views/admin/components/_list.html.erb +1 -1
  104. data/app/views/admin/components/entity/_links.html.erb +1 -1
  105. data/app/views/admin/components/image.jbuilder +1 -0
  106. data/app/views/admin/components/images.jbuilder +4 -0
  107. data/app/views/admin/components/links/_content.html.erb +9 -0
  108. data/app/views/admin/components/links/_users.html.erb +1 -8
  109. data/app/views/admin/components/links/extra/_content.html.erb +0 -0
  110. data/app/views/admin/components/privileges/_links.html.erb +0 -18
  111. data/app/views/admin/components/settings/_new_parameter.html.erb +4 -2
  112. data/app/views/admin/components/settings/_parameters.html.erb +8 -2
  113. data/app/views/admin/components/settings/_settings.html.erb +1 -1
  114. data/app/views/admin/components/update_privileges.jbuilder +21 -0
  115. data/app/views/admin/dynamic_blocks/_form.html.erb +16 -0
  116. data/app/views/admin/dynamic_blocks/_nav_item.html.erb +6 -0
  117. data/app/views/admin/dynamic_blocks/entity/_in_list.html.erb +10 -0
  118. data/app/views/admin/dynamic_blocks/index.html.erb +15 -0
  119. data/app/views/admin/dynamic_blocks/show.html.erb +23 -0
  120. data/app/views/admin/dynamic_pages/_form.html.erb +21 -0
  121. data/app/views/admin/dynamic_pages/_nav_item.html.erb +6 -0
  122. data/app/views/admin/dynamic_pages/entity/_in_list.html.erb +15 -0
  123. data/app/views/admin/dynamic_pages/index.html.erb +15 -0
  124. data/app/views/admin/dynamic_pages/show.html.erb +28 -0
  125. data/app/views/admin/ip_addresses/index.html.erb +0 -2
  126. data/app/views/admin/navigation_groups/_form.html.erb +15 -0
  127. data/app/views/admin/navigation_groups/_nav_item.html.erb +6 -0
  128. data/app/views/admin/navigation_groups/entity/_in_list.html.erb +12 -0
  129. data/app/views/admin/navigation_groups/index.html.erb +15 -0
  130. data/app/views/admin/navigation_groups/show.html.erb +20 -0
  131. data/app/views/admin/unauthorized.html.erb +2 -5
  132. data/app/views/admin/users/_form.html.erb +81 -0
  133. data/app/views/admin/users/_nav_item.html.erb +6 -0
  134. data/app/views/admin/users/entity/_fields.html.erb +53 -0
  135. data/app/views/admin/users/entity/_in_list.html.erb +38 -0
  136. data/app/views/admin/users/entity/_profile.html.erb +26 -0
  137. data/app/views/admin/users/entity/in_list/_additional_data.html.erb +0 -0
  138. data/app/views/admin/users/index.html.erb +15 -0
  139. data/app/views/admin/users/show.html.erb +44 -0
  140. data/app/views/application/forbidden.html.erb +9 -0
  141. data/app/views/application/forbidden.jbuilder +4 -0
  142. data/app/views/application/not_found.html.erb +9 -0
  143. data/app/views/application/not_found.jbuilder +4 -0
  144. data/app/views/application/unauthorized.html.erb +16 -0
  145. data/app/views/application/unauthorized.jbuilder +4 -0
  146. data/app/views/authentication/new.html.erb +2 -8
  147. data/app/views/components/content/_dynamic_page.html.erb +21 -0
  148. data/app/views/components/users/_form_tabs.html.erb +31 -0
  149. data/app/views/components/users/_join_form.html.erb +192 -0
  150. data/app/views/components/users/_login_form.html.erb +45 -0
  151. data/app/views/components/users/form/_image.html.erb +17 -0
  152. data/app/views/components/users/form/_profile_data.html.erb +54 -0
  153. data/app/views/contact/_form.html.erb +108 -0
  154. data/app/views/contact/create_feedback_message.js.erb +1 -0
  155. data/app/views/contact/feedback.html.erb +13 -0
  156. data/app/views/contact/index.html.erb +16 -0
  157. data/app/views/fallback/show.html.erb +6 -0
  158. data/app/views/layouts/admin.html.erb +1 -1
  159. data/app/views/layouts/admin/_footer.html.erb +1 -1
  160. data/app/views/layouts/application/header/_authentication.html.erb +1 -1
  161. data/app/views/legal/privacy.html.erb +5 -0
  162. data/app/views/legal/tos.html.erb +5 -0
  163. data/app/views/my/confirmations/show.html.erb +62 -0
  164. data/app/views/my/index/index.html.erb +33 -0
  165. data/app/views/my/profiles/_form.html.erb +10 -0
  166. data/app/views/my/profiles/check.jbuilder +4 -0
  167. data/app/views/my/profiles/edit.html.erb +14 -0
  168. data/app/views/my/profiles/form/_basic_parameters.html.erb +9 -0
  169. data/app/views/my/profiles/form/_sensitive_parameters.html.erb +68 -0
  170. data/app/views/my/profiles/new.html.erb +6 -8
  171. data/app/views/my/profiles/show.html.erb +23 -0
  172. data/app/views/shared/_flash_messages.html.erb +1 -1
  173. data/app/views/shared/_list_of_errors.html.erb +7 -0
  174. data/app/views/shared/admin/_breadcrumbs.html.erb +8 -0
  175. data/app/views/shared/admin/_list.html.erb +4 -4
  176. data/app/views/shared/admin/_list_with_priority.html.erb +4 -4
  177. data/app/views/shared/admin/_priority.html.erb +5 -0
  178. data/app/views/shared/admin/_toggle.html.erb +11 -0
  179. data/app/views/shared/entity/_formatted_text_field.html.erb +10 -0
  180. data/app/views/shared/entity/_image.html.erb +31 -0
  181. data/app/views/shared/entity/_language.html.erb +6 -0
  182. data/app/views/shared/entity/_linked_entity.html.erb +6 -0
  183. data/app/views/shared/entity/_meta_texts.html.erb +16 -0
  184. data/app/views/shared/entity/_metadata.html.erb +18 -0
  185. data/app/views/shared/entity/_parent.html.erb +6 -0
  186. data/app/views/shared/entity/_priority.html.erb +4 -0
  187. data/app/views/shared/entity/_raw_text_field.html.erb +10 -0
  188. data/app/views/shared/entity/_simple_image.html.erb +10 -0
  189. data/app/views/shared/entity/_slug.html.erb +6 -0
  190. data/app/views/shared/entity/_text_field.html.erb +6 -0
  191. data/app/views/shared/entity/_text_fields.html.erb +9 -0
  192. data/app/views/shared/entity/_timestamps.html.erb +13 -0
  193. data/app/views/shared/entity/_tree_caches.html.erb +12 -0
  194. data/app/views/shared/entity/_uuid.html.erb +4 -0
  195. data/app/views/shared/entity/edit.html.erb +21 -0
  196. data/app/views/shared/entity/new.html.erb +16 -0
  197. data/app/views/shared/forms/_entity_flags.html.erb +15 -0
  198. data/app/views/shared/forms/_field.html.erb +46 -0
  199. data/app/views/shared/forms/_fields.html.erb +3 -0
  200. data/app/views/shared/forms/_language.html.erb +40 -0
  201. data/app/views/shared/forms/_meta_texts.html.erb +27 -0
  202. data/app/views/shared/forms/_priority.html.erb +13 -0
  203. data/app/views/shared/forms/_simple_image.html.erb +39 -0
  204. data/app/views/shared/forms/_state_container.html.erb +7 -0
  205. data/app/views/shared/forms/_text_area.html.erb +25 -0
  206. data/app/views/shared/forms/_text_field.html.erb +24 -0
  207. data/app/views/shared/forms/_text_fields.html.erb +3 -0
  208. data/app/views/shared/forms/check.jbuilder +4 -0
  209. data/app/views/shared/forms/errors.jbuilder +3 -0
  210. data/app/views/shared/forms/simple_image/_browse.html.erb +14 -0
  211. data/app/views/shared/forms/simple_image/_load_image.html.erb +38 -0
  212. data/app/views/shared/my/_list.html.erb +19 -0
  213. data/app/views/shared/my/_list_with_priority.html.erb +19 -0
  214. data/app/views/users/_profile.html.erb +30 -0
  215. data/app/views/users/profile/_data.html.erb +20 -0
  216. data/app/views/users/show.html.erb +21 -0
  217. data/config/locales/biovision-ru.yml +58 -0
  218. data/config/locales/components-ru.yml +30 -2
  219. data/config/locales/contact-ru.yml +106 -0
  220. data/config/locales/content-ru.yml +103 -0
  221. data/config/locales/users-ru.yml +117 -3
  222. data/config/routes.rb +70 -50
  223. data/db/migrate/20191228000000_create_biovision_components.rb +4 -5
  224. data/db/migrate/20200224000000_create_track_component.rb +7 -8
  225. data/db/migrate/20200224000010_create_users_component.rb +15 -43
  226. data/db/migrate/20200404000000_create_simple_images.rb +3 -3
  227. data/db/migrate/20200529000000_create_content_component.rb +74 -0
  228. data/db/migrate/20210401000000_create_contact_component.rb +95 -0
  229. data/db/migrate/20210405000000_create_acl.rb +74 -0
  230. data/lib/biovision/base_methods.rb +18 -10
  231. data/lib/biovision/engine.rb +8 -13
  232. data/lib/biovision/version.rb +1 -1
  233. metadata +186 -20
  234. data/app/assets/images/biovision/placeholders/user.svg +0 -15
  235. data/app/helpers/users_helper.rb +0 -11
  236. data/app/lib/biovision/components/component_settings.rb +0 -30
  237. data/app/lib/biovision/components/privilege_handler.rb +0 -77
  238. data/app/lib/biovision/components/users/code_handler.rb +0 -23
  239. data/app/models/foreign_site.rb +0 -34
  240. data/app/models/foreign_user.rb +0 -21
  241. data/app/uploaders/user_image_uploader.rb +0 -58
  242. data/app/views/admin/components/privileges/_privilege_flag.html.erb +0 -28
  243. data/app/views/authentication/_form.html.erb +0 -40
  244. data/app/views/authentication/failed.js.erb +0 -3
  245. data/app/views/my/profiles/new/_form.html.erb +0 -147
  246. data/app/views/shared/admin/_toggleable.html.erb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 817fb32980253517bb13eeff8c2d01ba994c82db093c58f8a770c212ecee25c6
4
- data.tar.gz: b29d966a12f8dda98db8777e7f224001ee40f9f67c58c3192a5eda0d970e9e65
3
+ metadata.gz: d3c24a921606caffe513c4ee11746d99f1891ceff0f80571cdebf22832504017
4
+ data.tar.gz: a8fd06783b7ffdd07e64f2419a7cf9c6c85034c4b54ab0131105a6af053d3f71
5
5
  SHA512:
6
- metadata.gz: 27904974e644b24f35aef5366e9e92927971a1c20e255b919724aadc27ac8854dcdb2f9dd2f83a0b8bec8358878bbdd36f877b721d29529f7336e6bf8e628f9b
7
- data.tar.gz: 6eece2a2e1742e4438a949ff2718be4d16d03b4b767c0804c39243454d60967fe256722d81e2531c81c7f03e60245082d36d236d9593b029bec685bc58b62959
6
+ metadata.gz: a2ae86238cb7e4c0214e8f68e6eafdfdcd5ac3d18202b7e83068faf05e391105bc6d4a99aeae22142be73fb2d744a4a8d88b4677280996067116cab16c966db7
7
+ data.tar.gz: b6bb9884e0622fbfaac3203f6fcc570368fbebfdd2c07cf68e7916bd4d622f7d76aa2617d0822e6854fa275d718c45bcba985a9f9999e4778c0c6fcf12290e95
data/README.md CHANGED
@@ -50,10 +50,10 @@ end
50
50
  ## Изменения в `config/environments/production.rb`
51
51
 
52
52
  Нужно раскомментировать строку `config.require_master_key = true` (на момент
53
- написания это `19` строка).
53
+ написания это `21` строка).
54
54
 
55
55
  Нужно выставить уровень сообщения об ошибках в `:warn`
56
- (`config.log_level = :warn` в районе `54` строки).
56
+ (`config.log_level = :warn` в районе `53` строки).
57
57
 
58
58
  ## Изменения в `app/mailers/application_mailer.rb`
59
59
 
@@ -107,6 +107,14 @@ production:
107
107
  end
108
108
  ```
109
109
 
110
+ ## Добавления в `package.json` и `application.js`
111
+
112
+ Нужно добавить `@biovivion/biovision`, чтобы работал JS на клиентской стороне
113
+ (`yarn add @biovision/biovision`).
114
+
115
+ В `pack/javascripts/application.js` нужно добавить
116
+ `require("@biovision/biovision")`.
117
+
110
118
  ## Добавления в `config/routes.rb`
111
119
 
112
120
  ```ruby
@@ -121,21 +129,8 @@ production:
121
129
  concern :priority do
122
130
  post :priority, on: :member, defaults: { format: :json }
123
131
  end
124
-
125
- concern :removable_image do
126
- delete :image, action: :destroy_image, on: :member, defaults: { format: :json }
127
- end
128
-
129
- concern :lock do
130
- member do
131
- put :lock, defaults: { format: :json }
132
- delete :lock, action: :unlock, defaults: { format: :json }
133
- end
134
- end
135
132
 
136
- scope '(:locale)', constraints: { locale: /ru|en/ } do
137
- root 'index#index'
138
- end
133
+ root 'index#index'
139
134
  ```
140
135
 
141
136
  ## Дополнения в config/puma.rb
@@ -150,7 +145,6 @@ if ENV['RAILS_ENV'] == 'production'
150
145
  logs_dir = "#{shared_path}/log"
151
146
 
152
147
  state_path "#{shared_path}/tmp/puma/state"
153
- pidfile "#{shared_path}/tmp/puma/pid"
154
148
  bind "unix://#{shared_path}/tmp/puma.sock"
155
149
  stdout_redirect "#{logs_dir}/stdout.log", "#{logs_dir}/stderr.log", true
156
150
 
@@ -177,7 +171,34 @@ bundle binstub puma
177
171
 
178
172
  Также имеет смысл запустить `EDITOR=vim rails credentials:edit`, чтобы создать
179
173
  зашированный файл с ключом шифрования сессии (чтобы выйти из vim с сохранением,
180
- надо набрать :wq).
174
+ надо нажать `esc` и набрать `:wq`).
175
+
176
+ Чтобы проходила сборка на сервере, следует запустить эту команду:
177
+
178
+ ```bash
179
+ bundle lock --add-platform x86_64-linux
180
+ ```
181
+
182
+ ## Настройка БД на сервере
183
+
184
+ Если нужно создать пользователя (заменить `example` на пользователя из
185
+ `config/database.yml` из раздела `production`):
186
+
187
+ ```bash
188
+ sudo su postgres
189
+ createuser -d -P example
190
+ ```
191
+
192
+ Для создания БД (заменить `example` на пользователя из `config/database.yml`
193
+ из раздела `production`):
194
+
195
+ ```bash
196
+ psql -h localhost -U example postgres
197
+ ```
198
+
199
+ ```postgresql
200
+ create database example template template0 encoding='UTF8' LC_COLLATE='ru_RU.UTF-8' LC_CTYPE='ru_RU.UTF-8';
201
+ ```
181
202
 
182
203
  ## Настройка отгрузки через mina
183
204
 
@@ -195,10 +216,31 @@ set :shared_dirs, fetch(:shared_dirs, []).push('public/uploads', 'tmp', 'log')
195
216
  set :shared_files, fetch(:shared_files, []).push('config/master.key', '.env')
196
217
  ```
197
218
 
219
+ Если используется `nvm`, то нужно добавить его инициализацию:
220
+
221
+ В блок `:remote_environment` добавить строку:
222
+
223
+ ```ruby
224
+ invoke :'nvm:load'
225
+ ```
226
+
227
+ Сама загрузка `nvm`:
228
+
229
+ ```ruby
230
+ namespace :nvm do
231
+ task :load do
232
+ command 'echo "-----> Loading nvm"'
233
+ command %{source ~/.nvm/nvm.sh}
234
+ command 'echo "-----> Now using nvm v.`nvm --version`"'
235
+ end
236
+ end
237
+ ```
238
+
198
239
  На серверной стороне нужно создать папку для пумы и файла с ключом шифрования:
199
240
 
200
241
  ```bash
201
242
  mkdir -p /var/www/example.com/shared/tmp/puma
243
+ mkdir -p /var/www/example.com/shared/tmp/pids
202
244
  mkdir -p /var/www/example.com/shared/config
203
245
  ```
204
246
 
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg version="1.1" id="Layer_1" x="0px" y="0px" width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 1252.705 1638.145 48.02 48.02" xmlns="http://www.w3.org/2000/svg">
3
+ <g transform="matrix(0.499792, 0, 0, 0.499792, -626.091919, -818.731812)">
4
+ <g>
5
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-8.0889" y1="1366.9993" x2="6.3662" y2="1366.9993" gradientTransform="matrix(3.3219 0 0 -3.3219 1279.5765 6203.127)">
6
+ <stop offset="0" style="stop-color:#33B49D"/>
7
+ <stop offset="1" style="stop-color:#00A185"/>
8
+ </linearGradient>
9
+ <circle fill="url(#SVGID_1_)" cx="1276.715" cy="1662.155" r="24.01"/>
10
+ <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-6.8848" y1="1366.9993" x2="5.1616" y2="1366.9993" gradientTransform="matrix(3.3219 0 0 -3.3219 1279.5765 6203.127)">
11
+ <stop offset="0" style="stop-color:#00A185"/>
12
+ <stop offset="1" style="stop-color:#33B49D"/>
13
+ </linearGradient>
14
+ <path fill="url(#SVGID_2_)" d="M1276.715,1682.163c-11.032,0-20.008-8.976-20.008-20.009c0-11.032,8.976-20.009,20.008-20.009 s20.008,8.977,20.008,20.009C1296.723,1673.188,1287.747,1682.163,1276.715,1682.163z"/>
15
+ </g>
16
+ <polygon id="XMLID_80_" opacity="0.3" enable-background="new " points="1276.012,1653.105 1266.211,1662.905 &#10;&#9;&#9;1276.012,1672.705 1276.012,1667.508 1288.72,1667.508 1288.72,1658.302 1276.012,1658.302 &#9;"/>
17
+ <polygon id="XMLID_201_" fill="#FFFFFF" points="1275.261,1652.354 1265.46,1662.155 1275.261,1671.955 1275.261,1666.758 &#10;&#9;&#9;1287.97,1666.758 1287.97,1657.551 1275.261,1657.551 &#9;"/>
18
+ </g>
19
+ </svg>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg enable-background="new 0 0 512 512" id="Layer_1" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
3
+ <g transform="matrix(0.046875, 0, 0, 0.046875, 0, 0)">
4
+ <g>
5
+ <linearGradient gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="0.0000038" x2="512" y1="256" y2="256">
6
+ <stop offset="0" style="stop-color:#33B49D"/>
7
+ <stop offset="1" style="stop-color:#00A185"/>
8
+ </linearGradient>
9
+ <circle cx="256" cy="256" fill="url(#SVGID_1_)" r="256"/>
10
+ <linearGradient gradientUnits="userSpaceOnUse" id="SVGID_2_" x1="42.6666679" x2="469.3333435" y1="256.0005188" y2="256.0005188">
11
+ <stop offset="0" style="stop-color:#00A185"/>
12
+ <stop offset="1" style="stop-color:#33B49D"/>
13
+ </linearGradient>
14
+ <path d="M256,469.3338623c-117.6309357,0-213.3333282-95.7023926-213.3333282-213.3333435 c0-117.6314545,95.7023926-213.333313,213.3333282-213.333313c117.636261,0,213.3333435,95.7018661,213.3333435,213.333313 C469.3333435,373.6314697,373.636261,469.3338623,256,469.3338623z" fill="url(#SVGID_2_)"/>
15
+ </g>
16
+ <polygon id="XMLID_109_" opacity="0.3" points="384,242.5413361 285.459198,242.5413361 285.459198,144 242.5424042,144 242.5424042,242.5413361 144,242.5413361 144,285.4581299 242.5424042,285.4581299 242.5424042,384 285.459198,384 285.459198,285.4581299 384,285.4581299 "/>
17
+ <polygon fill="#FFFFFF" id="XMLID_189_" points="376,234.5413361 277.459198,234.5413361 277.459198,136 234.5424042,136 234.5424042,234.5413361 136,234.5413361 136,277.4581299 234.5424042,277.4581299 234.5424042,376 277.459198,376 277.459198,277.4581299 376,277.4581299 "/>
18
+ </g>
19
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
2
+ <title>Delete</title>
3
+ <defs>
4
+ <style type="text/css">
5
+ line { stroke: #e44061; stroke-width: 3; stroke-linecap: round; }
6
+ </style>
7
+ </defs>
8
+ <g>
9
+ <line x1="3" y1="3" x2="21" y2="21"/>
10
+ <line x1="3" y1="21" x2="21" y2="3"/>
11
+ </g>
12
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="11px" height="6px">
2
+ <path d="M 0,0 h 11 l -5.5, 6" fill="#303346" stroke="none" />
3
+ </svg>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1"
5
+ id="Layer_1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px" height="24px"
7
+ viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
8
+ <g transform="translate(0 -1028.4)">
9
+ <g transform="matrix(1.0607 1.0607 -1.0607 1.0607 1146.8 34.926)">
10
+ <path fill="#ECF0F1" d="M-63,1003.4l0,11.3l0,0.7v1L-61,1018.4l2-2l0-1l0-0.7l0-11.3L-63,1003.4z"/>
11
+ <path fill="#BDC3C7" d="M-61,1003.4l0,15l2-2l0-1l0-0.7l0-11.3L-61,1003.4z"/>
12
+ <rect x="-63" y="1004.4" fill="#E67E22" width="4" height="11"/>
13
+ <path fill="#7F8C8D" d="M-61,1000.4c-1.105,0-2,0.9-2,2l0,1l4,0l0-1C-59,1001.3-59.895,1000.4-61,1000.4z"/>
14
+ <g transform="translate(-7,1)">
15
+ <path fill="#34495E" d="M-55.406,1016l1.406,1.4l1.406-1.4l-1.406,0L-55.406,1016z"/>
16
+ <path fill="#2C3E50" d="M-54,1016L-54,1017.4l1.406-1.4L-54,1016z"/>
17
+ </g>
18
+ <path fill="#95A5A6" d="M-61,1000.4c-1.105,0-2,0.9-2,2l0,1l2,0L-61,1000.4z"/>
19
+ <rect x="-61" y="1004.4" fill="#D35400" width="2" height="11"/>
20
+ </g>
21
+ </g>
22
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
3
+ <style type="text/css">
4
+ .st0{fill-rule:evenodd;clip-rule:evenodd;}
5
+ .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#7ACED7;}
6
+ </style>
7
+ <g id="XMLID_6_" transform="matrix(0.1875, 0, 0, 0.1875, 0, 0)">
8
+ <path class="st0" d="M119.2,99.3l-19.9,19.9c-2.3,2.3-6.1,2.3-8.4,0l-6.9-6.9v9.8c0,3.3-2.7,5.9-5.9,5.9H49.9 c-3.3,0-5.9-2.7-5.9-5.9v-9.8l-6.9,6.9c-2.3,2.3-6.1,2.3-8.4,0L8.8,99.3c-2.3-2.3-2.3-6.1,0-8.4l6.9-6.9H5.9C2.7,84,0,81.3,0,78.1 V49.9C0,46.7,2.7,44,5.9,44h9.8l-6.9-6.9c-2.3-2.3-2.3-6.1,0-8.4L28.7,8.8c2.3-2.3,6.1-2.3,8.4,0l6.9,6.9V5.9C44,2.7,46.7,0,49.9,0 h28.1C81.3,0,84,2.7,84,5.9v9.8l6.9-6.9c2.3-2.3,6.1-2.3,8.4,0l19.9,19.9c2.3,2.3,2.3,6.1,0,8.4l-6.9,6.9h9.8 c3.3,0,5.9,2.7,5.9,5.9v28.1c0,3.3-2.7,5.9-5.9,5.9h-9.8l6.9,6.9C121.5,93.2,121.5,97,119.2,99.3L119.2,99.3z M64,43.1 c-11.6,0-20.9,9.4-20.9,20.9c0,11.6,9.4,20.9,20.9,20.9c11.6,0,20.9-9.4,20.9-20.9C84.9,52.4,75.6,43.1,64,43.1z" id="XMLID_10_"/>
9
+ <path class="st1" d="M64,39.1c13.8,0,24.9,11.2,24.9,24.9c0,13.8-11.2,24.9-24.9,24.9c-13.8,0-24.9-11.2-24.9-24.9 C39.1,50.2,50.2,39.1,64,39.1L64,39.1z M96.5,11.6c-0.8-0.8-2-0.8-2.7,0L80,25.4V5.9C80,4.9,79.1,4,78.1,4H49.9 C48.9,4,48,4.9,48,5.9v19.4L34.3,11.6c-0.8-0.8-2-0.8-2.7,0L11.6,31.5c-0.8,0.8-0.8,2,0,2.7L25.4,48H5.9C4.9,48,4,48.9,4,49.9v28.1 C4,79.1,4.9,80,5.9,80h19.4L11.6,93.7c-0.8,0.8-0.8,2,0,2.7l19.9,19.9c0.8,0.8,2,0.8,2.7,0L48,102.6v19.4c0,1.1,0.9,1.9,1.9,1.9 h28.1c1.1,0,1.9-0.9,1.9-1.9v-19.4l13.7,13.7c0.8,0.8,2,0.8,2.7,0l19.9-19.9c0.8-0.8,0.8-2,0-2.7L102.6,80h19.4 c1.1,0,1.9-0.9,1.9-1.9V49.9c0-1.1-0.9-1.9-1.9-1.9h-19.4l13.7-13.7c0.8-0.8,0.8-2,0-2.7L96.5,11.6z" id="XMLID_7_"/>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg enable-background="new 0 0 512 512" id="Layer_1" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
3
+ <g transform="matrix(0.046875, 0, 0, 0.046875, 0, 0)">
4
+ <g>
5
+ <linearGradient gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="-0.0000027" x2="512" y1="256" y2="256">
6
+ <stop offset="0" style="stop-color:#B49A85"/>
7
+ <stop offset="0.0651" style="stop-color:#B0957F"/>
8
+ <stop offset="0.2856" style="stop-color:#A88A71"/>
9
+ <stop offset="0.5539" style="stop-color:#A38369"/>
10
+ <stop offset="1" style="stop-color:#A18166"/>
11
+ </linearGradient>
12
+ <circle cx="256" cy="256" fill="url(#SVGID_1_)" r="256"/>
13
+ <linearGradient gradientUnits="userSpaceOnUse" id="SVGID_2_" x1="42.6666641" x2="469.3333435" y1="256.0005188" y2="256.0005188">
14
+ <stop offset="0" style="stop-color:#A18166"/>
15
+ <stop offset="0.4461" style="stop-color:#A38369"/>
16
+ <stop offset="0.7144" style="stop-color:#A88A71"/>
17
+ <stop offset="0.9349" style="stop-color:#B0957F"/>
18
+ <stop offset="1" style="stop-color:#B49A85"/>
19
+ </linearGradient>
20
+ <path d="M256,469.3338623c-117.631012,0-213.3333435-95.7018738-213.3333435-213.3333435 c0-117.6309204,95.7023239-213.333313,213.3333435-213.333313c117.6362,0,213.3333435,95.7024002,213.3333435,213.333313 C469.3333435,373.6319885,373.6362,469.3338623,256,469.3338623z" fill="url(#SVGID_2_)"/>
21
+ </g>
22
+ <path d="M228.8847198,285.5493469v34.813324L144,242.3226624l84.8847198-78.0399933 l0.0006104,39.2917328C317.5705872,203.5744019,384,243.6815948,384,332.3674622 c0,10.7285461-1.0518188,21.2112122-3.058197,31.3504028C380.941803,363.717865,330.6186523,285.5514526,228.8847198,285.5493469z" id="XMLID_78_" opacity="0.3"/>
23
+ <path d="M220.8847198,277.5493469v34.813324L136,234.3226624l84.8847198-78.0399933 l0.0006104,39.2917328C309.5705872,195.5744019,376,235.6815948,376,324.3674622 c0,10.7285461-1.0518188,21.2112122-3.058197,31.3504028C372.941803,355.717865,322.6186523,277.5514526,220.8847198,277.5493469z" fill="#FFFFFF" id="XMLID_2251_"/>
24
+ </g>
25
+ </svg>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <svg id="Layer_1" style="enable-background:new 0 0 128 128;" version="1.1" viewBox="0 0 24 24" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
3
+ <style type="text/css">
4
+ .st0{fill-rule:evenodd;clip-rule:evenodd;}
5
+ .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#7ACED7;}
6
+ </style>
7
+ <g id="XMLID_11_" transform="matrix(0.1875, 0, 0, 0.1875, 0, 0)">
8
+ <circle class="st0" cx="64" cy="64" id="XMLID_9_" r="64"/>
9
+ <path class="st1" d="M4,62h25.3c0-0.1,0-0.1,0-0.2C30.3,45,36,29.3,46.2,16c2.8-3.7,6.8-8.1,10.8-11.6 C27.8,7.8,5,32.1,4,62L4,62z M33.3,62c0.9-16,6.3-30.9,16.1-43.6c3.2-4.2,8-9.4,12.6-12.9V62H33.3L33.3,62z M70.9,4.4 c4,3.5,8,7.9,10.8,11.6C92,29.3,97.7,45,98.7,61.8c0,0.1,0,0.1,0,0.2H124C123,32.1,100.2,7.8,70.9,4.4L70.9,4.4z M94.7,62H66V5.5 c4.6,3.5,9.4,8.7,12.6,12.9C88.3,31.1,93.7,46,94.7,62L94.7,62z M71,123.6c4-3.5,7.9-7.9,10.8-11.6C92,98.7,97.7,83,98.7,66.2 c0-0.1,0-0.2,0-0.2H124C123,95.9,100.2,120.2,71,123.6L71,123.6z M94.7,66H66v56.5c4.6-3.5,9.4-8.7,12.6-12.9 C88.3,96.9,93.7,82,94.7,66L94.7,66z M62,122.5c-4.6-3.5-9.4-8.7-12.6-12.9C39.7,96.9,34.3,82,33.3,66H62V122.5L62,122.5z M29.3,66 H4c1,29.9,23.8,54.2,53,57.6c-4-3.5-7.9-7.9-10.8-11.6C36,98.7,30.3,83,29.3,66.2C29.3,66.2,29.3,66.1,29.3,66z" id="XMLID_12_"/>
10
+ </g>
11
+ </svg>
@@ -56,4 +56,6 @@
56
56
  margin-bottom: 0;
57
57
  }
58
58
  }
59
- }
59
+ }
60
+
61
+ @import "biovision/admin/components/users";
@@ -0,0 +1,16 @@
1
+ #login-form {
2
+ box-shadow: var(--block-shadow);
3
+ margin: 0 auto;
4
+ max-width: 36rem;
5
+
6
+ .errors {
7
+ margin: 0 var(--spacer-xs);
8
+ }
9
+
10
+ .actions {
11
+ align-items: center;
12
+ display: flex;
13
+ justify-content: space-between;
14
+ padding: var(--spacer-xs);
15
+ }
16
+ }
@@ -11,7 +11,6 @@ body {
11
11
  display: flex;
12
12
  flex-direction: column;
13
13
  font-weight: 300;
14
- height: 100%;
15
14
  margin: 0 auto;
16
15
  max-width: var(--content-width);
17
16
  }
@@ -74,22 +73,12 @@ h2 {
74
73
  padding: var(--spacer-xs);
75
74
  }
76
75
 
77
- .breadcrumbs {
78
- margin-bottom: var(--spacer-xs);
79
-
80
- a {
81
- background: image_url('biovision/icons/breadcrumb.svg') no-repeat bottom .1rem right / .6rem 1.2rem;
82
- padding-right: 1rem;
83
- transition: background .25s;
84
-
85
- &:active,
86
- &:focus,
87
- &:hover {
88
- background-image: image_url('biovision/icons/breadcrumb-hover.svg');
89
- }
90
- }
91
- }
92
-
93
76
  @import "biovision/components/forms";
77
+ @import "biovision/components/breadcrumbs";
94
78
  @import "biovision/components/lists";
79
+ @import "biovision/components/buttons";
80
+ @import "biovision/components/messages";
81
+ @import "biovision/components/simple_image";
82
+ @import "biovision/components/toggleable";
83
+ @import "biovision/components/pagination";
95
84
  @import "biovision/admin/components";
@@ -1,3 +1,5 @@
1
+ @import "biovision/vars";
2
+
1
3
  *,
2
4
  ::after,
3
5
  ::before {
@@ -131,4 +133,43 @@ textarea {
131
133
  }
132
134
  }
133
135
 
134
- @import "biovision/biovision/messages";
136
+ .entity-actions {
137
+ align-items: center;
138
+ background: #fff;
139
+ border-radius: .4rem;
140
+ box-shadow: var(--block-shadow);
141
+ display: flex;
142
+ justify-content: flex-end;
143
+ margin: 0;
144
+ opacity: .5;
145
+ padding: 0;
146
+ position: absolute;
147
+ right: var(--spacer-xxs);
148
+ top: var(--spacer-xxs);
149
+ transition: .25s;
150
+
151
+ &:hover {
152
+ opacity: 1;
153
+ }
154
+
155
+ .danger {
156
+ margin-left: var(--spacer-s);
157
+ }
158
+
159
+ a,
160
+ button {
161
+ display: inline-block;
162
+ font-size: var(--font-size-decreased);
163
+ height: 2.4rem;
164
+ line-height: 1;
165
+ margin: 0;
166
+ padding: var(--spacer-xxs);
167
+ width: 2.4rem;
168
+ }
169
+
170
+ img {
171
+ height: 100%;
172
+ object-fit: contain;
173
+ width: 100%;
174
+ }
175
+ }
@@ -0,0 +1,6 @@
1
+ @import "biovision/components/buttons";
2
+ @import "biovision/components/forms";
3
+ @import "biovision/components/hamburger";
4
+ @import "biovision/components/lists";
5
+ @import "biovision/components/pagination";
6
+ @import "biovision/components/breadcrumbs";
@@ -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
+ }