Skip to content

Commit 7494101

Browse files
committed
updated chat UI
1 parent fbb78bf commit 7494101

18 files changed

+618
-299
lines changed

samples/chat/css/dashboard.css

Lines changed: 65 additions & 103 deletions
Large diffs are not rendered by default.

samples/chat/css/dialogs.css

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
height: 35px;
44
background-color: #FFFFFF;
55
color: #687A97;
6-
font-family: "Open Sans";
76
font-size: 12px;
87
font-weight: 600;
98
line-height: 12px;
@@ -13,12 +12,14 @@
1312

1413
.j-update_dialog_form, .j-update_chat__title_button, .j-back_to_dialog, .j-update_dialog_link {
1514
display: none;
15+
color: #3978FC;
1616
}
1717

1818
.j-update_dialog_form.active, .j-update_chat__title_button.active, .j-back_to_dialog.active {
1919
display: block;
2020
margin-top: 4px;
2121
margin: 15px 0 0 12px;
22+
color: #000;
2223
}
2324

2425
.j-update_dialog_link.active {
@@ -28,14 +29,12 @@
2829

2930
.j-update_dialog h5 {
3031
color: #6C7A92;
31-
font-family: "Open Sans";
3232
font-size: 12px;
3333
line-height: 17px;
3434
top: 29px;
3535
left: 16px;
3636
display: none;
3737
margin-left: 11px;
38-
margin-top: -4px;
3938
}
4039

4140
.j-update_dialog h5.active {
@@ -44,10 +43,9 @@
4443

4544
.j-update_dialog h3 {
4645
position: absolute;
47-
top: 13px;
48-
right: 15px;
46+
top: 19px;
47+
right: 13px;
4948
color: #3978FC;
50-
font-family: "Open Sans";
5149
font-size: 16px;
5250
font-weight: 600;
5351
line-height: 22px;
@@ -65,18 +63,18 @@
6563
}
6664

6765
.j-update_dialog_btn, .j-create_dialog_btn, .j-forward_dialog_btn {
68-
position: absolute;
69-
top: 6px;
70-
right: 2px;
71-
color: #3978FC;
72-
font-family: "Open Sans";
73-
font-size: 15px;
74-
height: 22px;
75-
width: 67px;
76-
font-weight: 600;
77-
line-height: 22px;
78-
text-align: right;
79-
z-index: 2;
66+
position: absolute;
67+
top: 6px;
68+
right: 2px;
69+
color: #3978FC;
70+
font-size: 16px;
71+
height: 22px;
72+
width: 67px;
73+
font-weight: 600;
74+
line-height: 22px;
75+
text-align: right;
76+
z-index: 2;
77+
font-family: Open Sans Regular;
8078
}
8179

8280
.j-forward_dialog_btn {
@@ -85,11 +83,15 @@
8583

8684
.j-delete_dialog_btn {
8785
color: #3978FC;
88-
font-family: "Open Sans";
8986
font-size: 15px;
9087
font-weight: 600;
9188
padding: 0;
92-
margin: 15px 16px 0 0;
89+
margin: 0px 16px 0 0;
90+
font-family: Open Sans Regular;
91+
position: absolute;
92+
right: 2px;
93+
line-height: 60px;
94+
height: 40px;
9395
}
9496

9597
.j-occupants_chat__user_list .container {
@@ -104,16 +106,15 @@
104106
background-color: #D9E3F7;
105107
padding: 2px 20px 2px 20px;
106108
color: #6C7A92;
107-
font-family: "Open Sans";
108109
font-size: 12px;
109110
line-height: 17px;
110111
text-align: center;
111112
}
112113

113114
.sidebar__dilog_list {
114115
flex: 1 1 100%;
115-
overflow-y: auto;
116116
text-align: left;
117+
overflow-y: scroll;
117118
}
118119

119120
.sidebar__dilog_list.loading:after {
@@ -147,7 +148,7 @@
147148

148149

149150
.dialog__item_link {
150-
padding: 16px 10px;
151+
padding: 10px 16px 10px 7.3px;
151152
display: flex;
152153
flex-wrap: nowrap;
153154
text-decoration: none;
@@ -317,25 +318,28 @@
317318
.dialog__name {
318319
display: block;
319320
width: 100%;
320-
font-size: 15px;
321+
font-size: 16px;
321322
font-weight: 500;
322323
line-height: 18px;
323-
color: #4A4A4A;
324+
color: #000000;
324325
white-space: nowrap;
325326
text-overflow: ellipsis;
326327
overflow: hidden;
327328
margin: 0 10px 6px 0;
329+
letter-spacing: 0;
328330
}
329331

330332
.dialog__last_message {
331333
display: block;
332334
width: 100%;
333-
font-size: 13px;
334-
line-height: 15px;
335-
color: #778594;
335+
font-size: 14px;
336+
line-height: 17px;
337+
color: #6C7A92;
336338
white-space: nowrap;
337339
text-overflow: ellipsis;
338340
overflow: hidden;
341+
letter-spacing: normal;
342+
margin-top: -2px;
339343
}
340344

341345
.dialog__last_message.attachment {
@@ -382,7 +386,6 @@
382386
#is__typing {
383387
height: 38px; width: 375px;
384388
color: #6C7A92;
385-
font-family: "Open Sans";
386389
font-size: 12px;
387390
font-style: italic;
388391
line-height: 17px;

samples/chat/css/login.css

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
.login__container {
1111
display: flex;
1212
height: 100%;
13-
width: 343px;
13+
max-width: 343px;
1414
flex-direction: column;
1515
padding-bottom: 13px;
1616
margin: 0 auto;
@@ -28,7 +28,7 @@
2828
}
2929

3030
.login__logo {
31-
display: block;
31+
display: none;
3232
width: 100px;
3333
margin-left: 16px;
3434
}
@@ -64,7 +64,6 @@
6464
width: 184px;
6565
opacity: 0.5;
6666
color: #333333;
67-
font-family: "Open Sans";
6867
font-size: 14px;
6968
line-height: 19px;
7069
display: inline-block;
@@ -73,11 +72,14 @@
7372

7473
.login_form__row input {
7574
height: 44px;
76-
width: 343px;
75+
max-width: 343px;
7776
border-radius: 4px;
7877
background-color: #FFFFFF;
7978
box-shadow: 0 6px 11px 0 #D8E5FF;
8079
border: none;
80+
width: 100%;
81+
font-size: 16px;
82+
font-family: Open Sans Regular;
8183
}
8284

8385
.login_form__row.error input {
@@ -108,6 +110,7 @@
108110
text-align: left;
109111
padding: 16px 20px 0;
110112
}
113+
111114
.login__footer:after {
112115
content: '';
113116
display: table;
@@ -162,7 +165,6 @@
162165
}
163166

164167
.login__logo {
165-
display: inline-block;
166168
vertical-align: middle;
167169
width: 36px;
168170
}
@@ -177,7 +179,6 @@
177179
height: 44px;
178180
width: 198px;
179181
color: #333333;
180-
font-family: "Open Sans";
181182
font-size: 16px;
182183
line-height: 22px;
183184
text-align: center;
@@ -188,12 +189,18 @@
188189
}
189190
}
190191

192+
@media screen and (min-height: 540px) {
193+
.login__container {
194+
height: inherit;
195+
padding-top: 129px;
196+
}
197+
}
198+
191199
.use-alphanumeric-cha {
192200
display: none;
193201
height: 34px;
194202
width: 342px;
195203
color: #6B7992;
196-
font-family: "Open Sans";
197204
font-size: 12px;
198205
line-height: 17px;
199206
margin-top: 10px;
@@ -204,7 +211,6 @@
204211
height: 34px;
205212
width: 342px;
206213
color: #6B7992;
207-
font-family: "Open Sans";
208214
font-size: 12px;
209215
line-height: 17px;
210216
margin-top: 10px;
@@ -218,13 +224,11 @@
218224
height: 44px;
219225
width: 198px;
220226
color: #333333;
221-
font-family: 'Open Sans';
222227
font-size: 16px;
223228
letter-spacing: 0;
224229
line-height: 22px;
225230
text-align: center;
226-
margin: 0 auto;
227-
margin-bottom: 25px;
231+
margin: 0 auto 25px;
228232
}
229233

230234
@media screen and (min-height: 400px) {

0 commit comments

Comments
 (0)