Skip to content

Commit 23eb794

Browse files
committed
(theme) add container styles
1 parent 47c8133 commit 23eb794

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ colors="{
192192
backgroundScrollIcon: '#fff'
193193
},
194194
195+
container: {
196+
border: 'none',
197+
borderRadius: '4px',
198+
boxShadow: '0px 3px 1px 1px #000'
199+
},
200+
195201
header: {
196202
background: '#fff'
197203
},

src/ChatWindow/ChatWindow.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,16 @@ export default {
199199
200200
.card-window {
201201
width: 100%;
202-
border-radius: 4px;
203202
display: block;
204203
max-width: 100%;
205204
background: var(--chat-content-bg-color);
206205
color: var(--chat-color);
207206
overflow-wrap: break-word;
208207
position: relative;
209208
white-space: normal;
210-
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
211-
0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
209+
border: var(--chat-container-border);
210+
border-radius: var(--chat-container-border-radius);
211+
box-shadow: var(--chat-container-box-shadow);
212212
}
213213
214214
.chat-container {

src/themes/index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ export const defaultThemeColors = {
1010
backgroundScrollIcon: '#fff'
1111
},
1212

13+
container: {
14+
border: 'none',
15+
borderRadius: '4px',
16+
boxShadow:
17+
'0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)'
18+
},
19+
1320
header: {
1421
background: '#fff'
1522
},
@@ -109,6 +116,13 @@ export const defaultThemeColors = {
109116
backgroundScrollIcon: '#fff'
110117
},
111118

119+
container: {
120+
border: 'none',
121+
borderRadius: '4px',
122+
boxShadow:
123+
'0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)'
124+
},
125+
112126
header: {
113127
background: '#181a1b'
114128
},
@@ -201,6 +215,7 @@ export const defaultThemeColors = {
201215

202216
export const cssThemeVars = ({
203217
general,
218+
container,
204219
header,
205220
footer,
206221
sidemenu,
@@ -221,6 +236,11 @@ export const cssThemeVars = ({
221236
'--chat-border-style': general.borderStyle,
222237
'--chat-bg-scroll-icon': general.backgroundScrollIcon,
223238

239+
// container
240+
'--chat-container-border': container.border,
241+
'--chat-container-border-radius': container.borderRadius,
242+
'--chat-container-box-shadow': container.boxShadow,
243+
224244
// header
225245
'--chat-header-bg-color': header.background,
226246

0 commit comments

Comments
 (0)