h5.scss 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. .pub-title{
  2. position: fixed;
  3. left: 0;
  4. right: 0;
  5. top: 0;
  6. font-size: px2rem(36);
  7. line-height: px2rem(86);
  8. height: px2rem(86);
  9. background-color: #353439;
  10. text-align: center;
  11. color: #ffffff;
  12. z-index: 999;
  13. }
  14. .pub-modal-mask{
  15. position: fixed;
  16. left: 0;
  17. right: 0;
  18. top: 0;
  19. bottom: 0;
  20. z-index: 999;
  21. background-color: rgba($color: #000000, $alpha: .7);
  22. text-align: center;
  23. &::after{
  24. content: '';
  25. display: inline-block;
  26. height: 100%;
  27. vertical-align: middle;
  28. }
  29. }
  30. .pub-wrapper{
  31. position: fixed;
  32. left: 0;
  33. top: 0;
  34. right: 0;
  35. bottom: 0;
  36. z-index: 888;
  37. text-align: center;
  38. &:after{
  39. content: "";
  40. display: inline-block;
  41. height: 100%;
  42. width: 0;
  43. vertical-align: middle;
  44. }
  45. .pub-mask{
  46. position: fixed;
  47. left: 0;
  48. top: 0;
  49. width: 100%;
  50. height: 100%;
  51. opacity: .5;
  52. background: #000;
  53. z-index: 1014;
  54. }
  55. }
  56. .pub-modal{
  57. display: inline-block;
  58. vertical-align: middle;
  59. background-color: #ffffff;
  60. min-width: 330px;
  61. position: relative;
  62. z-index: 1015;
  63. padding: 0 18px 18px;
  64. box-sizing: border-box;
  65. .modal-hd{
  66. .title{
  67. font-size: 14px;
  68. color: #333333;
  69. text-align: center;
  70. height: 30px;
  71. line-height: 30px;
  72. padding-top: 10px;
  73. }
  74. i{
  75. position: absolute;
  76. right: 6px;
  77. top: 6px;
  78. font-size: 20px;
  79. cursor: pointer;
  80. }
  81. }
  82. }
  83. .pub-setting{
  84. font-size: 14px;
  85. color: #000000;
  86. background: #ffffff;
  87. border-top: 1px solid #d8d8d8;
  88. border-bottom: 1px solid #d8d8d8;
  89. margin-top: px2rem(21);
  90. .setting-item{
  91. position: relative;
  92. padding: px2rem(24) px2rem(21) px2rem(24) 0;
  93. margin-left: px2rem(21);
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. font-size: px2rem(30);
  98. line-height: px2rem(36);
  99. border-top: 1px solid #d8d8d8;
  100. &:first-child{
  101. border: 0;
  102. }
  103. input[type=file]{
  104. position: absolute;
  105. left: 0;
  106. top: 0;
  107. width: 100%;
  108. height: 100%;
  109. -webkit-appearance: none;
  110. opacity: 0;
  111. z-index: 1;
  112. }
  113. }
  114. .title{
  115. min-width: px2rem(96);
  116. }
  117. .text{
  118. display: flex;
  119. align-items: center;
  120. color: #999999;
  121. @include wrap;
  122. word-break: break-all;
  123. i{
  124. display: inline-block;
  125. margin-left: 6px;
  126. color: #999999;
  127. }
  128. }
  129. .team-avatar{
  130. position: relative;
  131. width: px2rem(105);
  132. height: px2rem(105);
  133. border-radius: 2px;
  134. cursor: pointer;
  135. z-index: 2;
  136. }
  137. .el-icon-arrow-right{
  138. float: right;
  139. }
  140. .el-icon-edit{
  141. cursor: pointer;
  142. }
  143. .team-arrow-icon{
  144. }
  145. .cursor{
  146. cursor: pointer;
  147. }
  148. &.ext-group-admin{
  149. cursor: pointer;
  150. .team-arrow-icon{
  151. margin-top: 0;
  152. }
  153. }
  154. }
  155. .pub-user-top{
  156. padding: px2rem(50) px2rem(54);
  157. background-color: #ffffff;
  158. border-bottom: 1px solid #d8d8d8;
  159. position: relative;
  160. .avatar-wrap{
  161. display: inline-block;
  162. vertical-align: middle;
  163. }
  164. .user-avatar{
  165. width: px2rem(120);
  166. height: px2rem(120);
  167. line-height: px2rem(120);
  168. border-radius: 4px;
  169. }
  170. .top-info{
  171. display: inline-block;
  172. vertical-align: middle;
  173. margin-left: px2rem(30);
  174. }
  175. .name{
  176. width: px2rem(400);
  177. white-space: nowrap;
  178. text-overflow: ellipsis;
  179. overflow: hidden;
  180. font-size: px2rem(42);
  181. color: #000000;
  182. margin-bottom: px2rem(30);
  183. }
  184. .code{
  185. color: #666666;
  186. font-size: px2rem(28);
  187. }
  188. .arrow-icon{
  189. position: absolute;
  190. color: #c8c8c8;
  191. top: px2rem(96);
  192. right: px2rem(24);
  193. font-size: px2rem(36);
  194. }
  195. }
  196. .pub-account-list{
  197. background-color: #ffffff;
  198. margin: px2rem(18) 0;
  199. border-top: 1px solid #d8d8d8;
  200. border-bottom: 1px solid #d8d8d8;
  201. .list-item{
  202. display: flex;
  203. height: px2rem(130);
  204. &:last-child{
  205. .info{
  206. border-bottom: none;
  207. }
  208. .opetate{
  209. border-bottom: none;
  210. }
  211. }
  212. }
  213. .title{
  214. font-size: px2rem(30);
  215. color: #000000;
  216. margin-bottom: px2rem(22);
  217. }
  218. .code{
  219. font-size: px2rem(20);
  220. color: #999999;
  221. }
  222. .info{
  223. flex: 1;
  224. padding-top: px2rem(30);
  225. border-bottom: 1px solid #d8d8d8;
  226. }
  227. .opetate{
  228. width: px2rem(100);
  229. font-size: px2rem(20);
  230. color: #999999;
  231. padding-top: px2rem(32);
  232. border-bottom: 1px solid #d8d8d8;
  233. i{
  234. display: block;
  235. margin: 0 auto;
  236. }
  237. p{
  238. text-align: center;
  239. margin-top: px2rem(16);
  240. }
  241. .open{
  242. background: url('../../assets/h5/open-icon.png') no-repeat;
  243. width: px2rem(39);
  244. height: px2rem(23);
  245. background-size: 100%;
  246. }
  247. .unopen{
  248. background: url('../../assets/h5/unopen-icon.png') no-repeat;
  249. width: px2rem(40);
  250. height: px2rem(23);
  251. background-size: 100%;
  252. }
  253. }
  254. .icon-wrap{
  255. width: px2rem(111);
  256. line-height: px2rem(130);
  257. text-align: center;
  258. i{
  259. display: inline-block;
  260. vertical-align: middle;
  261. width: px2rem(72);
  262. height: px2rem(72);
  263. }
  264. }
  265. .eos-icon{
  266. background: url('../../assets/h5/user-eos-icon.png') no-repeat;
  267. background-size: 100%;
  268. }
  269. .eth-icon{
  270. background: url('../../assets/h5/user-ethereum-icon.png') no-repeat;
  271. background-size: 100%;
  272. }
  273. .tron-icon{
  274. background: url('../../assets/h5/user-tron-icon.png') no-repeat;
  275. background-size: 100%;
  276. }
  277. }
  278. .pub-bottom-btn{
  279. font-size: px2rem(28);
  280. color: #ea2d2d;
  281. text-align: center;
  282. height: px2rem(88);
  283. line-height: px2rem(88);
  284. border-top: 1px solid #d8d8d8;
  285. border-bottom: 1px solid #d8d8d8;
  286. background-color: #ffffff;
  287. margin-bottom: px2rem(18);
  288. &.ext-lang{
  289. color: #000000;
  290. }
  291. &.ext-send{
  292. color: #259af2;
  293. }
  294. .icon-change{
  295. display: inline-block;
  296. vertical-align: middle;
  297. width: px2rem(25);
  298. height: px2rem(23);
  299. margin-right: px2rem(20);
  300. background: url('../../assets/h5/change-icon.png') 0 0 / 100% no-repeat;
  301. }
  302. }
  303. .router-link-exact-active,.router-link-active{
  304. text-decoration: none;
  305. &:hover,&:active,&:visited{
  306. text-decoration: none;
  307. }
  308. }
  309. // 头像
  310. .avatar_bg0{background:#f5882b}
  311. .avatar_bg1{background:#cc90e2}
  312. .avatar_bg2{background:#80d066}
  313. .avatar_bg3{background:#6fb1e4}
  314. .avatar_bg4{background:#f98bae}
  315. .avatar_bg5{background:#ecd074}
  316. .avatar_bg6{background:#e57979}
  317. .avatar_bg7{background:#fba76f}
  318. .avatar_bg8{background:#73cdd0}
  319. .avatar_bg9{background:#fb60c4}
  320. .user-avatar{
  321. width: px2rem(90);
  322. height: px2rem(90);
  323. line-height: px2rem(90);
  324. text-align: center;
  325. border-radius: 2px;
  326. cursor: pointer;
  327. &::before{
  328. content: attr(data-name);
  329. color: #ffffff;
  330. font-size: px2rem(32);
  331. }
  332. &:hover{
  333. opacity: .8;
  334. }
  335. }
  336. // element-ui
  337. .el-message {
  338. min-width: 200px;
  339. max-width: 100%;
  340. }
  341. .el-message-box{
  342. max-width: 90%;
  343. }
  344. .border-bottom {
  345. position: relative;
  346. &::after{
  347. content: "";
  348. pointer-events: none;
  349. box-sizing: border-box;
  350. position: absolute;
  351. width: 200%;
  352. height: 200%;
  353. left: 0;
  354. top: 0;
  355. border-bottom:1px solid #d8d8d8;
  356. transform:scale(0.5);
  357. transform-origin: 0 0;
  358. }
  359. }
  360. .msg-item.you{
  361. .pub-pop-toolbar{
  362. left: 0;
  363. right: auto;
  364. &:before{
  365. left: px2rem(24);
  366. }
  367. }
  368. }
  369. .pub-pop-toolbar {
  370. position: absolute;
  371. top: px2rem(-84);
  372. right: 0;
  373. background: rgba(0, 0, 0,0.85);
  374. border-radius: 5px;
  375. z-index: 11;
  376. user-select: none;
  377. text-align: center;
  378. display: flex;
  379. height: px2rem(69);
  380. line-height: px2rem(69);
  381. color: #FFF;
  382. &:before{
  383. content: "";
  384. position: absolute;
  385. bottom: px2rem(-12);
  386. right: px2rem(24);
  387. @include triangle-down(px2rem(6),rgba(0, 0, 0,0.85));
  388. }
  389. &.ext-session{
  390. right: auto;
  391. background: #FFF;
  392. color: #333333;
  393. display: block;
  394. height: auto;
  395. text-align: left;
  396. overflow: hidden;
  397. box-shadow: 0px 1px 5px 1px #cdcdcd;
  398. &::before{
  399. display: none;
  400. }
  401. li{
  402. padding: 0 10px;
  403. border-top: 1px solid #f5f5f5;
  404. &:hover{
  405. background: #f5f5f5;
  406. }
  407. &:first-child{
  408. border: 0;
  409. }
  410. }
  411. }
  412. li {
  413. font-size: 14px;
  414. position: relative;
  415. padding: 0 px2rem(21);
  416. white-space: nowrap;
  417. &:first-child{
  418. &:before{
  419. display: none;
  420. }
  421. }
  422. &:before{
  423. content: "";
  424. position: absolute;
  425. top: 50%;
  426. left: 0;
  427. margin-top: px2rem(-15);
  428. width: 1px;
  429. height: px2rem(30);
  430. background: rgba(255,255,255,0.5);
  431. }
  432. &.split-line{
  433. display: none;
  434. }
  435. &:hover {
  436. opacity: 0.8;
  437. }
  438. }
  439. }
  440. @keyframes rotate {
  441. from {
  442. transform: rotate(0deg);
  443. }
  444. to {
  445. transform: rotate(360deg);
  446. }
  447. }
  448. .el-icon-circle-uncheck {
  449. border-radius: 50%;
  450. background-color: #ffffff;
  451. border: 1px solid #d2cdcd;
  452. box-sizing: border-box;
  453. }
  454. .el-loading-mask{
  455. background-color: rgba(0,0,0,.3);
  456. .el-loading-spinner{
  457. &:before{
  458. content: "";
  459. display: inline-block;
  460. width: 30px;
  461. height: 30px;
  462. background: url(../../assets/msg-loading-icon.png) center/100% no-repeat;
  463. animation: rotate .8s ease .2s infinite;
  464. }
  465. svg{
  466. display: none;
  467. }
  468. .el-loading-text{
  469. color: #86929e;
  470. }
  471. }
  472. }
  473. //---------------复用组件--------------------
  474. .h5-wrap{
  475. .chat-room{
  476. .box-bd{
  477. background: #f2f2f2;
  478. }
  479. }
  480. }