component.less 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946
  1. @color:#0076F6;
  2. @hoverclr:#1983F6;
  3. @activeclr:#0069DC;
  4. @cancelcolor:#EBEDF0;
  5. @cancelhoverclr:#EBEDF0;
  6. @cancelactiveclr:#D3D4D7;
  7. @fontcolor:#323233;
  8. ::-webkit-scrollbar {
  9. width: 6px;
  10. height: 1px;
  11. }
  12. ::-webkit-scrollbar-thumb {
  13. border-radius: 3px;
  14. background: #DEDEDE;
  15. &:hover {
  16. background: #999;
  17. }
  18. }
  19. ::-webkit-scrollbar-track {
  20. border-radius: 3px;
  21. background: transparent;
  22. }
  23. input::-webkit-input-placeholder,
  24. textarea::-webkit-input-placeholder {
  25. color: #888888 !important;
  26. font-weight: normal !important;
  27. }
  28. input:-moz-placeholder,
  29. textarea:-moz-placeholder {
  30. color: #888888 !important;
  31. font-weight: normal !important;
  32. }
  33. input::-moz-placeholder,
  34. textarea::-moz-placeholder {
  35. color: #888888 !important;
  36. font-weight: normal !important;
  37. }
  38. input:-ms-input-placeholder,
  39. textarea:-ms-input-placeholder {
  40. color: #888888 !important;
  41. font-weight: normal !important;
  42. }
  43. .disable {
  44. opacity: 0.5;
  45. pointer-events: none !important;
  46. * {
  47. pointer-events: none !important;
  48. }
  49. }
  50. .hover-tips{
  51. position: relative;
  52. font-size: 18px;
  53. &:hover {
  54. color: #1FE4DC!important;
  55. > div {
  56. display: block;
  57. }
  58. }
  59. > div {
  60. cursor: default;
  61. padding: 0 10px;
  62. display: none;
  63. z-index: 10000;
  64. position: absolute;
  65. left: 50%;
  66. transform: translateX(-50%);
  67. top: -46px;
  68. background: rgba(0, 0, 0, 0.8);
  69. color: #fff;
  70. pointer-events: none;
  71. text-align: center;
  72. min-width: 80px;
  73. font-size: 12px;
  74. &::before{
  75. border: 10px solid transparent;
  76. border-top: 10px solid rgba(0, 0, 0, 0.8);
  77. width: 0;
  78. height: 0px;
  79. content: "";
  80. display: inline-block;
  81. position: absolute;
  82. bottom: -20px;
  83. left: 50%;
  84. transform: translateX(-50%);
  85. }
  86. .remark {
  87. line-height: 2.5;
  88. }
  89. }
  90. }
  91. .shenglve{
  92. display: inline-block;
  93. text-overflow: ellipsis;
  94. overflow: hidden;
  95. white-space: nowrap;
  96. max-width: 100%;
  97. }
  98. .nodata{
  99. width: 100%;
  100. min-height: 40%;
  101. text-align: center;
  102. margin: 80px auto;
  103. font-size: 14px;
  104. >img{
  105. max-width: 100px;
  106. }
  107. >div,>span{
  108. display: block;
  109. font-weight: 400;
  110. margin-top: 10px;
  111. color: #202020;
  112. }
  113. }
  114. .fdcheck{
  115. position: relative;
  116. cursor: pointer;
  117. &::before{
  118. content: '';
  119. border: #CCCCCC 1px solid;
  120. width: 14px;
  121. height: 14px;
  122. position: absolute;
  123. left: -20px;
  124. top: 50%;
  125. transform: translateY(-50%);
  126. display: inline-block;
  127. }
  128. }
  129. .check_active{
  130. &::before{
  131. content: '';
  132. background: #1fe4dc;
  133. border: #1fe4dc 1px solid;
  134. }
  135. &::after{
  136. left: -17px;
  137. top: 50%;
  138. position: absolute;
  139. display: table;
  140. border: 2px solid #000;
  141. border-top: 0;
  142. border-left: 0;
  143. transform: rotate(45deg) translate(-50%, -50%);
  144. opacity: 1;
  145. transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
  146. width: 6px;
  147. height: 10px;
  148. content: " ";
  149. }
  150. }
  151. .menu {
  152. > ul {
  153. display: flex;
  154. > li {
  155. white-space: nowrap;
  156. margin: 0 0 10px 10px;
  157. border-radius: 2px;
  158. padding: 0 32px 0 10px;
  159. height: 30px;
  160. line-height: 30px;
  161. color: rgba(255, 255, 255, 0.5);
  162. background: rgba(255, 255, 255, 0.08);
  163. position: relative;
  164. cursor: pointer;
  165. max-width: 126px;
  166. text-overflow: ellipsis;
  167. overflow: hidden;
  168. white-space: nowrap;
  169. &.hidden {
  170. padding: 0 10px;
  171. .oper {
  172. display: none !important;
  173. }
  174. }
  175. &:hover {
  176. .oper {
  177. display: flex;
  178. }
  179. }
  180. &:first-of-type{
  181. margin-left: 0;
  182. }
  183. .oper {
  184. position: absolute;
  185. right: 6px;
  186. height: 100%;
  187. top: 0px;
  188. z-index: 999;
  189. cursor: pointer;
  190. display: none;
  191. align-items: center;
  192. &:hover {
  193. > ul {
  194. display: block;
  195. }
  196. }
  197. > ul {
  198. display: none;
  199. box-shadow: 0 0 6px rgb(255 255 255 / 40%);
  200. background: #161a1a;
  201. top: 26px;
  202. left: 0;
  203. position: fixed;
  204. border: 1px solid #555a5a;
  205. float: right;
  206. > li {
  207. line-height: 35px;
  208. height: 35px;
  209. text-align: center;
  210. min-width: 98px;
  211. &:hover {
  212. color: #05c8ae;
  213. background: #252828;
  214. }
  215. }
  216. }
  217. }
  218. &.li-add{
  219. background-color: @color;
  220. width: 30px;
  221. min-width: unset;
  222. max-width: 30px;
  223. height: 30px;
  224. color: #fff;
  225. padding: 0;
  226. >i{
  227. position: absolute;
  228. top: 50%;
  229. left: 50%;
  230. transform: translate(-50%,-50%);
  231. font-size: 26px;
  232. }
  233. }
  234. }
  235. .active {
  236. color: rgba(255, 255, 255, 0.88);
  237. background: rgba(255, 255, 255, 0.16);
  238. }
  239. }
  240. }
  241. .w-menu{
  242. > ul {
  243. > li {
  244. color: #909090;
  245. background: #F7F7F7;
  246. }
  247. .active {
  248. color: #202020;
  249. background: #EBEBEB;
  250. }
  251. }
  252. }
  253. .preview {
  254. position: relative;
  255. background-color: #161a1a;
  256. border: 1px solid #555a5a;
  257. width: 216px;
  258. height: 216px;
  259. margin-right: 20px;
  260. color: #a0a0a0;
  261. display: flex;
  262. align-items: center;
  263. justify-content: center;
  264. background-repeat: no-repeat;
  265. background-size: 100% 100%;
  266. .tips {
  267. display: flex;
  268. align-items: center;
  269. justify-content: center;
  270. flex-direction: column;
  271. overflow: hidden;
  272. > div {
  273. font-size: 12px;
  274. }
  275. }
  276. }
  277. @gap: 10px;
  278. .pano-con {
  279. background: #161a1a;
  280. height: 700px;
  281. position: relative;
  282. padding: 30px @gap;
  283. > ul {
  284. display: flex;
  285. flex-wrap: wrap;
  286. > li {
  287. position: relative;
  288. margin: @gap @gap @gap*3;
  289. width: 170px;
  290. height: 170px;
  291. border: 2px solid rgba(0, 0, 0, 0);
  292. .ui-title {
  293. width: 100%;
  294. > span {
  295. width: 100%;
  296. display: inline-block;
  297. text-overflow: ellipsis;
  298. overflow: hidden;
  299. white-space: nowrap;
  300. font-size: 14px;
  301. cursor: pointer;
  302. color: rgba(255, 255, 255, 0.88);
  303. }
  304. }
  305. .typeli,
  306. .oper {
  307. position: absolute;
  308. width: 32px;
  309. height: 32px;
  310. z-index: 11;
  311. top: 10px;
  312. left: 10px;
  313. background: rgba(0, 0, 0, 0.5);
  314. > i {
  315. position: absolute;
  316. top: 50%;
  317. left: 50%;
  318. transform: translate(-50%, -50%);
  319. }
  320. }
  321. .oper {
  322. top: auto;
  323. left: auto;
  324. bottom: 10px;
  325. right: 10px;
  326. width: 62px;
  327. height: 32px;
  328. cursor: pointer;
  329. background: none;
  330. > ul {
  331. display: none;
  332. box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  333. background: #161a1a;
  334. position: absolute;
  335. bottom: 32px;
  336. right: 0;
  337. > li {
  338. line-height: 35px;
  339. height: 35px;
  340. text-align: center;
  341. min-width: 98px;
  342. &:hover {
  343. color: @color;
  344. background: #252828;
  345. }
  346. }
  347. }
  348. > i {
  349. position: absolute;
  350. top: 50%;
  351. right: 8px;
  352. left: auto;
  353. transform: translateY(-50%);
  354. }
  355. &::before {
  356. content: "";
  357. display: inline-block;
  358. width: 32px;
  359. position: absolute;
  360. right: 0;
  361. bottom: 0;
  362. height: 100%;
  363. background: rgba(0, 0, 0, 0.5);
  364. border-radius: 50%;
  365. }
  366. &:hover {
  367. > ul {
  368. display: block;
  369. }
  370. }
  371. }
  372. .img {
  373. width: 100%;
  374. overflow: hidden;
  375. height: 100%;
  376. position: relative;
  377. > img {
  378. width: auto;
  379. position: absolute;
  380. top: 50%;
  381. left: 50%;
  382. transform: translate(-50%, -50%);
  383. height: 100%;
  384. }
  385. }
  386. }
  387. .li-active {
  388. border-color: @color;
  389. &::before {
  390. content: "";
  391. display: inline-block;
  392. background: rgba(0, 0, 0, 0.3);
  393. z-index: 99;
  394. position: absolute;
  395. width: 100%;
  396. height: 100%;
  397. left: 0;
  398. top: 0;
  399. }
  400. }
  401. .li-uploading {
  402. &::before {
  403. content: "";
  404. display: inline-block;
  405. background: rgba(0, 0, 0, 0.3);
  406. z-index: 99;
  407. position: absolute;
  408. width: 100%;
  409. height: 100%;
  410. left: 0;
  411. top: 0;
  412. z-index: 9;
  413. }
  414. &::after {
  415. content: "\56fe\7247\5904\7406\4e2d...";
  416. display: inline-block;
  417. position: absolute;
  418. left: 50%;
  419. width: 100%;
  420. text-align: center;
  421. top: 50%;
  422. transform: translate(-50%, -50%);
  423. z-index: 10;
  424. }
  425. }
  426. .li-fail {
  427. &::before {
  428. content: "";
  429. display: inline-block;
  430. background: rgba(0, 0, 0, 0.5);
  431. position: absolute;
  432. width: 100%;
  433. height: 100%;
  434. left: 0;
  435. z-index: 9;
  436. top: 0;
  437. }
  438. &::after {
  439. content: "\751f\6210\5931\8d25";
  440. display: inline-block;
  441. position: absolute;
  442. left: 50%;
  443. width: 100%;
  444. text-align: center;
  445. z-index: 10;
  446. top: 50%;
  447. transform: translate(-50%, -50%);
  448. }
  449. }
  450. }
  451. .add-btn {
  452. position: absolute;
  453. bottom: 30px;
  454. right: 30px;
  455. .ui-button {
  456. padding: 0 15px;
  457. > i {
  458. margin-right: 4px;
  459. }
  460. }
  461. }
  462. }
  463. .pano-label {
  464. width: 100%;
  465. > ul {
  466. display: flex;
  467. > li {
  468. cursor: pointer;
  469. width: 100px;
  470. height: 32px;
  471. line-height: 32px;
  472. padding: 0 5px;
  473. text-align: center;
  474. border-top: solid 1px #5d5d5d;
  475. border-right: solid 1px #5d5d5d;
  476. border-bottom: solid 1px #5d5d5d;
  477. overflow: hidden;
  478. text-overflow: ellipsis;
  479. &:first-child {
  480. border-left: solid 1px #5d5d5d;
  481. }
  482. &.active {
  483. background-color: @color;
  484. }
  485. }
  486. }
  487. }
  488. .ui-title-big {
  489. display: block;
  490. white-space: normal;
  491. font-size: 16px;
  492. font-weight: bold;
  493. line-height: 1.5;
  494. margin-bottom: 10px;
  495. color: #fff;
  496. }
  497. .ui-title {
  498. display: flex;
  499. justify-content: space-between;
  500. white-space: normal;
  501. font-size: 14px;
  502. line-height: 1.5;
  503. color: #fff;
  504. margin-bottom: 10px;
  505. }
  506. .ui-remark {
  507. display: block;
  508. white-space: normal;
  509. font-size: 12px;
  510. line-height: 1.5;
  511. color: #ababab;
  512. }
  513. .require {
  514. position: relative;
  515. &::before {
  516. content: "*";
  517. display: inline-block;
  518. color: #f56c6c;
  519. width: 10px;
  520. height: 10px;
  521. position: absolute;
  522. right: -15px;
  523. top: 0;
  524. }
  525. }
  526. .ui-hidden {
  527. display: none !important;
  528. }
  529. .ui-between {
  530. display: flex;
  531. align-items: center;
  532. justify-content: space-between;
  533. }
  534. .ui-button {
  535. height: 36px;
  536. line-height: 1;
  537. border-radius: 4px;
  538. border: 1px solid @color;
  539. padding: 0 16px;
  540. background-color: transparent;
  541. text-align: center;
  542. letter-spacing: 1px;
  543. min-width: 88px;
  544. font-size: 14px;
  545. outline: none;
  546. white-space: nowrap;
  547. cursor: pointer;
  548. color: @activeclr;
  549. &.submit {
  550. color: #fff!important;
  551. background-color: @color;
  552. &:hover{
  553. background-color: @hoverclr!important;
  554. border-color: @hoverclr!important;
  555. color: #fff!important;
  556. }
  557. &:active{
  558. background-color: @activeclr!important;
  559. border-color: @activeclr!important;
  560. color: #fff!important;
  561. }
  562. }
  563. &.cancel {
  564. background-color: @cancelcolor!important;
  565. border-color: @cancelcolor!important;
  566. color: @fontcolor!important;
  567. &:hover{
  568. background-color: @cancelhoverclr!important;
  569. border-color: @cancelhoverclr!important;
  570. color: @fontcolor!important;
  571. }
  572. &:active{
  573. background-color: @cancelactiveclr!important;
  574. border-color: @cancelactiveclr!important;
  575. color: @fontcolor!important;
  576. }
  577. }
  578. &.block {
  579. width: 100%;
  580. }
  581. &.link {
  582. display: inline-block;
  583. text-decoration: none;
  584. height: 34px;
  585. line-height: 36px;
  586. }
  587. &.danger {
  588. background-color: #c80303;
  589. border-color: #c80303;
  590. color: #fff;
  591. }
  592. &:hover{
  593. background-color: transparent!important;
  594. color: @hoverclr!important;
  595. border-color: @hoverclr!important;
  596. }
  597. &:active{
  598. background-color: transparent!important;
  599. color: @activeclr!important;
  600. border-color: @activeclr!important;
  601. }
  602. }
  603. .ui-input {
  604. outline: none;
  605. border: 1px solid #555a5a;
  606. background-color: #161a1a;
  607. padding: 0 10px;
  608. color: #fff;
  609. letter-spacing: 1px;
  610. border-radius: 2px;
  611. height: 32px;
  612. width: 100%;
  613. font-size: 12px;
  614. }
  615. .ui-textarea {
  616. height: 180px;
  617. padding-top: 10px;
  618. resize: none;
  619. }
  620. .ui-warning {
  621. position: relative;
  622. .ui-input {
  623. animation: warn-flash 0.6s linear;
  624. animation-direction: alternate;
  625. animation-iteration-count: infinite;
  626. border-color: #a7a7a7 !important;
  627. }
  628. .ui-warning-label {
  629. transform: scale(1, 1);
  630. opacity: 1;
  631. }
  632. }
  633. .ui-warning-label {
  634. position: fixed;
  635. pointer-events: none;
  636. transform: scale(0, 1);
  637. right: 241px;
  638. width: 300px;
  639. height: 32px;
  640. line-height: 32px;
  641. text-align: center;
  642. background: #fff;
  643. z-index: 10000;
  644. margin-top: 0px;
  645. color: @color !important;
  646. font-size: 14px;
  647. box-shadow: -1px 2px 8px 0px rgba(0, 0, 0, 0.25);
  648. transition: opacity 0.3s, transform 0.2s;
  649. transform-origin: right;
  650. &::after {
  651. content: "";
  652. display: block;
  653. width: 0;
  654. height: 0;
  655. border-style: solid;
  656. border-width: 7px 0 6px 10px;
  657. border-color: transparent transparent transparent #ffffff;
  658. position: absolute;
  659. right: -10px;
  660. top: 9px;
  661. }
  662. }
  663. .ui-message {
  664. position: absolute;
  665. left: 50%;
  666. top: 50%;
  667. z-index: 999;
  668. background: #fff;
  669. width: 500px;
  670. color: #000;
  671. text-align: center;
  672. transform: translate(-50%, -50%);
  673. overflow: hidden;
  674. box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.06);
  675. border-radius: 4px;
  676. border: 1px solid #E4E7ED;
  677. &.dark {
  678. background: #252828;
  679. .ui-message-header {
  680. border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  681. span {
  682. font-size: 18px;
  683. color: #fff;
  684. &:last-child {
  685. color: rgba(255, 255, 255, 0.5);
  686. }
  687. }
  688. }
  689. }
  690. }
  691. .message-material{
  692. border-radius: 2px;
  693. @color:#0076F6;
  694. padding: 26px;
  695. .header-material{
  696. border-bottom: none;
  697. line-height: 1;
  698. height: auto;
  699. >span {
  700. font-size: 18px;
  701. margin-left: 0;
  702. &:last-child {
  703. width: auto;
  704. cursor: pointer;
  705. >i{
  706. font-size: 20px;
  707. color: #909090;
  708. }
  709. }
  710. }
  711. }
  712. .main-material{
  713. .ui-message-icon,.ui-message-title{
  714. display: none;
  715. }
  716. .ui-message-content{
  717. line-height: 20px;
  718. font-size: 14px;
  719. color: #323233;
  720. text-align: left;
  721. margin: 40px 0;
  722. }
  723. }
  724. .footer-material{
  725. margin: 0;
  726. margin-top: 60px;
  727. padding: 0;
  728. border-top: none;
  729. text-align: right;
  730. .ui-button {
  731. margin: 0 10px;
  732. }
  733. }
  734. }
  735. .ui-message-header {
  736. width: 100%;
  737. border-bottom: 1px solid #e3e3e3;
  738. font-size: 14px;
  739. height: 40px;
  740. line-height: 40px;
  741. display: flex;
  742. justify-content: space-between;
  743. span {
  744. margin-left: 14px;
  745. font-size: 18px;
  746. &:last-child {
  747. width: 40px;
  748. cursor: pointer;
  749. }
  750. }
  751. }
  752. .ui-message-footer {
  753. margin: 18px 0;
  754. .ui-button {
  755. }
  756. }
  757. .ui-message-main {
  758. .ui-message-icon {
  759. height: 108px;
  760. margin: 18px 0;
  761. background-image: url(~@/assets/images/icons/icon-ask.png);
  762. background-size: contain;
  763. background-repeat: no-repeat;
  764. background-position: center center;
  765. &.ok {
  766. background-image: url(~@/assets/images/icons/icon-ok.png);
  767. }
  768. }
  769. .ui-message-title {
  770. font-size: 18px;
  771. font-weight: bold;
  772. }
  773. .ui-message-content {
  774. font-size: 14px;
  775. margin: 20px;
  776. margin-bottom: 30px;
  777. word-break: break-all;
  778. }
  779. }
  780. .animated.speed {
  781. -webkit-animation-duration: 0.2s;
  782. animation-duration: 0.2s;
  783. }
  784. @keyframes word-scroll {
  785. 0% {
  786. transform: translateX(0);
  787. }
  788. 100% {
  789. transform: translateX(calc(-100% + 60px));
  790. }
  791. }
  792. @keyframes warn-flash {
  793. 0% {
  794. background-color: rgba(2, 200, 174, 0);
  795. }
  796. 100% {
  797. background-color: rgba(2, 200, 174, 1);
  798. }
  799. }
  800. @keyframes bouncedelay {
  801. 0%,
  802. 80%,
  803. 100% {
  804. transform: scale(0);
  805. }
  806. 40% {
  807. transform: scale(1);
  808. }
  809. }
  810. @keyframes spinner {
  811. 0% {
  812. transform: rotate(0);
  813. }
  814. 100% {
  815. transform: rotate(360deg);
  816. }
  817. }
  818. .message-mobile {
  819. width: 80%;
  820. .ui-button.cancel {
  821. color: #fff;
  822. border: 1px solid #ccc;
  823. background-color: transparent;
  824. }
  825. .ui-message-header {
  826. display: none;
  827. }
  828. .ui-message-title {
  829. font-weight: 600;
  830. margin-bottom: 0;
  831. color: #595959;
  832. }
  833. .ui-message-content {
  834. font-size: 14px;
  835. font-weight: 400;
  836. color: #595959;
  837. margin: 5px;
  838. margin-top: 2px;
  839. }
  840. .ui-message-footer {
  841. margin-bottom: 0;
  842. white-space: nowrap;
  843. a.link,
  844. button {
  845. //float: right;
  846. width: 50%;
  847. letter-spacing: 1px;
  848. margin: 0;
  849. border-radius: 0;
  850. border: none;
  851. &:last-child {
  852. background-color: fade(@color, 40%);
  853. }
  854. &:first-child:last-child {
  855. width: 100%;
  856. background-color: @color;
  857. }
  858. }
  859. a.link {
  860. line-height: 1.4rem;
  861. }
  862. }
  863. }