component.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. ::-webkit-scrollbar {
  2. width: 4px;
  3. height: 1px;
  4. }
  5. ::-webkit-scrollbar-thumb {
  6. border-radius: 4px;
  7. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  8. background: #ccc;
  9. }
  10. ::-webkit-scrollbar-thumb:hover {
  11. background: #999;
  12. }
  13. ::-webkit-scrollbar-track {
  14. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  15. border-radius: 4px;
  16. background: #000000;
  17. }
  18. input::-webkit-input-placeholder,
  19. textarea::-webkit-input-placeholder {
  20. color: #888888 !important;
  21. font-weight: normal !important;
  22. }
  23. input:-moz-placeholder,
  24. textarea:-moz-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:-ms-input-placeholder,
  34. textarea:-ms-input-placeholder {
  35. color: #888888 !important;
  36. font-weight: normal !important;
  37. }
  38. .disable {
  39. opacity: 0.5;
  40. pointer-events: none !important;
  41. * {
  42. pointer-events: none !important;
  43. }
  44. }
  45. .preview {
  46. position: relative;
  47. background-color: #161a1a;
  48. border: 1px solid #555a5a;
  49. width: 216px;
  50. height: 216px;
  51. margin-right: 20px;
  52. color: #a0a0a0;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. background-repeat: no-repeat;
  57. background-size: 100% 100%;
  58. .tips {
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. flex-direction: column;
  63. overflow:hidden;
  64. > div {
  65. font-size: 12px;
  66. }
  67. }
  68. }
  69. @gap:10px;
  70. .pano-con{
  71. background: #161A1A;
  72. height: 700px;
  73. position: relative;
  74. padding: 30px @gap;
  75. >ul{
  76. display: flex;
  77. flex-wrap: wrap;
  78. >li{
  79. position: relative;
  80. margin: @gap @gap @gap*3;
  81. width: 172px;
  82. height: 172px;
  83. border: 2px solid rgba(0, 0, 0,0);
  84. .ui-title{
  85. width: 100%;
  86. >span{
  87. width: 100%;
  88. display: inline-block;
  89. text-overflow: ellipsis;
  90. overflow: hidden;
  91. white-space: nowrap;
  92. font-size: 14px;
  93. cursor: pointer;
  94. color: rgba(255, 255, 255, 0.88);
  95. }
  96. }
  97. .typeli,.oper{
  98. position: absolute;
  99. width: 32px;
  100. height: 32px;
  101. z-index: 11;
  102. top: 10px;
  103. left: 10px;
  104. background: rgba(0, 0, 0, 0.5);
  105. >i{
  106. position: absolute;
  107. top: 50%;
  108. left: 50%;
  109. transform: translate(-50%,-50%);
  110. }
  111. }
  112. .oper{
  113. top: unset;
  114. left: unset;
  115. bottom: 10px;
  116. right: 10px;
  117. width: 62px;
  118. height: 32px;
  119. cursor: pointer;
  120. background: none;
  121. >ul{
  122. display: none;
  123. box-shadow: 0 0 6px rgba(255,255,255,0.4);
  124. background: #161A1A;
  125. position: absolute;
  126. bottom: 32px;
  127. left: 50%;
  128. transform: translateX(-50%);
  129. >li{
  130. line-height: 35px;
  131. height: 35px;
  132. text-align: center;
  133. min-width: 98px;
  134. &:hover{
  135. color: @color;
  136. background: #252828;
  137. }
  138. }
  139. }
  140. >i{
  141. position: absolute;
  142. top: 50%;
  143. right: 8px;
  144. left: unset;
  145. transform: translateY(-50%);
  146. }
  147. &::before{
  148. content: '';
  149. display: inline-block;
  150. width: 32px;
  151. position: absolute;
  152. right: 0;
  153. bottom: 0;
  154. height: 100%;
  155. background: rgba(0, 0, 0, 0.5);
  156. border-radius: 50%;
  157. }
  158. &:hover{
  159. >ul{
  160. display: block;
  161. }
  162. }
  163. }
  164. .img{
  165. width: 100%;
  166. overflow: hidden;
  167. height: 100%;
  168. position: relative;
  169. >img{
  170. width: auto;
  171. position: absolute;
  172. top: 50%;
  173. left: 50%;
  174. transform: translate(-50%,-50%);
  175. height: 100%;
  176. }
  177. }
  178. }
  179. .li-active{
  180. border-color: @color;
  181. &::before {
  182. content: "";
  183. display: inline-block;
  184. background: rgba(0, 0, 0, 0.5);
  185. position: absolute;
  186. width: 100%;
  187. height: 100%;
  188. left: 0;
  189. top: 0;
  190. }
  191. }
  192. .li-uploading{
  193. &::before {
  194. content: "";
  195. display: inline-block;
  196. background: rgba(0, 0, 0, 0.5);
  197. position: absolute;
  198. width: 100%;
  199. height: 100%;
  200. left: 0;
  201. top: 0;
  202. z-index: 9;
  203. }
  204. &::after{
  205. content: "\56fe\7247\5904\7406\4e2d...";
  206. display: inline-block;
  207. position: absolute;
  208. left: 50%;
  209. width: 100%;
  210. text-align: center;
  211. top: 50%;
  212. transform: translate(-50%,-50%);
  213. z-index: 10;
  214. }
  215. }
  216. .li-fail{
  217. &::before {
  218. content: "";
  219. display: inline-block;
  220. background: rgba(0, 0, 0, 0.5);
  221. position: absolute;
  222. width: 100%;
  223. height: 100%;
  224. left: 0;
  225. z-index: 9;
  226. top: 0;
  227. }
  228. &::after{
  229. content: "\751f\6210\5931\8d25";
  230. display: inline-block;
  231. position: absolute;
  232. left: 50%;
  233. width: 100%;
  234. text-align: center;
  235. z-index: 10;
  236. top: 50%;
  237. transform: translate(-50%,-50%);
  238. }
  239. }
  240. }
  241. .add-btn{
  242. position: absolute;
  243. bottom: 30px;
  244. right: 30px;
  245. .ui-button{
  246. padding: 0 15px;
  247. >i{
  248. margin-right: 4px;
  249. }
  250. }
  251. }
  252. }
  253. .pano-label {
  254. width: 100%;
  255. margin-top: 20px;
  256. >ul {
  257. display: flex;
  258. >li {
  259. cursor: pointer;
  260. width: 100px;
  261. height: 32px;
  262. line-height: 32px;
  263. padding: 0 5px;
  264. text-align: center;
  265. border-top: solid 1px #5d5d5d;
  266. border-right: solid 1px #5d5d5d;
  267. border-bottom: solid 1px #5d5d5d;
  268. overflow: hidden;
  269. text-overflow: ellipsis;
  270. &:first-child {
  271. border-left: solid 1px #5d5d5d;
  272. }
  273. &.active {
  274. background-color: @color;
  275. }
  276. }
  277. }
  278. }
  279. .ui-title-big{
  280. display: block;
  281. white-space: normal;
  282. font-size: 16px;
  283. font-weight: bold;
  284. line-height: 1.5;
  285. margin-bottom:10px;
  286. color: #fff;
  287. }
  288. .ui-title{
  289. display: flex;
  290. justify-content: space-between;
  291. white-space: normal;
  292. font-size: 14px;
  293. line-height: 1.5;
  294. color: #fff;
  295. margin-bottom:10px;
  296. }
  297. .ui-remark{
  298. display: block;
  299. white-space: normal;
  300. font-size: 12px;
  301. line-height: 1.5;
  302. color: #ababab;
  303. }
  304. .require{
  305. position: relative;
  306. &::before{
  307. content: '*';
  308. display: inline-block;
  309. color: #F56C6C;
  310. width: 10px;
  311. height: 10px;
  312. position: absolute;
  313. right: -15px;
  314. top: 0;
  315. }
  316. }
  317. .ui-hidden {
  318. display: none !important;
  319. }
  320. .ui-between {
  321. display: flex;
  322. align-items: center;
  323. justify-content: space-between;
  324. }
  325. .ui-button {
  326. height: 34px;
  327. line-height: 1;
  328. border-radius: 17px;
  329. border: 1px solid @color;
  330. background-color: transparent;
  331. text-align: center;
  332. letter-spacing: 1px;
  333. font-size: 12px;
  334. outline: none;
  335. white-space: nowrap;
  336. cursor: pointer;
  337. &.submit {
  338. color: #fff;
  339. background-color: @color;
  340. }
  341. &.cancel {
  342. color: @color;
  343. background-color: transparent;
  344. }
  345. &.block {
  346. width: 100%;
  347. }
  348. &.link {
  349. display: inline-block;
  350. text-decoration: none;
  351. height: 34px;
  352. line-height: 36px;
  353. }
  354. &.danger {
  355. background-color: #c80303;
  356. border-color: #c80303;
  357. color: #fff;
  358. }
  359. }
  360. .ui-input {
  361. outline: none;
  362. border: 1px solid #555A5A;
  363. background-color: #161A1A;
  364. padding: 0 10px;
  365. color: #fff;
  366. letter-spacing: 1px;
  367. border-radius: 2px;
  368. height: 32px;
  369. width: 100%;
  370. font-size: 12px;
  371. }
  372. .ui-textarea{
  373. height: 180px;
  374. padding-top: 10px;
  375. resize: none;
  376. }
  377. .ui-warning {
  378. position: relative;
  379. .ui-input {
  380. animation: warn-flash 0.6s linear;
  381. animation-direction: alternate;
  382. animation-iteration-count: infinite;
  383. border-color: #a7a7a7 !important;
  384. }
  385. .ui-warning-label {
  386. transform: scale(1, 1);
  387. opacity: 1;
  388. }
  389. }
  390. .ui-warning-label {
  391. position: fixed;
  392. pointer-events: none;
  393. transform: scale(0, 1);
  394. right: 241px;
  395. width: 300px;
  396. height: 32px;
  397. line-height: 32px;
  398. text-align: center;
  399. background: #fff;
  400. z-index: 10000;
  401. margin-top: 0px;
  402. color: @color !important;
  403. font-size: 14px;
  404. box-shadow: -1px 2px 8px 0px rgba(0, 0, 0, 0.25);
  405. transition: opacity 0.3s, transform 0.2s;
  406. transform-origin: right;
  407. &::after {
  408. content: '';
  409. display: block;
  410. width: 0;
  411. height: 0;
  412. border-style: solid;
  413. border-width: 7px 0 6px 10px;
  414. border-color: transparent transparent transparent #ffffff;
  415. position: absolute;
  416. right: -10px;
  417. top: 9px;
  418. }
  419. }
  420. .ui-message {
  421. position: absolute;
  422. left: 50%;
  423. top: 50%;
  424. z-index: 999;
  425. background: #fff;
  426. width: 500px;
  427. color: #000;
  428. text-align: center;
  429. transform: translate(-50%, -50%);
  430. overflow: hidden;
  431. border-radius: 9px;
  432. box-shadow: 0 0px 35px rgba(0, 0, 0, 0.3);
  433. &.dark{
  434. background: #252828;
  435. .ui-message-header {
  436. border-bottom: 1px solid rgba(255, 255, 255, 0.1);;
  437. span {
  438. color: #fff;
  439. &:last-child {
  440. color: rgba(255, 255, 255, 0.5);
  441. }
  442. }
  443. }
  444. }
  445. }
  446. .ui-message-header {
  447. width: 100%;
  448. border-bottom: 1px solid #e3e3e3;
  449. font-size: 14px;
  450. height: 40px;
  451. line-height: 40px;
  452. display: flex;
  453. justify-content: space-between;
  454. span {
  455. margin-left: 14px;
  456. &:last-child {
  457. width: 40px;
  458. cursor: pointer;
  459. }
  460. }
  461. }
  462. .ui-message-footer {
  463. margin: 18px 0;
  464. .ui-button {
  465. width: 120px;
  466. margin: 0 18px;
  467. font-size: 14px;
  468. height: 40px;
  469. border-radius: 20px;
  470. }
  471. }
  472. .ui-message-main {
  473. .ui-message-icon {
  474. height: 108px;
  475. margin: 18px 0;
  476. background-image: url(~@/assets/images/icons/icon-ask.png);
  477. background-size: contain;
  478. background-repeat: no-repeat;
  479. background-position: center center;
  480. &.ok{
  481. background-image: url(~@/assets/images/icons/icon-ok.png);
  482. }
  483. }
  484. .ui-message-title {
  485. font-size: 18px;
  486. font-weight: bold;
  487. }
  488. .ui-message-content {
  489. font-size: 14px;
  490. margin: 20px;
  491. margin-bottom: 30px;
  492. }
  493. }
  494. .animated.speed {
  495. -webkit-animation-duration: .2s;
  496. animation-duration: .2s
  497. }
  498. @keyframes warn-flash {
  499. 0% {
  500. background-color: rgba(2, 200, 174, 0);
  501. }
  502. 100% {
  503. background-color: rgba(2, 200, 174, 1);
  504. }
  505. }
  506. @keyframes bouncedelay {
  507. 0%,
  508. 80%,
  509. 100% {
  510. transform: scale(0.0);
  511. }
  512. 40% {
  513. transform: scale(1.0);
  514. }
  515. }
  516. @keyframes spinner {
  517. 0% {
  518. transform: rotate(0)
  519. }
  520. 100% {
  521. transform: rotate(360deg)
  522. }
  523. }
  524. [show-mode="mobile"],
  525. [edit-mode="mobile"] {
  526. .ui-button.cancel {
  527. color: #fff;
  528. border: 1px solid #ccc;
  529. background-color: transparent;
  530. }
  531. .ui-message {
  532. width: 8rem;
  533. .ui-message-header {
  534. display: none;
  535. }
  536. .ui-message-title {
  537. font-size: .4rem;
  538. font-weight: 600;
  539. margin-bottom: 0;
  540. color: #595959;
  541. }
  542. .ui-message-content {
  543. font-size: .3rem;
  544. font-weight: 400;
  545. color: #595959;
  546. margin: 0.5rem;
  547. margin-top: 0.2rem;
  548. }
  549. .ui-message-footer {
  550. margin-bottom: 0;
  551. white-space: nowrap;
  552. a.link,
  553. button {
  554. //float: right;
  555. width: 50%;
  556. height: 1.4rem;
  557. letter-spacing: 1px;
  558. margin: 0;
  559. border-radius: 0;
  560. font-size: .4rem;
  561. border: none;
  562. &:last-child {
  563. background-color: fade(@color,40%);
  564. }
  565. &:first-child:last-child {
  566. width: 100%;
  567. background-color: @color;
  568. }
  569. }
  570. a.link{
  571. line-height: 1.4rem;
  572. }
  573. }
  574. }
  575. @media (orientation: landscape) {
  576. .ui-message {
  577. width: 7rem;
  578. .ui-message-icon {
  579. height: 80px;
  580. }
  581. .ui-message-content {
  582. font-size: .25rem;
  583. font-weight: 400;
  584. }
  585. .ui-message-footer {
  586. button {
  587. height: 1rem;
  588. font-size: 0.3rem;
  589. }
  590. a.link{
  591. height: 1rem;
  592. line-height: 1rem;
  593. }
  594. }
  595. }
  596. }
  597. }