panel.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. .c-panel{
  2. position: relative;
  3. z-index: 1;
  4. width: 350px;
  5. height: 100%;
  6. background: #34363c;
  7. }
  8. .c-panel-header{
  9. position: relative;
  10. z-index: 2;
  11. width: 66px;
  12. height: 100%;
  13. float: left;
  14. background: #2d2f34;
  15. .avatar-wrap{
  16. width: 50px;
  17. height: 50px;
  18. border-radius: 3px;
  19. overflow: hidden;
  20. margin: 10px auto 20px;
  21. cursor: pointer;
  22. &:hover{
  23. opacity: 0.8;
  24. }
  25. img{
  26. width: 100%;
  27. display: block;
  28. overflow: hidden;
  29. }
  30. }
  31. .user-avatar{
  32. width: 50px;
  33. height: 50px;
  34. line-height: 50px;
  35. }
  36. }
  37. .panel-ctrls{
  38. li{
  39. color: #73849f;
  40. height: 50px;
  41. line-height: 50px;
  42. text-align: center;
  43. font-size: 20px;
  44. cursor: pointer;
  45. position: relative;
  46. &.current{
  47. color: #2982c7;
  48. background: #212328;
  49. cursor: default;
  50. &:after{
  51. content: "";
  52. position: absolute;
  53. left: 0;
  54. height: 10px;
  55. width: 2px;
  56. background: #2982c7;
  57. top: 50%;
  58. margin-top: -5px;
  59. }
  60. .mee-icon-chat{
  61. background: url('../../assets/chat-icon-active.png')
  62. }
  63. .friend-icon-chat{
  64. background: url('../../assets/friend-icon-active.png')
  65. }
  66. }
  67. }
  68. }
  69. .c-panel-nav{
  70. position: relative;
  71. z-index: 1;
  72. margin-left: 66px;
  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. .chat-list{
  133. overflow-y: auto;
  134. overflow-x: hidden;
  135. @include flex(1);
  136. }
  137. .mee-icon-chat{
  138. display: inline-block;
  139. vertical-align: middle;
  140. background: url('../../assets/chat-icon.png') center center no-repeat;
  141. width: 25px;
  142. height: 22px;
  143. }
  144. .friend-icon-chat{
  145. display: inline-block;
  146. vertical-align: middle;
  147. background: url('../../assets/friend-icon.png') center center no-repeat;
  148. width: 25px;
  149. height: 21px;
  150. }
  151. .group-recommand{
  152. height: 40px;
  153. line-height: 40px;
  154. padding: 6px 13px 20px 19px;
  155. color: #ffffff;
  156. cursor: pointer;
  157. border-bottom: 1px solid #3e4046;
  158. &:hover {
  159. background: #383b41;
  160. }
  161. &.current {
  162. background: #3f424c;
  163. cursor: default;
  164. }
  165. .group-icon{
  166. float: left;
  167. vertical-align: middle;
  168. height: 40px;
  169. width: 40px;
  170. border-radius: 4px;
  171. line-height: 40px;
  172. background: url('../../assets/group-icon.png') center center no-repeat;
  173. background-color: #2ca0f7;
  174. margin-right: 10px;
  175. }
  176. .title{
  177. margin-left: 50px;
  178. font-size: 14px;
  179. i{
  180. float: right;
  181. margin-top: 14px;
  182. }
  183. }
  184. }
  185. .ext{
  186. position: absolute;
  187. width: 24px;
  188. height: 24px;
  189. border-radius: 50%;
  190. background-color: #2398f1;
  191. line-height: 24px;
  192. font-size: 12px;
  193. text-align: center;
  194. color: #ffffff;
  195. right: 4px;
  196. top: 12px;
  197. }
  198. .panel-setting{
  199. position: absolute;
  200. left: 0;
  201. right: 0;
  202. bottom: 0;
  203. height: 60px;
  204. cursor: pointer;
  205. .panel-nav-icon{
  206. display: inline-block;
  207. background: url('../../assets/panel-nav-icon.png') center/20px 18px no-repeat;
  208. width: 100%;
  209. height: 100%;
  210. &.active,&:hover{
  211. background-color: #26282d;
  212. }
  213. }
  214. .menu{
  215. display: none;
  216. position: absolute;
  217. left: 66px;
  218. bottom: 0;
  219. z-index: 99;
  220. width: 160px;
  221. color: #7c8ca5;
  222. font-size: 14px;
  223. border-radius: 4px;
  224. overflow: hidden;
  225. user-select: none;
  226. &.active{
  227. display: block;
  228. }
  229. .item{
  230. cursor: pointer;
  231. height: 36px;
  232. line-height: 36px;
  233. background-color: #2f3137;
  234. padding-left: 14px;
  235. cursor: pointer;
  236. &:hover{
  237. background-color: #26282d;
  238. }
  239. }
  240. i{
  241. display: inline-block;
  242. vertical-align: middle;
  243. margin-right: 10px;
  244. width: 18px;
  245. height: 18px;
  246. }
  247. .icon-mute0{
  248. background: url('../../assets/icon-set-mute0.png') center /100% no-repeat;
  249. }
  250. .icon-mute1{
  251. background: url('../../assets/icon-set-mute1.png') center /100% no-repeat;
  252. }
  253. .icon-msg0{
  254. background: url('../../assets/icon-set-msg1.png') center /100% no-repeat;
  255. }
  256. .icon-msg1{
  257. background: url('../../assets/icon-set-msg0.png') center /100% no-repeat;
  258. }
  259. .icon-feedback{
  260. width: 16px;
  261. height: 14px;
  262. background: url('../../assets/icon-set-feedback.png') center /100% no-repeat;
  263. }
  264. .icon-lang{
  265. width: 17px;
  266. height: 17px;
  267. background: url('../../assets/icon-set-lang.png') center /100% no-repeat;
  268. }
  269. .icon-logout{
  270. width: 14px;
  271. height: 16px;
  272. background: url('../../assets/icon-set-logout.png') center /100% no-repeat;
  273. }
  274. .icon-psw{
  275. width: 14px;
  276. height: 16px;
  277. background: url('../../assets/icon-set-psw.png') center /100% no-repeat;
  278. }
  279. }
  280. }