Repository navigation
Expand file tree
/
Copy pathchat.css
More file actions
191 lines (184 loc) · 4.88 KB
/
Copy pathchat.css
File metadata and controls
191 lines (184 loc) · 4.88 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/**
*
* Copyright 2011-2016 mengkunsoft, Inc.
* Licensed under MIT
*/
*, ::before, ::after {
box-sizing: border-box;
}
html,body{
height: 100%;
margin: 0;
padding: 0;
}
body{
max-width:800px;
margin:0 auto;
}
.mk-chat-box{
font-family: "Helvetica Neue", Helvetica, Microsoft Yahei, Hiragino Sans GB, WenQuanYi Micro Hei, sans-serif;
font-size:16px;
width: 100%;
padding: 0;
position:relative;
overflow-y: scroll;
overflow-x: hidden;
height: calc(100% - 130px);border: 1px solid #eceff1;
border-bottom:0;
}
.top{padding-left:10px;background-color: #eceff1;height:40px;line-height:40px;text-align:center;}
.foot{line-height:50px;text-align:center;font-size:12px;}
.write{height:40px;width: 100%;}
.write input {
font-size: 16px;
float: left;
width: calc(100% - 60px);
height: 40px;
padding: 0 10px;
border-radius:0;
border: 0;
outline: none;
background:#eceff1;
font-family: 'Source Sans Pro', sans-serif;
font-weight: 400;
}
#fresh{color:#fff}
.send{color:#fff;text-decoration:none;width:60px; background-color: #007bff;display:inline-block;height: 40px;line-height:40px;text-align:center}
.send.disabled{background-color: #cccccc;}
.mk-chat-box .msg{ /*消息主体*/
margin: 4px 6px;
position: relative; /*兼容IE*/
min-height: 40px;
border: 0;
}
.mk-chat-box .right{
text-align: right;
margin-left: 64px;
}
.mk-chat-box .left{
text-align: left;
margin-right: 64px;
}
.mk-chat-box img.head{ /*头像*/
width: 32px;
height: 32px;
top: 8px;
position: absolute;
-moz-border-radius: 100%; /* Firefox */
-webkit-border-radius: 100%; /* Safari 和 Chrome */
border-radius: 100%;
border: 1px solid #cbe5c8;
-moz-user-select: none; /*禁止用户选中*/
-o-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.mk-chat-box .right img.head{
right: 0;
}
.mk-chat-box .left img.head{
left: 0;
}
.mk-chat-box .name{ /*昵称显示区域*/
color: #8b8b8b;
font-size: 12px;
display: block;
line-height: 18px;
}
.mk-chat-box .right .name{
margin: 0 48px 2px 0;
}
.mk-chat-box .left .name{
margin: 0 0 2px 48px;
}
.mk-chat-box .content{ /*消息内容区域*/
word-break: break-all;
word-wrap: break-word;/*支持IE,chrome,FF*/
text-align: left;
position: relative;
display: inline-block;
font-size: 14px;
padding: 6px;
line-height: 18px;
-moz-border-radius: 6px; /* Firefox */
-webkit-border-radius: 6px; /* Safari 和 Chrome */
border-radius: 6px;
min-width: 9px; /*防止出现空白消息变形*/
min-height: 18px;
}
.mk-chat-box .content img{ /*消息内容区域图片*/
width: 100%;
*:width: auto; /*低版本的IE*/
*:max-width: 100%;
height: auto;
}
.mk-chat-box .content a{ /*消息内容区域超链接*/
color: #0072C1;
margin: 0 5px;
cursor: hand;
}
.mk-chat-box .right .content{
margin: 0 48px 0 0;
border: 1px solid #78cdf8;
background: #78cdf8;
}
.mk-chat-box .left .content{
margin: 0 0 0 48px;
border: 1px solid #CDD7E2;
background: #CDD7E2;
}
.mk-chat-box .content:after{ /*消息尖角*/
content: "";
position: absolute;
border-bottom: 8px solid rgba(255, 255, 255, 0);
}
.mk-chat-box .right .content:after{
right: -12px;
top: 8px;
border-left: 12px solid #78cdf8;
}
.mk-chat-box .left .content:after{
left: -12px;
top: 8px;
border-right: 12px solid #cdd7e2;
}
.mk-chat-box .tips{ /*系统提示条*/
margin: 12px;
text-align: center;
font-size: 12px;
}
.mk-chat-box .tips span{
display: inline-block;
padding: 4px;
background-color: #cccccc;
color: #ffffff;
-moz-border-radius: 6px; /* Firefox */
-webkit-border-radius: 6px; /* Safari 和 Chrome */
border-radius: 6px;
}
.mk-chat-box .tips .tips-primary{
background-color: #428bca;
}
.mk-chat-box .tips .tips-success{
background-color: #5cb85c;
}
.mk-chat-box .tips .tips-info{
background-color: #5bc0de;
}
.mk-chat-box .tips .tips-warning{
background-color: #f0ad4e;
}
.mk-chat-box .tips .tips-danger{
background-color: #d9534f;
}
/*滚动条美化*/
.mk-chat-box::-webkit-scrollbar{width:8px;height:8px}
.mk-chat-box::-webkit-scrollbar-button:vertical{display:none}
.mk-chat-box::-webkit-scrollbar-track:vertical{background-color:transparent;}
.mk-chat-box::-webkit-scrollbar-track-piece{background-color:transparent;}
.mk-chat-box::-webkit-scrollbar-thumb:vertical{background-color:rgba(204,204,204,.3);border-radius:8px}
.mk-chat-box::-webkit-scrollbar-thumb:vertical:hover,
.mk-chat-box::-webkit-scrollbar-thumb:vertical:active {background-color: #8C8C8C}
.login{margin-top:10px;}