layim.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. /**
  2. @Name: layim
  3. @Author: 贤心
  4. @Site: http://layim.layui.com
  5. */
  6. /* 加载就绪标志 */
  7. html #layuicss-skinlayimcss{display:none; position: absolute; width:1989px;}
  8. body .layui-layim,
  9. body .layui-layim-chat{border: 1px solid #D9D9D9; border-color: rgba(0,0,0,.05); background-repeat: no-repeat; background-color: #F6F6F6; color: #333; font-family: \5FAE\8F6F\96C5\9ED1;}
  10. body .layui-layim-chat{background-size: cover;}
  11. body .layui-layim .layui-layer-title{height: 110px; border-bottom: none; background: none;}
  12. .layui-layim-main{position: relative; top: -98px; left:0;}
  13. body .layui-layim .layui-layer-content,
  14. body .layui-layim-chat .layui-layer-content{overflow: visible;}
  15. .layui-layim cite,
  16. .layui-layim em,
  17. .layui-layim-chat cite,
  18. .layui-layim-chat em{font-style: normal;}
  19. .layui-layim-info{height: 50px; font-size: 0; padding: 0 15px;}
  20. .layui-layim-info *{font-size: 14px;}
  21. .layui-layim-info div,
  22. .layui-layim-tab li,
  23. .layim-tab-content li h5 *,
  24. .layui-layim-tool li,
  25. .layui-layim-skin li{display: inline-block; vertical-align: top; *zoom: 1; *display: inline;}
  26. .layui-layim-info .layui-layim-user,
  27. .layui-layim-remark,
  28. .layui-layim-list li p,
  29. .layim-tab-content li h5 span,
  30. .layui-layim-list li span{overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
  31. .layui-layim-info .layui-layim-user{max-width: 150px; margin-right: 5px; font-size: 16px;}
  32. .layui-layim-status{position: relative; top: 2px; line-height: 19px; cursor: pointer;}
  33. .layim-status-online{color: #3FDD86;}
  34. .layim-status-hide{color: #DD691D;}
  35. .layim-menu-box{display: none; position: absolute; z-index: 100; top: 24px; left: -31px; padding: 5px 0; width: 85px; border: 1px solid #E2E2E2; border-radius: 2px; background-color: #fff; box-shadow: 1px 1px 20px rgba(0,0,0,.1);}
  36. .layim-menu-box li{position: relative; line-height: 22px; padding-left: 30px; font-size: 12px;}
  37. .layim-menu-box li cite{padding-right: 5px; font-size: 14px;}
  38. .layim-menu-box li i{display: none; position: absolute; left: 0; top: 0;}
  39. .layim-menu-box .layim-this i{display: block;}
  40. .layim-menu-box li:hover{background-color: #eee;}
  41. .layui-layim-remark{position: relative; left: -6px; display: block; width: 100%; border: 1px solid transparent; margin-top: 8px; padding: 0 5px; height: 26px; line-height: 26px; background: none; border-radius: 2px;}
  42. .layui-layim-remark:hover,
  43. .layui-layim-remark:focus{border: 1px solid #d2d2d2; border-color: rgba(0,0,0,.15)}
  44. .layui-layim-remark:focus{background-color: #fff;}
  45. .layui-layim-tab{margin-top: 10px; padding: 9px 0; font-size: 0;}
  46. .layui-layim-tab li{position: relative; width: 33.33%; height: 24px; line-height:24px; font-size: 22px; text-align: center; color: #666; color: rgba(0,0,0,.6); cursor: pointer;}
  47. .layim-tab-two li{width: 50%;}
  48. .layui-layim-tab li.layim-this:after{content: ''; position: absolute; left: 0; bottom: -9px; width: 100%; height: 3px; background-color: #3FDD86;}
  49. .layui-layim-tab li.layim-hide{display: none;}
  50. .layui-layim-tab li:hover{opacity: 0.8; filter: Alpha(opacity=80);}
  51. .layim-tab-content{display: none; padding: 10px 0; height: 349px; overflow: hidden; background-color: #fff; background-color: rgba(255,255,255,0.9);}
  52. .layim-tab-content:hover{overflow-y: auto;}
  53. .layim-tab-content li h5{position:relative; margin-right: 15px; padding-left: 30px; height: 28px; line-height: 28px; cursor:pointer; font-size:0; white-space: nowrap; overflow: hidden;}
  54. .layim-tab-content li h5 *{font-size: 14px;}
  55. .layim-tab-content li h5 span{max-width: 125px;}
  56. .layim-tab-content li h5 i{position: absolute; left: 12px; top: 0; color: #C9BDBB;}
  57. .layim-tab-content li h5 em{padding-left: 5px; color: #999;}
  58. .layim-tab-content li h5[lay-type="true"] i{top: 2px;}
  59. .layim-tab-content li ul{display: none; margin-bottom: 10px;}
  60. .layui-layim-list li{position:relative; height: 42px; padding: 5px 15px 5px 60px; font-size:0; cursor:pointer;}
  61. .layui-layim-list li:hover{background-color: #F2F2F2; background-color: rgba(0,0,0,0.05);}
  62. .layui-layim-list li.layim-null{height: 20px; line-height: 20px; padding: 0; font-size: 14px; color: #999; text-align: center; cursor: default;}
  63. .layui-layim-list li.layim-null:hover{background: none;}
  64. .layui-layim-list li *{display:inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
  65. .layui-layim-list li span{margin-top: 4px; max-width: 155px;}
  66. .layui-layim-list li img{position: absolute; left: 15px; top: 8px; width: 36px; height: 36px; border-radius: 100%;}
  67. .layui-layim-list li p{display: block; padding-right: 30px; line-height: 18px; font-size: 12px; color: #999;}
  68. .layui-layim-list li .layim-msg-status{display: none; position: absolute; right: 10px; bottom: 7px; padding: 0 5px; height: 16px; line-height: 16px; border-radius: 16px; text-align: center; font-size: 10px; background-color: #F74C31; color: #fff;}
  69. .layim-list-gray{-webkit-filter: grayscale(100%); -ms-filter: grayscale(100%); filter: grayscale(100%); filter: gray;}
  70. .layui-layim-tool{padding: 0 10px; font-size: 0; background-color: #F6F6F6; border-radius:0 0 2px 2px;}
  71. .layui-layim-tool li{position: relative; width: 48px; height: 37px; line-height: 40px; text-align: center; font-size: 22px; cursor: pointer;}
  72. .layui-layim-tool li:active{background-color: #e2e2e2;}
  73. .layui-layim-tool .layim-tool-msgbox{line-height: 37px;}
  74. .layui-layim-tool .layim-tool-find{line-height: 38px;}
  75. .layui-layim-tool .layim-tool-skin{font-size: 26px;}
  76. .layim-tool-msgbox span{display: none; position: absolute; left: 12px; top: -12px; height: 20px; line-height: 20px; padding: 0 10px; border-radius: 2px; background-color: #33DF83; color: #fff; font-size: 12px; -webkit-animation-duration: 1s; animation-duration: 1s;}
  77. .layim-tool-msgbox .layer-anim-05{display: block;}
  78. .layui-layim-search{display: none; position: absolute; bottom: 5px; left: 5px; height: 28px; line-height: 28px;}
  79. .layui-layim-search input{width: 210px; padding: 0 30px 0 10px; height: 30px; line-height: 30px; border: none; border-radius: 3px; background-color: #ddd;}
  80. .layui-layim-search label{position: absolute; right: 6px; top: 4px; font-size: 20px; cursor: pointer; color: #333; font-weight: 400;}
  81. /* 换肤 */
  82. .layui-layim-skin{margin: 10px 0 0 10px; font-size: 0;}
  83. .layui-layim-skin li{margin: 0 10px 10px 0; line-height: 60px; text-align: center; background-color: #f6f6f6;}
  84. .layui-layim-skin li,
  85. .layui-layim-skin li img{width: 86px; height: 60px; cursor: pointer;}
  86. .layui-layim-skin li img:hover{opacity: 0.8; filter: Alpha(opacity=80)}
  87. .layui-layim-skin li cite{font-size: 14px; font-style: normal;}
  88. /* 聊天面板 */
  89. body .layui-layim-chat{background-color: #fff;}
  90. body .layui-layim-chat-list{width: 760px;}
  91. body .layui-layim-chat .layui-layer-title{height: 80px; border-bottom: none; background-color: #F8F8F8;
  92. background-color: rgba(245,245,245,.7);}
  93. body .layui-layim-chat .layui-layer-content{background: none;}
  94. .layim-chat-list li *
  95. ,.layui-layim-min .layui-layer-content *{display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
  96. .layim-chat-list{display: none; position: absolute; z-index: 1000; top: -80px; width: 200px; height: 100%; background-color: #D9D9D9; overflow: hidden; font-size: 0;}
  97. .layim-chat-list:hover{overflow-y: auto;}
  98. .layim-chat-list li,
  99. .layui-layim-min .layui-layer-content{position: relative; margin: 5px; padding: 5px 30px 5px 5px; line-height: 40px; cursor: pointer; border-radius: 3px;}
  100. .layim-chat-list li img,
  101. .layui-layim-min .layui-layer-content img{width: 40px; height: 40px; border-radius: 100%;}
  102. .layui-layim-photos{cursor: crosshair;}
  103. .layim-chat-list li{white-space: nowrap;}
  104. .layim-chat-list li span,
  105. .layui-layim-min .layui-layer-content span{width: 100px; padding-left: 10px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
  106. .layim-chat-list li span cite{color: #999; padding-left: 10px;}
  107. .layim-chat-list li:hover{background-color: #E2E2E2;}
  108. .layim-chat-list li.layim-this{background-color: #F3F3F3;}
  109. .layim-chat-list li .layui-icon{display: none; position: absolute; right: 5px; top: 7px; color: #555; font-size: 22px;}
  110. .layim-chat-list li .layui-icon:hover{color: #c00;}
  111. .layim-chat-list li:hover .layui-icon{display: inline-block;}
  112. .layim-chat-system{margin: 10px 0; text-align: center;}
  113. .layim-chat-system span{display: inline-block; line-height: 30px; padding: 0 15px; border-radius: 3px; background-color: #e2e2e2; cursor: default; font-size: 14px;}
  114. .layim-chat{display: none; position: relative; background-color: #fff; background-color: rgba(255,255,255,.9);}
  115. .layim-chat-title{position: absolute; top: -80px; height: 80px;}
  116. .layim-chat-other{position: relative; top: 15px; left: 15px; padding-left: 60px; cursor: default;}
  117. .layim-chat-other img{position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 100%;}
  118. .layim-chat-username{position: relative; top: 5px; font-size: 18px;}
  119. .layim-chat-status{margin-top: 6px; font-size: 14px; color: #999;}
  120. .layim-chat-group .layim-chat-other .layim-chat-username{cursor: pointer;}
  121. .layim-chat-group .layim-chat-other .layim-chat-username em{padding: 0 10px; color: #999;}
  122. .layim-chat-main{height: 262px; padding: 15px 15px 5px 15px; overflow-x: hidden; overflow-y: auto;}
  123. .layim-chat-main ul li{position: relative; font-size: 0; margin-bottom: 10px; padding-left: 60px; min-height: 68px;}
  124. .layim-chat-user,
  125. .layim-chat-text{display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
  126. .layim-chat-user{position: absolute; left: 3px;}
  127. .layim-chat-user img{width: 40px; height: 40px; border-radius: 100%;}
  128. .layim-chat-user cite{position: absolute; left: 60px; top: -2px; width: 500px; line-height: 24px; font-size: 12px; white-space: nowrap; color: #999; text-align: left; font-style: normal;}
  129. .layim-chat-user cite i{padding-left: 15px; font-style: normal;}
  130. .layim-chat-text{position: relative; line-height: 22px; margin-top: 25px; padding: 8px 15px; background-color: #e2e2e2; border-radius: 3px; color: #333; word-break: break-all;}
  131. .layim-chat-text:after{content: ''; position: absolute; left: -10px; top: 13px; width: 0; height: 0; border-style: dashed; border-color:transparent; overflow:hidden; border-width: 10px; border-top-style: solid; border-top-color: #e2e2e2;}
  132. .layim-chat-text{max-width: 462px\0;}
  133. .layim-chat-text a{color: #33DF83;}
  134. .layim-chat-text img{ max-width: 100%; vertical-align: middle;}
  135. .layui-layim-file,
  136. .layim-chat-text .layui-layim-file{display: block; text-align: center; }
  137. .layim-chat-text .layui-layim-file{color: #333;}
  138. .layui-layim-file:hover{opacity: 0.9}
  139. .layui-layim-file i{font-size: 80px; line-height: 80px;}
  140. .layui-layim-file cite{display: block; line-height: 20px; font-size: 14px;}
  141. .layui-layim-audio{text-align: center; cursor: pointer;}
  142. .layui-layim-audio .layui-icon{position: relative; top: 5px; font-size: 24px;}
  143. .layui-layim-audio p{margin-top: 3px;}
  144. .layui-layim-video{width: 120px; height: 80px; line-height: 80px; background-color: #333; text-align: center; border-radius: 3px;}
  145. .layui-layim-video .layui-icon{font-size: 36px; cursor: pointer; color: #fff;}
  146. .layim-chat-main ul .layim-chat-system{min-height: 0; padding: 0;}
  147. .layim-chat-main ul .layim-chat-mine{text-align: right; padding-left: 0; padding-right: 60px;}
  148. .layim-chat-mine .layim-chat-user{left: auto; right: 3px;}
  149. .layim-chat-mine .layim-chat-user cite{left: auto; right: 60px; text-align: right;}
  150. .layim-chat-mine .layim-chat-user cite i{padding-left: 0; padding-right: 15px;}
  151. .layim-chat-mine .layim-chat-text{margin-left: 0; text-align: left; background-color: #5FB878; color: #fff;}
  152. .layim-chat-mine .layim-chat-text:after{left: auto; right: -10px; border-top-color: #5FB878;}
  153. .layim-chat-mine .layim-chat-text a{color: #fff;}
  154. .layim-chat-footer{border-top: 1px solid #F1F1F1;}
  155. .layim-chat-tool{position: relative; padding: 0 8px; height: 38px; line-height: 38px; font-size: 0;}
  156. .layim-chat-tool span{position: relative; margin: 0 10px; display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 24px; cursor: pointer;}
  157. .layim-chat-tool .layim-tool-log{position: absolute; right: 5px; font-size: 14px; }
  158. .layim-tool-log i{position: relative; top: 2px; margin-right: 5px; font-size: 20px; color: #999}
  159. .layim-tool-image input{position: absolute; font-size: 0; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.01; filter: Alpha(opacity=1); cursor: pointer;}
  160. /* 表情 */
  161. body .layui-layim-face{margin: 10px 0 0 -18px; border: none; background: none;}
  162. body .layui-layim-face .layui-layer-content{padding:0; background-color:#fff; color:#666; box-shadow:none}
  163. .layui-layim-face .layui-layer-TipsG{display:none;}
  164. .layui-layim-face ul{position:relative; width:372px; padding:10px; border:1px solid #D9D9D9; background-color:#fff; box-shadow: 0 0 20px rgba(0,0,0,.2);}
  165. .layui-layim-face ul li{cursor: pointer; float: left; border: 1px solid #e8e8e8; height: 22px; width: 26px; overflow: hidden; margin: -1px 0 0 -1px; padding: 4px 2px; text-align: center;}
  166. .layui-layim-face ul li:hover{position: relative; z-index: 2; border: 1px solid #eb7350; background: #fff9ec;}
  167. /* 输入框 */
  168. .layim-chat-textarea{margin-left: 10px;}
  169. .layim-chat-textarea textarea{display: block; width: 100%; padding: 5px 0 0 0; height: 68px; line-height: 20px; border: none; overflow: auto; resize: none; background: none;}
  170. .layim-chat-textarea textarea:focus{outline: 0;}
  171. .layim-chat-bottom{position: relative; height: 46px;}
  172. .layim-chat-send{position: absolute; right: 15px; top: 3px; height: 32px; line-height: 32px; font-size: 0; cursor: pointer;}
  173. .layim-chat-send span{display: inline-block; *display:inline; *zoom:1; vertical-align:top; font-size: 14px;}
  174. .layim-chat-send span{line-height: 32px; margin-left: 5px; padding: 0 20px; background-color: #5FB878; color: #fff; border-radius: 3px;}
  175. .layim-chat-send span:hover{background-color: #69BC80;}
  176. .layim-chat-send span:active{background-color: #59B573}
  177. .layim-chat-send .layim-send-btn{border-radius: 3px 0 0 3px;}
  178. .layim-chat-send .layim-send-set{position: relative; width: 30px; height: 32px; margin-left: 0; padding: 0; border-left: 1px solid #85C998; border-radius: 0 3px 3px 0;}
  179. .layim-send-set .layui-edge{position: absolute; top: 14px; left: 9px; border-width: 6px; border-top-style: solid; border-top-color: #fff;}
  180. .layim-chat-send .layim-menu-box{left: auto; right: 0; top: 33px; width: 180px; padding: 10px 0;}
  181. .layim-chat-send .layim-menu-box li{padding-right: 15px; line-height: 28px;}
  182. /* 最小化 */
  183. body .layui-layim-min{border: 1px solid #D9D9D9;}
  184. .layui-layim-min .layui-layer-content{margin: 0 5px; padding: 5px 10px; white-space: nowrap;}
  185. .layui-layim-close .layui-layer-content span {width: auto; max-width: 120px;}
  186. /* 查看群员 */
  187. body .layui-layim-members{ margin: 25px 0 0 -75px; border: none; background: none;}
  188. body .layui-layim-members .layui-layer-content{padding:0; background: none; color:#666; box-shadow:none}
  189. .layui-layim-members .layui-layer-TipsG{display:none;}
  190. .layui-layim-members ul{position:relative; width: 578px; height: 200px; padding: 10px 10px 0 10px; border:1px solid #D9D9D9; background-color:#fff; background-color: rgba(255,255,255,.9); box-shadow: none; overflow: hidden;}
  191. .layui-layim-members ul:hover{overflow: auto;}
  192. .layui-layim-members ul{font-size: 0;}
  193. .layui-layim-members li,
  194. .layim-add-img,
  195. .layim-add-remark{display: inline-block; *display:inline; *zoom:1; vertical-align: top; font-size: 14px;}
  196. .layui-layim-members li{width: 112px; margin: 10px 0; text-align: center}
  197. .layui-layim-members li a{position: relative; display: inline-block; max-width: 100%;}
  198. .layui-layim-members li a:after{content: ''; position: absolute; width: 46px; height: 46px; left: 50%; margin-left: -23px; top: 0; border: 1px solid #eee; border-color: rgba(0,0,0,.1); border-radius: 100%;}
  199. .layui-layim-members li img{width: 48px; height: 48px; border-radius: 100%;}
  200. .layui-layim-members li:hover{opacity: 0.9;}
  201. .layui-layim-members li a cite{display: block; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
  202. /* 右键面板 */
  203. body .layui-layim-contextmenu{margin: 70px 0 0 30px; width: 200px; padding: 5px 0; border: 1px solid #ccc; background: #fff; border-radius: 0; box-shadow: 0 0 5px rgba(0,0,0,.2);}
  204. body .layui-layim-contextmenu .layui-layer-content{padding:0; background-color:#fff; color: #333; font-size: 14px; box-shadow: none}
  205. .layui-layim-contextmenu .layui-layer-TipsG{display:none;}
  206. .layui-layim-contextmenu li{padding: 0 15px 0 35px; cursor: pointer; line-height: 30px;}
  207. .layui-layim-contextmenu li:hover{background-color: #F2F2F2;}
  208. /* 添加面板 */
  209. .layim-add-box{margin: 15px; font-size: 0;}
  210. .layim-add-img{width: 100px; margin-right: 20px; text-align: center;}
  211. .layim-add-img img{width: 100px; height: 100px; margin-bottom: 10px;}
  212. .layim-add-remark{width: 280px;}
  213. .layim-add-remark p{margin-bottom: 10px;}
  214. .layim-add-remark .layui-select{width: 100%; margin-bottom: 10px;}
  215. .layim-add-remark .layui-textarea{height: 80px; min-height: 80px; resize: none;}
  216. /* 排除与bootstrap的冲突 */
  217. .layui-layim-tab,
  218. .layim-tab-content,
  219. .layui-layim-face ul{margin-bottom: 0;}
  220. .layim-tab-content li h5{margin-top: 0; margin-bottom: 0;}
  221. ,.layui-layim-face img{vertical-align: bottom;}
  222. .layim-chat-other span{color: #444;}
  223. .layim-chat-other span cite{padding: 0 15px; color: #999;}
  224. .layim-chat-other:hover{text-decoration: none;}