File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -81,30 +81,25 @@ export default {
81
81
.regular-input {
82
82
padding : 0.5rem 1rem ;
83
83
border-radius : 3px ;
84
- border : 1 px solid #ccc ;
84
+ border : var ( --chat-border-style ) ;
85
85
width : 20rem ;
86
86
height : 12rem ;
87
87
outline : none ;
88
88
}
89
89
90
- .regular-input :focus {
91
- box-shadow : 0 0 0 3px rgba (66 , 153 , 225 , 0.5 );
92
- }
93
-
94
90
.emoji-picker {
95
91
position : absolute ;
96
92
bottom : 50px ;
97
93
right : 10px ;
98
94
z-index : 1 ;
99
- border : 1 px solid #ccc ;
95
+ border : var ( --chat-border-style ) ;
100
96
width : 15rem ;
101
97
height : 20rem ;
102
98
overflow : scroll ;
103
99
padding : 1rem ;
104
100
box-sizing : border-box ;
105
101
border-radius : 0.5rem ;
106
- background : #fff ;
107
- box-shadow : 1px 1px 8px #c7dbe6 ;
102
+ background : var (--chat-emoji-bg-color );
108
103
}
109
104
110
105
.emoji-picker__search {
@@ -114,9 +109,11 @@ export default {
114
109
.emoji-picker__search > input {
115
110
flex : 1 ;
116
111
border-radius : 10rem ;
117
- border : 1 px solid #ccc ;
112
+ border : var ( --chat-border-style ) ;
118
113
padding : 0.5rem 1rem ;
119
114
outline : none ;
115
+ background : var (--chat-bg-color-input );
116
+ color : var (--chat-color );
120
117
}
121
118
122
119
.emoji-picker h5 {
@@ -145,7 +142,7 @@ export default {
145
142
}
146
143
147
144
.emoji-picker .emojis span :hover {
148
- background : #ececec ;
145
+ background : var ( --chat-sidemenu-bg-color-hover ) ;
149
146
cursor : pointer ;
150
147
}
151
148
</style >
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ export const defaultThemeColors = {
59
59
colorTimestamp : '#a2aeb8'
60
60
} ,
61
61
62
+ emoji : {
63
+ background : '#fff' ,
64
+ } ,
65
+
62
66
icons : {
63
67
search : '#9ca6af' ,
64
68
add : '#1976d2' ,
@@ -139,6 +143,10 @@ export const defaultThemeColors = {
139
143
colorTimestamp : '#6c7278'
140
144
} ,
141
145
146
+ emoji : {
147
+ background : '#343740' ,
148
+ } ,
149
+
142
150
icons : {
143
151
search : '#596269' ,
144
152
add : '#fff' ,
@@ -170,6 +178,7 @@ export const cssThemeVars = ({
170
178
dropdown,
171
179
message,
172
180
room,
181
+ emoji,
173
182
icons
174
183
} ) => {
175
184
return {
@@ -224,6 +233,9 @@ export const cssThemeVars = ({
224
233
'--chat-room-color-message' : room . colorMessage ,
225
234
'--chat-room-color-timestamp' : room . colorTimestamp ,
226
235
236
+ // emoji
237
+ '--chat-emoji-bg-color' : emoji . background ,
238
+
227
239
// icons
228
240
'--chat-icon-color-search' : icons . search ,
229
241
'--chat-icon-color-add' : icons . add ,
You can’t perform that action at this time.
0 commit comments