global.scss 5.7 KB

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