panel.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. .c-panel{
  2. position: relative;
  3. width: 350px;
  4. height: 100%;
  5. background: #34363c;
  6. }
  7. .c-panel-header{
  8. position: relative;
  9. z-index: 2;
  10. width: 66px;
  11. height: 100%;
  12. float: left;
  13. background: #2d2f34;
  14. .avatar-wrap{
  15. width: 50px;
  16. height: 50px;
  17. border-radius: 3px;
  18. overflow: hidden;
  19. margin: 10px auto 20px;
  20. cursor: pointer;
  21. &:hover{
  22. opacity: 0.8;
  23. }
  24. img{
  25. width: 100%;
  26. display: block;
  27. overflow: hidden;
  28. }
  29. }
  30. .user-avatar{
  31. width: 50px;
  32. height: 50px;
  33. line-height: 50px;
  34. }
  35. }
  36. .panel-ctrls{
  37. li{
  38. color: #73849f;
  39. height: 50px;
  40. line-height: 50px;
  41. text-align: center;
  42. font-size: 20px;
  43. cursor: pointer;
  44. position: relative;
  45. &.current{
  46. color: #2982c7;
  47. background: #212328;
  48. cursor: default;
  49. &:after{
  50. content: "";
  51. position: absolute;
  52. left: 0;
  53. height: 10px;
  54. width: 2px;
  55. background: #2982c7;
  56. top: 50%;
  57. margin-top: -5px;
  58. }
  59. .mee-icon-chat{
  60. background: url('../../assets/chat-icon-active.png')
  61. }
  62. .friend-icon-chat{
  63. background: url('../../assets/friend-icon-active.png')
  64. }
  65. }
  66. }
  67. }
  68. .c-panel-nav{
  69. position: relative;
  70. z-index: 1;
  71. margin-left: 66px;
  72. height: 100%;
  73. @include webkitbox(2);
  74. }
  75. .panel-searbar{
  76. position: relative;
  77. margin: 0 20px 20px;
  78. padding-top: 30px;
  79. @include webkitbox(1);
  80. .input-con{
  81. background: #2c2e34;
  82. color: #656b77;
  83. height: 30px;
  84. position: relative;
  85. @include flex(1);
  86. }
  87. input{
  88. font-size: 12px;
  89. color: #b1c0d8;
  90. line-height: 30px;
  91. background: none;
  92. margin: 0;
  93. border: none;
  94. outline: none;
  95. padding: 0 0 0 30px;
  96. display: block;
  97. width: 100%;
  98. box-sizing: border-box;
  99. }
  100. .el-icon-search{
  101. font-size: 20px;
  102. position: absolute;
  103. text-align: center;
  104. top: 0;
  105. left: 0;
  106. width: 30px;
  107. height: 30px;
  108. line-height: 30px;
  109. }
  110. .el-icon-plus{
  111. font-size: 16px;
  112. width: 30px;
  113. height: 30px;
  114. line-height: 30px;
  115. border-radius: 3px;
  116. background: #444750;
  117. color: #ffffff;
  118. text-align: center;
  119. margin-left: 10px;
  120. display: block;
  121. cursor: pointer;
  122. &:hover{
  123. opacity: 0.6;
  124. }
  125. }
  126. }
  127. .chat-list{
  128. overflow-y: auto;
  129. @include flex(1);
  130. }
  131. .mee-icon-chat{
  132. display: inline-block;
  133. vertical-align: middle;
  134. background: url('../../assets/chat-icon.png') center center no-repeat;
  135. width: 25px;
  136. height: 22px;
  137. }
  138. .friend-icon-chat{
  139. display: inline-block;
  140. vertical-align: middle;
  141. background: url('../../assets/friend-icon.png') center center no-repeat;
  142. width: 25px;
  143. height: 21px;
  144. }
  145. .group-recommand{
  146. height: 40px;
  147. line-height: 40px;
  148. padding: 6px 13px 20px 19px;
  149. color: #ffffff;
  150. cursor: pointer;
  151. border-bottom: 1px solid #3e4046;
  152. margin-bottom: 10px;
  153. .group-icon{
  154. float: left;
  155. vertical-align: middle;
  156. height: 40px;
  157. width: 40px;
  158. border-radius: 4px;
  159. line-height: 40px;
  160. background: url('../../assets/group-icon.png') center center no-repeat;
  161. background-color: #2ca0f7;
  162. margin-right: 10px;
  163. }
  164. .title{
  165. margin-left: 50px;
  166. font-size: 14px;
  167. i{
  168. float: right;
  169. margin-top: 14px;
  170. }
  171. }
  172. }
  173. .ext{
  174. position: absolute;
  175. width: 24px;
  176. height: 24px;
  177. border-radius: 50%;
  178. background-color: #2398f1;
  179. line-height: 24px;
  180. font-size: 12px;
  181. text-align: center;
  182. color: #ffffff;
  183. right: 4px;
  184. top: 12px;
  185. }
  186. .panel-nav-icon{
  187. position: absolute;
  188. left: 0;
  189. right: 0;
  190. bottom: 0;
  191. height: 60px;
  192. text-align: center;
  193. line-height: 60px;
  194. cursor: pointer;
  195. &:hover{
  196. background-color: #222325;
  197. }
  198. &::after{
  199. content: '';
  200. display: inline-block;
  201. background: url('../../assets/panel-nav-icon.png') no-repeat;
  202. background-size: 100%;
  203. width: 20px;
  204. height: 18px;
  205. }
  206. .menu{
  207. display: none;
  208. position: absolute;
  209. left: 66px;
  210. bottom: 0;
  211. z-index: 99;
  212. color: #7c8ca5;
  213. font-size: 14px;
  214. border-radius: 4px;
  215. overflow: hidden;
  216. &.active{
  217. display: block;
  218. }
  219. .item{
  220. cursor: pointer;
  221. width: 120px;
  222. height: 36px;
  223. line-height: 36px;
  224. background-color: #222325;
  225. }
  226. .exit-icon{
  227. display: inline-block;
  228. vertical-align: middle;
  229. margin-right: 10px;
  230. background: url('../../assets/login-out-icon.png') no-repeat;
  231. width: 14px;
  232. height: 16px;
  233. background-size: 100%;
  234. }
  235. }
  236. }