panel.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. .c-panel{
  2. position: absolute;
  3. left: 0;
  4. z-index: 1;
  5. display: flex;
  6. width: 350px;
  7. height: 100%;
  8. background: #34363c;
  9. }
  10. .c-panel-header{
  11. position: relative;
  12. z-index: 2;
  13. width: 66px;
  14. height: 100%;
  15. background: #2d2f34;
  16. .avatar-wrap{
  17. width: 50px;
  18. height: 50px;
  19. border-radius: 3px;
  20. overflow: hidden;
  21. margin: 10px auto 20px;
  22. cursor: pointer;
  23. &:hover{
  24. opacity: 0.8;
  25. }
  26. img{
  27. width: 100%;
  28. display: block;
  29. overflow: hidden;
  30. }
  31. }
  32. .user-avatar{
  33. width: 50px;
  34. height: 50px;
  35. line-height: 50px;
  36. }
  37. }
  38. .panel-ctrls{
  39. li{
  40. color: #73849f;
  41. height: 50px;
  42. line-height: 50px;
  43. text-align: center;
  44. font-size: 20px;
  45. cursor: pointer;
  46. position: relative;
  47. &.current{
  48. color: #2982c7;
  49. background: #212328;
  50. cursor: default;
  51. &:after{
  52. content: "";
  53. position: absolute;
  54. left: 0;
  55. height: 10px;
  56. width: 2px;
  57. background: #2982c7;
  58. top: 50%;
  59. margin-top: -5px;
  60. }
  61. .mee-icon-chat{
  62. background: url('../../assets/chat-icon-active.png')
  63. }
  64. .friend-icon-chat{
  65. background: url('../../assets/friend-icon-active.png')
  66. }
  67. }
  68. }
  69. }
  70. .c-panel-nav{
  71. position: relative;
  72. z-index: 1;
  73. height: 100%;
  74. width: 284px;
  75. @include webkitbox(2);
  76. a{
  77. text-decoration: none;
  78. }
  79. }
  80. .panel-searbar{
  81. position: relative;
  82. margin: 0 20px 20px;
  83. padding-top: 30px;
  84. @include webkitbox(1);
  85. .input-con{
  86. background: #2c2e34;
  87. color: #656b77;
  88. height: 30px;
  89. position: relative;
  90. @include flex(1);
  91. }
  92. input{
  93. font-size: 12px;
  94. color: #b1c0d8;
  95. line-height: 30px;
  96. background: none;
  97. margin: 0;
  98. border: none;
  99. outline: none;
  100. padding: 0 0 0 30px;
  101. display: block;
  102. width: 100%;
  103. box-sizing: border-box;
  104. }
  105. .el-icon-search{
  106. font-size: 20px;
  107. position: absolute;
  108. text-align: center;
  109. top: 0;
  110. left: 0;
  111. width: 30px;
  112. height: 30px;
  113. line-height: 30px;
  114. }
  115. .el-icon-plus{
  116. font-size: 16px;
  117. width: 30px;
  118. height: 30px;
  119. line-height: 30px;
  120. border-radius: 3px;
  121. background: #444750;
  122. color: #ffffff;
  123. text-align: center;
  124. margin-left: 10px;
  125. display: block;
  126. cursor: pointer;
  127. &:hover{
  128. opacity: 0.6;
  129. }
  130. }
  131. }
  132. .panel-pwa{
  133. position: relative;
  134. color: #FFF;
  135. line-height: 50px;
  136. padding: 0 12px 0 20px;
  137. font-size: 14px;
  138. cursor: pointer;
  139. color: #7c8ca5;
  140. background: #2e3035;
  141. &:hover {
  142. background: #383b41;
  143. }
  144. span{
  145. color: #438aff;
  146. }
  147. .el-icon-close{
  148. position: absolute;
  149. top: 50%;
  150. right: 20px;
  151. transform: translateY(-50%);
  152. }
  153. }
  154. .chat-list{
  155. overflow-y: auto;
  156. overflow-x: hidden;
  157. @include flex(1);
  158. }
  159. .mee-icon-chat{
  160. display: inline-block;
  161. vertical-align: middle;
  162. background: url('../../assets/chat-icon.png') center center no-repeat;
  163. width: 25px;
  164. height: 22px;
  165. }
  166. .friend-icon-chat{
  167. display: inline-block;
  168. vertical-align: middle;
  169. background: url('../../assets/friend-icon.png') center center no-repeat;
  170. width: 25px;
  171. height: 21px;
  172. }
  173. .group-recommand{
  174. height: 40px;
  175. line-height: 40px;
  176. padding: 12px 13px 12px 19px;
  177. color: #ffffff;
  178. cursor: pointer;
  179. border-bottom: 1px solid #3e4046;
  180. &:hover {
  181. background: #383b41;
  182. }
  183. &.current {
  184. background: #3f424c;
  185. cursor: default;
  186. }
  187. .group-icon{
  188. float: left;
  189. vertical-align: middle;
  190. height: 40px;
  191. width: 40px;
  192. border-radius: 4px;
  193. line-height: 40px;
  194. background: url('../../assets/group-icon.png') center center no-repeat;
  195. background-color: #2ca0f7;
  196. margin-right: 10px;
  197. }
  198. .title{
  199. margin-left: 50px;
  200. font-size: 14px;
  201. i{
  202. float: right;
  203. margin-top: 14px;
  204. }
  205. }
  206. }
  207. .ext{
  208. position: absolute;
  209. width: 24px;
  210. height: 24px;
  211. border-radius: 50%;
  212. background-color: #2398f1;
  213. line-height: 24px;
  214. font-size: 12px;
  215. text-align: center;
  216. color: #ffffff;
  217. right: 4px;
  218. top: 12px;
  219. }
  220. .panel-setting{
  221. position: absolute;
  222. left: 0;
  223. right: 0;
  224. bottom: 0;
  225. height: 60px;
  226. cursor: pointer;
  227. .panel-nav-icon{
  228. display: inline-block;
  229. background: url('../../assets/panel-nav-icon.png') center/20px 18px no-repeat;
  230. width: 100%;
  231. height: 100%;
  232. &.active,&:hover{
  233. background-color: #26282d;
  234. }
  235. }
  236. .menu{
  237. display: none;
  238. position: absolute;
  239. left: 66px;
  240. bottom: 0;
  241. z-index: 99;
  242. width: 160px;
  243. color: #7c8ca5;
  244. font-size: 14px;
  245. border-radius: 4px;
  246. overflow: hidden;
  247. user-select: none;
  248. &.active{
  249. display: block;
  250. }
  251. .item{
  252. cursor: pointer;
  253. height: 36px;
  254. line-height: 36px;
  255. background-color: #2f3137;
  256. padding-left: 14px;
  257. cursor: pointer;
  258. &:hover{
  259. background-color: #26282d;
  260. }
  261. }
  262. i{
  263. display: inline-block;
  264. vertical-align: middle;
  265. margin-right: 10px;
  266. width: 18px;
  267. height: 18px;
  268. }
  269. .icon-mute0{
  270. background: url('../../assets/icon-set-mute0.png') center /100% no-repeat;
  271. }
  272. .icon-mute1{
  273. background: url('../../assets/icon-set-mute1.png') center /100% no-repeat;
  274. }
  275. .icon-msg0{
  276. background: url('../../assets/icon-set-msg1.png') center /100% no-repeat;
  277. }
  278. .icon-msg1{
  279. background: url('../../assets/icon-set-msg0.png') center /100% no-repeat;
  280. }
  281. .icon-feedback{
  282. width: 16px;
  283. height: 14px;
  284. background: url('../../assets/icon-set-feedback.png') center /100% no-repeat;
  285. }
  286. .icon-lang{
  287. width: 17px;
  288. height: 17px;
  289. background: url('../../assets/icon-set-lang.png') center /100% no-repeat;
  290. }
  291. .icon-logout{
  292. width: 14px;
  293. height: 16px;
  294. background: url('../../assets/icon-set-logout.png') center /100% no-repeat;
  295. }
  296. .icon-psw{
  297. width: 14px;
  298. height: 16px;
  299. background: url('../../assets/icon-set-psw.png') center /100% no-repeat;
  300. }
  301. }
  302. }