|
1 | | -@import "bootstrap/scss/functions"; |
2 | | -@import "bootstrap/scss/variables"; |
3 | | -@import "bootstrap/scss/mixins"; |
4 | | -@import "shared/styles/_variables.scss"; |
5 | | -@import "./chatbox.scss"; |
6 | | - |
| 1 | +@import 'bootstrap/scss/functions'; |
| 2 | +@import 'bootstrap/scss/variables'; |
| 3 | +@import 'bootstrap/scss/mixins'; |
| 4 | +@import 'shared/styles/_variables.scss'; |
| 5 | +@import './chatbox.scss'; |
7 | 6 |
|
8 | 7 | /* ******************* Overlay and embedded styles *************************** */ |
9 | 8 |
|
10 | 9 | .conversejs { |
11 | | - converse-app-chat.converse-embedded, |
12 | | - converse-app-chat.converse-overlayed { |
13 | | - .controlbox-head { |
14 | | - padding: 0.5em; |
15 | | - } |
16 | | - .chat-head { |
17 | | - border-top-left-radius: 0; |
18 | | - border-top-right-radius: 0; |
19 | | - } |
20 | | - .chatbox { |
21 | | - min-width: var(--overlayed-chat-width) !important; |
22 | | - width: var(--overlayed-chat-width); |
23 | | - |
24 | | - .box-flyout { |
| 10 | + converse-app-chat { |
| 11 | + &.converse-embedded, |
| 12 | + &.converse-overlayed { |
| 13 | + .controlbox-head { |
| 14 | + padding: 0.5em; |
| 15 | + } |
| 16 | + .chat-head { |
| 17 | + border-top-left-radius: 0; |
| 18 | + border-top-right-radius: 0; |
| 19 | + } |
| 20 | + .chatbox { |
25 | 21 | min-width: var(--overlayed-chat-width) !important; |
26 | 22 | width: var(--overlayed-chat-width); |
| 23 | + |
| 24 | + .box-flyout { |
| 25 | + min-width: var(--overlayed-chat-width) !important; |
| 26 | + width: var(--overlayed-chat-width); |
| 27 | + } |
27 | 28 | } |
28 | 29 | } |
29 | | - } |
30 | 30 |
|
31 | | - converse-app-chat.converse-overlayed { |
32 | | - .chat-head, .box-flyout { |
33 | | - border-top-left-radius: var(--chatbox-border-radius); |
34 | | - border-top-right-radius: var(--chatbox-border-radius); |
35 | | - @media screen and (max-height: $mobile-landscape-height) { |
36 | | - border-top-left-radius: 0; |
37 | | - border-top-right-radius: 0; |
| 31 | + &.converse-overlayed { |
| 32 | + display: flex; |
| 33 | + flex-direction: row-reverse; |
| 34 | + |
| 35 | + .brand-heading { |
| 36 | + padding-inline-start: 1em; |
| 37 | + width: 100%; |
38 | 38 | } |
39 | | - @media screen and (max-width: $mobile-portrait-length) { |
40 | | - border-top-left-radius: 0; |
41 | | - border-top-right-radius: 0; |
| 39 | + |
| 40 | + .converse-svg-logo { |
| 41 | + margin-right: 0.1em; |
| 42 | + height: 1em; |
42 | 43 | } |
43 | | - } |
44 | 44 |
|
45 | | - .flyout { |
46 | | - bottom: var(--overlayed-chatbox-hover-height); |
47 | | - } |
48 | | - .box-flyout { |
49 | | - height: var(--overlayed-chat-height); |
50 | | - min-height: calc(var(--overlayed-chat-height) / 2); |
51 | | - } |
52 | | - .minimized-chats-flyout .chat-head { |
53 | | - cursor: default; |
54 | | - } |
55 | | - .chat-textarea { |
56 | | - max-height: var(--overlayed-max-chat-textarea-height); |
57 | | - } |
58 | | - .chatbox { |
59 | | - .chat-body { |
60 | | - height: calc(100% - var(--overlayed-chat-head-height)); |
| 45 | + .chat-head, |
| 46 | + .box-flyout { |
| 47 | + border-top-left-radius: var(--chatbox-border-radius); |
| 48 | + border-top-right-radius: var(--chatbox-border-radius); |
| 49 | + @media screen and (max-height: $mobile-landscape-height) { |
| 50 | + border-top-left-radius: 0; |
| 51 | + border-top-right-radius: 0; |
| 52 | + } |
| 53 | + @media screen and (max-width: $mobile-portrait-length) { |
| 54 | + border-top-left-radius: 0; |
| 55 | + border-top-right-radius: 0; |
| 56 | + } |
| 57 | + } |
| 58 | + |
| 59 | + .flyout { |
| 60 | + border: 0; |
| 61 | + bottom: var(--overlayed-chatbox-hover-height); |
| 62 | + } |
| 63 | + .box-flyout { |
| 64 | + height: var(--overlayed-chat-height); |
| 65 | + min-height: calc(var(--overlayed-chat-height) / 2); |
61 | 66 | } |
62 | | - .chatbox-title { |
63 | | - padding: 0.5rem 0.75rem 0 0.75rem; |
| 67 | + .minimized-chats-flyout .chat-head { |
| 68 | + cursor: default; |
64 | 69 | } |
65 | | - .chatbox-title--no-desc { |
66 | | - padding: 0.5rem 0.75rem; |
| 70 | + .chat-textarea { |
| 71 | + max-height: var(--overlayed-max-chat-textarea-height); |
| 72 | + } |
| 73 | + .chatbox { |
| 74 | + .chat-body { |
| 75 | + height: calc(100% - var(--overlayed-chat-head-height)); |
| 76 | + } |
| 77 | + .chatbox-title { |
| 78 | + padding: 0.5rem 0.75rem 0 0.75rem; |
| 79 | + } |
| 80 | + .chatbox-title--no-desc { |
| 81 | + padding: 0.5rem 0.75rem; |
| 82 | + } |
67 | 83 | } |
68 | 84 | } |
69 | 85 | } |
|
79 | 95 |
|
80 | 96 | .conversejs { |
81 | 97 | converse-app-chat.converse-embedded, |
82 | | - converse-app-chat.converse-fullscreen { |
| 98 | + converse-app-chat.converse-fullscreen { |
83 | 99 | .flyout { |
84 | 100 | border-radius: 0; |
85 | | - border:none; |
| 101 | + border: none; |
86 | 102 | bottom: 0; |
87 | 103 | } |
88 | 104 |
|
|
94 | 110 | } |
95 | 111 | } |
96 | 112 |
|
97 | | - converse-app-chat.converse-fullscreen { |
| 113 | + converse-app-chat.converse-fullscreen { |
98 | 114 | &:not(.converse-singleton) { |
99 | 115 | .chatbox { |
100 | 116 | @include media-breakpoint-up(md) { |
|
147 | 163 | /* ******************* Fullpage styles *************************** */ |
148 | 164 |
|
149 | 165 | .conversejs { |
150 | | - converse-app-chat.converse-fullscreen { |
| 166 | + converse-app-chat.converse-fullscreen { |
151 | 167 | .chatbox-btn { |
152 | 168 | font-size: var(--fullpage-chatbox-button-size); |
153 | 169 | } |
|
183 | 199 | } |
184 | 200 | } |
185 | 201 |
|
186 | | - |
187 | 202 | @include media-breakpoint-down(md) { |
188 | 203 | .conversejs { |
189 | | - converse-app-chat:not(.converse-embedded) { |
| 204 | + converse-app-chat:not(.converse-embedded) { |
190 | 205 | > .row { |
191 | 206 | flex-direction: row-reverse; |
192 | 207 | } |
|
210 | 225 |
|
211 | 226 | converse-app-chat.converse-overlayed, |
212 | 227 | converse-app-chat.converse-fullscreen { |
| 228 | + .converse-app-chat { |
| 229 | + .chatbox { |
| 230 | + .box-flyout { |
| 231 | + left: 0; |
| 232 | + bottom: 0; |
| 233 | + border-radius: 0; |
| 234 | + width: 100vw !important; |
| 235 | + height: var(--fullpage-chat-height); |
| 236 | + } |
| 237 | + } |
| 238 | + } |
| 239 | + |
213 | 240 | .chat-head { |
214 | 241 | converse-controlbox-navback { |
215 | 242 | margin: auto 0; |
|
0 commit comments