h5.scss 9.4 KB

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