forked from TeghSinghJ/Live-Chatting-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchat_style.css
120 lines (103 loc) · 2.22 KB
/
chat_style.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.chats {
padding: 30px 15px
}
.chat-avatar {
float: right
}
.chat-avatar .avatar {
width: 30px
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.2),0 6px 10px 0 rgba(0,0,0,0.3);
}
.chat-body {
display: block;
margin: 10px 30px 0 0;
overflow: hidden;
}
.chat-body:first-child {
margin-top: 0
}
.chat-content {
position: relative;
display: block;
float: right;
padding: 8px 15px;
margin: 0 20px 10px 0;
clear: both;
color: #fff;
background-color: #62a8ea;
border-radius: 4px;
-webkit-box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
}
.chat-content:before {
position: absolute;
top: 10px;
right: -10px;
width: 0;
height: 0;
content: '';
border: 5px solid transparent;
border-left-color: #62a8ea
}
.chat-content>p:last-child {
margin-bottom: 0
}
.chat-content+.chat-content:before {
border-color: transparent
}
.chat-time {
display: block;
margin-top: 8px;
color: rgba(255, 255, 255, .6)
}
.chat-left .chat-avatar {
float: left
}
.chat-left .chat-body {
margin-right: 0;
margin-left: 30px
}
.chat-left .chat-content {
float: left;
margin: 0 0 10px 20px;
color: #76838f;
background-color: #dfe9ef
}
.chat-left .chat-content:before {
right: auto;
left: -10px;
border-right-color: #dfe9ef;
border-left-color: transparent
}
.chat-left .chat-content+.chat-content:before {
border-color: transparent
}
.chat-left .chat-time {
color: #a3afb7
}
.panel-footer {
padding: 0 30px 15px;
background-color: transparent;
border-top: 1px solid transparent;
border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px;
}
.avatar img {
width: 100%;
max-width: 100%;
height: auto;
border: 0 none;
border-radius: 1000px;
}
.chat-avatar .avatar {
width: 30px;
}
.avatar {
position: relative;
display: inline-block;
width: 40px;
white-space: nowrap;
border-radius: 1000px;
vertical-align: bottom;
}