common.scss 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837
  1. /**
  2. Sass函数--颜色函数--HSL函数:http://www.mamicode.com/info-detail-1126451.html
  3. */
  4. /* 避免页面遮盖住tp调试页面 */
  5. .layui-layout-admin .layui-body {
  6. z-index: -1;
  7. }
  8. body {
  9. color: #333;
  10. }
  11. .red-color {
  12. color: red !important;
  13. }
  14. .text-color-sub {
  15. color: #666 !important;
  16. }
  17. //文字颜色
  18. .text-color {
  19. color: $base-color !important;
  20. }
  21. .text-color-gray {
  22. color: #5a5a5a !important;
  23. }
  24. //边框
  25. .border-color {
  26. border-color: $base-color !important;
  27. }
  28. .border-after-color::after {
  29. border-color: $base-color !important;
  30. }
  31. //背景色
  32. .bg-color {
  33. background-color: $base-color !important;
  34. }
  35. .bg-color-diaphaneity {
  36. background-color: rgba($base-color, .1) !important;
  37. }
  38. .bg-color-gray {
  39. background-color: #5a5a5a !important;
  40. }
  41. //简洁tab
  42. .layui-tab-brief li.layui-this {
  43. color: $base-color !important;
  44. }
  45. .layui-tab-brief li.layui-this:after {
  46. border-bottom-color: $base-color !important;
  47. }
  48. /* 四级菜单 */
  49. .fourstage-nav {
  50. .layui-tab-title {
  51. border: 0;
  52. li {
  53. margin: 0 15px;
  54. padding: 0;
  55. &::after {
  56. border: 0 !important;
  57. }
  58. a {
  59. border-bottom: 2px solid #fff;
  60. }
  61. &.layui-this a {
  62. color: $base-color;
  63. border-bottom: 2px solid $base-color;
  64. }
  65. }
  66. }
  67. }
  68. //版权信息
  69. .footer {
  70. box-sizing: border-box;
  71. text-align: center;
  72. padding-bottom: 50px;
  73. padding-top: 50px;
  74. line-height: 1.8;
  75. color: #999;
  76. .gov-box img {
  77. max-width: 20px;
  78. max-height: 20px;
  79. margin-right: 5px;
  80. }
  81. a {
  82. color: #999;
  83. }
  84. }
  85. .footer-img {
  86. margin-bottom: 18px;
  87. img {
  88. max-width: 100px;
  89. max-height: 27px;
  90. }
  91. }
  92. .footer-img {
  93. width: 100%;
  94. display: flex;
  95. justify-content: center;
  96. align-items: center;
  97. span {
  98. display: inline-block;
  99. color: #898989;
  100. line-height: 25px;
  101. margin-right: 12px;
  102. }
  103. }
  104. //访问店铺
  105. .login-box {
  106. display: flex;
  107. }
  108. .shop-ewm a {
  109. display: inline-block;
  110. line-height: 60px;
  111. cursor: pointer;
  112. margin-right: 25px;
  113. }
  114. .shop-ewm {
  115. position: relative;
  116. }
  117. /*h5预览*/
  118. .goods-preview {
  119. position: relative;
  120. }
  121. .goods-preview .qrcode-wrap {
  122. background: #f4f6f8;
  123. display: inline-block;
  124. padding: 10px;
  125. text-align: center;
  126. position: absolute;
  127. left: 40px;
  128. top: 40px;
  129. max-width: 130px;
  130. max-height: 130px;
  131. overflow: hidden;
  132. }
  133. .goods-preview .qrcode-wrap img {
  134. width: 100px;
  135. height: 100px;
  136. }
  137. .goods-preview .qrcode-wrap .tips {
  138. font-size: 12px;
  139. margin: 10px 0 0 0;
  140. padding: 0;
  141. border: none;
  142. }
  143. .goods-preview .qrcode-wrap input {
  144. margin-top: 30px;
  145. }
  146. .goods-preview .phone-wrap {
  147. width: 300px;
  148. height: 600px;
  149. margin-left: 210px;
  150. background: url("../../img/iphone_shell.png") no-repeat;
  151. background-size: 100% auto;
  152. position: relative;
  153. }
  154. .goods-preview .phone-wrap .iframe-wrap {
  155. width: 260px;
  156. height: 530px;
  157. position: absolute;
  158. top: 38px;
  159. left: 20px;
  160. overflow: hidden;
  161. display: inline-block;
  162. }
  163. .goods-preview .phone-wrap .iframe-wrap iframe {
  164. width: 270px;
  165. height: 510px;
  166. margin-top: 10px;
  167. margin-left: -5px;
  168. border-radius: 0;
  169. transform: initial;
  170. }
  171. .goods-preview .phone-wrap .iframe-wrap .empty {
  172. text-align: center;
  173. position: absolute;
  174. top: 25%;
  175. padding: 0 20px;
  176. }
  177. .goods-preview .phone-wrap .iframe-wrap .empty img {
  178. width: 190px;
  179. display: block;
  180. margin: 0 auto 10px;
  181. }
  182. .goods-preview .phone-wrap .iframe-wrap .empty p {
  183. font-size: 12px;
  184. margin-bottom: 5px;
  185. }
  186. .goods-preview .phone-wrap .iframe-wrap .empty a {
  187. font-size: 12px;
  188. }
  189. /*小程序发布*/
  190. .release-layer .layui-layer-title {
  191. background: #fff;
  192. border-bottom: 0;
  193. margin-top: 10px;
  194. }
  195. .release-layer .weapp-release .title {
  196. font-size: 16px;
  197. text-align: center;
  198. }
  199. .release-layer .weapp-release .desc {
  200. font-size: 16px;
  201. text-align: center;
  202. padding: 0 20px;
  203. margin-top: 30px;
  204. color: #555
  205. }
  206. .release-layer .weapp-release .operation-btns {
  207. margin-top: 60px;
  208. }
  209. .release-layer .operation-btns > div {
  210. margin-top: 10px;
  211. text-align: center;
  212. }
  213. .release-layer .operation-btns .layui-btn {
  214. width: 80%;
  215. }
  216. // 提示面板
  217. .tips-wrap {
  218. padding: 6px;
  219. background-color: #fff;
  220. border: 1px solid #f1f1f1;
  221. border-radius: 4px;
  222. .layui-colla-title {
  223. padding-left: 10px;
  224. height: 30px;
  225. font-size: 16px;
  226. font-weight: 400;
  227. line-height: 30px;
  228. background-color: transparent;
  229. .layui-colla-icon {
  230. left: 80px;
  231. }
  232. }
  233. .layui-colla-content {
  234. padding: 0;
  235. padding-left: 34px;
  236. border: none;
  237. color: #999;
  238. li {
  239. line-height: 25px;
  240. list-style: initial;
  241. }
  242. }
  243. }
  244. //普通面板
  245. .card-common {
  246. margin-top: 15px;
  247. margin-bottom: 0;
  248. box-shadow: initial;
  249. .layui-card-header {
  250. padding: 0 20px;
  251. display: flex;
  252. justify-content: space-between;
  253. align-items: center;
  254. }
  255. .layui-card-body {
  256. padding: 20px;
  257. }
  258. .card-title {
  259. font-size: 14px;
  260. font-weight: 600;
  261. }
  262. .card-sub {
  263. color: #999999;
  264. font-size: 12px;
  265. }
  266. }
  267. .card-brief {
  268. .layui-card-header {
  269. border-bottom: 0;
  270. padding-bottom: 0;
  271. }
  272. .card-title {
  273. position: relative;
  274. padding-left: 10px;
  275. }
  276. .card-title::before {
  277. content: '';
  278. display: inline-block;
  279. width: 3px;
  280. height: 14px;
  281. background-color: $base-color;
  282. position: absolute;
  283. left: 0;
  284. top: 50%;
  285. border-radius: 5px;
  286. transform: translateY(-50%);
  287. }
  288. }
  289. .layui-card.form-wrap-show {
  290. margin-bottom: 0;
  291. .layui-card-header {
  292. padding: 3px 15px;
  293. display: flex;
  294. justify-content: space-between;
  295. align-items: center;
  296. border-radius: 5px;
  297. }
  298. }
  299. /* 详情面板 */
  300. .detail-card {
  301. width: 100%;
  302. border: 1px solid #F1F1F1;
  303. padding: 20px 0 20px 80px;
  304. box-sizing: border-box;
  305. display: flex;
  306. .detail-img {
  307. width: 60px;
  308. height: 60px;
  309. text-align: center;
  310. margin-right: 15px;
  311. img {
  312. max-width: 100%;
  313. max-height: 100%;
  314. }
  315. }
  316. .goods-name {
  317. font-size: 16px;
  318. font-weight: 600;
  319. color: #333333;
  320. }
  321. .detail-line {
  322. height: 32px;
  323. line-height: 32px;
  324. color: #666666;
  325. }
  326. .inline-span {
  327. display: inline-block;
  328. width: 220px;
  329. }
  330. }
  331. //*************** tab页 ***************/
  332. .table-tab {
  333. margin-top: 15px;
  334. .layui-tab-title {
  335. height: 41px;
  336. border-color: #f1f1f1;
  337. li {
  338. background-color: #FFFFFF;
  339. border-top: 1px solid #f1f1f1;
  340. border-bottom: 1px solid #f1f1f1;
  341. border-left: 1px solid #f1f1f1;
  342. &:first-child {
  343. border-left: 1px solid #f1f1f1;
  344. }
  345. &:last-child {
  346. border-right: 1px solid #f1f1f1;
  347. }
  348. &.layui-this {
  349. background: #F2F3F5;
  350. border-radius: 2px 0 0 2px;
  351. &::after {
  352. border: none;
  353. border-radius: 0;
  354. }
  355. }
  356. }
  357. }
  358. .layui-tab-content {
  359. padding: 0;
  360. border: none;
  361. background-color: #fff;
  362. }
  363. }
  364. .layui-table tbody tr:hover, .layui-table-click {
  365. background-color: #f8f8f8 !important;
  366. }
  367. //单行筛选面板
  368. .single-filter-box {
  369. display: flex;
  370. justify-content: space-between;
  371. padding: 14px 0;
  372. background-color: #fff;
  373. .layui-form {
  374. margin-left: auto;
  375. .layui-btn {
  376. border-color: #e6e6e6;
  377. padding: 0 10px;
  378. }
  379. .layui-input + .layui-btn {
  380. height: 30px;
  381. line-height: 30px;
  382. position: absolute;
  383. right: 1px;
  384. top: 1px;
  385. border-width: 0;
  386. border-left-width: 1px;
  387. }
  388. }
  389. .layui-input-inline {
  390. margin-left: 8px;
  391. }
  392. }
  393. //筛选面板
  394. .screen {
  395. border: 0;
  396. background-color: #fff;
  397. border-radius: 5px;
  398. min-height: 45px;
  399. .layui-colla-item {
  400. position: relative;
  401. }
  402. .layui-colla-title {
  403. position: initial;
  404. height: 0;
  405. .layui-colla-icon {
  406. left: auto;
  407. transform: translateX(-50%);
  408. top: 0;
  409. color: #BEBEBE;
  410. right: 10px;
  411. z-index: 2;
  412. padding: 5px;
  413. }
  414. }
  415. .layui-colla-content {
  416. padding: 15px 0;
  417. border: 1px solid #f1f1f1;
  418. .layui-input, .layui-form-select {
  419. width: 185px !important;
  420. }
  421. }
  422. .layui-form-label {
  423. width: 120px;
  424. font-size: 14px;
  425. }
  426. .form-row {
  427. margin-left: 120px;
  428. }
  429. }
  430. //* 表单 */
  431. .form-wrap {
  432. background-color: #fff;
  433. padding: 15px 0;
  434. border-radius: 5px;
  435. }
  436. .layui-unselect.layui-form-radio.layui-form-radioed i:after {
  437. content: "";
  438. position: absolute;
  439. width: 8px;
  440. height: 8px;
  441. background: $base-color;
  442. border-radius: 50%;
  443. left: 4px;
  444. top: 10px;
  445. }
  446. //input宽度
  447. .len-long {
  448. width: 450px !important;
  449. }
  450. .len-mid {
  451. width: 250px !important;
  452. }
  453. .len-short {
  454. width: 120px !important;
  455. }
  456. .special-length {
  457. width: 650px !important;
  458. }
  459. //按钮样式
  460. .layui-btn {
  461. color: #fff;
  462. padding: 0 16px;
  463. background-color: $base-color;
  464. &.layui-btn-xs {
  465. height: 22px;
  466. line-height: 22px;
  467. padding: 0 5px;
  468. font-size: 12px;
  469. }
  470. &.layui-btn-sm {
  471. height: 30px;
  472. line-height: 30px;
  473. padding: 0 10px;
  474. font-size: 12px;
  475. }
  476. &.layui-btn-primary {
  477. color: #333;
  478. border-color: #e6e6e6;
  479. background-color: #ffffff;
  480. &:hover {
  481. color: #333;
  482. opacity: 1;
  483. border-color: #e6e6e6;
  484. }
  485. }
  486. }
  487. .layui-btn-disabled, .layui-btn-disabled:active, .layui-btn-disabled:hover {
  488. color: #C9C9C9 !important;
  489. }
  490. //input其他设置
  491. .layui-input, .layui-select, .layui-textarea {
  492. border-color: #E6E6E6;
  493. &:focus {
  494. border-color: $base-color !important;
  495. }
  496. }
  497. .layui-input, .layui-select, .input-text, .layui-btn {
  498. height: 34px;
  499. line-height: 34px;
  500. font-size: 14px;
  501. }
  502. .btn-hover {
  503. color: $base-color !important;
  504. border-color: $base-color !important;
  505. }
  506. //label宽度
  507. .layui-form-label {
  508. width: 200px;
  509. height: 34px;
  510. line-height: 34px;
  511. padding: 0 10px 0 0;
  512. box-sizing: border-box;
  513. color: #454545 !important;
  514. &.sm {
  515. width: 80px;
  516. }
  517. &.mid {
  518. width: 150px;
  519. }
  520. }
  521. //layui-input-block的边距
  522. .layui-form-label + .layui-input-block {
  523. margin-left: 200px;
  524. }
  525. .layui-form-label.sm + .layui-input-block {
  526. margin-left: 80px;
  527. }
  528. .layui-form-label.mid + .layui-input-block {
  529. margin-left: 150px;
  530. }
  531. //必填标志
  532. .required {
  533. color: red;
  534. margin-right: 3px;
  535. }
  536. //注释
  537. .word-aux {
  538. margin-left: 200px;
  539. display: block;
  540. margin-top: 5px;
  541. color: #B2B2B2;
  542. font-size: 12px;
  543. line-height: 1.6;
  544. &.sm {
  545. margin-left: 80px;
  546. }
  547. &.mid {
  548. margin-left: 150px;
  549. }
  550. }
  551. //下拉框
  552. .layui-form-select dl dd.layui-this {
  553. background-color: $base-color;
  554. }
  555. //复选框
  556. .layui-form-checked[lay-skin='primary'] i {
  557. border-color: $base-color !important;
  558. background-color: $base-color;
  559. color: #fff;
  560. }
  561. .layui-form-checkbox[lay-skin='primary']:hover i {
  562. border-color: $base-color;
  563. }
  564. //单选框
  565. .layui-form-radio > i:hover,
  566. .layui-form-radioed > i {
  567. color: $base-color;
  568. }
  569. // 表单样式
  570. .layui-form-radio:hover *, .layui-form-radioed, .layui-form-radioed > i {
  571. color: $base-color;
  572. }
  573. .draggable-element:hover {
  574. border-color: $base-color !important;
  575. }
  576. .draggable-element.selected {
  577. border-color: $base-color !important;
  578. box-shadow: 0 0 5px lighten($base-color, 30%);
  579. }
  580. .component-list ul li:not(.disabled):hover {
  581. background: lighten($base-color, 40%);
  582. color: lighten($base-color, 10%) !important;
  583. i {
  584. color: lighten($base-color, 10%) !important;
  585. }
  586. span:last-child {
  587. color: lighten($base-color, 10%);
  588. }
  589. }
  590. //开关按钮
  591. .layui-form-switch {
  592. margin-top: 6px;
  593. border-radius: 16px;
  594. border-color: #DDDDDD;
  595. i {
  596. width: 21px;
  597. height: 21px;
  598. border-radius: 25px;
  599. background-color: #fff;
  600. position: absolute;
  601. z-index: 2;
  602. top: 0;
  603. left: 1px;
  604. -webkit-transition-duration: 0.3s;
  605. transition-duration: 0.3s;
  606. -webkit-box-shadow: 0 2px 5px #5a5a5a;
  607. box-shadow: 0 2px 5px #5a5a5a;
  608. }
  609. &.layui-form-onswitch i {
  610. left: 46px;
  611. }
  612. }
  613. .layui-form-onswitch {
  614. background-color: $base-color;
  615. }
  616. // 文本域
  617. .layui-textarea {
  618. display: inline-block;
  619. resize: none;
  620. &::-webkit-scrollbar {
  621. display: none
  622. }
  623. }
  624. //按钮
  625. .form-row {
  626. margin-top: 20px;
  627. margin-left: 200px;
  628. &.sm {
  629. margin-left: 80px;
  630. }
  631. &.mid {
  632. margin-left: 150px;
  633. }
  634. .layui-btn {
  635. height: 34px;
  636. line-height: 34px;
  637. }
  638. }
  639. // 上传图片
  640. .upload-img-block.square {
  641. width: 100px;
  642. height: 100px;
  643. .hover:hover .operation > div {
  644. }
  645. .operation i {
  646. line-height: 90px;
  647. font-size: 25px !important;
  648. margin-left: 0 !important;
  649. margin-right: 10px !important;
  650. }
  651. .operation i:last-child {
  652. margin-right: 0px !important;
  653. }
  654. .upload-default .preview_img {
  655. line-height: 80px;
  656. }
  657. }
  658. .upload-img-block {
  659. padding: 10px;
  660. width: 250px;
  661. height: 120px;
  662. border: 1px dashed #ddd;
  663. box-sizing: border-box;
  664. position: relative;
  665. .replace {
  666. display: none;
  667. width: 100%;
  668. background-color: rgba(0, 0, 0, .5);
  669. bottom: 0;
  670. left: 0;
  671. color: #fff;
  672. position: absolute;
  673. text-align: center;
  674. line-height: 2;
  675. cursor: pointer;
  676. }
  677. &:hover .replace {
  678. display: block;
  679. }
  680. .no-replace {
  681. color: #fff;
  682. position: absolute;
  683. top: 0;
  684. left: 0;
  685. right: 0;
  686. bottom: 0;
  687. cursor: pointer;
  688. }
  689. .upload-img-box {
  690. text-align: center;
  691. // position: relative;
  692. cursor: pointer;
  693. height: 100%;
  694. .upload-default {
  695. // position: relative;
  696. // top: 50%; /*偏移*/
  697. // left: 50%;
  698. // transform: translate(-50%, -50%);
  699. .preview_img {
  700. line-height: 80px;
  701. }
  702. .preview_img, .img_prev {
  703. max-width: 100%;
  704. max-height: 100%;
  705. }
  706. .img_prev {
  707. position: absolute;
  708. top: 50%; /*偏移*/
  709. left: 50%;
  710. transform: translate(-50%, -50%);
  711. max-height: 100%;
  712. max-width: 100%;
  713. }
  714. .upload {
  715. position: absolute;
  716. top: 50%; /*偏移*/
  717. left: 50%;
  718. transform: translate(-50%, -50%);
  719. }
  720. .iconfont {
  721. font-size: 30px;
  722. color: #6D7278;
  723. }
  724. p {
  725. color: #5a5a5a;
  726. line-height: 20px;
  727. white-space: nowrap;
  728. }
  729. }
  730. > img {
  731. position: absolute;
  732. top: 50%; /*偏移*/
  733. left: 50%;
  734. transform: translate(-50%, -50%);
  735. max-height: 100%;
  736. max-width: 100%;
  737. }
  738. }
  739. .del {
  740. background: #999;
  741. color: #FFFFFF;
  742. position: absolute;
  743. border-radius: 50%;
  744. width: 20px;
  745. height: 20px;
  746. font-size: 12px;
  747. font-style: normal;
  748. line-height: 18px;
  749. text-align: center;
  750. right: -10px;
  751. top: -10px;
  752. cursor: pointer;
  753. z-index: 1;
  754. display: none;
  755. &.show {
  756. display: block;
  757. }
  758. }
  759. /* 长图上传操作 */
  760. .hover:hover .operation {
  761. display: block;
  762. }
  763. .operation {
  764. display: none;
  765. position: absolute;
  766. left: 0px;
  767. top: 0px;
  768. width: calc(100% + 0px);
  769. height: calc(100% + 0px);
  770. background-color: rgba(0, 0, 0, 0.5);
  771. color: #fff;
  772. i {
  773. font-size: 25px !important;
  774. margin-left: 30px;
  775. line-height: 120px;
  776. &:first-child {
  777. margin-left: 0px;
  778. }
  779. }
  780. .replace_img {
  781. position: absolute;
  782. bottom: 0;
  783. width: 100%;
  784. height: 24px;
  785. color: #fff;
  786. background: rgba(0, 0, 0, 0.5);
  787. font-size: 12px;
  788. line-height: 24px;
  789. }
  790. .upload-img-block {
  791. height: 120px;
  792. }
  793. }
  794. }
  795. // 弹框按钮
  796. .layui-layer-btn .layui-layer-btn0 {
  797. border-color: $base-color !important;
  798. background-color: $base-color !important;
  799. }
  800. .layui-btn-primary.date-picker-btn.selected {
  801. background-color: $base-color;
  802. border-color: $base-color;
  803. color: #FFFFFF;
  804. }
  805. .layui-layer.layui-layer-dialog.layui-layer-msg {
  806. z-index: 99999999 !important;
  807. }
  808. //表单的其他设置
  809. :root input:-webkit-autofill,
  810. textarea:-webkit-autofill,
  811. select:-webkit-autofill {
  812. box-shadow: 0 0 50px 50px white inset;
  813. }
  814. .layui-input-block {
  815. line-height: 34px;
  816. }
  817. .layui-form-item .layui-input-inline {
  818. width: auto;
  819. line-height: 34px;
  820. }
  821. .layui-form-item {
  822. margin-bottom: 10px;
  823. }
  824. .layui-form-mid, .layui-word-aux {
  825. display: inline-block;
  826. height: 34px;
  827. line-height: 34px;
  828. padding: 0 !important;
  829. }
  830. .layui-input-inline.input-append {
  831. margin-right: 0;
  832. .layui-input {
  833. padding-right: 30px
  834. }
  835. + .layui-form-mid {
  836. width: 30px !important;
  837. text-align: center;
  838. margin-left: -30px;
  839. }
  840. }
  841. // 日期框
  842. .layui-laydate-header i:hover, .layui-laydate-header span:hover {
  843. color: $base-color !important;
  844. }
  845. .layui-laydate .layui-laydate-content .layui-this {
  846. background-color: $base-color !important;
  847. }
  848. .layui-laydate-footer span:hover {
  849. color: $base-color !important;
  850. }
  851. .layui-laydate-footer span[lay-type=date] {
  852. color: $base-color !important;
  853. }
  854. //日历图标
  855. .calendar {
  856. position: absolute;
  857. top: 0;
  858. right: 0;
  859. width: 34px;
  860. height: 34px;
  861. z-index: 0;
  862. }
  863. //* 表格 */
  864. .layui-table-view {
  865. margin-top: 15px;
  866. background-color: #fff;
  867. border: 0;
  868. .layui-table {
  869. &[lay-skin=line] {
  870. width: 100%;
  871. border: 0;
  872. }
  873. thead tr {
  874. background-color: #fff;
  875. }
  876. tbody td > div {
  877. height: auto !important;
  878. }
  879. thead span {
  880. font-weight: 400;
  881. color: #333333;
  882. }
  883. }
  884. .table-btn {
  885. display: flex;
  886. flex-wrap: wrap;
  887. justify-content: flex-end;
  888. }
  889. tr .layui-btn {
  890. color: $base-color;
  891. display: flex;
  892. justify-content: center;
  893. align-items: center;
  894. height: 23px;
  895. border-radius: 50px;
  896. background-color: transparent;
  897. font-size: 14px;
  898. text-align: center;
  899. padding: 2px 2px 2px 8px;
  900. margin: 5px 0;
  901. position: relative;
  902. }
  903. }
  904. //表格中图片表现形式
  905. .table-title {
  906. display: flex;
  907. align-items: center;
  908. .title-pic {
  909. flex-shrink: 0;
  910. display: inline-block;
  911. width: 50px;
  912. height: 50px;
  913. text-align: center;
  914. line-height: 50px;
  915. margin-right: 10px;
  916. img {
  917. max-width: 100%;
  918. max-height: 100%;
  919. }
  920. }
  921. .title-content {
  922. overflow: hidden;
  923. flex: 1;
  924. line-height: 1.8;
  925. }
  926. }
  927. //单独图片
  928. .img-box {
  929. display: inline-block;
  930. width: 50px;
  931. height: 50px;
  932. text-align: center;
  933. line-height: 50px;
  934. img {
  935. max-width: 100%;
  936. max-height: 100%;
  937. }
  938. }
  939. //改变表格固定高度
  940. .layui-table-view .layui-table[lay-size=lg] .layui-table-cell {
  941. height: auto;
  942. font-size: 14px;
  943. }
  944. //超出范围下拉箭头隐藏
  945. .layui-table-grid-down {
  946. display: none;
  947. }
  948. //多行超出隐藏
  949. .line-hiding {
  950. overflow: hidden;
  951. text-overflow: ellipsis;
  952. display: -webkit-box;
  953. -webkit-line-clamp: 1;
  954. line-clamp: 1;
  955. -webkit-box-orient: vertical;
  956. white-space: normal;
  957. word-break: break-all;
  958. }
  959. .multi-line-hiding {
  960. overflow: hidden;
  961. text-overflow: ellipsis;
  962. display: -webkit-box;
  963. -webkit-line-clamp: 2;
  964. line-clamp: 2;
  965. -webkit-box-orient: vertical;
  966. white-space: normal;
  967. word-break: break-all;
  968. line-height: 22px !important;
  969. max-height: 42px !important;
  970. }
  971. //分页
  972. .table-bottom {
  973. .layui-form-checkbox[lay-skin=primary] {
  974. padding-left: 24px;
  975. margin-top: 5px;
  976. }
  977. border-top: 1px solid #eee;
  978. padding-top: 10px;
  979. padding-bottom: 15px;
  980. position: relative;
  981. .layui-table-bottom-tool-temp {
  982. line-height: 34px;
  983. /* .layui-table-view .layui-form-checkbox {
  984. padding-left: 15px;
  985. } */
  986. .layui-form-checkbox[lay-skin=primary] {
  987. padding-left: 0;
  988. }
  989. .tool-temp-checkbox {
  990. display: inline-block;
  991. width: 3%;
  992. text-align: center;
  993. }
  994. .tool-temp-btns {
  995. display: inline-block;
  996. margin-left: 10px;
  997. }
  998. }
  999. .layui-btn {
  1000. padding: 0px 5px;
  1001. font-size: 12px;
  1002. line-height: 2 !important;
  1003. height: auto;
  1004. display: inline-block;
  1005. margin-top: 3px;
  1006. }
  1007. .layui-table-page {
  1008. position: absolute;
  1009. right: 0;
  1010. top: 15px;
  1011. width: auto;
  1012. border-top: 0;
  1013. padding: 0 !important;
  1014. height: 34px !important;
  1015. padding-top: 2px !important;
  1016. }
  1017. }
  1018. /* 表格分页颜色 */
  1019. .layui-laypage a:hover {
  1020. color: $base-color !important;
  1021. }
  1022. .layui-laypage .layui-laypage-curr .layui-laypage-em {
  1023. background-color: $base-color !important;
  1024. }
  1025. .layui-laypage input:focus, .layui-laypage select:focus {
  1026. border-color: $base-color !important;
  1027. }
  1028. // 头工具条
  1029. .layui-table-tool {
  1030. padding: 10px 0;
  1031. background-color: transparent;
  1032. z-index: 1;
  1033. border: 0;
  1034. .layui-table-tool-temp {
  1035. padding: 0;
  1036. .layui-btn {
  1037. padding: 0px 5px;
  1038. font-size: 12px;
  1039. line-height: 2 !important;
  1040. height: auto;
  1041. display: inline-block;
  1042. }
  1043. .layui-form-checkbox[lay-skin=primary] {
  1044. padding-left: 0;
  1045. }
  1046. .tool-temp-checkbox {
  1047. display: inline-block;
  1048. width: 3%;
  1049. text-align: center;
  1050. }
  1051. .tool-temp-btns {
  1052. display: inline-block;
  1053. margin-left: 10px;
  1054. }
  1055. }
  1056. }
  1057. .layui-table-header {
  1058. border: 0;
  1059. }
  1060. //*************** 静态表格 ***************/
  1061. .layui-table {
  1062. th {
  1063. font-weight: bold;
  1064. background-color: #F7F7F7;
  1065. }
  1066. .table-btn {
  1067. display: flex;
  1068. flex-wrap: wrap;
  1069. }
  1070. .layui-btn {
  1071. display: flex;
  1072. justify-content: center;
  1073. align-items: center;
  1074. height: 23px;
  1075. border-radius: 50px;
  1076. background-color: transparent;
  1077. text-align: center;
  1078. padding: 2px 8px 2px 0;
  1079. margin: 5px 0 5px 5px;
  1080. position: relative;
  1081. color: $base-color;
  1082. }
  1083. }
  1084. .layui-table.pithy-table {
  1085. margin-top: 15px;
  1086. border: 0;
  1087. thead th {
  1088. height: 40px;
  1089. line-height: 40px;
  1090. border: 0;
  1091. border-bottom: 1px solid #e6e6e6;
  1092. }
  1093. tbody td {
  1094. min-height: 40px;
  1095. border: 0;
  1096. }
  1097. tbody tr {
  1098. border-bottom: 1px solid #e6e6e6;
  1099. &:last-of-type {
  1100. border-bottom: 0;
  1101. }
  1102. }
  1103. }
  1104. //*************** 弹框 ***************/
  1105. //弹框阴影
  1106. .layui-layer {
  1107. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  1108. }
  1109. //弹框遮罩层颜色
  1110. .layui-layer-shade {
  1111. background-color: #373737 !important;
  1112. opacity: 0.6 !important;
  1113. }
  1114. .layui-layer-page .layui-layer-content {
  1115. overflow: initial !important;
  1116. padding: 20px;
  1117. .layui-form-selected dl {
  1118. position: absolute;
  1119. }
  1120. }
  1121. .layui-layer-page #layui-layer-photos {
  1122. padding: 0;
  1123. }
  1124. /**************** 颜色选择器 ********************/
  1125. .layui-colorpicker-main .layui-btn-container .layui-btn:last-of-type {
  1126. background-color: $base-color;
  1127. }
  1128. //*************** 标题 ***************/
  1129. .layui-elem-quote {
  1130. position: relative;
  1131. border: 0;
  1132. font-size: 16px;
  1133. background-color: transparent;
  1134. &:after {
  1135. content: "";
  1136. position: absolute;
  1137. width: 3px;
  1138. height: 20px;
  1139. background-color: $base-color;
  1140. left: 0;
  1141. top: 50%;
  1142. transform: translateY(-50%);
  1143. }
  1144. }
  1145. //*************** 标签块 ***************/
  1146. .card {
  1147. margin-top: 10px;
  1148. padding: 20px;
  1149. background-color: #fff;
  1150. }
  1151. .item-block-parent {
  1152. padding: 20px;
  1153. width: 100%;
  1154. display: flex;
  1155. flex-wrap: wrap;
  1156. background-color: #fff;
  1157. box-sizing: border-box;
  1158. border-radius: 5px;
  1159. .item-block {
  1160. position: relative;
  1161. display: inline-block;
  1162. // border: 1px solid #e5e5e5;
  1163. background: #f7f8fa;
  1164. box-sizing: border-box;
  1165. border-radius: 4px;
  1166. }
  1167. .item-block:hover {
  1168. background: #f2f3f5;
  1169. }
  1170. //内容展示
  1171. .item-block-wrap {
  1172. padding: 15px;
  1173. display: flex;
  1174. justify-content: flex-start;
  1175. align-items: flex-start;
  1176. }
  1177. // 左侧图片
  1178. .item-pic {
  1179. flex-shrink: 0;
  1180. width: 40px;
  1181. height: 40px;
  1182. text-align: center;
  1183. line-height: 40px;
  1184. margin-right: 10px;
  1185. img {
  1186. max-width: 100%;
  1187. max-height: 100%;
  1188. }
  1189. }
  1190. // 右侧内容
  1191. .item-con {
  1192. overflow: hidden;
  1193. height: 40px;
  1194. display: flex;
  1195. flex-direction: column;
  1196. justify-content: space-around;
  1197. .item-content-title {
  1198. white-space: nowrap;
  1199. overflow: hidden;
  1200. text-overflow: ellipsis;
  1201. line-height: 20px;
  1202. font-size: 14px;
  1203. color: #666;
  1204. }
  1205. .item-content-icon {
  1206. font-size: 12px;
  1207. color: #999;
  1208. margin-top: 2px;
  1209. .label {
  1210. display: inline-block;
  1211. text-overflow: ellipsis;
  1212. white-space: nowrap;
  1213. overflow: hidden;
  1214. max-width: 66%;
  1215. height: 18px;
  1216. padding-left: 5px;
  1217. padding-right: 5px;
  1218. margin-right: 5px;
  1219. margin-bottom: 5px;
  1220. border: 1px solid #e5e5e5;
  1221. vertical-align: middle;
  1222. line-height: 18px;
  1223. border-radius: 2px;
  1224. }
  1225. img {
  1226. width: 16px;
  1227. height: 16px;
  1228. padding: 2px;
  1229. margin-bottom: 5px;
  1230. }
  1231. }
  1232. .item-content-desc {
  1233. line-height: 20px;
  1234. font-size: 12px;
  1235. color: #999;
  1236. }
  1237. }
  1238. // 站点列表/操作栏
  1239. .item-float-wrap {
  1240. position: absolute;
  1241. top: 0;
  1242. right: 0;
  1243. bottom: 0;
  1244. left: 0;
  1245. opacity: 0;
  1246. transition: all 0.2s;
  1247. }
  1248. .item-float {
  1249. position: absolute;
  1250. bottom: 0;
  1251. left: 0;
  1252. width: 100%;
  1253. height: 30px;
  1254. line-height: 30px;
  1255. padding: 0 20px;
  1256. color: #333;
  1257. box-sizing: border-box;
  1258. background-color: #f2f3f5;
  1259. border-top: 1px solid #e5e5e5;
  1260. font-size: 12px;
  1261. display: flex;
  1262. justify-content: space-between;
  1263. i {
  1264. display: inline-block;
  1265. width: 8px;
  1266. height: 8px;
  1267. border-radius: 5px;
  1268. }
  1269. span {
  1270. margin-left: 5px;
  1271. margin-right: 5px;
  1272. }
  1273. }
  1274. //鼠标悬浮时展示操作栏
  1275. /* .item-block-hover-a:hover {
  1276. border-color: transparent;
  1277. box-shadow: 0 0 10px rgba(20, 20, 20, 0.15);
  1278. }
  1279. */
  1280. .item-block-hover:hover {
  1281. border-color: transparent;
  1282. .item-float-wrap {
  1283. bottom: -30px;
  1284. opacity: 1;
  1285. z-index: 99;
  1286. // box-shadow: 0 0 10px rgba(20, 20, 20, 0.15);
  1287. }
  1288. }
  1289. // 右上角未安装标志
  1290. .item-poa-pic {
  1291. position: absolute;
  1292. top: 0;
  1293. right: 0;
  1294. width: 50px;
  1295. height: 50px;
  1296. img {
  1297. width: 50px;
  1298. height: 50px;
  1299. }
  1300. }
  1301. }
  1302. // 一行5个站点卡片时的排布
  1303. @media screen and (min-width: 1700px) {
  1304. .item-block {
  1305. width: 19%;
  1306. margin-right: 1.25%;
  1307. margin-bottom: 25px;
  1308. &:nth-child(5n) {
  1309. margin-right: 0;
  1310. }
  1311. }
  1312. }
  1313. // 一行4个站点卡片时的排布
  1314. @media screen and (min-width: 1460px) and (max-width: 1699px) {
  1315. .item-block {
  1316. width: 23.5%;
  1317. margin-right: 2%;
  1318. margin-bottom: 25px;
  1319. &:nth-child(4n) {
  1320. margin-right: 0;
  1321. }
  1322. }
  1323. }
  1324. // 一行3个站点卡片时的排布
  1325. @media screen and (max-width: 1459px) {
  1326. .item-block {
  1327. width: 31.5%;
  1328. margin-right: 2%;
  1329. margin-bottom: 25px;
  1330. &:nth-child(3n) {
  1331. margin-right: 0;
  1332. }
  1333. }
  1334. }
  1335. // 一行2个站点卡片时的排布
  1336. /* @media screen and (max-width: 1239px) {
  1337. .item-block {
  1338. width: 49%;
  1339. margin-right: 2%;
  1340. margin-bottom: 25px;
  1341. &:nth-child(2n) {
  1342. margin-right: 0;
  1343. }
  1344. }
  1345. } */
  1346. .category-list .item li:hover, .category-list .item li.selected {
  1347. color: $base-color !important;
  1348. background-color: #f5f5f5;
  1349. }
  1350. // 悬浮框
  1351. .prompt-block {
  1352. display: flex;
  1353. align-items: center;
  1354. .prompt {
  1355. width: 18px;
  1356. height: 18px;
  1357. line-height: 18px;
  1358. position: relative;
  1359. }
  1360. .prompt:hover {
  1361. .prompt-box {
  1362. display: inline-block;
  1363. }
  1364. }
  1365. .prompt .iconfont {
  1366. color: #000;
  1367. font-weight: 100;
  1368. margin-left: 3px;
  1369. cursor: pointer;
  1370. }
  1371. .prompt-box {
  1372. position: absolute;
  1373. top: -20px;
  1374. left: 32px;
  1375. border: 1px solid #e4e4e4;
  1376. width: 280px;
  1377. text-align: left;
  1378. border-radius: 5px;
  1379. background-color: #FFFFFF;
  1380. padding: 15px;
  1381. box-sizing: border-box;
  1382. word-break: break-all;
  1383. color: #666666;
  1384. line-height: 24px;
  1385. z-index: 999;
  1386. display: none;
  1387. font-weight: normal;
  1388. }
  1389. .prompt-box:before, .prompt-box:after {
  1390. content: '';
  1391. display: inline-block;
  1392. border: solid transparent;
  1393. width: 0;
  1394. height: 0;
  1395. border-width: 12px;
  1396. top: 16px;
  1397. position: absolute;
  1398. }
  1399. .prompt-box:before {
  1400. border-right-color: #e4e4e4;
  1401. left: -25px;
  1402. }
  1403. .prompt-box:after {
  1404. border-right-color: #FFFFFF;
  1405. left: -23px;
  1406. }
  1407. .prompt-con {
  1408. width: 100%;
  1409. word-break: break-all;
  1410. white-space: normal;
  1411. }
  1412. }
  1413. // 颜色组件
  1414. .flexbox-fix-btn .btn {
  1415. width: 80px;
  1416. border: 1px solid #DDDDDD;
  1417. color: #666666;
  1418. line-height: 32px;
  1419. background-color: transparent;
  1420. margin: 20px 5px 0;
  1421. cursor: pointer;
  1422. }
  1423. // 小图上传样式
  1424. .upload_img_square {
  1425. display: inline-block;
  1426. width: 80px;
  1427. height: 80px;
  1428. line-height: 78px;
  1429. font-size: 30px;
  1430. color: #bbbbbb;
  1431. cursor: pointer;
  1432. border: 1px dashed #ccc;
  1433. border-radius: 5px;
  1434. text-align: center;
  1435. margin-bottom: 10px;
  1436. margin-right: 10px;
  1437. }
  1438. .upload_img_square_item {
  1439. display: inline-block;
  1440. float: left;
  1441. width: 80px;
  1442. height: 80px;
  1443. position: relative;
  1444. border: 1px dashed #e5e5e5;
  1445. text-align: center;
  1446. transition: background-color 0.3s ease;
  1447. margin-bottom: 10px;
  1448. margin-right: 10px;
  1449. &:hover {
  1450. border: 1px dashed #ff8143;
  1451. border-radius: 5px;
  1452. }
  1453. &:hover .operation {
  1454. display: block;
  1455. }
  1456. .img-wrap {
  1457. width: 80px;
  1458. font-size: 0;
  1459. line-height: 79px;
  1460. border-radius: 5px;
  1461. overflow: hidden;
  1462. img {
  1463. width: calc(100% - 2px);
  1464. height: calc(100% - 2px);
  1465. }
  1466. }
  1467. .operation {
  1468. position: absolute;
  1469. top: 0;
  1470. z-index: 10;
  1471. width: 80px;
  1472. height: 80px;
  1473. line-height: 80px;
  1474. background: rgba(0, 0, 0, 0.5);
  1475. color: #fff;
  1476. cursor: pointer;
  1477. text-align: center;
  1478. display: none;
  1479. i {
  1480. font-size: 20px;
  1481. margin-left: 10px;
  1482. &:first-child {
  1483. margin-left: 0;
  1484. }
  1485. }
  1486. .replace_img {
  1487. position: absolute;
  1488. bottom: 0;
  1489. width: 100%;
  1490. height: 24px;
  1491. color: #fff;
  1492. background: rgba(0, 0, 0, 0.5);
  1493. font-size: 12px;
  1494. line-height: 24px;
  1495. }
  1496. }
  1497. }
  1498. .layui-form-item {
  1499. .layui-table-view {
  1500. margin-top: 0;
  1501. }
  1502. .layui-form-checkbox[lay-skin=primary] {
  1503. margin-top: 0;
  1504. }
  1505. .layui-table-tool {
  1506. min-height: 40px;
  1507. padding: 0;
  1508. }
  1509. }
  1510. .layui-table-init .layui-icon {
  1511. position: absolute;
  1512. }
  1513. .layui-layer-tips {
  1514. .layui-layer-content {
  1515. color: #000 !important;
  1516. }
  1517. }
  1518. @keyframes spin {
  1519. from {
  1520. transform: rotate(0deg);
  1521. }
  1522. to {
  1523. transform: rotate(360deg);
  1524. }
  1525. }
  1526. .common-loading-layer {
  1527. width: 35px;
  1528. height: 35px;
  1529. perspective: 800px;
  1530. transform-style: preserve-3d;
  1531. transition: all 0.2s ease-out;
  1532. border-radius: 50%;
  1533. border: 3px solid;
  1534. border-left-color: var(--base-color);
  1535. border-right-color: #C5C5C5;
  1536. border-top-color: var(--base-color);
  1537. border-bottom-color: #C5C5C5;
  1538. animation: spin 0.6s linear normal infinite;
  1539. display: block;
  1540. &:before {
  1541. content: ''
  1542. }
  1543. }