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.
- checksums.yaml +4 -4
- data/README.md +60 -18
- data/app/assets/images/biovision/icons/back.svg +19 -0
- data/app/assets/images/biovision/icons/create.svg +19 -0
- data/app/assets/images/biovision/icons/destroy.svg +12 -0
- data/app/assets/images/biovision/icons/dropdown.svg +3 -0
- data/app/assets/images/biovision/icons/edit.svg +22 -0
- data/app/assets/images/biovision/icons/gear.svg +11 -0
- data/app/assets/images/biovision/icons/return.svg +25 -0
- data/app/assets/images/biovision/icons/world.svg +11 -0
- data/app/assets/stylesheets/biovision/admin/components.scss +3 -1
- data/app/assets/stylesheets/biovision/admin/components/users.scss +16 -0
- data/app/assets/stylesheets/biovision/admin/layout.scss +6 -17
- data/app/assets/stylesheets/biovision/biovision.scss +42 -1
- data/app/assets/stylesheets/biovision/components.scss +6 -0
- data/app/assets/stylesheets/biovision/components/breadcrumbs.scss +13 -0
- data/app/assets/stylesheets/biovision/components/buttons.scss +130 -0
- data/app/assets/stylesheets/biovision/components/forms.scss +162 -1
- data/app/assets/stylesheets/biovision/components/lists.scss +6 -7
- data/app/assets/stylesheets/biovision/{biovision → components}/messages.scss +9 -0
- data/app/assets/stylesheets/biovision/components/pagination.scss +34 -0
- data/app/assets/stylesheets/biovision/components/simple_image.scss +112 -0
- data/app/assets/stylesheets/biovision/components/toggleable.scss +71 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +2 -3
- data/app/assets/stylesheets/biovision/themes/default_theme/components/users.scss +2 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/components/users/form_tabs.scss +101 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/components/users/profile.scss +77 -0
- data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +2 -16
- data/app/controllers/admin/components_controller.rb +9 -19
- data/app/controllers/admin/dynamic_blocks_controller.rb +15 -0
- data/app/controllers/admin/dynamic_pages_controller.rb +15 -0
- data/app/controllers/admin/navigation_groups_controller.rb +14 -0
- data/app/controllers/admin/users_controller.rb +70 -0
- data/app/controllers/admin_controller.rb +3 -2
- data/app/controllers/authentication_controller.rb +6 -34
- data/app/controllers/concerns/authentication.rb +12 -12
- data/app/controllers/concerns/crud_entities.rb +132 -0
- data/app/controllers/concerns/entity_priority.rb +10 -0
- data/app/controllers/concerns/toggleable_entity.rb +31 -0
- data/app/controllers/contact_controller.rb +49 -0
- data/app/controllers/fallback_controller.rb +12 -0
- data/app/controllers/index_controller.rb +1 -0
- data/app/controllers/legal_controller.rb +14 -0
- data/app/controllers/my/components_controller.rb +5 -0
- data/app/controllers/my/confirmations_controller.rb +44 -0
- data/app/controllers/my/index_controller.rb +8 -0
- data/app/controllers/my/profiles_controller.rb +31 -16
- data/app/controllers/profile_controller.rb +12 -0
- data/app/controllers/users_controller.rb +61 -0
- data/app/helpers/biovision_helper.rb +171 -0
- data/app/helpers/simple_image_helper.rb +125 -0
- data/app/jobs/application_job.rb +7 -0
- data/app/jobs/send_phone_confirmation_job.rb +16 -0
- data/app/lib/biovision/components/base/component_parameters.rb +44 -0
- data/app/lib/biovision/components/base/component_privileges.rb +65 -0
- data/app/lib/biovision/components/base/component_settings.rb +32 -0
- data/app/lib/biovision/components/base/privilege_handler.rb +79 -0
- data/app/lib/biovision/components/base_component.rb +51 -54
- data/app/lib/biovision/components/contact_component.rb +22 -0
- data/app/lib/biovision/components/content_component.rb +28 -0
- data/app/lib/biovision/components/track_component.rb +3 -0
- data/app/lib/biovision/components/users/authentication.rb +15 -7
- data/app/lib/biovision/components/users/codes.rb +104 -0
- data/app/lib/biovision/components/users/flag_helpers.rb +72 -0
- data/app/lib/biovision/components/users/profile_handler.rb +111 -1
- data/app/lib/biovision/components/users/registration_handler.rb +40 -52
- data/app/lib/biovision/components/users/validation.rb +83 -0
- data/app/lib/biovision/components/users_component.rb +82 -19
- data/app/lib/biovision/notifiers/base_notifier.rb +2 -2
- data/app/lib/biovision/notifiers/contact_notifier.rb +15 -0
- data/app/lib/canonizer.rb +38 -0
- data/app/lib/carrier_wave/image_optim.rb +32 -0
- data/app/mailers/code_sender.rb +29 -0
- data/app/models/agent.rb +4 -0
- data/app/models/biovision_component.rb +22 -2
- data/app/models/browser.rb +1 -1
- data/app/models/code.rb +32 -9
- data/app/models/concerns/has_simple_image.rb +9 -0
- data/app/models/concerns/meta_texts.rb +25 -5
- data/app/models/concerns/tree_structure.rb +72 -0
- data/app/models/contact_method.rb +47 -0
- data/app/models/contact_type.rb +27 -0
- data/app/models/dynamic_block.rb +43 -0
- data/app/models/dynamic_page.rb +71 -0
- data/app/models/feedback_message.rb +59 -0
- data/app/models/feedback_response.rb +50 -0
- data/app/models/group.rb +48 -0
- data/app/models/language.rb +4 -0
- data/app/models/navigation_group.rb +33 -0
- data/app/models/navigation_group_page.rb +23 -0
- data/app/models/role.rb +56 -0
- data/app/models/role_group.rb +13 -0
- data/app/models/simple_image.rb +22 -8
- data/app/models/simple_image_tag.rb +1 -1
- data/app/models/token.rb +4 -4
- data/app/models/user.rb +94 -26
- data/app/models/user_group.rb +20 -0
- data/app/models/user_role.rb +19 -0
- data/app/uploaders/simple_file_uploader.rb +27 -0
- data/app/uploaders/simple_image_uploader.rb +20 -0
- data/app/views/admin/agents/index.html.erb +0 -2
- data/app/views/admin/components/_image.jbuilder +18 -0
- data/app/views/admin/components/_list.html.erb +1 -1
- data/app/views/admin/components/entity/_links.html.erb +1 -1
- data/app/views/admin/components/image.jbuilder +1 -0
- data/app/views/admin/components/images.jbuilder +4 -0
- data/app/views/admin/components/links/_content.html.erb +9 -0
- data/app/views/admin/components/links/_users.html.erb +1 -8
- data/app/views/admin/components/links/extra/_content.html.erb +0 -0
- data/app/views/admin/components/privileges/_links.html.erb +0 -18
- data/app/views/admin/components/settings/_new_parameter.html.erb +4 -2
- data/app/views/admin/components/settings/_parameters.html.erb +8 -2
- data/app/views/admin/components/settings/_settings.html.erb +1 -1
- data/app/views/admin/components/update_privileges.jbuilder +21 -0
- data/app/views/admin/dynamic_blocks/_form.html.erb +16 -0
- data/app/views/admin/dynamic_blocks/_nav_item.html.erb +6 -0
- data/app/views/admin/dynamic_blocks/entity/_in_list.html.erb +10 -0
- data/app/views/admin/dynamic_blocks/index.html.erb +15 -0
- data/app/views/admin/dynamic_blocks/show.html.erb +23 -0
- data/app/views/admin/dynamic_pages/_form.html.erb +21 -0
- data/app/views/admin/dynamic_pages/_nav_item.html.erb +6 -0
- data/app/views/admin/dynamic_pages/entity/_in_list.html.erb +15 -0
- data/app/views/admin/dynamic_pages/index.html.erb +15 -0
- data/app/views/admin/dynamic_pages/show.html.erb +28 -0
- data/app/views/admin/ip_addresses/index.html.erb +0 -2
- data/app/views/admin/navigation_groups/_form.html.erb +15 -0
- data/app/views/admin/navigation_groups/_nav_item.html.erb +6 -0
- data/app/views/admin/navigation_groups/entity/_in_list.html.erb +12 -0
- data/app/views/admin/navigation_groups/index.html.erb +15 -0
- data/app/views/admin/navigation_groups/show.html.erb +20 -0
- data/app/views/admin/unauthorized.html.erb +2 -5
- data/app/views/admin/users/_form.html.erb +81 -0
- data/app/views/admin/users/_nav_item.html.erb +6 -0
- data/app/views/admin/users/entity/_fields.html.erb +53 -0
- data/app/views/admin/users/entity/_in_list.html.erb +38 -0
- data/app/views/admin/users/entity/_profile.html.erb +26 -0
- data/app/views/admin/users/entity/in_list/_additional_data.html.erb +0 -0
- data/app/views/admin/users/index.html.erb +15 -0
- data/app/views/admin/users/show.html.erb +44 -0
- data/app/views/application/forbidden.html.erb +9 -0
- data/app/views/application/forbidden.jbuilder +4 -0
- data/app/views/application/not_found.html.erb +9 -0
- data/app/views/application/not_found.jbuilder +4 -0
- data/app/views/application/unauthorized.html.erb +16 -0
- data/app/views/application/unauthorized.jbuilder +4 -0
- data/app/views/authentication/new.html.erb +2 -8
- data/app/views/components/content/_dynamic_page.html.erb +21 -0
- data/app/views/components/users/_form_tabs.html.erb +31 -0
- data/app/views/components/users/_join_form.html.erb +192 -0
- data/app/views/components/users/_login_form.html.erb +45 -0
- data/app/views/components/users/form/_image.html.erb +17 -0
- data/app/views/components/users/form/_profile_data.html.erb +54 -0
- data/app/views/contact/_form.html.erb +108 -0
- data/app/views/contact/create_feedback_message.js.erb +1 -0
- data/app/views/contact/feedback.html.erb +13 -0
- data/app/views/contact/index.html.erb +16 -0
- data/app/views/fallback/show.html.erb +6 -0
- data/app/views/layouts/admin.html.erb +1 -1
- data/app/views/layouts/admin/_footer.html.erb +1 -1
- data/app/views/layouts/application/header/_authentication.html.erb +1 -1
- data/app/views/legal/privacy.html.erb +5 -0
- data/app/views/legal/tos.html.erb +5 -0
- data/app/views/my/confirmations/show.html.erb +62 -0
- data/app/views/my/index/index.html.erb +33 -0
- data/app/views/my/profiles/_form.html.erb +10 -0
- data/app/views/my/profiles/check.jbuilder +4 -0
- data/app/views/my/profiles/edit.html.erb +14 -0
- data/app/views/my/profiles/form/_basic_parameters.html.erb +9 -0
- data/app/views/my/profiles/form/_sensitive_parameters.html.erb +68 -0
- data/app/views/my/profiles/new.html.erb +6 -8
- data/app/views/my/profiles/show.html.erb +23 -0
- data/app/views/shared/_flash_messages.html.erb +1 -1
- data/app/views/shared/_list_of_errors.html.erb +7 -0
- data/app/views/shared/admin/_breadcrumbs.html.erb +8 -0
- data/app/views/shared/admin/_list.html.erb +4 -4
- data/app/views/shared/admin/_list_with_priority.html.erb +4 -4
- data/app/views/shared/admin/_priority.html.erb +5 -0
- data/app/views/shared/admin/_toggle.html.erb +11 -0
- data/app/views/shared/entity/_formatted_text_field.html.erb +10 -0
- data/app/views/shared/entity/_image.html.erb +31 -0
- data/app/views/shared/entity/_language.html.erb +6 -0
- data/app/views/shared/entity/_linked_entity.html.erb +6 -0
- data/app/views/shared/entity/_meta_texts.html.erb +16 -0
- data/app/views/shared/entity/_metadata.html.erb +18 -0
- data/app/views/shared/entity/_parent.html.erb +6 -0
- data/app/views/shared/entity/_priority.html.erb +4 -0
- data/app/views/shared/entity/_raw_text_field.html.erb +10 -0
- data/app/views/shared/entity/_simple_image.html.erb +10 -0
- data/app/views/shared/entity/_slug.html.erb +6 -0
- data/app/views/shared/entity/_text_field.html.erb +6 -0
- data/app/views/shared/entity/_text_fields.html.erb +9 -0
- data/app/views/shared/entity/_timestamps.html.erb +13 -0
- data/app/views/shared/entity/_tree_caches.html.erb +12 -0
- data/app/views/shared/entity/_uuid.html.erb +4 -0
- data/app/views/shared/entity/edit.html.erb +21 -0
- data/app/views/shared/entity/new.html.erb +16 -0
- data/app/views/shared/forms/_entity_flags.html.erb +15 -0
- data/app/views/shared/forms/_field.html.erb +46 -0
- data/app/views/shared/forms/_fields.html.erb +3 -0
- data/app/views/shared/forms/_language.html.erb +40 -0
- data/app/views/shared/forms/_meta_texts.html.erb +27 -0
- data/app/views/shared/forms/_priority.html.erb +13 -0
- data/app/views/shared/forms/_simple_image.html.erb +39 -0
- data/app/views/shared/forms/_state_container.html.erb +7 -0
- data/app/views/shared/forms/_text_area.html.erb +25 -0
- data/app/views/shared/forms/_text_field.html.erb +24 -0
- data/app/views/shared/forms/_text_fields.html.erb +3 -0
- data/app/views/shared/forms/check.jbuilder +4 -0
- data/app/views/shared/forms/errors.jbuilder +3 -0
- data/app/views/shared/forms/simple_image/_browse.html.erb +14 -0
- data/app/views/shared/forms/simple_image/_load_image.html.erb +38 -0
- data/app/views/shared/my/_list.html.erb +19 -0
- data/app/views/shared/my/_list_with_priority.html.erb +19 -0
- data/app/views/users/_profile.html.erb +30 -0
- data/app/views/users/profile/_data.html.erb +20 -0
- data/app/views/users/show.html.erb +21 -0
- data/config/locales/biovision-ru.yml +58 -0
- data/config/locales/components-ru.yml +30 -2
- data/config/locales/contact-ru.yml +106 -0
- data/config/locales/content-ru.yml +103 -0
- data/config/locales/users-ru.yml +117 -3
- data/config/routes.rb +70 -50
- data/db/migrate/20191228000000_create_biovision_components.rb +4 -5
- data/db/migrate/20200224000000_create_track_component.rb +7 -8
- data/db/migrate/20200224000010_create_users_component.rb +15 -43
- data/db/migrate/20200404000000_create_simple_images.rb +3 -3
- data/db/migrate/20200529000000_create_content_component.rb +74 -0
- data/db/migrate/20210401000000_create_contact_component.rb +95 -0
- data/db/migrate/20210405000000_create_acl.rb +74 -0
- data/lib/biovision/base_methods.rb +18 -10
- data/lib/biovision/engine.rb +8 -13
- data/lib/biovision/version.rb +1 -1
- metadata +186 -20
- data/app/assets/images/biovision/placeholders/user.svg +0 -15
- data/app/helpers/users_helper.rb +0 -11
- data/app/lib/biovision/components/component_settings.rb +0 -30
- data/app/lib/biovision/components/privilege_handler.rb +0 -77
- data/app/lib/biovision/components/users/code_handler.rb +0 -23
- data/app/models/foreign_site.rb +0 -34
- data/app/models/foreign_user.rb +0 -21
- data/app/uploaders/user_image_uploader.rb +0 -58
- data/app/views/admin/components/privileges/_privilege_flag.html.erb +0 -28
- data/app/views/authentication/_form.html.erb +0 -40
- data/app/views/authentication/failed.js.erb +0 -3
- data/app/views/my/profiles/new/_form.html.erb +0 -147
- data/app/views/shared/admin/_toggleable.html.erb +0 -8
@@ -1,3 +1,7 @@
|
|
1
|
+
$form-control-color: hsl(220, 75%, 75%) !default;
|
2
|
+
$form-field-error: #f00 !default;
|
3
|
+
$form-input-bg: #fff !default;
|
4
|
+
|
1
5
|
form {
|
2
6
|
margin: 0;
|
3
7
|
padding: 0;
|
@@ -14,7 +18,7 @@ form {
|
|
14
18
|
}
|
15
19
|
|
16
20
|
.check-result-error {
|
17
|
-
color:
|
21
|
+
color: $form-field-error;
|
18
22
|
|
19
23
|
&::before {
|
20
24
|
content: '\261D';
|
@@ -45,6 +49,24 @@ form {
|
|
45
49
|
.flags {
|
46
50
|
margin: var(--spacer-xs) 0;
|
47
51
|
}
|
52
|
+
|
53
|
+
.errors {
|
54
|
+
color: $form-field-error;
|
55
|
+
padding: var(--spacer-xxs) var(--spacer-xxs) 0 var(--spacer-s);
|
56
|
+
|
57
|
+
li {
|
58
|
+
margin: 0 var(--spacer-xs);
|
59
|
+
|
60
|
+
&:first-of-type {
|
61
|
+
margin-top: var(--spacer-s);
|
62
|
+
}
|
63
|
+
|
64
|
+
&:last-of-type {
|
65
|
+
border-bottom: .1rem solid $form-field-error;
|
66
|
+
padding-bottom: var(--spacer-xs);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
48
70
|
}
|
49
71
|
|
50
72
|
.fields {
|
@@ -68,9 +90,63 @@ form {
|
|
68
90
|
margin: 0;
|
69
91
|
padding: var(--spacer-xxs) 0;
|
70
92
|
}
|
93
|
+
|
94
|
+
.text {
|
95
|
+
background: #f7f7f7;
|
96
|
+
border-radius: .4rem;
|
97
|
+
box-shadow: .2rem .2rem .4rem rgba(0, 0, 0, .25);
|
98
|
+
padding: var(--spacer-xs);
|
99
|
+
|
100
|
+
p:first-of-type {
|
101
|
+
margin-top: 0;
|
102
|
+
}
|
103
|
+
|
104
|
+
p:last-of-type {
|
105
|
+
margin-bottom: 0;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.meta-text {
|
110
|
+
padding-left: var(--spacer-s);
|
111
|
+
|
112
|
+
dfn {
|
113
|
+
font-style: normal;
|
114
|
+
}
|
115
|
+
|
116
|
+
&:not(:last-of-type) {
|
117
|
+
margin-bottom: var(--spacer-xs);
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.preview {
|
122
|
+
a {
|
123
|
+
box-shadow: var(--block-shadow);
|
124
|
+
display: flex;
|
125
|
+
max-width: 48rem;
|
126
|
+
}
|
127
|
+
|
128
|
+
img {
|
129
|
+
height: 100%;
|
130
|
+
object-fit: contain;
|
131
|
+
width: 100%;
|
132
|
+
}
|
133
|
+
|
134
|
+
figcaption {
|
135
|
+
color: var(--text-color-secondary);
|
136
|
+
font-size: var(--font-size-decreased);
|
137
|
+
padding: var(--spacer-xs);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
input:not([type=radio]):not([type=checkbox]):not([size]):not([type=number]):not([type=date]),
|
142
|
+
textarea {
|
143
|
+
width: 100%;
|
144
|
+
}
|
71
145
|
}
|
72
146
|
|
147
|
+
.input-select,
|
73
148
|
.input-text {
|
149
|
+
background-color: #{$form-input-bg};
|
74
150
|
border: .1rem solid var(--input-border);
|
75
151
|
border-radius: var(--spacer-xxs);
|
76
152
|
font-size: var(--font-size-normal);
|
@@ -83,3 +159,88 @@ form {
|
|
83
159
|
outline: none;
|
84
160
|
}
|
85
161
|
}
|
162
|
+
|
163
|
+
.input-select {
|
164
|
+
-moz-appearance: none;
|
165
|
+
-webkit-appearance: none;
|
166
|
+
appearance: none;
|
167
|
+
background: #{$form-input-bg} image_url('biovision/icons/dropdown.svg') no-repeat center right var(--spacer-xs) / 1.1rem auto;
|
168
|
+
padding-right: 3.2rem;
|
169
|
+
}
|
170
|
+
|
171
|
+
.floating-label {
|
172
|
+
display: block;
|
173
|
+
padding: 1.4rem 0 0 0;
|
174
|
+
position: relative;
|
175
|
+
|
176
|
+
span {
|
177
|
+
top: 1.2rem;
|
178
|
+
font-size: 1rem;
|
179
|
+
left: .4rem;
|
180
|
+
line-height: 1;
|
181
|
+
opacity: 0;
|
182
|
+
pointer-events: none;
|
183
|
+
position: absolute;
|
184
|
+
transition: .25s;
|
185
|
+
}
|
186
|
+
|
187
|
+
input:not(:placeholder-shown) + span,
|
188
|
+
textarea:not(:placeholder-shown) + span {
|
189
|
+
opacity: 1;
|
190
|
+
top: .2rem;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
.flag-label {
|
195
|
+
align-items: flex-start;
|
196
|
+
display: flex;
|
197
|
+
|
198
|
+
input {
|
199
|
+
-moz-appearance: none;
|
200
|
+
-webkit-appearance: none;
|
201
|
+
appearance: none;
|
202
|
+
border: .2rem solid $form-control-color;
|
203
|
+
border-radius: .2rem;
|
204
|
+
display: inline-block;
|
205
|
+
height: 1.6rem;
|
206
|
+
margin-right: var(--spacer-xxs);
|
207
|
+
outline: none;
|
208
|
+
width: 1.6rem;
|
209
|
+
|
210
|
+
&[type=radio] {
|
211
|
+
border-radius: 50%;
|
212
|
+
}
|
213
|
+
|
214
|
+
&:focus {
|
215
|
+
box-shadow: .2rem .2rem .2rem var(--input-border-focus);
|
216
|
+
}
|
217
|
+
|
218
|
+
&:checked {
|
219
|
+
background: radial-gradient(#fff, #fff 25%, $form-control-color 25%, $form-control-color);
|
220
|
+
}
|
221
|
+
|
222
|
+
&:disabled {
|
223
|
+
filter: grayscale(1);
|
224
|
+
opacity: .75;
|
225
|
+
|
226
|
+
+ span {
|
227
|
+
cursor: default;
|
228
|
+
opacity: .5;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
span {
|
234
|
+
cursor: pointer;
|
235
|
+
flex: 1;
|
236
|
+
padding-top: .1rem;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
.image-medium {
|
241
|
+
width: 32rem;
|
242
|
+
|
243
|
+
img {
|
244
|
+
width: 100%;
|
245
|
+
}
|
246
|
+
}
|
@@ -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
|
-
|
15
|
+
overflow: hidden;
|
17
16
|
width: 8rem;
|
18
17
|
|
19
18
|
img {
|
20
|
-
|
21
|
-
|
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
|
-
|
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,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
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
$toggleable-active: #34c749 !default;
|
2
|
+
$toggleable-inactive: #fc605c !default;
|
3
|
+
$toggleable-switch: #fdbc40 !default;
|
4
|
+
$toggleable-unknown: #c0c0c0 !default;
|
5
|
+
$toggleable-background: #fff !default;
|
6
|
+
|
7
|
+
.toggleable {
|
8
|
+
font-size: var(--font-size-decreased);
|
9
|
+
margin: .8rem;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Радиус границы в ::before должен быть чуть меньше, чтобы не было щелей,
|
13
|
+
* потому что span фактически толще на две толщины границы
|
14
|
+
*/
|
15
|
+
> span {
|
16
|
+
background-color: $toggleable-background;
|
17
|
+
border: .1rem solid;
|
18
|
+
border-radius: .8rem;
|
19
|
+
cursor: pointer;
|
20
|
+
display: inline-block;
|
21
|
+
line-height: 1.8;
|
22
|
+
margin: .4rem;
|
23
|
+
padding: 0 var(--spacer-s) 0 0;
|
24
|
+
|
25
|
+
&::before {
|
26
|
+
border-radius: .8rem 0 0 .8rem;
|
27
|
+
display: inline-block;
|
28
|
+
line-height: 1.8;
|
29
|
+
margin: 0 .4rem 0 0;
|
30
|
+
text-align: center;
|
31
|
+
width: 2.2rem;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.active {
|
36
|
+
border-color: $toggleable-active;
|
37
|
+
|
38
|
+
&::before {
|
39
|
+
background-color: $toggleable-active;
|
40
|
+
content: '\2611';
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.inactive {
|
45
|
+
border-color: $toggleable-inactive;
|
46
|
+
|
47
|
+
&::before {
|
48
|
+
background-color: $toggleable-inactive;
|
49
|
+
content: '\2610';
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.switch {
|
54
|
+
border-color: $toggleable-switch;
|
55
|
+
cursor: not-allowed;
|
56
|
+
|
57
|
+
&::before {
|
58
|
+
background-color: $toggleable-switch;
|
59
|
+
content: '\231B';
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.unknown {
|
64
|
+
border-color: $toggleable-unknown;
|
65
|
+
|
66
|
+
&::before {
|
67
|
+
background-color: $toggleable-unknown;
|
68
|
+
content: '\26A0';
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|