-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chat.css
87 lines (85 loc) · 1.62 KB
/
Chat.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.chat {
flex: 0.7;
display: flex;
flex-direction: column;
}
.chat__header {
padding: 20px;
display: flex;
position: sticky;
align-items: center;
height: 4%;
border-bottom: 1px solid lightgray;
}
.chat__headerInfo {
flex: 1;
padding-left: 20px;
}
.chat__headerInfo > h3 {
margin-bottom: 3px;
font-weight: 500px;
align-items: center;
}
.chat__headerInfo > p {
color: gray;
}
.chat__headerRight {
display: flex;
justify-content: space-between;
min-width: 100px;
}
.chat__body {
flex: 1;
background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
background-repeat: repeat;
background-position: center;
padding: 30px;
overflow: scroll;
}
.chat__message {
position: relative;
font-size: 16px;
padding: 10px;
background-color: #ffffff;
border-radius: 10px;
width: fit-content;
margin-bottom: 1px;
}
.chat__name {
position: absolute;
top: -15px;
font-weight: 800;
font-size: xx-small;
}
.chat__timestamp {
margin-left: 10px;
font-size: xx-small;
}
.chat__reciever {
margin-left: auto;
background-color: #dcf8c6;
}
.chat__footer {
display: flex;
justify-content: space-between;
align-items: center;
height: 62px;
border-top: 1px solid lightgray;
}
.chat__footer > form {
flex: 1;
display: flex;
}
.chat__footer > form > input {
flex: 1;
border-radius: 30px;
padding: 10px;
border: none;
}
.chat__footer > form > button {
display: none;
}
.chat__footer > .MuiSvgIcon-root {
padding: 10px;
color: darkgray;
}