@seamly/web-ui 19.1.3 → 20.0.0-beta.3
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.
- package/build/dist/lib/components.js +2 -1
- package/build/dist/lib/components.min.js +1 -1
- package/build/dist/lib/index.debug.js +188 -111
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.LICENSE.txt +48 -20
- package/build/dist/lib/index.js +11764 -11970
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.LICENSE.txt +0 -5
- package/build/dist/lib/standalone.js +7131 -7333
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.LICENSE.txt +0 -5
- package/build/dist/lib/style-guide.js +2117 -2007
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/styles.css +1 -1
- package/package.json +1 -2
- package/src/.DS_Store +0 -0
- package/src/icons/icon_file-32.svg +1 -1
- package/src/javascripts/api/index.js +48 -37
- package/src/javascripts/config.js +1 -5
- package/src/javascripts/domains/app/actions.js +22 -5
- package/src/javascripts/domains/config/actions.js +3 -0
- package/src/javascripts/domains/config/reducer.js +9 -0
- package/src/javascripts/domains/forms/hooks.js +3 -1
- package/src/javascripts/domains/forms/provider.js +12 -0
- package/src/javascripts/domains/forms/reducer.js +2 -0
- package/src/javascripts/domains/i18n/hooks.js +2 -1
- package/src/javascripts/domains/i18n/reducer.js +2 -0
- package/src/javascripts/domains/interrupt/reducer.js +2 -2
- package/src/javascripts/domains/options/middleware.js +15 -31
- package/src/javascripts/domains/store/index.js +2 -1
- package/src/javascripts/domains/store/state-reducer.js +3 -8
- package/src/javascripts/domains/translations/components/options-dialog/form.js +1 -1
- package/src/javascripts/domains/translations/components/options-dialog/index.js +15 -1
- package/src/javascripts/domains/translations/reducer.js +2 -0
- package/src/javascripts/domains/visibility/actions.js +1 -1
- package/src/javascripts/domains/visibility/hooks.js +10 -8
- package/src/javascripts/domains/visibility/utils.js +1 -2
- package/src/javascripts/index.js +7 -2
- package/src/javascripts/lib/css.js +7 -1
- package/src/javascripts/lib/engine/index.js +4 -3
- package/src/javascripts/lib/external-api/index.js +38 -29
- package/src/javascripts/package/components.js +2 -1
- package/src/javascripts/style-guide/components/app.js +4 -4
- package/src/javascripts/style-guide/components/static-core.js +9 -3
- package/src/javascripts/style-guide/components/view.js +0 -1
- package/src/javascripts/style-guide/states.js +468 -348
- package/src/javascripts/ui/components/chat-app.js +1 -1
- package/src/javascripts/ui/components/conversation/component-filter.js +6 -0
- package/src/javascripts/ui/components/conversation/event/carousel-component/index.js +8 -1
- package/src/javascripts/ui/components/conversation/event/carousel-message/components/slide.js +2 -3
- package/src/javascripts/ui/components/conversation/event/conversation-suggestions.js +70 -0
- package/src/javascripts/ui/components/conversation/event/participant.js +2 -5
- package/src/javascripts/ui/components/conversation/event/splash.js +26 -0
- package/src/javascripts/ui/components/conversation/event/text.js +1 -2
- package/src/javascripts/ui/components/core/seamly-core.js +12 -9
- package/src/javascripts/ui/components/core/seamly-event-subscriber.js +4 -10
- package/src/javascripts/ui/components/core/seamly-instance-functions-loader.js +1 -8
- package/src/javascripts/ui/components/entry/entry-container.js +5 -3
- package/src/javascripts/ui/components/entry/text-entry/index.js +7 -1
- package/src/javascripts/ui/components/entry/text-entry/text-entry-form.js +5 -1
- package/src/javascripts/ui/components/entry/toggle-button.js +4 -2
- package/src/javascripts/ui/components/entry/upload/file-upload-form.js +1 -1
- package/src/javascripts/ui/components/form-controls/error.js +6 -2
- package/src/javascripts/ui/components/form-controls/form.js +26 -3
- package/src/javascripts/ui/components/layout/app-frame.js +24 -15
- package/src/javascripts/ui/components/layout/chat-frame.js +0 -2
- package/src/javascripts/ui/components/layout/deprecated-app-frame.js +86 -0
- package/src/javascripts/ui/components/layout/modal-wrapper.js +0 -80
- package/src/javascripts/ui/components/layout/pre-chat-messages.js +45 -0
- package/src/javascripts/ui/components/options/options-frame.js +9 -4
- package/src/javascripts/ui/components/options/options.js +1 -4
- package/src/javascripts/ui/components/options/transcript/index.js +15 -1
- package/src/javascripts/ui/components/options/transcript/transcript-form.js +1 -1
- package/src/javascripts/ui/components/suggestions/index.js +174 -0
- package/src/javascripts/ui/components/suggestions/suggestions-item.js +40 -0
- package/src/javascripts/ui/components/suggestions/suggestions-list.js +24 -0
- package/src/javascripts/ui/components/view/app-view.js +21 -0
- package/src/javascripts/ui/components/view/deprecated-view.js +32 -0
- package/src/javascripts/ui/components/view/index.js +27 -0
- package/src/javascripts/ui/components/view/inline-view.js +45 -0
- package/src/javascripts/ui/components/view/window-view/collapse-button.js +20 -0
- package/src/javascripts/ui/components/view/window-view/index.js +82 -0
- package/src/javascripts/ui/components/view/window-view/window-open-button.js +68 -0
- package/src/javascripts/ui/components/widgets/lightbox.js +7 -2
- package/src/javascripts/ui/hooks/component-helper-hooks.js +0 -9
- package/src/javascripts/ui/hooks/seamly-hooks.js +0 -1
- package/src/javascripts/ui/hooks/seamly-state-hooks.js +28 -4
- package/src/javascripts/ui/hooks/use-seamly-chat.js +12 -3
- package/src/javascripts/ui/hooks/use-seamly-commands.js +4 -31
- package/src/javascripts/ui/utils/seamly-utils.js +2 -14
- package/src/stylesheets/1-settings/_animations.scss +0 -6
- package/src/stylesheets/1-settings/_config.scss +34 -35
- package/src/stylesheets/2-tools/_functions.scss +0 -5
- package/src/stylesheets/2-tools/_mixins.scss +4 -16
- package/src/stylesheets/3-app/_app.scss +78 -135
- package/src/stylesheets/4-base/_a11y.scss +0 -3
- package/src/stylesheets/4-base/_elements.scss +0 -11
- package/src/stylesheets/4-base/_formelements.scss +4 -14
- package/src/stylesheets/5-components/_avatar.scss +2 -44
- package/src/stylesheets/5-components/_buttons.scss +6 -45
- package/src/stylesheets/5-components/_chat-status.scss +14 -38
- package/src/stylesheets/5-components/_choice-prompt.scss +33 -2
- package/src/stylesheets/5-components/_collapse-button.scss +16 -0
- package/src/stylesheets/5-components/_conversation.scss +26 -2
- package/src/stylesheets/5-components/_disclaimer.scss +10 -12
- package/src/stylesheets/5-components/_divider.scss +7 -4
- package/src/stylesheets/5-components/_error.scss +19 -9
- package/src/stylesheets/5-components/_form.scss +9 -0
- package/src/stylesheets/5-components/_icon.scss +10 -1
- package/src/stylesheets/5-components/_idle.scss +0 -8
- package/src/stylesheets/5-components/_input.scss +14 -20
- package/src/stylesheets/5-components/_interrupt.scss +0 -2
- package/src/stylesheets/5-components/_loader.scss +0 -32
- package/src/stylesheets/5-components/_message-author.scss +40 -0
- package/src/stylesheets/5-components/_message-body.scss +194 -0
- package/src/stylesheets/5-components/_message-card.scss +55 -0
- package/src/stylesheets/5-components/_message-carousel.scss +143 -0
- package/src/stylesheets/5-components/_message-count.scss +11 -28
- package/src/stylesheets/5-components/_message-cta.scss +23 -0
- package/src/stylesheets/5-components/_message-info.scss +11 -0
- package/src/stylesheets/5-components/_message-translation-info.scss +17 -0
- package/src/stylesheets/5-components/_message.scss +13 -364
- package/src/stylesheets/5-components/_modal.scss +28 -58
- package/src/stylesheets/5-components/_notification.scss +0 -5
- package/src/stylesheets/5-components/_options.scss +27 -42
- package/src/stylesheets/5-components/_pre-chat-messages.scss +30 -0
- package/src/stylesheets/5-components/_prompt.scss +0 -8
- package/src/stylesheets/5-components/_skip-link.scss +3 -3
- package/src/stylesheets/5-components/_suggestions.scss +96 -0
- package/src/stylesheets/5-components/_unstarted.scss +50 -0
- package/src/stylesheets/5-components/_upload.scss +26 -28
- package/src/stylesheets/5-components/_window-open-button.scss +39 -0
- package/src/stylesheets/6-webui-only/_hover.scss +151 -0
- package/src/stylesheets/6-webui-only/_scrollbar.scss +31 -0
- package/src/stylesheets/7-deprecated/1-settings/_animations.scss +43 -0
- package/src/stylesheets/7-deprecated/1-settings/_config.scss +105 -0
- package/src/stylesheets/7-deprecated/2-tools/_functions.scss +22 -0
- package/src/stylesheets/7-deprecated/2-tools/_mixins.scss +77 -0
- package/src/stylesheets/7-deprecated/3-app/_app.scss +214 -0
- package/src/stylesheets/7-deprecated/4-base/_a11y.scss +14 -0
- package/src/stylesheets/7-deprecated/4-base/_elements.scss +21 -0
- package/src/stylesheets/7-deprecated/4-base/_formelements.scss +57 -0
- package/src/stylesheets/{5-components → 7-deprecated/5-components}/_agent-info.scss +0 -0
- package/src/stylesheets/7-deprecated/5-components/_avatar.scss +64 -0
- package/src/stylesheets/7-deprecated/5-components/_buttons.scss +94 -0
- package/src/stylesheets/{5-components → 7-deprecated/5-components}/_card.scss +0 -0
- package/src/stylesheets/{5-components → 7-deprecated/5-components}/_carousel.scss +0 -0
- package/src/stylesheets/7-deprecated/5-components/_character-limit.scss +36 -0
- package/src/stylesheets/{5-components/_cobrowsing.scss → 7-deprecated/5-components/_chat-status.scss} +18 -16
- package/src/stylesheets/7-deprecated/5-components/_choice-prompt.scss +27 -0
- package/src/stylesheets/7-deprecated/5-components/_collapse-button.scss +17 -0
- package/src/stylesheets/7-deprecated/5-components/_conversation.scss +44 -0
- package/src/stylesheets/7-deprecated/5-components/_disclaimer.scss +36 -0
- package/src/stylesheets/7-deprecated/5-components/_divider.scss +91 -0
- package/src/stylesheets/7-deprecated/5-components/_error.scss +34 -0
- package/src/stylesheets/{5-components → 7-deprecated/5-components}/_faq.scss +8 -3
- package/src/stylesheets/{5-components → 7-deprecated/5-components}/_header-controls.scss +0 -0
- package/src/stylesheets/7-deprecated/5-components/_icon.scss +4 -0
- package/src/stylesheets/7-deprecated/5-components/_idle.scss +61 -0
- package/src/stylesheets/7-deprecated/5-components/_input.scss +78 -0
- package/src/stylesheets/7-deprecated/5-components/_interrupt.scss +35 -0
- package/src/stylesheets/7-deprecated/5-components/_loader.scss +78 -0
- package/src/stylesheets/7-deprecated/5-components/_message-count.scss +41 -0
- package/src/stylesheets/7-deprecated/5-components/_message.scss +385 -0
- package/src/stylesheets/7-deprecated/5-components/_modal.scss +138 -0
- package/src/stylesheets/7-deprecated/5-components/_notification.scss +20 -0
- package/src/stylesheets/7-deprecated/5-components/_options.scss +284 -0
- package/src/stylesheets/7-deprecated/5-components/_prompt.scss +44 -0
- package/src/stylesheets/7-deprecated/5-components/_skip-link.scss +21 -0
- package/src/stylesheets/{5-components → 7-deprecated/5-components}/_svg-graphic.scss +0 -0
- package/src/stylesheets/7-deprecated/5-components/_upload.scss +213 -0
- package/src/stylesheets/deprecated-view.scss +64 -0
- package/src/stylesheets/styles-webui-only.scss +3 -0
- package/src/stylesheets/styles.scss +15 -25
- package/webpack/config.common.js +7 -1
- package/webpack/config.site.js +4 -0
- package/webpack/config.test.js +1 -0
- package/webpack/defaults.js +5 -0
- package/src/javascripts/ui/components/conversation/event/hooks/use-text-rendering.js +0 -35
- package/src/javascripts/ui/components/layout/view.js +0 -36
- package/src/javascripts/ui/components/options/cobrowsing.js +0 -110
- package/src/javascripts/ui/components/warnings/cobrowsing-active-frame.js +0 -29
- package/src/javascripts/ui/components/warnings/cobrowsing-active.js +0 -33
- package/src/stylesheets/5-components/_modal_mode.scss +0 -108
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
// ##### MESSAGECOUNT #####
|
|
2
|
-
// ==================
|
|
3
|
-
|
|
4
|
-
// VARS
|
|
5
|
-
// ----
|
|
6
|
-
|
|
7
|
-
$messagecount-bgcolor: $negative;
|
|
8
|
-
$messagecount-textcolor: $white;
|
|
9
|
-
$messagecount-size: $spacer;
|
|
10
|
-
|
|
11
|
-
// BASE
|
|
12
|
-
// ----
|
|
13
|
-
|
|
14
1
|
.#{$n}-message-count {
|
|
15
2
|
display: flex;
|
|
16
3
|
position: absolute;
|
|
17
|
-
top: $spacer * -0.
|
|
18
|
-
right: $spacer * -0.
|
|
4
|
+
top: $spacer * -0.5;
|
|
5
|
+
right: $spacer * -0.5;
|
|
19
6
|
align-items: center;
|
|
20
7
|
justify-content: center;
|
|
21
|
-
width: $
|
|
22
|
-
height: $
|
|
8
|
+
width: $messagecountsize;
|
|
9
|
+
height: $messagecountsize;
|
|
23
10
|
transform: scale(1);
|
|
11
|
+
transform-origin: 50% 50%;
|
|
24
12
|
transition: transform 0.3s 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
25
13
|
border-radius: 50% 50%;
|
|
26
|
-
background-color: $
|
|
27
|
-
color: $
|
|
14
|
+
background-color: $negative;
|
|
15
|
+
color: $white;
|
|
28
16
|
font-size: $fontsize-small;
|
|
29
17
|
font-weight: $fontweight-bold;
|
|
30
18
|
line-height: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.#{$n}-message-count.#{$n}-message-count__empty {
|
|
34
|
-
transform: scale(0);
|
|
35
|
-
transition: transform 0.3s 0s linear;
|
|
36
|
-
}
|
|
37
19
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
20
|
+
&:empty {
|
|
21
|
+
transform: scale(0);
|
|
22
|
+
transition: transform $transition;
|
|
23
|
+
}
|
|
41
24
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.#{$n}-cta__content {
|
|
2
|
+
margin-bottom: $spacer * 0.5;
|
|
3
|
+
color: $white;
|
|
4
|
+
font-size: $fontsize-medium;
|
|
5
|
+
line-height: 1.5;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.#{$n}-cta__content p {
|
|
9
|
+
color: inherit;
|
|
10
|
+
font-family: inherit;
|
|
11
|
+
font-size: inherit;
|
|
12
|
+
font-weight: inherit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.#{$n}-message--type-cta .#{$n}-button {
|
|
16
|
+
margin-bottom: $spacer * 0.5;
|
|
17
|
+
line-height: 2;
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
|
|
20
|
+
&:last-child {
|
|
21
|
+
margin-bottom: 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.#{$n}-message__translation-info {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.#{$n}-message__translation-label {
|
|
6
|
+
margin-right: $spacer * 0.25;
|
|
7
|
+
font-size: $fontsize-small;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.#{$n}-button.#{$n}-message__translation-toggle {
|
|
11
|
+
padding: 0;
|
|
12
|
+
font-size: inherit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.#{$n}-message--source-user .#{$n}-message__translation-info {
|
|
16
|
+
text-align: right;
|
|
17
|
+
}
|
|
@@ -1,385 +1,34 @@
|
|
|
1
|
-
$threadlist-agent-text-bgcolor: $grey-a;
|
|
2
|
-
$threadlist-user-text-bgcolor: $brand2;
|
|
3
|
-
$avatar-size: $badge-touch-size;
|
|
4
|
-
|
|
5
1
|
.#{$n}-message {
|
|
6
2
|
display: flex;
|
|
7
3
|
flex-direction: row;
|
|
8
4
|
flex-wrap: wrap;
|
|
9
5
|
width: 80%;
|
|
10
|
-
font-family: $fontfamily-default;
|
|
11
|
-
font-size: $fontsize-small;
|
|
12
|
-
line-height: 1.5;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.#{$n}-message + .#{$n}-message,
|
|
16
|
-
.#{$n}-message + div > .#{$n}-message {
|
|
17
|
-
margin-top: $spacer * 0.5;
|
|
18
6
|
}
|
|
19
7
|
|
|
20
|
-
.#{$n}-
|
|
21
|
-
display: none;
|
|
22
|
-
flex-direction: row;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: flex-start;
|
|
8
|
+
.#{$n}-message.#{$n}-message--type-suggestions {
|
|
25
9
|
width: 100%;
|
|
26
|
-
margin-bottom: 0.3rem;
|
|
27
|
-
padding: 0 $spacer * 0.5;
|
|
28
|
-
font-weight: $fontweight-bold;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.#{$n}-message__avatar {
|
|
32
|
-
width: $avatar-size * 0.5;
|
|
33
|
-
height: $avatar-size * 0.5;
|
|
34
|
-
margin: 0 0.5em 0 0;
|
|
35
|
-
|
|
36
|
-
.#{$n}-avatar {
|
|
37
|
-
display: block;
|
|
38
|
-
width: 100%;
|
|
39
|
-
height: 100%;
|
|
40
|
-
object-fit: contain;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.#{$n}-conversation__item--new-participant .#{$n}-message__author {
|
|
45
|
-
display: flex;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.#{$n}-divider--type-time-indicator + .#{$n}-message--source-user,
|
|
49
|
-
.#{$n}-divider--type-time-indicator + .#{$n}-message--source-agent {
|
|
50
|
-
.#{$n}-message__author {
|
|
51
|
-
display: flex;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.#{$n}-message__body {
|
|
56
|
-
display: block;
|
|
57
|
-
position: relative;
|
|
58
|
-
max-width: 100%;
|
|
59
|
-
margin-bottom: $spacer * 0.25;
|
|
60
|
-
padding: $spacer * 0.5 $spacer * 0.75;
|
|
61
|
-
border-radius: $borderradius;
|
|
62
|
-
background-color: $threadlist-agent-text-bgcolor;
|
|
63
|
-
color: set-text-color($threadlist-agent-text-bgcolor);
|
|
64
|
-
|
|
65
|
-
.#{$n}-icon svg path {
|
|
66
|
-
fill: set-text-color($threadlist-agent-text-bgcolor);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.#{$n}-message__body:last-child {
|
|
71
|
-
margin-bottom: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.#{$n}-message__info {
|
|
75
|
-
width: 100%;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.#{$n}-message__translation-info {
|
|
79
|
-
width: 100%;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.#{$n}-message__translation-label {
|
|
83
|
-
margin-right: $spacer * 0.25;
|
|
84
|
-
font-size: $fontsize-small;
|
|
85
10
|
}
|
|
86
11
|
|
|
87
|
-
.#{$n}-
|
|
88
|
-
|
|
89
|
-
font-size: inherit;
|
|
12
|
+
.#{$n}-message + .#{$n}-message {
|
|
13
|
+
margin-top: $spacer * 0.5;
|
|
90
14
|
}
|
|
91
15
|
|
|
92
|
-
.#{$n}-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
&:last-child {
|
|
97
|
-
margin-bottom: 0;
|
|
98
|
-
}
|
|
16
|
+
.#{$n}-message--source-info.#{$n}-message {
|
|
17
|
+
width: 90%;
|
|
18
|
+
max-width: 90%;
|
|
19
|
+
margin: 0 auto;
|
|
99
20
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
21
|
+
&::after {
|
|
22
|
+
content: '';
|
|
23
|
+
display: block;
|
|
24
|
+
width: $spacer;
|
|
25
|
+
height: 0;
|
|
103
26
|
margin: 0 auto;
|
|
104
|
-
|
|
105
|
-
&::after {
|
|
106
|
-
content: '';
|
|
107
|
-
display: block;
|
|
108
|
-
width: $spacer;
|
|
109
|
-
height: 0;
|
|
110
|
-
margin: 0 auto;
|
|
111
|
-
border-top: 2px solid $brand3;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.#{$n}-message__body {
|
|
116
|
-
flex: 0 0 100%;
|
|
117
|
-
width: 100%;
|
|
118
|
-
padding: 0 $spacer * 0.75 $spacer * 0.5;
|
|
119
|
-
border-radius: 0;
|
|
120
|
-
background-color: initial;
|
|
121
|
-
text-align: center;
|
|
27
|
+
border-top: 2px solid $brand3;
|
|
122
28
|
}
|
|
123
29
|
}
|
|
124
30
|
|
|
125
31
|
.#{$n}-message--source-user {
|
|
126
32
|
justify-content: flex-end;
|
|
127
33
|
margin-left: auto;
|
|
128
|
-
|
|
129
|
-
.#{$n}-message__author {
|
|
130
|
-
justify-content: flex-end;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.#{$n}-message__body {
|
|
134
|
-
background-color: $threadlist-user-text-bgcolor;
|
|
135
|
-
color: set-text-color($threadlist-user-text-bgcolor);
|
|
136
|
-
|
|
137
|
-
.#{$n}-icon svg path {
|
|
138
|
-
fill: set-text-color($threadlist-user-text-bgcolor);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.#{$n}-message__avatar {
|
|
143
|
-
order: 2;
|
|
144
|
-
margin: 0 0 0 0.5em;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.#{$n}-message__author-name {
|
|
148
|
-
order: 1;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.#{$n}-message__info,
|
|
152
|
-
.#{$n}-message__translation-info {
|
|
153
|
-
text-align: right;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// Text
|
|
158
|
-
.#{$n}-message--type-text {
|
|
159
|
-
.#{$n}-message__body {
|
|
160
|
-
p:only-child,
|
|
161
|
-
ul:only-child,
|
|
162
|
-
ol:only-child {
|
|
163
|
-
margin: 0;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
p:last-child,
|
|
167
|
-
ul:last-child,
|
|
168
|
-
ol:last-child {
|
|
169
|
-
margin-bottom: 0;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
p,
|
|
173
|
-
ul,
|
|
174
|
-
ol {
|
|
175
|
-
margin: 0 0 1em 0;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
ul,
|
|
179
|
-
ol {
|
|
180
|
-
padding-left: 1.5em;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
a {
|
|
184
|
-
color: $interaction;
|
|
185
|
-
word-wrap: break-word; // IE11
|
|
186
|
-
overflow-wrap: break-word;
|
|
187
|
-
word-break: break-word;
|
|
188
|
-
hyphens: auto;
|
|
189
|
-
|
|
190
|
-
&:hover {
|
|
191
|
-
text-decoration: none;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&.cvco-message--source-user .#{$n}-message__body {
|
|
197
|
-
a {
|
|
198
|
-
color: $white;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
// Loading
|
|
204
|
-
.#{$n}-message--type-loading {
|
|
205
|
-
.#{$n}-message__body {
|
|
206
|
-
align-self: flex-start;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.#{$n}-message--type-loading.#{$n}-message--source-user {
|
|
211
|
-
.#{$n}-message__body {
|
|
212
|
-
align-self: flex-end;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// Choice Prompt
|
|
217
|
-
.#{$n}-message--type-choice-prompt {
|
|
218
|
-
.#{$n}-message__body {
|
|
219
|
-
width: 100%;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.#{$n}-message--type-choice-prompt:not(.#{$n}-message--type-choice-prompt-selected) {
|
|
224
|
-
.#{$n}-message__body {
|
|
225
|
-
padding: 0;
|
|
226
|
-
background: none;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.#{$n}-message--type-choice-prompt-selected {
|
|
231
|
-
.#{$n}-message__choice-indicator {
|
|
232
|
-
$padding: 4px;
|
|
233
|
-
|
|
234
|
-
content: '';
|
|
235
|
-
position: absolute;
|
|
236
|
-
top: $spacer * 0.5;
|
|
237
|
-
right: 0;
|
|
238
|
-
width: 1.5em;
|
|
239
|
-
height: 1.5em;
|
|
240
|
-
padding: $padding;
|
|
241
|
-
transform: translate(48%, -$padding);
|
|
242
|
-
border-radius: 50%;
|
|
243
|
-
background: $white;
|
|
244
|
-
box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
|
|
245
|
-
|
|
246
|
-
> svg {
|
|
247
|
-
position: absolute;
|
|
248
|
-
top: 50%;
|
|
249
|
-
left: 50%;
|
|
250
|
-
transform: translate(-50%, -50%);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// Image
|
|
256
|
-
.#{$n}-message--type-image {
|
|
257
|
-
.#{$n}-message__body {
|
|
258
|
-
padding: 0;
|
|
259
|
-
|
|
260
|
-
img {
|
|
261
|
-
display: block;
|
|
262
|
-
width: 100%;
|
|
263
|
-
height: auto;
|
|
264
|
-
overflow: hidden;
|
|
265
|
-
border-radius: $borderradius;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// Video
|
|
271
|
-
.#{$n}-message--type-video {
|
|
272
|
-
.#{$n}-message__body {
|
|
273
|
-
width: 100%;
|
|
274
|
-
padding: 0;
|
|
275
|
-
padding-bottom: 66%; // 6:4
|
|
276
|
-
background-color: $black;
|
|
277
|
-
|
|
278
|
-
iframe {
|
|
279
|
-
position: absolute;
|
|
280
|
-
top: 0;
|
|
281
|
-
left: 0;
|
|
282
|
-
width: 100%;
|
|
283
|
-
height: 100%;
|
|
284
|
-
overflow: hidden;
|
|
285
|
-
border: 0 none;
|
|
286
|
-
border-radius: $borderradius;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
// Download
|
|
292
|
-
.#{$n}-message--type-upload {
|
|
293
|
-
.#{$n}-download {
|
|
294
|
-
display: flex;
|
|
295
|
-
align-items: center;
|
|
296
|
-
width: 100%;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.#{$n}-download a {
|
|
300
|
-
color: inherit;
|
|
301
|
-
text-align: left;
|
|
302
|
-
word-break: break-all;
|
|
303
|
-
|
|
304
|
-
&:hover {
|
|
305
|
-
text-decoration: none;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.#{$n}-icon {
|
|
310
|
-
flex: 0 0 16px;
|
|
311
|
-
width: 16px;
|
|
312
|
-
height: 16px;
|
|
313
|
-
margin-right: $spacer * 0.5;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.#{$n}-icon svg {
|
|
317
|
-
width: 100%;
|
|
318
|
-
height: 100%;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
// Deleted
|
|
323
|
-
.#{$n}-message--deleted .#{$n}-file-download {
|
|
324
|
-
text-decoration: line-through;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.#{$n}-message .#{$n}-message__info {
|
|
328
|
-
margin-top: $spacer * 0.2;
|
|
329
|
-
color: $grey-d;
|
|
330
|
-
font-size: $fontsize-small;
|
|
331
|
-
line-height: 1.35;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
// CTA
|
|
335
|
-
.#{$n}-message--type-cta {
|
|
336
|
-
.#{$n}-message__body {
|
|
337
|
-
display: flex;
|
|
338
|
-
flex-direction: column;
|
|
339
|
-
width: 100%;
|
|
340
|
-
padding: $spacer * 0.5 $spacer * 0.75 $spacer * 0.75;
|
|
341
|
-
background-color: $brand2;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.#{$n}-cta__content {
|
|
345
|
-
margin-bottom: $spacer * 0.5;
|
|
346
|
-
color: $white;
|
|
347
|
-
font-size: $fontsize-medium;
|
|
348
|
-
line-height: 1.5;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
.#{$n}-cta__content p {
|
|
352
|
-
color: inherit;
|
|
353
|
-
font-family: inherit;
|
|
354
|
-
font-size: inherit;
|
|
355
|
-
font-weight: inherit;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.#{$n}-button {
|
|
359
|
-
margin-bottom: $spacer * 0.5;
|
|
360
|
-
line-height: 2;
|
|
361
|
-
text-decoration: none;
|
|
362
|
-
|
|
363
|
-
&:last-child {
|
|
364
|
-
margin-bottom: 0;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
// Cards
|
|
370
|
-
.#{$n}-message--type-card {
|
|
371
|
-
.#{$n}-message__body {
|
|
372
|
-
display: flex;
|
|
373
|
-
flex-direction: column;
|
|
374
|
-
width: 100%;
|
|
375
|
-
padding: 0;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
// Carousel
|
|
380
|
-
.#{$n}-message--type-carousel {
|
|
381
|
-
.#{$n}-message__body {
|
|
382
|
-
display: block;
|
|
383
|
-
padding: 0;
|
|
384
|
-
}
|
|
385
34
|
}
|
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
// ##### MODAL #####
|
|
2
|
-
// ==================
|
|
3
|
-
|
|
4
|
-
// VARS
|
|
5
|
-
// ----
|
|
6
|
-
|
|
7
|
-
$small-shadow-light: 0 $spacer * 0.2 $spacer * 0.3333 0 rgba(0, 0, 0, 0.1);
|
|
8
|
-
$control-small-radius: $spacer;
|
|
9
|
-
$button-transition: $transition;
|
|
10
|
-
|
|
11
|
-
// BASE
|
|
12
|
-
// ----
|
|
13
|
-
|
|
14
1
|
.#{$n}-modal {
|
|
15
2
|
@include boxSizing;
|
|
16
3
|
|
|
17
|
-
display: block;
|
|
18
4
|
display: flex;
|
|
19
5
|
position: fixed;
|
|
20
6
|
z-index: 99;
|
|
21
7
|
top: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
bottom: 0;
|
|
22
10
|
left: 0;
|
|
23
11
|
align-items: center;
|
|
24
12
|
justify-content: center;
|
|
25
13
|
width: 100%;
|
|
14
|
+
min-width: 100%;
|
|
26
15
|
height: 100%;
|
|
27
|
-
|
|
16
|
+
min-height: 100%;
|
|
28
17
|
padding: $spacer;
|
|
18
|
+
transform: scale(1);
|
|
19
|
+
opacity: 1;
|
|
29
20
|
background-color: rgba($app-bg, 0.8);
|
|
30
21
|
}
|
|
31
22
|
|
|
@@ -39,7 +30,7 @@ $button-transition: $transition;
|
|
|
39
30
|
border-radius: $borderradius;
|
|
40
31
|
outline: 0;
|
|
41
32
|
background-color: $app-bg;
|
|
42
|
-
box-shadow: $boxshadow-
|
|
33
|
+
box-shadow: $boxshadow-soft;
|
|
43
34
|
}
|
|
44
35
|
|
|
45
36
|
.#{$n}-modal__inner {
|
|
@@ -50,16 +41,14 @@ $button-transition: $transition;
|
|
|
50
41
|
width: 100%;
|
|
51
42
|
height: 100%;
|
|
52
43
|
padding: $spacer * 0.5;
|
|
53
|
-
border-radius: $borderradius-small;
|
|
54
|
-
background-color: $grey-a;
|
|
55
44
|
}
|
|
56
45
|
|
|
57
46
|
.#{$n}-modal__image {
|
|
58
47
|
display: block;
|
|
59
48
|
flex: 0 0 auto;
|
|
60
49
|
width: auto;
|
|
61
|
-
max-width:
|
|
62
|
-
max-height:
|
|
50
|
+
max-width: 100%;
|
|
51
|
+
max-height: 100%;
|
|
63
52
|
border: $thin-border solid $grey-b;
|
|
64
53
|
}
|
|
65
54
|
|
|
@@ -68,22 +57,21 @@ $button-transition: $transition;
|
|
|
68
57
|
display: flex;
|
|
69
58
|
position: absolute;
|
|
70
59
|
top: $spacer;
|
|
71
|
-
right: $spacer
|
|
60
|
+
right: $spacer;
|
|
72
61
|
align-items: center;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
border:
|
|
76
|
-
border-radius: $
|
|
77
|
-
background-color: $
|
|
78
|
-
|
|
79
|
-
color: $brand3;
|
|
80
|
-
font-size: $fontsize-medium;
|
|
62
|
+
min-height: $buttonsize;
|
|
63
|
+
padding: $spacer * 0.25 $spacer * 0.75;
|
|
64
|
+
border: 0 none;
|
|
65
|
+
border-radius: $borderradius-small;
|
|
66
|
+
background-color: $interaction;
|
|
67
|
+
color: set-text-color($interaction);
|
|
81
68
|
font-weight: $fontweight-bold;
|
|
82
69
|
|
|
83
70
|
.#{$n}-icon {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
flex: 0 0 $iconsize-small;
|
|
72
|
+
width: $iconsize-small;
|
|
73
|
+
height: $iconsize-small;
|
|
74
|
+
margin-right: $spacer * 0.5;
|
|
87
75
|
|
|
88
76
|
svg {
|
|
89
77
|
width: inherit;
|
|
@@ -91,18 +79,8 @@ $button-transition: $transition;
|
|
|
91
79
|
}
|
|
92
80
|
|
|
93
81
|
svg path {
|
|
94
|
-
transition: fill $
|
|
95
|
-
fill: $
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:hover {
|
|
100
|
-
transition: color $button-transition;
|
|
101
|
-
background-color: $brand3;
|
|
102
|
-
color: $app-bg;
|
|
103
|
-
|
|
104
|
-
svg path {
|
|
105
|
-
fill: $app-bg;
|
|
82
|
+
transition: fill $transition;
|
|
83
|
+
fill: $white;
|
|
106
84
|
}
|
|
107
85
|
}
|
|
108
86
|
}
|
|
@@ -115,24 +93,16 @@ $button-transition: $transition;
|
|
|
115
93
|
bottom: $spacer;
|
|
116
94
|
align-items: center;
|
|
117
95
|
justify-content: center;
|
|
118
|
-
width: $
|
|
119
|
-
height: $
|
|
96
|
+
width: $buttonsize;
|
|
97
|
+
height: $buttonsize;
|
|
120
98
|
padding: 0;
|
|
121
99
|
border: 0 none;
|
|
122
|
-
border-radius:
|
|
123
|
-
background:
|
|
100
|
+
border-radius: 50% 50%;
|
|
101
|
+
background-color: $white;
|
|
124
102
|
color: transparent;
|
|
125
103
|
font-size: 0;
|
|
126
104
|
|
|
127
|
-
svg path {
|
|
128
|
-
fill: $
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&:hover {
|
|
132
|
-
background-color: $brand3;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&:hover .cvco-icon svg path {
|
|
136
|
-
fill: $white;
|
|
105
|
+
.#{$n}-icon svg path {
|
|
106
|
+
fill: $interaction;
|
|
137
107
|
}
|
|
138
108
|
}
|