common.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. @charset "UTF-8";
  2. .pub-scroll-box {
  3. &::-webkit-scrollbar {
  4. width: 8px;
  5. height: 6px;
  6. }
  7. &::-webkit-scrollbar-thumb {
  8. border-radius: 3px;
  9. -moz-border-radius: 3px;
  10. -webkit-border-radius: 3px;
  11. background-color: rgba($color: #8d8a8a, $alpha: 0.2);
  12. }
  13. &::-webkit-scrollbar-track {
  14. background-color: transparent;
  15. }
  16. }
  17. .pub-modal-mask {
  18. position: fixed;
  19. left: 0;
  20. right: 0;
  21. top: 0;
  22. bottom: 0;
  23. z-index: 999;
  24. background-color: rgba($color: #000000, $alpha: 0.7);
  25. text-align: center;
  26. &::after {
  27. content: "";
  28. display: inline-block;
  29. height: 100%;
  30. vertical-align: middle;
  31. }
  32. }
  33. .pub-wrapper {
  34. position: fixed;
  35. left: 0;
  36. top: 0;
  37. right: 0;
  38. bottom: 0;
  39. z-index: 888;
  40. text-align: center;
  41. &:after {
  42. content: "";
  43. display: inline-block;
  44. height: 100%;
  45. width: 0;
  46. vertical-align: middle;
  47. }
  48. .pub-mask {
  49. position: fixed;
  50. left: 0;
  51. top: 0;
  52. width: 100%;
  53. height: 100%;
  54. opacity: 0.5;
  55. background: #000;
  56. z-index: 1014;
  57. }
  58. }
  59. .pub-modal {
  60. display: inline-block;
  61. vertical-align: middle;
  62. background-color: #ffffff;
  63. min-width: 330px;
  64. position: relative;
  65. z-index: 1015;
  66. padding: 0 18px 18px;
  67. box-sizing: border-box;
  68. .modal-hd {
  69. .title {
  70. font-size: 14px;
  71. color: #333333;
  72. text-align: center;
  73. height: 30px;
  74. line-height: 30px;
  75. padding-top: 10px;
  76. }
  77. i {
  78. position: absolute;
  79. right: 6px;
  80. top: 6px;
  81. font-size: 20px;
  82. cursor: pointer;
  83. }
  84. }
  85. }
  86. .mini-wrap {
  87. .pub-modal {
  88. min-width: 275px;
  89. }
  90. }
  91. .pub-loading {
  92. position: absolute;
  93. top: 0;
  94. right: 0;
  95. bottom: 0;
  96. left: 0;
  97. z-index: 10;
  98. background: url(../../assets/loading.gif) center 36% /100px no-repeat;
  99. }
  100. .router-link-exact-active,
  101. .router-link-active {
  102. text-decoration: none;
  103. &:hover,
  104. &:active,
  105. &:visited {
  106. text-decoration: none;
  107. }
  108. }
  109. // 头像
  110. .avatar_bg0 {
  111. background: #f5882b;
  112. }
  113. .avatar_bg1 {
  114. background: #cc90e2;
  115. }
  116. .avatar_bg2 {
  117. background: #80d066;
  118. }
  119. .avatar_bg3 {
  120. background: #6fb1e4;
  121. }
  122. .avatar_bg4 {
  123. background: #f98bae;
  124. }
  125. .avatar_bg5 {
  126. background: #ecd074;
  127. }
  128. .avatar_bg6 {
  129. background: #e57979;
  130. }
  131. .avatar_bg7 {
  132. background: #fba76f;
  133. }
  134. .avatar_bg8 {
  135. background: #73cdd0;
  136. }
  137. .avatar_bg9 {
  138. background: #fb60c4;
  139. }
  140. .user-avatar {
  141. width: 40px;
  142. height: 40px;
  143. line-height: 40px;
  144. text-align: center;
  145. border-radius: 2px;
  146. cursor: pointer;
  147. &::before {
  148. content: attr(data-name);
  149. color: #ffffff;
  150. font-size: 14px;
  151. }
  152. &:hover {
  153. opacity: 0.8;
  154. }
  155. }
  156. .h5-wrap {
  157. .user-avatar {
  158. width: px2rem(90);
  159. height: px2rem(90);
  160. line-height: px2rem(90);
  161. &::before {
  162. font-size: px2rem(32);
  163. }
  164. }
  165. }
  166. @keyframes rotate {
  167. from {
  168. transform: rotate(0deg);
  169. }
  170. to {
  171. transform: rotate(360deg);
  172. }
  173. }
  174. .hidden {
  175. visibility: hidden;
  176. }
  177. .el-loading-mask {
  178. background-color: rgba(0, 0, 0, 0.3);
  179. .el-loading-spinner {
  180. &:before {
  181. content: "";
  182. display: inline-block;
  183. width: 30px;
  184. height: 30px;
  185. background: url(../../assets/msg-loading-icon.png) center/100%
  186. no-repeat;
  187. animation: rotate 0.8s ease 0.2s infinite;
  188. }
  189. svg {
  190. display: none;
  191. }
  192. }
  193. }
  194. .msg-item.you {
  195. .pub-pop-toolbar {
  196. left: 0;
  197. right: auto;
  198. &:before {
  199. left: 10px;
  200. }
  201. }
  202. }
  203. .pub-pop-toolbar {
  204. position: absolute;
  205. top: -46px;
  206. right: 0;
  207. background: rgba(0, 0, 0, 0.85);
  208. border-radius: 5px;
  209. box-shadow: 1px 1px 50px rgba(212, 180, 180, 0.3);
  210. z-index: 11;
  211. user-select: none;
  212. text-align: center;
  213. height: 34px;
  214. line-height: 34px;
  215. display: flex;
  216. color: #fff;
  217. &.ext-username {
  218. top: -60px;
  219. }
  220. &:before {
  221. content: "";
  222. position: absolute;
  223. bottom: -12px;
  224. right: 10px;
  225. @include triangle-down(6px, rgba(0, 0, 0, 0.85));
  226. }
  227. &.ext-session {
  228. right: auto;
  229. background: #fff;
  230. color: #333333;
  231. display: block;
  232. height: auto;
  233. text-align: left;
  234. overflow: hidden;
  235. box-shadow: 0px 1px 5px 1px #4f4f4f;
  236. &::before {
  237. display: none;
  238. }
  239. li {
  240. padding: 0 10px;
  241. border-top: 1px solid #f5f5f5;
  242. &:hover {
  243. background: #f5f5f5;
  244. }
  245. &:first-child {
  246. border: 0;
  247. }
  248. }
  249. }
  250. li {
  251. cursor: pointer;
  252. font-size: 14px;
  253. position: relative;
  254. padding: 0 10px;
  255. white-space: nowrap;
  256. &:before {
  257. content: "";
  258. position: absolute;
  259. top: 50%;
  260. left: 0;
  261. margin-top: -10px;
  262. width: 1px;
  263. height: 20px;
  264. background: rgba(255, 255, 255, 0.5);
  265. }
  266. &:first-child {
  267. &:before {
  268. display: none;
  269. }
  270. }
  271. &.split-line {
  272. display: none;
  273. }
  274. &:hover {
  275. opacity: 0.8;
  276. }
  277. }
  278. }
  279. .h5-wrap {
  280. .pub-pop-toolbar {
  281. top: px2rem(-84);
  282. height: px2rem(69);
  283. line-height: px2rem(69);
  284. &:before {
  285. bottom: px2rem(-12);
  286. right: px2rem(24);
  287. @include triangle-down(px2rem(6), rgba(0, 0, 0, 0.85));
  288. }
  289. &.ext-session {
  290. height: auto;
  291. box-shadow: 0 1px 5px 1px #cdcdcd;
  292. }
  293. li {
  294. padding: 0 px2rem(21);
  295. &:before {
  296. margin-top: px2rem(-15);
  297. height: px2rem(30);
  298. }
  299. }
  300. }
  301. .msg-item.you {
  302. .pub-pop-toolbar {
  303. &:before {
  304. left: px2rem(24);
  305. }
  306. }
  307. }
  308. }