biovision 0.0.200518.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +214 -0
  4. data/Rakefile +22 -0
  5. data/app/assets/config/biovision_manifest.js +1 -0
  6. data/app/assets/images/biovision/components/carousel/arrow-left.svg +4 -0
  7. data/app/assets/images/biovision/components/carousel/arrow-right.svg +4 -0
  8. data/app/assets/images/biovision/icons/breadcrumb-hover.svg +1 -0
  9. data/app/assets/images/biovision/icons/breadcrumb.svg +1 -0
  10. data/app/assets/images/biovision/icons/components/contact.svg +26 -0
  11. data/app/assets/images/biovision/icons/components/content.svg +20 -0
  12. data/app/assets/images/biovision/icons/components/users.svg +21 -0
  13. data/app/assets/images/biovision/icons/key.svg +16 -0
  14. data/app/assets/images/biovision/icons/log_in.svg +15 -0
  15. data/app/assets/images/biovision/icons/log_out.svg +15 -0
  16. data/app/assets/images/biovision/icons/messages/error.svg +14 -0
  17. data/app/assets/images/biovision/icons/messages/info.svg +8 -0
  18. data/app/assets/images/biovision/icons/messages/success.svg +12 -0
  19. data/app/assets/images/biovision/icons/messages/warning.svg +13 -0
  20. data/app/assets/images/biovision/icons/settings.svg +41 -0
  21. data/app/assets/images/biovision/placeholders/16x9.svg +11 -0
  22. data/app/assets/images/biovision/placeholders/1x1.svg +11 -0
  23. data/app/assets/images/biovision/placeholders/3x2.svg +11 -0
  24. data/app/assets/images/biovision/placeholders/user.svg +15 -0
  25. data/app/assets/stylesheets/biovision/admin.scss +6 -0
  26. data/app/assets/stylesheets/biovision/admin/components.scss +59 -0
  27. data/app/assets/stylesheets/biovision/admin/default.scss +57 -0
  28. data/app/assets/stylesheets/biovision/admin/layout.scss +95 -0
  29. data/app/assets/stylesheets/biovision/admin/vars.scss +56 -0
  30. data/app/assets/stylesheets/biovision/biovision.scss +134 -0
  31. data/app/assets/stylesheets/biovision/biovision/messages.scss +41 -0
  32. data/app/assets/stylesheets/biovision/components/carousel.scss +53 -0
  33. data/app/assets/stylesheets/biovision/components/forms.scss +85 -0
  34. data/app/assets/stylesheets/biovision/components/hamburger.scss +56 -0
  35. data/app/assets/stylesheets/biovision/components/lists.scss +91 -0
  36. data/app/assets/stylesheets/biovision/default.scss +57 -0
  37. data/app/assets/stylesheets/biovision/themes/default_theme.scss +2 -0
  38. data/app/assets/stylesheets/biovision/themes/default_theme/components.scss +3 -0
  39. data/app/assets/stylesheets/biovision/themes/default_theme/layout.scss +44 -0
  40. data/app/assets/stylesheets/biovision/themes/default_theme/layout/footer.scss +0 -0
  41. data/app/assets/stylesheets/biovision/themes/default_theme/layout/header.scss +39 -0
  42. data/app/assets/stylesheets/biovision/vars.scss +53 -0
  43. data/app/controllers/admin/agents_controller.rb +15 -0
  44. data/app/controllers/admin/components_controller.rb +174 -0
  45. data/app/controllers/admin/index_controller.rb +11 -0
  46. data/app/controllers/admin/ip_addresses_controller.rb +15 -0
  47. data/app/controllers/admin_controller.rb +14 -0
  48. data/app/controllers/authentication_controller.rb +79 -0
  49. data/app/controllers/concerns/authentication.rb +45 -0
  50. data/app/controllers/index_controller.rb +8 -0
  51. data/app/controllers/my/confirmations_controller.rb +2 -0
  52. data/app/controllers/my/index_controller.rb +8 -0
  53. data/app/controllers/my/profiles_controller.rb +128 -0
  54. data/app/controllers/my/recoveries_controller.rb +2 -0
  55. data/app/helpers/biovision_components_helper.rb +14 -0
  56. data/app/helpers/users_helper.rb +11 -0
  57. data/app/lib/biovision/components/base_component.rb +177 -0
  58. data/app/lib/biovision/components/component_settings.rb +30 -0
  59. data/app/lib/biovision/components/privilege_handler.rb +77 -0
  60. data/app/lib/biovision/components/track_component.rb +9 -0
  61. data/app/lib/biovision/components/users/authentication.rb +47 -0
  62. data/app/lib/biovision/components/users/code_handler.rb +23 -0
  63. data/app/lib/biovision/components/users/profile_handler.rb +12 -0
  64. data/app/lib/biovision/components/users/registration_handler.rb +99 -0
  65. data/app/lib/biovision/components/users_component.rb +47 -0
  66. data/app/lib/biovision/notifiers/base_notifier.rb +69 -0
  67. data/app/lib/biovision/notifiers/socialization_notifier.rb +31 -0
  68. data/app/lib/biovision/notifiers/users_notifier.rb +15 -0
  69. data/app/models/agent.rb +35 -0
  70. data/app/models/biovision_component.rb +45 -0
  71. data/app/models/biovision_component_user.rb +21 -0
  72. data/app/models/browser.rb +34 -0
  73. data/app/models/code.rb +71 -0
  74. data/app/models/concerns/checkable.rb +22 -0
  75. data/app/models/concerns/flat_priority.rb +50 -0
  76. data/app/models/concerns/has_language.rb +10 -0
  77. data/app/models/concerns/has_owner.rb +22 -0
  78. data/app/models/concerns/has_simple_image.rb +18 -0
  79. data/app/models/concerns/has_track.rb +10 -0
  80. data/app/models/concerns/has_uuid.rb +12 -0
  81. data/app/models/concerns/meta_texts.rb +16 -0
  82. data/app/models/concerns/nested_priority.rb +58 -0
  83. data/app/models/concerns/required_unique_name.rb +16 -0
  84. data/app/models/concerns/required_unique_slug.rb +15 -0
  85. data/app/models/concerns/toggleable.rb +33 -0
  86. data/app/models/foreign_site.rb +34 -0
  87. data/app/models/foreign_user.rb +21 -0
  88. data/app/models/ip_address.rb +31 -0
  89. data/app/models/language.rb +31 -0
  90. data/app/models/login_attempt.rb +35 -0
  91. data/app/models/metric.rb +48 -0
  92. data/app/models/metric_value.rb +11 -0
  93. data/app/models/notification.rb +37 -0
  94. data/app/models/simple_image.rb +47 -0
  95. data/app/models/simple_image_tag.rb +30 -0
  96. data/app/models/simple_image_tag_image.rb +13 -0
  97. data/app/models/token.rb +96 -0
  98. data/app/models/user.rb +136 -0
  99. data/app/models/user_language.rb +15 -0
  100. data/app/uploaders/simple_image_uploader.rb +96 -0
  101. data/app/uploaders/user_image_uploader.rb +58 -0
  102. data/app/views/admin/agents/_nav_item.html.erb +6 -0
  103. data/app/views/admin/agents/entity/_in_list.html.erb +6 -0
  104. data/app/views/admin/agents/index.html.erb +13 -0
  105. data/app/views/admin/components/_list.html.erb +12 -0
  106. data/app/views/admin/components/entity/_links.html.erb +35 -0
  107. data/app/views/admin/components/entity/_section.html.erb +12 -0
  108. data/app/views/admin/components/index.html.erb +12 -0
  109. data/app/views/admin/components/links/_track.html.erb +2 -0
  110. data/app/views/admin/components/links/_users.html.erb +11 -0
  111. data/app/views/admin/components/privileges.html.erb +20 -0
  112. data/app/views/admin/components/privileges/_component_user.html.erb +17 -0
  113. data/app/views/admin/components/privileges/_links.html.erb +35 -0
  114. data/app/views/admin/components/privileges/_privilege_flag.html.erb +28 -0
  115. data/app/views/admin/components/privileges/_users.html.erb +23 -0
  116. data/app/views/admin/components/settings.html.erb +39 -0
  117. data/app/views/admin/components/settings/_new_parameter.html.erb +46 -0
  118. data/app/views/admin/components/settings/_parameters.html.erb +20 -0
  119. data/app/views/admin/components/settings/_setting.html.erb +18 -0
  120. data/app/views/admin/components/settings/_settings.html.erb +31 -0
  121. data/app/views/admin/components/show.html.erb +14 -0
  122. data/app/views/admin/index/index.html.erb +14 -0
  123. data/app/views/admin/ip_addresses/_nav_item.html.erb +6 -0
  124. data/app/views/admin/ip_addresses/entity/_in_list.html.erb +6 -0
  125. data/app/views/admin/ip_addresses/index.html.erb +13 -0
  126. data/app/views/admin/unauthorized.html.erb +19 -0
  127. data/app/views/authentication/_form.html.erb +40 -0
  128. data/app/views/authentication/failed.js.erb +3 -0
  129. data/app/views/authentication/new.html.erb +21 -0
  130. data/app/views/index/index.html.erb +0 -0
  131. data/app/views/layouts/admin.html.erb +23 -0
  132. data/app/views/layouts/admin/_breadcrumbs.html.erb +8 -0
  133. data/app/views/layouts/admin/_footer.html.erb +10 -0
  134. data/app/views/layouts/admin/_header.html.erb +18 -0
  135. data/app/views/layouts/admin/header/_logo.html.erb +3 -0
  136. data/app/views/layouts/application/_footer.html.erb +8 -0
  137. data/app/views/layouts/application/_header.html.erb +9 -0
  138. data/app/views/layouts/application/header/_authentication.html.erb +13 -0
  139. data/app/views/my/index/index.html.erb +0 -0
  140. data/app/views/my/profiles/closed.html.erb +12 -0
  141. data/app/views/my/profiles/new.html.erb +17 -0
  142. data/app/views/my/profiles/new/_form.html.erb +147 -0
  143. data/app/views/shared/_breadcrumbs.html.erb +8 -0
  144. data/app/views/shared/_cookie_notification.html.erb +4 -0
  145. data/app/views/shared/_flash_messages.html.erb +7 -0
  146. data/app/views/shared/_meta_texts.html.erb +31 -0
  147. data/app/views/shared/_nothing_found.html.erb +1 -0
  148. data/app/views/shared/_pagination.jbuilder +15 -0
  149. data/app/views/shared/admin/_list.html.erb +19 -0
  150. data/app/views/shared/admin/_list_with_priority.html.erb +19 -0
  151. data/app/views/shared/admin/_toggleable.html.erb +8 -0
  152. data/app/views/shared/entity/_list_of_errors.html.erb +7 -0
  153. data/app/views/shared/forms/errors.js.erb +5 -0
  154. data/config/initializers/carrierwave.rb +27 -0
  155. data/config/initializers/pluralization.rb +2 -0
  156. data/config/locales/biovision-ru.yml +90 -0
  157. data/config/locales/components-ru.yml +81 -0
  158. data/config/locales/track-ru.yml +40 -0
  159. data/config/locales/users-ru.yml +130 -0
  160. data/config/routes.rb +75 -0
  161. data/db/migrate/20191228000000_create_biovision_components.rb +72 -0
  162. data/db/migrate/20200224000000_create_track_component.rb +59 -0
  163. data/db/migrate/20200224000010_create_users_component.rb +189 -0
  164. data/db/migrate/20200404000000_create_simple_images.rb +54 -0
  165. data/lib/biovision.rb +9 -0
  166. data/lib/biovision/base_methods.rb +167 -0
  167. data/lib/biovision/engine.rb +40 -0
  168. data/lib/biovision/version.rb +5 -0
  169. data/lib/tasks/biovision_tasks.rake +4 -0
  170. metadata +392 -0
@@ -0,0 +1,41 @@
1
+ $messages-bg-info: hsl(220, 75%, 50%) !default;
2
+ $messages-border-info: hsl(220, 75%, 25%) !default;
3
+ $messages-bg-error: hsl(0, 75%, 50%) !default;
4
+ $messages-border-error: hsl(0, 75%, 25%) !default;
5
+ $messages-bg-warning: hsl(60, 75%, 75%) !default;
6
+ $messages-border-warning: hsl(60, 75%, 25%) !default;
7
+ $messages-bg-success: hsl(120, 35%, 50%) !default;
8
+ $messages-border-success: hsl(120, 75%, 25%) !default;
9
+
10
+ .message-box {
11
+ background: $messages-bg-info image_url('biovision/icons/messages/info.svg') no-repeat center left var(--spacer-s) / 3.2rem auto;
12
+ border: .1rem solid $messages-border-info;
13
+ border-radius: var(--spacer-xxs);
14
+ box-shadow: var(--block-shadow);
15
+ color: var(--text-color-inverted-primary);
16
+ margin: var(--spacer-s) auto;
17
+ padding: var(--spacer-s) var(--spacer-s) var(--spacer-s) calc(3.2rem + var(--spacer-s) * 2);
18
+
19
+ &:empty {
20
+ display: none;
21
+ }
22
+
23
+ &.error {
24
+ background-color: $messages-bg-error;
25
+ background-image: image_url('biovision/icons/messages/error.svg');
26
+ border-color: $messages-border-error;
27
+ }
28
+
29
+ &.warning {
30
+ background-color: $messages-bg-warning;
31
+ background-image: image_url('biovision/icons/messages/warning.svg');
32
+ border-color: $messages-border-warning;
33
+ color: var(--text-color-primary);
34
+ }
35
+
36
+ &.success {
37
+ background-color: $messages-bg-success;
38
+ background-image: image_url('biovision/icons/messages/success.svg');
39
+ border-color: $messages-border-success;
40
+ }
41
+ }
@@ -0,0 +1,53 @@
1
+ .js-biovision-carousel {
2
+ position: relative;
3
+
4
+ > button {
5
+ -webkit-backdrop-filter: blur(.5rem) grayscale(.75);
6
+ backdrop-filter: blur(.5rem) grayscale(.75);
7
+ background: rgba(255, 255, 255, .5) no-repeat center / auto 1.6rem;
8
+ border: none;
9
+ border-radius: 50%;
10
+ box-shadow: 0 0 .4rem rgba(0, 0, 0, .25);
11
+ cursor: pointer;
12
+ display: inline-block;
13
+ height: 3.2rem;
14
+ position: absolute;
15
+ top: 50%;
16
+ transform: translate(0, -50%);
17
+ transition: .25s;
18
+ width: 3.2rem;
19
+ z-index: 4;
20
+
21
+ &:active,
22
+ &:focus,
23
+ &:hover {
24
+ background-color: rgba(255, 255, 255, .75);
25
+ box-shadow: 0 0 .4rem rgba(0, 0, 0, .75);
26
+ }
27
+ }
28
+
29
+ .prev {
30
+ background-image: image_url('biovision/components/carousel/arrow-left.svg');
31
+ left: var(--spacer-xxs);
32
+ }
33
+
34
+ .next {
35
+ background-image: image_url('biovision/components/carousel/arrow-right.svg');
36
+ right: var(--spacer-xxs);
37
+ }
38
+ }
39
+
40
+ .carousel-container {
41
+ display: flex;
42
+ list-style: none;
43
+ margin: 0;
44
+ overflow: hidden;
45
+ padding: 0;
46
+ }
47
+
48
+ .carousel-item {
49
+ flex: none;
50
+ margin: 0;
51
+ padding: 0;
52
+ transition: .25s;
53
+ }
@@ -0,0 +1,85 @@
1
+ form {
2
+ margin: 0;
3
+ padding: 0;
4
+
5
+ .guideline {
6
+ color: var(--text-color-secondary);
7
+ font-size: var(--font-size-decreased);
8
+ margin: 0;
9
+
10
+ &::before {
11
+ content: '\261E';
12
+ margin-right: var(--spacer-xxs);
13
+ }
14
+ }
15
+
16
+ .check-result-error {
17
+ color: #f00;
18
+
19
+ &::before {
20
+ content: '\261D';
21
+ margin-right: var(--spacer-xxs);
22
+ }
23
+
24
+ &:empty {
25
+ display: none;
26
+ }
27
+ }
28
+
29
+ ul {
30
+ list-style: none;
31
+ margin: 0 auto;
32
+ padding: 0;
33
+ }
34
+
35
+ li {
36
+ margin: 0;
37
+ padding: 0;
38
+ position: relative;
39
+ }
40
+
41
+ input {
42
+ font-size: inherit;
43
+ }
44
+
45
+ .flags {
46
+ margin: var(--spacer-xs) 0;
47
+ }
48
+ }
49
+
50
+ .fields {
51
+ margin: 0;
52
+ padding: 0;
53
+
54
+ > div {
55
+ margin: 0 0 var(--spacer-xs);
56
+ padding: var(--spacer-xs);
57
+
58
+ &:not(:last-of-type) {
59
+ border-bottom: var(--border-secondary);
60
+ }
61
+ }
62
+
63
+ dt {
64
+ font: 500 var(--font-size-increased) var(--font-family-main);
65
+ }
66
+
67
+ dd {
68
+ margin: 0;
69
+ padding: var(--spacer-xxs) 0;
70
+ }
71
+ }
72
+
73
+ .input-text {
74
+ border: .1rem solid var(--input-border);
75
+ border-radius: var(--spacer-xxs);
76
+ font-size: var(--font-size-normal);
77
+ margin: 0;
78
+ padding: var(--spacer-xxs) var(--spacer-xs);
79
+
80
+ &:focus {
81
+ border-color: var(--input-border-focus);
82
+ box-shadow: .1rem .1rem .2rem var(--input-border-focus);
83
+ outline: none;
84
+ }
85
+ }
@@ -0,0 +1,56 @@
1
+ $hamburger-color: #000 !default;
2
+
3
+ .morphing-hamburger {
4
+ align-items: center;
5
+ cursor: pointer;
6
+ display: flex;
7
+ flex-direction: column;
8
+ height: 3.2rem;
9
+ padding: .4rem;
10
+ width: 3.2rem;
11
+
12
+ span {
13
+ background: $hamburger-color;
14
+ border-radius: .2rem;
15
+ display: block;
16
+ height: .4rem;
17
+ margin: 0 auto;
18
+ transition: .5s;
19
+ transform-origin: center;
20
+ width: 2.4rem;
21
+ }
22
+
23
+ .b {
24
+ transform: translate(0, .6rem);
25
+ }
26
+ }
27
+
28
+ .hamburger-morpher {
29
+ &:not(:checked) {
30
+ ~ .morphing-hamburger {
31
+ .a {
32
+ transform: translate(0, .2rem);
33
+ }
34
+
35
+ .c {
36
+ transform: translate(0, 1rem);
37
+ }
38
+ }
39
+ }
40
+
41
+ &:checked {
42
+ ~ .morphing-hamburger {
43
+ .a {
44
+ transform: translate(0, 1rem) rotate(-45deg);
45
+ }
46
+
47
+ .b {
48
+ width: .2rem;
49
+ }
50
+
51
+ .c {
52
+ transform: translate(0, .2rem) rotate(45deg);
53
+ }
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,91 @@
1
+
2
+ .list-of-entities {
3
+ margin: var(--spacer-s) 0;
4
+ padding: 0;
5
+
6
+ .truncate {
7
+ overflow: hidden;
8
+ text-overflow: ellipsis;
9
+ white-space: nowrap;
10
+ width: 100%;
11
+ }
12
+
13
+ .image {
14
+ flex: none;
15
+ margin: 0 var(--spacer-xs) 0 0;
16
+ text-align: center;
17
+ width: 8rem;
18
+
19
+ img {
20
+ max-height: 8rem;
21
+ max-width: 8rem;
22
+ }
23
+
24
+ & + .data {
25
+ width: calc(100% - 8.8rem);
26
+ }
27
+ }
28
+
29
+ > li {
30
+ align-items: flex-start;
31
+ background: var(--row-background-odd);
32
+ display: flex;
33
+ flex-wrap: wrap;
34
+ list-style: none;
35
+ margin: 0;
36
+ padding: var(--spacer-xs);
37
+
38
+ &:nth-of-type(even) {
39
+ background: var(--row-background-even);
40
+ }
41
+
42
+
43
+ .data {
44
+ width: 100%;
45
+ position: relative;
46
+
47
+ .info {
48
+ font-size: var(--font-size-decreased);
49
+ }
50
+
51
+ .secondary {
52
+ color: var(--text-color-secondary);
53
+ }
54
+
55
+
56
+ .compact {
57
+ align-items: center;
58
+ display: flex;
59
+ flex-wrap: wrap;
60
+
61
+ .toggleable,
62
+ > span {
63
+ margin: 0 var(--spacer-xs);
64
+ }
65
+ }
66
+
67
+ .children {
68
+ border-left: .1rem dotted;
69
+ margin-left: var(--spacer-s);
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ ul.list-of-entities {
76
+ ul.actions {
77
+ > li.priority-changer {
78
+ display: none;
79
+ }
80
+ }
81
+ }
82
+
83
+ ol.list-of-entities {
84
+ > li[data-number]::before {
85
+ content: attr(data-number) ":";
86
+ display: inline-block;
87
+ margin: 0 var(--spacer-xs) 0 0;
88
+ text-align: right;
89
+ width: 2.4rem;
90
+ }
91
+ }
@@ -0,0 +1,57 @@
1
+ $font-family-main: "Roboto", sans-serif !default;
2
+ $font-family-heading: $font-family-main !default;
3
+
4
+ $font-size-xxxl: 5.6rem !default;
5
+ $font-size-xxl: 4.5rem !default;
6
+ $font-size-xl: 3.2rem !default;
7
+ $font-size-large: 2.4rem !default;
8
+ $font-size-increased: 1.8rem !default;
9
+ $font-size-normal: 1.6rem !default;
10
+ $font-size-decreased: 1.3rem !default;
11
+ $font-size-small: 1.1rem !default;
12
+ $font-size-xs: 1rem !default;
13
+
14
+ $spacer-s: 1.6rem !default;
15
+ $spacer-xxxs: .2rem !default;
16
+ $spacer-xxs: #{$spacer-s / 4} !default;
17
+ $spacer-xs: #{$spacer-s / 2} !default;
18
+ $spacer-m: #{$spacer-s * 2} !default;
19
+ $spacer-l: #{$spacer-s * 3} !default;
20
+ $spacer-xl: #{$spacer-s * 4} !default;
21
+ $spacer-xxl: #{$spacer-s * 6} !default;
22
+
23
+ $content-width: 110rem !default;
24
+ $content-width-min: 32rem !default;
25
+
26
+ $row_background_even: #f0f0f0 !default;
27
+ $row_background_odd: #fafafa !default;
28
+
29
+ $text-color-heading: #000 !default;
30
+ $text-color-primary: rgb(28, 28, 28) !default;
31
+ $text-color-secondary: #777 !default;
32
+
33
+ $text-color-inverted-primary: #fff !default;
34
+ $text-color-inverted-secondary: #ccc !default;
35
+ $text-color-inverted-heading: #eee !default;
36
+
37
+ $block-shadow: .2rem .2rem .4rem .2rem rgba(0, 0, 0, .125) !default;
38
+
39
+ $border-color-primary: rgb(192, 192, 192) !default;
40
+ $border-color-secondary: rgb(230, 230, 230) !default;
41
+ $border-primary: .1rem solid $border-color-primary !default;
42
+ $border-secondary: .1rem solid $border-color-secondary !default;
43
+
44
+ $background-body: #f4f4f4 linear-gradient(to top, #f4f4f4, #dfdedc) no-repeat center / cover !default;
45
+ $background-header: #fff !default;
46
+ $background-main: #fff !default;
47
+ $background-footer: #fff !default;
48
+
49
+ $link-color: rgb(20, 127, 255) !default;
50
+ $link-color-visited: rgb(20, 77, 250) !default;
51
+ $link-color-active: rgb(255, 77, 20) !default;
52
+ $link-color-hover: rgb(255, 77, 20) !default;
53
+
54
+ $input-border: hsl(0, 0%, 75%) !default;
55
+ $input-border-focus: hsl(0, 0%, 50%) !default;
56
+ $input-border-invalid: hsl(0, 75%, 50%) !default;
57
+ $input-border-invalid-focus: hsl(0, 50%, 50%) !default;
@@ -0,0 +1,2 @@
1
+ @import "biovision/vars";
2
+ @import "biovision/themes/default_theme/layout";
@@ -0,0 +1,3 @@
1
+ @import "biovision/components/forms";
2
+ @import "biovision/components/hamburger";
3
+ @import "biovision/components/lists";
@@ -0,0 +1,44 @@
1
+ @import "biovision/themes/default_theme/components";
2
+ @import "biovision/themes/default_theme/layout/header";
3
+
4
+ //* { outline: solid pink 1px }
5
+
6
+ html {
7
+ height: 100%;
8
+ }
9
+
10
+ body {
11
+ display: flex;
12
+ flex-direction: column;
13
+ height: 100%;
14
+ }
15
+
16
+ #main {
17
+ flex: 1;
18
+ }
19
+
20
+ .breadcrumbs {
21
+ a {
22
+ background: image_url('biovision/icons/breadcrumb.svg') no-repeat bottom .1rem right / .6rem 1.2rem;
23
+ padding-right: 1rem;
24
+ transition: background .25s;
25
+
26
+ &:active,
27
+ &:focus,
28
+ &:hover {
29
+ background-image: image_url('biovision/icons/breadcrumb-hover.svg');
30
+ }
31
+ }
32
+ }
33
+
34
+ .content-wrapper {
35
+ padding: var(--spacer-xs);
36
+ }
37
+
38
+ #cookie-info {
39
+ bottom: 0;
40
+ left: 0;
41
+ position: fixed;
42
+ width: 100%;
43
+ z-index: 5;
44
+ }
@@ -0,0 +1,39 @@
1
+ .main-header {
2
+ .content-wrapper {
3
+ align-items: center;
4
+ display: flex;
5
+ }
6
+
7
+ .logo {
8
+ a {
9
+ align-items: center;
10
+ display: flex;
11
+ height: 5rem;
12
+ width: 5rem;
13
+ }
14
+
15
+ img {
16
+ height: 100%;
17
+ object-fit: contain;
18
+ width: 100%;
19
+ }
20
+ }
21
+ }
22
+
23
+ .header-authentication {
24
+ align-items: center;
25
+ display: flex;
26
+ margin: 0 0 0 auto;
27
+
28
+ .avatar {
29
+ display: inline-block;
30
+ height: 2.4rem;
31
+ width: 2.4rem;
32
+
33
+ img {
34
+ height: 100%;
35
+ object-fit: cover;
36
+ width: 100%;
37
+ }
38
+ }
39
+ }