h5.scss 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  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. padding-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. color: #999999;
  202. font-size: px2rem(20);
  203. .list-item{
  204. display: flex;
  205. height: px2rem(130);
  206. &:last-child{
  207. .info,.opetate{
  208. border-bottom: none;
  209. }
  210. }
  211. &.ext-psw{
  212. .title{
  213. margin-top: px2rem(24);
  214. }
  215. }
  216. }
  217. .title-wrap{
  218. flex: 1;
  219. }
  220. h4{
  221. font-size: px2rem(30);
  222. color: #000000;
  223. margin-bottom: px2rem(22);
  224. }
  225. .info{
  226. position: relative;
  227. flex: 1;
  228. display: flex;
  229. align-items: center;
  230. border-bottom: 1px solid #d8d8d8;
  231. padding-right: px2rem(24);
  232. }
  233. .opetate{
  234. width: px2rem(100);
  235. color: #999999;
  236. i{
  237. display: block;
  238. margin: 0 auto;
  239. }
  240. p{
  241. text-align: center;
  242. margin-top: px2rem(16);
  243. }
  244. .open{
  245. background: url('../../assets/h5/open-icon.png') no-repeat;
  246. width: px2rem(39);
  247. height: px2rem(23);
  248. background-size: 100%;
  249. }
  250. .unopen{
  251. background: url('../../assets/h5/unopen-icon.png') no-repeat;
  252. width: px2rem(40);
  253. height: px2rem(23);
  254. background-size: 100%;
  255. }
  256. }
  257. .arrow-icon{
  258. position: absolute;
  259. top: px2rem(42);
  260. right: px2rem(24);
  261. }
  262. .icon-wrap{
  263. width: px2rem(111);
  264. line-height: px2rem(130);
  265. text-align: center;
  266. i{
  267. display: inline-block;
  268. vertical-align: middle;
  269. width: px2rem(72);
  270. height: px2rem(72);
  271. border-radius: 50%;
  272. }
  273. }
  274. .btn-unbind{
  275. text-align: right;
  276. color: #ff3737;
  277. cursor: pointer;
  278. margin: 4px 10px 0 0;
  279. }
  280. .el-button{
  281. padding: 7px 12px;
  282. font-size: 12px;
  283. }
  284. .eos-icon{
  285. background: url('../../assets/h5/user-eos-icon.png') center /100% no-repeat;
  286. }
  287. .eth-icon{
  288. background: url('../../assets/h5/user-ethereum-icon.png') center /100% no-repeat;
  289. }
  290. .tron-icon{
  291. background: url('../../assets/h5/user-tron-icon.png') center /100% no-repeat;
  292. }
  293. .tg-icon{
  294. background: url('../../assets/h5/user-tg-icon.png') center /60% no-repeat #f7f8f9;
  295. }
  296. .psw-icon{
  297. background: url('../../assets/h5/user-psw-icon.png') center /50% no-repeat;
  298. }
  299. }
  300. .pub-bottom-btn{
  301. font-size: px2rem(28);
  302. color: #ea2d2d;
  303. text-align: center;
  304. height: px2rem(88);
  305. line-height: px2rem(88);
  306. border-top: 1px solid #d8d8d8;
  307. border-bottom: 1px solid #d8d8d8;
  308. background-color: #ffffff;
  309. margin-bottom: px2rem(18);
  310. &.ext-lang{
  311. color: #000000;
  312. }
  313. &.ext-send{
  314. color: #259af2;
  315. }
  316. .icon-change{
  317. display: inline-block;
  318. vertical-align: middle;
  319. width: px2rem(25);
  320. height: px2rem(23);
  321. margin-right: px2rem(20);
  322. background: url('../../assets/h5/change-icon.png') 0 0 / 100% no-repeat;
  323. }
  324. }
  325. .pub-loading{
  326. position: absolute;
  327. top: 0;
  328. right: 0;
  329. bottom: 0;
  330. left: 0;
  331. z-index: 10;
  332. background: url(../../assets/loading.gif) center 36% /100px no-repeat;
  333. }
  334. .router-link-exact-active,.router-link-active{
  335. text-decoration: none;
  336. &:hover,&:active,&:visited{
  337. text-decoration: none;
  338. }
  339. }
  340. // 头像
  341. .avatar_bg0{background:#f5882b}
  342. .avatar_bg1{background:#cc90e2}
  343. .avatar_bg2{background:#80d066}
  344. .avatar_bg3{background:#6fb1e4}
  345. .avatar_bg4{background:#f98bae}
  346. .avatar_bg5{background:#ecd074}
  347. .avatar_bg6{background:#e57979}
  348. .avatar_bg7{background:#fba76f}
  349. .avatar_bg8{background:#73cdd0}
  350. .avatar_bg9{background:#fb60c4}
  351. .user-avatar{
  352. width: px2rem(90);
  353. height: px2rem(90);
  354. line-height: px2rem(90);
  355. text-align: center;
  356. border-radius: 2px;
  357. cursor: pointer;
  358. &::before{
  359. content: attr(data-name);
  360. color: #ffffff;
  361. font-size: px2rem(32);
  362. }
  363. &:hover{
  364. opacity: .8;
  365. }
  366. }
  367. // element-ui
  368. .el-message {
  369. min-width: 200px;
  370. max-width: 100%;
  371. }
  372. .el-message-box{
  373. max-width: 90%;
  374. }
  375. .border-bottom {
  376. position: relative;
  377. &::after{
  378. content: "";
  379. pointer-events: none;
  380. box-sizing: border-box;
  381. position: absolute;
  382. width: 200%;
  383. height: 200%;
  384. left: 0;
  385. top: 0;
  386. border-bottom:1px solid #d8d8d8;
  387. transform:scale(0.5);
  388. transform-origin: 0 0;
  389. }
  390. }
  391. .msg-item.you{
  392. .pub-pop-toolbar{
  393. left: 0;
  394. right: auto;
  395. &:before{
  396. left: px2rem(24);
  397. }
  398. }
  399. }
  400. .pub-pop-toolbar {
  401. position: absolute;
  402. top: px2rem(-84);
  403. right: 0;
  404. background: rgba(0, 0, 0,0.85);
  405. border-radius: 5px;
  406. z-index: 11;
  407. user-select: none;
  408. text-align: center;
  409. display: flex;
  410. height: px2rem(69);
  411. line-height: px2rem(69);
  412. color: #FFF;
  413. &:before{
  414. content: "";
  415. position: absolute;
  416. bottom: px2rem(-12);
  417. right: px2rem(24);
  418. @include triangle-down(px2rem(6),rgba(0, 0, 0,0.85));
  419. }
  420. &.ext-session{
  421. right: auto;
  422. background: #FFF;
  423. color: #333333;
  424. display: block;
  425. height: auto;
  426. text-align: left;
  427. overflow: hidden;
  428. box-shadow: 0px 1px 5px 1px #cdcdcd;
  429. &::before{
  430. display: none;
  431. }
  432. li{
  433. padding: 0 10px;
  434. border-top: 1px solid #f5f5f5;
  435. &:hover{
  436. background: #f5f5f5;
  437. }
  438. &:first-child{
  439. border: 0;
  440. }
  441. }
  442. }
  443. li {
  444. font-size: 14px;
  445. position: relative;
  446. padding: 0 px2rem(21);
  447. white-space: nowrap;
  448. &:first-child{
  449. &:before{
  450. display: none;
  451. }
  452. }
  453. &:before{
  454. content: "";
  455. position: absolute;
  456. top: 50%;
  457. left: 0;
  458. margin-top: px2rem(-15);
  459. width: 1px;
  460. height: px2rem(30);
  461. background: rgba(255,255,255,0.5);
  462. }
  463. &.split-line{
  464. display: none;
  465. }
  466. &:hover {
  467. opacity: 0.8;
  468. }
  469. }
  470. }
  471. @keyframes rotate {
  472. from {
  473. transform: rotate(0deg);
  474. }
  475. to {
  476. transform: rotate(360deg);
  477. }
  478. }
  479. .el-icon-circle-uncheck {
  480. border-radius: 50%;
  481. background-color: #ffffff;
  482. border: 1px solid #d2cdcd;
  483. box-sizing: border-box;
  484. }
  485. .el-loading-mask{
  486. background-color: rgba(0,0,0,.3);
  487. .el-loading-spinner{
  488. &:before{
  489. content: "";
  490. display: inline-block;
  491. width: 30px;
  492. height: 30px;
  493. background: url(../../assets/msg-loading-icon.png) center/100% no-repeat;
  494. animation: rotate .8s ease .2s infinite;
  495. }
  496. svg{
  497. display: none;
  498. }
  499. .el-loading-text{
  500. color: #86929e;
  501. }
  502. }
  503. }
  504. //---------------复用组件--------------------
  505. .h5-wrap{
  506. .chat-room{
  507. .box-bd{
  508. background: #f2f2f2;
  509. }
  510. }
  511. }