global.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. .mee-chat-logo{
  58. position: absolute;
  59. background: url('../../assets/mee-logo.png') no-repeat;
  60. width: 84px;
  61. height: 96px;
  62. left: 50%;
  63. margin-left: -42px;
  64. top: 20px;
  65. }
  66. // 弹窗样式
  67. .msgbox-fade-enter-active {
  68. animation: msgbox-fade-in .3s;
  69. }
  70. .msgbox-fade-leave-active {
  71. animation: msgbox-fade-out .3s;
  72. }
  73. @keyframes msgbox-fade-in {
  74. 0% {
  75. transform: translate3d(0, -20px, 0);
  76. opacity: 0;
  77. }
  78. 100% {
  79. transform: translate3d(0, 0, 0);
  80. opacity: 1;
  81. }
  82. }
  83. @keyframes msgbox-fade-out {
  84. 0% {
  85. transform: translate3d(0, 0, 0);
  86. opacity: 1;
  87. }
  88. 100% {
  89. transform: translate3d(0, -20px, 0);
  90. opacity: 0;
  91. }
  92. }
  93. @keyframes fade-in {
  94. 0% {
  95. opacity: 0;
  96. }
  97. 100% {
  98. opacity: 1;
  99. }
  100. }
  101. @keyframes fade-out {
  102. 0% {
  103. opacity: 1;
  104. }
  105. 100% {
  106. opacity: 0;
  107. }
  108. }
  109. .pub-wrapper{
  110. position: fixed;
  111. left: 0;
  112. top: 0;
  113. right: 0;
  114. bottom: 0;
  115. z-index: 888;
  116. text-align: center;
  117. &:after{
  118. content: "";
  119. display: inline-block;
  120. height: 100%;
  121. width: 0;
  122. vertical-align: middle;
  123. }
  124. .pub-mask{
  125. position: fixed;
  126. left: 0;
  127. top: 0;
  128. width: 100%;
  129. height: 100%;
  130. opacity: .5;
  131. background: #000;
  132. z-index: 1014;
  133. }
  134. }
  135. .pub-modal{
  136. display: inline-block;
  137. vertical-align: middle;
  138. background-color: #ffffff;
  139. min-width: 330px;
  140. position: relative;
  141. z-index: 1015;
  142. padding: 0 18px 18px;
  143. box-sizing: border-box;
  144. .modal-hd{
  145. .title{
  146. font-size: 14px;
  147. color: #333333;
  148. text-align: center;
  149. height: 30px;
  150. line-height: 30px;
  151. padding-top: 10px;
  152. }
  153. i{
  154. position: absolute;
  155. right: 6px;
  156. top: 6px;
  157. font-size: 20px;
  158. cursor: pointer;
  159. }
  160. }
  161. }
  162. .pub-pop-toolbar {
  163. position: absolute;
  164. background: #ffffff;
  165. border-radius: 5px;
  166. overflow: hidden;
  167. box-shadow: 1px 1px 50px rgba(212, 180, 180, 0.3);
  168. z-index: 11;
  169. width: 60px;
  170. user-select: none;
  171. text-align: center;
  172. &.ext-session{
  173. width: 100px;
  174. text-align: left;
  175. li{
  176. padding: 0 10px;
  177. }
  178. }
  179. li {
  180. line-height: 36px;
  181. font-size: 14px;
  182. color: #333333;
  183. position: relative;
  184. cursor: pointer;
  185. &.split-line{
  186. &:after {
  187. content: "";
  188. height: 1px;
  189. left: 5px;
  190. right: 5px;
  191. bottom: 0;
  192. position: absolute;
  193. background: #dfdfdf;
  194. }
  195. }
  196. &:hover {
  197. background: #dfdfdf;
  198. }
  199. }
  200. }
  201. // 头像
  202. .avatar_bg0{background:#f5882b}
  203. .avatar_bg1{background:#cc90e2}
  204. .avatar_bg2{background:#80d066}
  205. .avatar_bg3{background:#6fb1e4}
  206. .avatar_bg4{background:#f98bae}
  207. .avatar_bg5{background:#ecd074}
  208. .avatar_bg6{background:#e57979}
  209. .avatar_bg7{background:#fba76f}
  210. .avatar_bg8{background:#73cdd0}
  211. .avatar_bg9{background:#fb60c4}
  212. .user-avatar{
  213. width: 40px;
  214. height: 40px;
  215. line-height: 40px;
  216. text-align: center;
  217. border-radius: 2px;
  218. cursor: pointer;
  219. &::before{
  220. content: attr(data-name);
  221. color: #ffffff;
  222. font-size: 14px;
  223. }
  224. &:hover{
  225. opacity: .8;
  226. }
  227. }
  228. @keyframes rotate {
  229. from {
  230. transform: rotate(0deg);
  231. }
  232. to {
  233. transform: rotate(360deg);
  234. }
  235. }
  236. .hidden{
  237. visibility: hidden;
  238. }