michat.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. ::-webkit-scrollbar {
  2. width: 3px;
  3. height: 3px;
  4. &-track {
  5. border-radius: 2px;
  6. background: #ccc !important;
  7. }
  8. &-thumb {
  9. border-radius: 5%;
  10. background-color: #666 !important;
  11. }
  12. }
  13. .michat-message-icon {
  14. width: 60px;
  15. height: 60px;
  16. right: 50px;
  17. bottom: 50px;
  18. padding: 0;
  19. z-index: 998;
  20. position: fixed;
  21. line-height: 60px;
  22. border-radius: 50%;
  23. .layui-icon {
  24. color: #fff;
  25. margin: 0;
  26. font-size: 28px;
  27. }
  28. .michat-message-number {
  29. width: 25px;
  30. height: 25px;
  31. font-size: 12px;
  32. background: red;
  33. font-weight: 400;
  34. line-height: 25px;
  35. border-radius: 50%;
  36. position: absolute;
  37. margin: -3px 5px 0 0;
  38. }
  39. }
  40. .michat {
  41. color: #333;
  42. border: 1px solid rgba(0, 0, 0, 0.05);
  43. font-family: \5FAE\8F6F\96C5\9ED1, serif;
  44. background: #fff url(image/bg.jpg) no-repeat center center;
  45. background-size: cover;
  46. .layui-layer-title {
  47. background-color: rgba(245, 245, 245, 0.8)
  48. }
  49. .layui-layer-content {
  50. height: auto !important;
  51. overflow: visible;
  52. }
  53. }
  54. .michat-left {
  55. &:hover {
  56. overflow-y: auto
  57. }
  58. top: 0;
  59. left: 0;
  60. bottom: 0;
  61. width: 220px;
  62. z-index: 1000;
  63. overflow: hidden;
  64. position: absolute;
  65. background-color: rgba(220, 220, 220, 0.9);
  66. li {
  67. &:hover {
  68. background-color: #E2E2E2;
  69. .layui-icon {
  70. display: inline-block
  71. }
  72. }
  73. &.michat-this {
  74. background-color: #F3F3F3
  75. }
  76. .layui-icon {
  77. top: 7px;
  78. right: 5px;
  79. color: #555;
  80. display: none;
  81. font-size: 22px;
  82. position: absolute;
  83. &:hover {
  84. color: #c00
  85. }
  86. }
  87. margin: 5px;
  88. cursor: pointer;
  89. position: relative;
  90. line-height: 40px;
  91. white-space: nowrap;
  92. border-radius: 3px;
  93. padding: 5px 30px 5px 5px;
  94. img {
  95. width: 40px;
  96. height: 40px;
  97. border-radius: 10%
  98. }
  99. span {
  100. width: 130px;
  101. font-size: 14px;
  102. overflow: hidden;
  103. white-space: nowrap;
  104. text-overflow: ellipsis;
  105. }
  106. * {
  107. font-size: 14px;
  108. vertical-align: top;
  109. display: inline-block;
  110. *display: inline;
  111. *zoom: 1;
  112. }
  113. }
  114. }
  115. .michat-right {
  116. position: relative;
  117. margin-left: 220px;
  118. background-color: rgba(255, 255, 255, .9);
  119. &-header {
  120. height: 80px;
  121. cursor: default;
  122. overflow: hidden;
  123. position: relative;
  124. img {
  125. top: 15px;
  126. left: 20px;
  127. width: 50px;
  128. height: 50px;
  129. position: absolute;
  130. border-radius: 100%
  131. }
  132. &-username {
  133. top: 20px;
  134. left: 60px;
  135. font-size: 16px;
  136. position: relative;
  137. }
  138. }
  139. &-list {
  140. height: 300px;
  141. padding: 15px 15px 5px;
  142. overflow-x: hidden;
  143. overflow-y: auto;
  144. border-bottom: 1px solid #ccc;
  145. li {
  146. position: relative;
  147. font-size: 0;
  148. min-height: 68px;
  149. padding-left: 60px;
  150. margin-bottom: 10px;
  151. }
  152. &-item-user {
  153. left: 3px;
  154. position: absolute;
  155. img {
  156. width: 40px;
  157. height: 40px;
  158. border-radius: 100%
  159. }
  160. }
  161. &-item-text {
  162. &:hover {
  163. opacity: .9
  164. }
  165. &:after {
  166. top: 8px;
  167. left: -16px;
  168. width: 0;
  169. height: 0;
  170. content: '';
  171. overflow: hidden;
  172. position: absolute;
  173. border-width: 10px;
  174. border-style: solid dashed dashed;
  175. border-color: transparent #e2e2e2 transparent transparent;
  176. }
  177. display: inline-block;
  178. *display: inline;
  179. *zoom: 1;
  180. color: #333;
  181. padding: 8px 15px;
  182. position: relative;
  183. font-size: 14px;
  184. line-height: 22px;
  185. border-radius: 3px;
  186. vertical-align: top;
  187. word-break: break-all;
  188. background-color: #e2e2e2;
  189. a {
  190. color: #33DF83
  191. }
  192. img {
  193. max-width: 100%;
  194. vertical-align: middle
  195. }
  196. }
  197. &-right {
  198. text-align: right;
  199. padding-left: 0;
  200. padding-right: 60px;
  201. .michat-right-list-item {
  202. &-user {
  203. left: auto;
  204. right: 3px;
  205. }
  206. &-text {
  207. &:after {
  208. left: auto;
  209. right: -16px;
  210. border-color: transparent transparent transparent #5FB878;
  211. }
  212. color: #fff;
  213. text-align: left;
  214. margin-left: 0;
  215. background-color: #5FB878;
  216. a {
  217. color: #fff
  218. }
  219. }
  220. }
  221. }
  222. }
  223. &-footer {
  224. &-textarea {
  225. display: block;
  226. margin-left: 10px;
  227. textarea {
  228. &:focus {
  229. outline: 0
  230. }
  231. &::-webkit-input-placeholder {
  232. color: #ccc;
  233. }
  234. width: 100%;
  235. height: 110px;
  236. border: none;
  237. resize: none;
  238. display: block;
  239. padding: 8px 0 0;
  240. overflow: auto;
  241. background: 0 0;
  242. line-height: 22px;
  243. }
  244. }
  245. &-bottom {
  246. right: 10px;
  247. height: 32px;
  248. bottom: 10px;
  249. cursor: pointer;
  250. font-size: 0;
  251. position: absolute;
  252. line-height: 32px;
  253. span {
  254. &:hover {
  255. background-color: #69BC80
  256. }
  257. &:active {
  258. background-color: #59B573
  259. }
  260. display: inline-block;
  261. *display: inline;
  262. *zoom: 1;
  263. color: #fff;
  264. padding: 0 20px;
  265. font-size: 14px;
  266. margin-left: 5px;
  267. line-height: 32px;
  268. border-radius: 3px;
  269. vertical-align: top;
  270. background-color: #5FB878;
  271. }
  272. }
  273. }
  274. }