@loftyshaky/shared-app 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/_locales/en/messages.json +95 -2
  2. package/_locales/ru/messages.json +77 -2
  3. package/announcement.js +1 -1
  4. package/app.js +1 -1
  5. package/chunk-main-130f654b.js +9 -0
  6. package/chunk-main-35e603b6.js +1 -0
  7. package/{chunk-main-6b1a6024.js → chunk-main-aca0d1f6.js} +1 -1
  8. package/{chunk-pickr.min-ee5e2c4f.js → chunk-pickr.min-81c0b025.js} +1 -1
  9. package/ext.js +1 -1
  10. package/index.d.ts +1 -1
  11. package/index.js +1 -1
  12. package/inputs.js +1 -1
  13. package/js/env.js +11 -3
  14. package/js/locales.js +23 -8
  15. package/js/webpack.config.js +9 -0
  16. package/package.json +2 -2
  17. package/scss/settings/section_btns.scss +52 -52
  18. package/scss/settings/sections.scss +22 -0
  19. package/scss/settings/transitions.scss +2 -12
  20. package/scss/shared/btns.scss +69 -16
  21. package/scss/shared/checkboxes.scss +38 -38
  22. package/scss/shared/close_btn.scss +18 -0
  23. package/scss/shared/color_pickers.scss +93 -93
  24. package/scss/shared/colors.scss +90 -84
  25. package/scss/shared/embed/error.scss +43 -26
  26. package/scss/shared/focus.scss +15 -9
  27. package/scss/shared/functions.scss +5 -0
  28. package/scss/shared/help.scss +3 -5
  29. package/scss/shared/index.scss +5 -0
  30. package/scss/shared/input_btns.scss +12 -11
  31. package/scss/shared/input_error.scss +3 -0
  32. package/scss/shared/inputs.scss +87 -70
  33. package/scss/shared/inset_border.scss +0 -4
  34. package/scss/shared/link_btns.scss +8 -0
  35. package/scss/shared/links.scss +12 -0
  36. package/scss/shared/main.scss +3 -0
  37. package/scss/shared/mixins.scss +50 -0
  38. package/scss/shared/mods.scss +11 -3
  39. package/scss/shared/offers.scss +37 -0
  40. package/scss/shared/scrollbar.scss +35 -35
  41. package/scss/shared/themes/colors/aqua.scss +39 -0
  42. package/scss/shared/themes/colors/dark.scss +47 -12
  43. package/scss/shared/themes/colors/lavender.scss +39 -0
  44. package/scss/shared/themes/colors/light.scss +47 -12
  45. package/scss/shared/themes/colors/very_dark.scss +47 -12
  46. package/scss/shared/themes/general/aqua_theme.scss +9 -0
  47. package/scss/shared/themes/general/dark_theme.scss +3 -1
  48. package/scss/shared/themes/general/lavender_theme.scss +9 -0
  49. package/scss/shared/themes/general/light_theme.scss +3 -1
  50. package/scss/shared/themes/general/template.scss +112 -70
  51. package/scss/shared/themes/general/template_focus.scss +20 -8
  52. package/scss/shared/themes/general/very_dark_theme.scss +3 -1
  53. package/scss/shared/transitions.scss +24 -3
  54. package/scss/shared/upload_box.scss +81 -67
  55. package/scss/shared/vars.scss +9 -2
  56. package/settings.d.ts +1 -1
  57. package/settings.js +1 -1
  58. package/ts/error_modules/error/components/index.d.ts +2 -0
  59. package/ts/error_modules/error/components/keep_visible_msg.d.ts +2 -0
  60. package/ts/error_modules/error/components/progress.d.ts +2 -0
  61. package/ts/error_modules/error/data/index.d.ts +1 -0
  62. package/ts/error_modules/error/data/main.d.ts +2 -1
  63. package/ts/error_modules/error/data/msg.d.ts +0 -2
  64. package/ts/error_modules/error/data/progress.d.ts +17 -0
  65. package/ts/error_modules/error/data/state.d.ts +3 -2
  66. package/ts/error_modules/error/interfaces/index.d.ts +2 -0
  67. package/ts/error_modules/error/interfaces/notification_type.d.ts +1 -0
  68. package/ts/error_modules/error/interfaces/observable_keys.d.ts +1 -1
  69. package/ts/error_modules/error/interfaces/show_error.d.ts +7 -2
  70. package/ts/error_modules/error/interfaces/show_unable_to_access_settings_error.d.ts +5 -0
  71. package/ts/error_modules/error/scripts/flash.d.ts +11 -0
  72. package/ts/error_modules/error/scripts/globals.d.ts +3 -0
  73. package/ts/error_modules/error/scripts/index.d.ts +2 -0
  74. package/ts/error_modules/error/scripts/notification.d.ts +8 -0
  75. package/ts/error_modules/init.d.ts +1 -0
  76. package/ts/error_modules/internal.d.ts +1 -0
  77. package/ts/inputs/components/form.d.ts +3 -0
  78. package/ts/inputs/components/index.d.ts +4 -0
  79. package/ts/inputs/components/input_error.d.ts +3 -0
  80. package/ts/inputs/components/label_in_input_item.d.ts +3 -0
  81. package/ts/inputs/components/link_icon_btn.d.ts +3 -0
  82. package/ts/inputs/components/prop_types/form.d.ts +5 -0
  83. package/ts/inputs/components/prop_types/index.d.ts +4 -0
  84. package/ts/inputs/components/prop_types/input_error.d.ts +4 -0
  85. package/ts/inputs/components/prop_types/label.d.ts +2 -2
  86. package/ts/inputs/components/prop_types/label_in_input_item.d.ts +4 -0
  87. package/ts/inputs/components/prop_types/link_icon_btn.d.ts +5 -0
  88. package/ts/inputs/components/prop_types/range.d.ts +2 -0
  89. package/ts/inputs/components/prop_types/section_btn.d.ts +1 -0
  90. package/ts/inputs/components/prop_types/section_content.d.ts +2 -1
  91. package/ts/inputs/components/prop_types/select.d.ts +2 -0
  92. package/ts/inputs/components/prop_types/text.d.ts +2 -0
  93. package/ts/inputs/components/prop_types/textarea.d.ts +2 -0
  94. package/ts/inputs/components/prop_types/upload_box.d.ts +1 -0
  95. package/ts/inputs/data/index.d.ts +2 -1
  96. package/ts/inputs/data/input_error.d.ts +12 -0
  97. package/ts/inputs/data/input_width.d.ts +5 -1
  98. package/ts/inputs/data/{label.d.ts → labelIn_in_putI_iem.d.ts} +2 -2
  99. package/ts/inputs/data/upload_box.d.ts +4 -0
  100. package/ts/inputs/data/val.d.ts +10 -5
  101. package/ts/inputs/interfaces/btn_option.d.ts +9 -0
  102. package/ts/inputs/interfaces/index.d.ts +1 -0
  103. package/ts/inputs/interfaces/input.d.ts +1 -1
  104. package/ts/inputs/obj/btn.d.ts +1 -0
  105. package/ts/inputs/obj/file.d.ts +1 -0
  106. package/ts/inputs/obj/form.d.ts +7 -0
  107. package/ts/inputs/obj/icon_btn.d.ts +2 -1
  108. package/ts/inputs/obj/index.d.ts +2 -0
  109. package/ts/inputs/obj/input_base.d.ts +11 -3
  110. package/ts/inputs/obj/label.d.ts +5 -0
  111. package/ts/inputs/obj/link.d.ts +4 -0
  112. package/ts/inputs/obj/link_btn.d.ts +2 -1
  113. package/ts/inputs/obj/section.d.ts +14 -0
  114. package/ts/inputs/obj/text.d.ts +2 -1
  115. package/ts/inputs/obj/upload_box.d.ts +4 -0
  116. package/ts/inputs/scripts/resolve.d.ts +3 -1
  117. package/ts/settings/components/prop_types/body.d.ts +1 -0
  118. package/ts/settings/data/back_up.d.ts +2 -1
  119. package/ts/settings/data/sections.d.ts +7 -1
  120. package/ts/settings/developer_mode/data/main.d.ts +13 -0
  121. package/ts/settings/internal.d.ts +1 -2
  122. package/ts/shared/app.d.ts +10 -3
  123. package/ts/shared/ext.d.ts +3 -0
  124. package/ts/shared/internal.d.ts +10 -0
  125. package/ts/shared/offers/components/body.d.ts +3 -0
  126. package/ts/shared/offers/components/counter.d.ts +2 -0
  127. package/ts/shared/offers/components/index.d.ts +6 -0
  128. package/ts/shared/offers/components/next_offer_btn.d.ts +2 -0
  129. package/ts/shared/offers/components/offer.d.ts +3 -0
  130. package/ts/shared/offers/components/previous_offer_btn.d.ts +2 -0
  131. package/ts/shared/offers/components/prop_types/body.d.ts +5 -0
  132. package/ts/shared/offers/components/prop_types/index.d.ts +2 -0
  133. package/ts/shared/offers/components/prop_types/offer.d.ts +4 -0
  134. package/ts/shared/offers/components/top_bar.d.ts +2 -0
  135. package/ts/shared/offers/data/index.d.ts +1 -0
  136. package/ts/shared/offers/data/main.d.ts +22 -0
  137. package/ts/shared/offers/interfaces/index.d.ts +1 -0
  138. package/ts/shared/offers/interfaces/offer_banner_type.d.ts +1 -0
  139. package/ts/shared/offers/obj/index.d.ts +1 -0
  140. package/ts/shared/offers/obj/offer.d.ts +10 -0
  141. package/ts/shared/offers/scripts/index.d.ts +1 -0
  142. package/ts/shared/offers/scripts/main.d.ts +8 -0
  143. package/ts/shared/schema/data/index.d.ts +1 -0
  144. package/ts/{settings → shared}/schema/data/main.d.ts +4 -2
  145. package/ts/shared/service_worker/scripts/index.d.ts +1 -0
  146. package/ts/shared/service_worker/scripts/main.d.ts +9 -0
  147. package/ts/shared/settings/data/index.d.ts +1 -0
  148. package/ts/shared/settings/data/main.d.ts +15 -0
  149. package/ts/shared/svg.d.ts +2 -0
  150. package/ts/shared/t.d.ts +2 -0
  151. package/ts/shared/vars.d.ts +1 -0
  152. package/ts/shared/x.d.ts +9 -0
  153. package/chunk-main-303525a1.js +0 -1
  154. package/chunk-main-3865bde3.js +0 -9
  155. /package/ts/settings/{schema → developer_mode}/data/index.d.ts +0 -0
  156. /package/ts/{settings → shared}/schema/obj/index.d.ts +0 -0
  157. /package/ts/{settings → shared}/schema/obj/transform_item.d.ts +0 -0
@@ -1,5 +1,5 @@
1
- .input_item,
2
- .input_w,
1
+ .section,
2
+ .section_inner,
3
3
  .help, {
4
4
  transition: var(--transition);
5
5
  transition-property: opacity;
@@ -9,13 +9,3 @@
9
9
  transition: var(--transition);
10
10
  transition-property: background-color;
11
11
  }
12
-
13
- .link,
14
- .link_btn {
15
- transition: var(--transition);
16
- transition-property: color;
17
- }
18
-
19
- .link:active {
20
- transition: none;
21
- }
@@ -3,37 +3,90 @@ $icon_btn_size: 20px;
3
3
  .btn {
4
4
  @include btn;
5
5
 
6
+ position: relative;
7
+
8
+ .shadow {
9
+ @include full_spread;
10
+
11
+ position: absolute;
12
+ }
13
+
14
+ svg {
15
+ display: block;
16
+ }
17
+ }
18
+
19
+ .btn.icon_btn {
6
20
  border-radius: 0;
7
21
  position: relative;
8
22
  vertical-align: bottom;
23
+ background-color: transparent;
9
24
 
10
- &.text {
11
- @include btn;
12
- @include border_transparent;
13
- @include outline_solid;
25
+ &:not(:first-child) {
26
+ margin-left: $gap !important;
27
+ }
14
28
 
15
- display: block;
16
- height: $input_height + ($border_width * 2);
17
- padding: 0 $input_inner_padding 0 $input_inner_padding;
18
- outline-offset: -1px;
29
+ svg {
30
+ width: $icon_btn_size;
31
+ height: $icon_btn_size;
32
+ }
33
+ }
19
34
 
20
- &:not(:first-child) {
21
- margin-top: $gap;
22
- }
35
+ .btn.text {
36
+ @include border_transparent;
37
+ @include outline_solid;
23
38
 
24
- &::before {
25
- display: none;
26
- }
39
+ border-radius: 0;
40
+ height: $input_height;
41
+ padding: 0 $input_inner_padding 0 $input_inner_padding;
42
+ display: table;
43
+ box-sizing: border-box;
44
+
45
+ &:not(:first-child) {
46
+ margin-top: $gap;
27
47
  }
28
48
 
29
49
  &.color_ok_btn {
30
- margin-left: auto;
50
+ margin-left: auto !important;
31
51
  }
32
52
 
33
- &.icon {
53
+ &.icon_btn {
34
54
  svg {
35
55
  width: $icon_btn_size;
36
56
  height: $icon_btn_size;
37
57
  }
38
58
  }
39
59
  }
60
+
61
+ .btn_options {
62
+ @include border;
63
+
64
+ backdrop-filter: $glass_blur;
65
+ box-shadow: $black_shadow;
66
+
67
+ .btn_option {
68
+ @include btn;
69
+
70
+ display: block;
71
+ width: 100%;
72
+ padding: 3px 6px;
73
+ border: 0;
74
+ text-align: left;
75
+ background-color: transparent;
76
+ cursor: pointer;
77
+ box-sizing: border-box;
78
+ color: unset;
79
+ text-decoration: none;
80
+ white-space: nowrap;
81
+ }
82
+
83
+ hr {
84
+ margin-top: 0;
85
+ }
86
+ }
87
+
88
+ .keyboard .btn_options .btn_option:focus {
89
+ @include outline_solid_thick;
90
+
91
+ outline-offset: -1px;
92
+ }
@@ -1,38 +1,38 @@
1
- $box_size: 20px;
2
- $checkmark_size: 16px;
3
-
4
- .input_item {
5
- &.checkbox {
6
- input {
7
- display: none;
8
- }
9
-
10
- .wrap_label {
11
- @include border_transparent;
12
-
13
- margin-right: $input_content_gap;
14
- }
15
-
16
- .box {
17
- @include center_flex;
18
- @include outline_solid;
19
-
20
- height: $box_size;
21
- width: $box_size;
22
- cursor: pointer;
23
- }
24
-
25
- .box svg {
26
- width: $checkmark_size;
27
- height: $checkmark_size;
28
- }
29
-
30
- input + .box svg {
31
- opacity: 0;
32
- }
33
-
34
- input:checked + .box svg {
35
- opacity: 1;
36
- }
37
- }
38
- }
1
+ $box_size: 20px;
2
+ $checkmark_size: 16px;
3
+
4
+ .input_item {
5
+ &.checkbox {
6
+ input {
7
+ display: none;
8
+ }
9
+
10
+ .wrap_label {
11
+ @include border_transparent;
12
+
13
+ margin-right: $input_content_gap;
14
+ }
15
+
16
+ .box {
17
+ @include center_flex;
18
+ @include outline_solid;
19
+
20
+ height: $box_size;
21
+ width: $box_size;
22
+ cursor: pointer;
23
+ }
24
+
25
+ .box svg {
26
+ width: $checkmark_size;
27
+ height: $checkmark_size;
28
+ }
29
+
30
+ input + .box svg {
31
+ opacity: 0;
32
+ }
33
+
34
+ input:checked + .box svg {
35
+ opacity: 1;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,18 @@
1
+ .close_btn {
2
+ @include btn();
3
+
4
+ margin-top: $ext_name_offset;
5
+ margin-right: $ext_name_offset;
6
+ margin-left: $gap;
7
+
8
+ &:focus {
9
+ outline-offset: 2px;
10
+ }
11
+
12
+ svg {
13
+ display: block;
14
+ fill: white;
15
+ height: 20px;
16
+ width: 20px;
17
+ }
18
+ }
@@ -1,93 +1,93 @@
1
- /* stylelint-disable selector-class-pattern */
2
-
3
- $pcr_picker_size: 16px;
4
- $btn_padding: 6px;
5
-
6
- .input_item {
7
- .pcr-app,
8
- .pcr-last-color,
9
- .pcr-palette,
10
- .pcr-current-color,
11
- .pcr-slider,
12
- .color_picker_w input {
13
- border-radius: 0 !important;
14
- }
15
-
16
- .pcr-palette,
17
- .pcr-slider {
18
- @include border;
19
- }
20
-
21
- .color_picker_w {
22
- position: absolute;
23
- z-index: 2;
24
- top: $input_height + $input_content_gap;
25
- left: 0;
26
- user-select: none;
27
-
28
- input {
29
- @include outline_solid;
30
-
31
- filter: initial !important;
32
-
33
- &:not(.pcr-result) {
34
- padding: $btn_padding $btn_padding 5px $btn_padding;
35
- }
36
- }
37
- }
38
-
39
- .color_picker {
40
- position: fixed;
41
- }
42
-
43
- .pcr-app {
44
- @include box_shadow_important;
45
-
46
- position: relative !important;
47
- left: initial !important;
48
- top: initial !important;
49
- width: fit-content !important;
50
- padding: $gap !important;
51
- transition: none !important;
52
- }
53
-
54
- .pcr-picker {
55
- width: $pcr_picker_size !important;
56
- height: $pcr_picker_size !important;
57
- border-width: 1px !important;
58
- }
59
-
60
- .pcr-color-preview {
61
- @include border;
62
-
63
- margin-bottom: $gap !important;
64
- }
65
-
66
- .pcr-swatches {
67
- margin-top: 2px !important;
68
- }
69
-
70
- .pcr-interaction {
71
- margin-left: -2px !important;
72
- margin-right: -1px !important;
73
- margin-bottom: 1px !important;
74
- white-space: nowrap;
75
- display: unset !important;
76
- }
77
-
78
- .pcr-result {
79
- width: calc(100% - 5px);
80
- display: block;
81
- margin-top: 9px !important;
82
- padding-top: 6px !important;
83
- margin-bottom: 2px !important;
84
- }
85
-
86
- .pcr-color-chooser {
87
- margin-top: $gap !important;
88
- }
89
-
90
- .pcr-type {
91
- margin-right: 5px !important;
92
- }
93
- }
1
+ /* stylelint-disable selector-class-pattern */
2
+
3
+ $pcr_picker_size: 16px;
4
+ $btn_padding: 6px;
5
+
6
+ .input_item {
7
+ .pcr-app,
8
+ .pcr-last-color,
9
+ .pcr-palette,
10
+ .pcr-current-color,
11
+ .pcr-slider,
12
+ .color_picker_w input {
13
+ border-radius: 0 !important;
14
+ }
15
+
16
+ .pcr-palette,
17
+ .pcr-slider {
18
+ @include border;
19
+ }
20
+
21
+ .color_picker_w {
22
+ position: absolute;
23
+ z-index: 3;
24
+ top: $input_height + $input_content_gap;
25
+ left: 0;
26
+ user-select: none;
27
+
28
+ input {
29
+ @include outline_solid;
30
+
31
+ filter: initial !important;
32
+
33
+ &:not(.pcr-result) {
34
+ padding: $btn_padding $btn_padding 5px $btn_padding;
35
+ }
36
+ }
37
+ }
38
+
39
+ .color_picker {
40
+ position: fixed;
41
+ }
42
+
43
+ .pcr-app {
44
+ @include box_shadow_important;
45
+
46
+ position: relative !important;
47
+ left: initial !important;
48
+ top: initial !important;
49
+ width: fit-content !important;
50
+ padding: $gap !important;
51
+ transition: none !important;
52
+ }
53
+
54
+ .pcr-picker {
55
+ width: $pcr_picker_size !important;
56
+ height: $pcr_picker_size !important;
57
+ border-width: 1px !important;
58
+ }
59
+
60
+ .pcr-color-preview {
61
+ @include border;
62
+
63
+ margin-bottom: $gap !important;
64
+ }
65
+
66
+ .pcr-swatches {
67
+ margin-top: 2px !important;
68
+ }
69
+
70
+ .pcr-interaction {
71
+ margin-left: -2px !important;
72
+ margin-right: -1px !important;
73
+ margin-bottom: 1px !important;
74
+ white-space: nowrap;
75
+ display: unset !important;
76
+ }
77
+
78
+ .pcr-result {
79
+ width: calc(100% - 5px);
80
+ display: block;
81
+ margin-top: 9px !important;
82
+ padding-top: 6px !important;
83
+ margin-bottom: 2px !important;
84
+ }
85
+
86
+ .pcr-color-chooser {
87
+ margin-top: $gap !important;
88
+ }
89
+
90
+ .pcr-type {
91
+ margin-right: 5px !important;
92
+ }
93
+ }
@@ -1,84 +1,90 @@
1
- .input_item {
2
- &.color .label {
3
- align-self: normal;
4
- }
5
-
6
- .inner_w {
7
- position: absolute;
8
- height: $color_input_height;
9
- align-self: center;
10
- order: -1;
11
- }
12
-
13
- .visualization_w {
14
- display: flex;
15
- align-items: center;
16
- }
17
-
18
- .visualization {
19
- @include border;
20
-
21
- outline: none;
22
- margin-right: $input_content_gap;
23
- min-width: $color_input_height;
24
- height: $color_input_height;
25
- cursor: pointer;
26
- border-radius: 0;
27
- }
28
-
29
- .palette_visualization_w {
30
- display: inline-flex;
31
- padding: 0;
32
- margin-right: $gap;
33
- margin-bottom: $gap;
34
- cursor: pointer;
35
-
36
- &:nth-child(10),
37
- &:nth-child(20),
38
- &:nth-child(30) {
39
- margin-right: 0;
40
- }
41
-
42
- &:nth-child(n + 21) {
43
- margin-bottom: 0;
44
- }
45
- }
46
-
47
- .palette_visualization {
48
- @include border;
49
-
50
- outline: none;
51
- width: $color_input_height;
52
- height: $color_input_height;
53
- cursor: pointer;
54
- border-radius: 0;
55
- }
56
-
57
- .fill_shadow_w {
58
- position: absolute;
59
- top: $input_content_gap + $input_content_gap;
60
- left: 0;
61
- }
62
-
63
- .fill_shadow {
64
- position: fixed;
65
- display: block;
66
- visibility: hidden;
67
- }
68
-
69
- .palette_w {
70
- z-index: 2;
71
- position: absolute;
72
- top: $input_content_gap + $input_content_gap;
73
- left: 0;
74
- }
75
-
76
- .palette {
77
- @include box_shadow;
78
-
79
- position: fixed;
80
- padding: 10px;
81
- width: 410px;
82
- line-height: 0;
83
- }
84
- }
1
+ $palette_visualization_w_border_offset: 1 * 2;
2
+
3
+ .input_item {
4
+ &.color .label_in_input_item {
5
+ align-self: normal;
6
+ }
7
+
8
+ .inner_w {
9
+ position: absolute;
10
+ height: $color_input_height;
11
+ align-self: center;
12
+ order: -1;
13
+ }
14
+
15
+ .main_visualization_w {
16
+ height: fit-content;
17
+ display: flex;
18
+ align-self: center;
19
+ }
20
+
21
+ .visualization_w {
22
+ display: flex;
23
+ align-items: center;
24
+ margin-right: $input_content_gap;
25
+ }
26
+
27
+ .visualization {
28
+ border: 0;
29
+ outline: none;
30
+ min-width: $color_input_height;
31
+ height: $color_input_height;
32
+ cursor: pointer;
33
+ border-radius: 0;
34
+ }
35
+
36
+ .palette_visualization_w {
37
+ display: inline-flex;
38
+ padding: 0;
39
+ margin-right: $gap + $palette_visualization_w_border_offset;
40
+ margin-bottom: $gap + $palette_visualization_w_border_offset;
41
+ cursor: pointer;
42
+
43
+ &:nth-child(10),
44
+ &:nth-child(20),
45
+ &:nth-child(30) {
46
+ margin-right: 0;
47
+ }
48
+
49
+ &:nth-child(n + 21) {
50
+ margin-bottom: 0;
51
+ }
52
+ }
53
+
54
+ .palette_visualization {
55
+ border: 0;
56
+ outline: none;
57
+ width: $color_input_height;
58
+ height: $color_input_height;
59
+ cursor: pointer;
60
+ border-radius: 0;
61
+ }
62
+
63
+ .fill_shadow_w {
64
+ position: absolute;
65
+ top: $input_content_gap + $input_content_gap;
66
+ left: 0;
67
+ }
68
+
69
+ .fill_shadow {
70
+ position: fixed;
71
+ display: block;
72
+ visibility: hidden;
73
+ }
74
+
75
+ .palette_w {
76
+ z-index: 3;
77
+ position: absolute;
78
+ top: $input_content_gap + $input_content_gap;
79
+ left: 0;
80
+ }
81
+
82
+ .palette {
83
+ @include box_shadow;
84
+
85
+ position: fixed;
86
+ padding: 10px;
87
+ width: 410px;
88
+ line-height: 0;
89
+ }
90
+ }
@@ -5,8 +5,7 @@
5
5
  @import '../mods';
6
6
  @import '../text';
7
7
  @import '../crash_handler';
8
-
9
- $ext_name_offset: 7px;
8
+ @import '../close_btn';
10
9
 
11
10
  body,
12
11
  button {
@@ -28,38 +27,52 @@ button {
28
27
  }
29
28
 
30
29
  .error {
31
- .msg {
32
- white-space: pre-wrap;
33
- text-align: center;
34
- padding: 10px;
35
- padding-top: 40px;
36
- }
30
+ .body {
31
+ position: relative;
37
32
 
38
- .ext_name {
39
- position: absolute;
40
- top: $ext_name_offset;
41
- left: $ext_name_offset;
42
- }
33
+ .top_stuff {
34
+ display: flex;
35
+ align-items: start;
43
36
 
44
- .close_btn {
45
- @include btn();
37
+ .ext_name_and_keep_visible_msg {
38
+ flex-grow: 1;
39
+ }
40
+ }
41
+ }
46
42
 
47
- position: absolute;
48
- top: $ext_name_offset;
49
- right: $ext_name_offset;
43
+ .progress {
44
+ appearance: none;
45
+ display: block;
46
+ width: 100%;
47
+ height: 8px;
50
48
 
51
- &:focus {
52
- outline-offset: $outline_offset;
49
+ &::-webkit-progress-bar {
50
+ background-color: transparent;
53
51
  }
54
52
 
55
- svg {
56
- display: block;
57
- fill: white;
58
- height: 20px;
59
- width: 20px;
53
+ &::-webkit-progress-value {
54
+ background-color: #ffe81a;
60
55
  }
61
56
  }
62
57
 
58
+ .keep_visible_msg {
59
+ font-size: $font_small;
60
+ margin-left: $ext_name_offset;
61
+ margin-top: 2px;
62
+ }
63
+
64
+ .msg {
65
+ white-space: pre-wrap;
66
+ text-align: center;
67
+ padding: 10px;
68
+ padding-top: 12px;
69
+ }
70
+
71
+ .ext_name {
72
+ margin-top: $ext_name_offset;
73
+ margin-left: $ext_name_offset;
74
+ }
75
+
63
76
  .more_info_btn {
64
77
  @include btn();
65
78
  @include outline_solid();
@@ -86,7 +99,11 @@ button {
86
99
  outline-color: $black;
87
100
  }
88
101
 
89
- &.is_notification {
102
+ &.positive {
103
+ background-color: #40af49;
104
+ }
105
+
106
+ &.neutral {
90
107
  background-color: #4d94ea;
91
108
  }
92
109