global.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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. &:before{
  191. content: "";
  192. position: absolute;
  193. bottom: -12px;
  194. right: 10px;
  195. @include triangle-down(6px,rgba(0, 0, 0,0.85));
  196. }
  197. &.ext-session{
  198. right: auto;
  199. background: #FFF;
  200. color: #333333;
  201. display: block;
  202. height: auto;
  203. text-align: left;
  204. overflow: hidden;
  205. box-shadow: 0px 1px 5px 1px #4f4f4f;
  206. &::before{
  207. display: none;
  208. }
  209. li{
  210. padding: 0 10px;
  211. border-top: 1px solid #f5f5f5;
  212. &:hover{
  213. background: #f5f5f5;
  214. }
  215. &:first-child{
  216. border: 0;
  217. }
  218. }
  219. }
  220. li {
  221. cursor: pointer;
  222. font-size: 14px;
  223. position: relative;
  224. padding: 0 10px;
  225. white-space: nowrap;
  226. &:before{
  227. content: "";
  228. position: absolute;
  229. top: 50%;
  230. left: 0;
  231. margin-top: -10px;
  232. width: 1px;
  233. height: 20px;
  234. background: rgba(255,255,255,0.5);
  235. }
  236. &:first-child{
  237. &:before{
  238. display: none;
  239. }
  240. }
  241. &.split-line{
  242. display: none;
  243. }
  244. &:hover {
  245. opacity: 0.8;
  246. }
  247. }
  248. }
  249. .router-link-exact-active,.router-link-active{
  250. text-decoration: none;
  251. &:hover,&:active,&:visited{
  252. text-decoration: none;
  253. }
  254. }
  255. // 头像
  256. .avatar_bg0{background:#f5882b}
  257. .avatar_bg1{background:#cc90e2}
  258. .avatar_bg2{background:#80d066}
  259. .avatar_bg3{background:#6fb1e4}
  260. .avatar_bg4{background:#f98bae}
  261. .avatar_bg5{background:#ecd074}
  262. .avatar_bg6{background:#e57979}
  263. .avatar_bg7{background:#fba76f}
  264. .avatar_bg8{background:#73cdd0}
  265. .avatar_bg9{background:#fb60c4}
  266. .user-avatar{
  267. width: 40px;
  268. height: 40px;
  269. line-height: 40px;
  270. text-align: center;
  271. border-radius: 2px;
  272. cursor: pointer;
  273. &::before{
  274. content: attr(data-name);
  275. color: #ffffff;
  276. font-size: 14px;
  277. }
  278. &:hover{
  279. opacity: .8;
  280. }
  281. }
  282. @keyframes rotate {
  283. from {
  284. transform: rotate(0deg);
  285. }
  286. to {
  287. transform: rotate(360deg);
  288. }
  289. }
  290. .hidden{
  291. visibility: hidden;
  292. }
  293. .el-loading-mask{
  294. background-color: rgba(0,0,0,.3);
  295. .el-loading-spinner{
  296. &:before{
  297. content: "";
  298. display: inline-block;
  299. width: 30px;
  300. height: 30px;
  301. background: url(../../assets/msg-loading-icon.png) center/100% no-repeat;
  302. animation: rotate .8s ease .2s infinite;
  303. }
  304. svg{
  305. display: none;
  306. }
  307. }
  308. }