panel.scss 3.4 KB

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