| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837 |
- /**
- Sass函数--颜色函数--HSL函数:http://www.mamicode.com/info-detail-1126451.html
- */
- /* 避免页面遮盖住tp调试页面 */
- .layui-layout-admin .layui-body {
- z-index: -1;
- }
- body {
- color: #333;
- }
- .red-color {
- color: red !important;
- }
- .text-color-sub {
- color: #666 !important;
- }
- //文字颜色
- .text-color {
- color: $base-color !important;
- }
- .text-color-gray {
- color: #5a5a5a !important;
- }
- //边框
- .border-color {
- border-color: $base-color !important;
- }
- .border-after-color::after {
- border-color: $base-color !important;
- }
- //背景色
- .bg-color {
- background-color: $base-color !important;
- }
- .bg-color-diaphaneity {
- background-color: rgba($base-color, .1) !important;
- }
- .bg-color-gray {
- background-color: #5a5a5a !important;
- }
- //简洁tab
- .layui-tab-brief li.layui-this {
- color: $base-color !important;
- }
- .layui-tab-brief li.layui-this:after {
- border-bottom-color: $base-color !important;
- }
- /* 四级菜单 */
- .fourstage-nav {
- .layui-tab-title {
- border: 0;
- li {
- margin: 0 15px;
- padding: 0;
- &::after {
- border: 0 !important;
- }
- a {
- border-bottom: 2px solid #fff;
- }
- &.layui-this a {
- color: $base-color;
- border-bottom: 2px solid $base-color;
- }
- }
- }
- }
- //版权信息
- .footer {
- box-sizing: border-box;
- text-align: center;
- padding-bottom: 50px;
- padding-top: 50px;
- line-height: 1.8;
- color: #999;
- .gov-box img {
- max-width: 20px;
- max-height: 20px;
- margin-right: 5px;
- }
- a {
- color: #999;
- }
- }
- .footer-img {
- margin-bottom: 18px;
- img {
- max-width: 100px;
- max-height: 27px;
- }
- }
- .footer-img {
- width: 100%;
- display: flex;
- justify-content: center;
- align-items: center;
- span {
- display: inline-block;
- color: #898989;
- line-height: 25px;
- margin-right: 12px;
- }
- }
- //访问店铺
- .login-box {
- display: flex;
- }
- .shop-ewm a {
- display: inline-block;
- line-height: 60px;
- cursor: pointer;
- margin-right: 25px;
- }
- .shop-ewm {
- position: relative;
- }
- /*h5预览*/
- .goods-preview {
- position: relative;
- }
- .goods-preview .qrcode-wrap {
- background: #f4f6f8;
- display: inline-block;
- padding: 10px;
- text-align: center;
- position: absolute;
- left: 40px;
- top: 40px;
- max-width: 130px;
- max-height: 130px;
- overflow: hidden;
- }
- .goods-preview .qrcode-wrap img {
- width: 100px;
- height: 100px;
- }
- .goods-preview .qrcode-wrap .tips {
- font-size: 12px;
- margin: 10px 0 0 0;
- padding: 0;
- border: none;
- }
- .goods-preview .qrcode-wrap input {
- margin-top: 30px;
- }
- .goods-preview .phone-wrap {
- width: 300px;
- height: 600px;
- margin-left: 210px;
- background: url("../../img/iphone_shell.png") no-repeat;
- background-size: 100% auto;
- position: relative;
- }
- .goods-preview .phone-wrap .iframe-wrap {
- width: 260px;
- height: 530px;
- position: absolute;
- top: 38px;
- left: 20px;
- overflow: hidden;
- display: inline-block;
- }
- .goods-preview .phone-wrap .iframe-wrap iframe {
- width: 270px;
- height: 510px;
- margin-top: 10px;
- margin-left: -5px;
- border-radius: 0;
- transform: initial;
- }
- .goods-preview .phone-wrap .iframe-wrap .empty {
- text-align: center;
- position: absolute;
- top: 25%;
- padding: 0 20px;
- }
- .goods-preview .phone-wrap .iframe-wrap .empty img {
- width: 190px;
- display: block;
- margin: 0 auto 10px;
- }
- .goods-preview .phone-wrap .iframe-wrap .empty p {
- font-size: 12px;
- margin-bottom: 5px;
- }
- .goods-preview .phone-wrap .iframe-wrap .empty a {
- font-size: 12px;
- }
- /*小程序发布*/
- .release-layer .layui-layer-title {
- background: #fff;
- border-bottom: 0;
- margin-top: 10px;
- }
- .release-layer .weapp-release .title {
- font-size: 16px;
- text-align: center;
- }
- .release-layer .weapp-release .desc {
- font-size: 16px;
- text-align: center;
- padding: 0 20px;
- margin-top: 30px;
- color: #555
- }
- .release-layer .weapp-release .operation-btns {
- margin-top: 60px;
- }
- .release-layer .operation-btns > div {
- margin-top: 10px;
- text-align: center;
- }
- .release-layer .operation-btns .layui-btn {
- width: 80%;
- }
- // 提示面板
- .tips-wrap {
- padding: 6px;
- background-color: #fff;
- border: 1px solid #f1f1f1;
- border-radius: 4px;
- .layui-colla-title {
- padding-left: 10px;
- height: 30px;
- font-size: 16px;
- font-weight: 400;
- line-height: 30px;
- background-color: transparent;
- .layui-colla-icon {
- left: 80px;
- }
- }
- .layui-colla-content {
- padding: 0;
- padding-left: 34px;
- border: none;
- color: #999;
- li {
- line-height: 25px;
- list-style: initial;
- }
- }
- }
- //普通面板
- .card-common {
- margin-top: 15px;
- margin-bottom: 0;
- box-shadow: initial;
- .layui-card-header {
- padding: 0 20px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .layui-card-body {
- padding: 20px;
- }
- .card-title {
- font-size: 14px;
- font-weight: 600;
- }
- .card-sub {
- color: #999999;
- font-size: 12px;
- }
- }
- .card-brief {
- .layui-card-header {
- border-bottom: 0;
- padding-bottom: 0;
- }
- .card-title {
- position: relative;
- padding-left: 10px;
- }
- .card-title::before {
- content: '';
- display: inline-block;
- width: 3px;
- height: 14px;
- background-color: $base-color;
- position: absolute;
- left: 0;
- top: 50%;
- border-radius: 5px;
- transform: translateY(-50%);
- }
- }
- .layui-card.form-wrap-show {
- margin-bottom: 0;
- .layui-card-header {
- padding: 3px 15px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-radius: 5px;
- }
- }
- /* 详情面板 */
- .detail-card {
- width: 100%;
- border: 1px solid #F1F1F1;
- padding: 20px 0 20px 80px;
- box-sizing: border-box;
- display: flex;
- .detail-img {
- width: 60px;
- height: 60px;
- text-align: center;
- margin-right: 15px;
- img {
- max-width: 100%;
- max-height: 100%;
- }
- }
- .goods-name {
- font-size: 16px;
- font-weight: 600;
- color: #333333;
- }
- .detail-line {
- height: 32px;
- line-height: 32px;
- color: #666666;
- }
- .inline-span {
- display: inline-block;
- width: 220px;
- }
- }
- //*************** tab页 ***************/
- .table-tab {
- margin-top: 15px;
- .layui-tab-title {
- height: 41px;
- border-color: #f1f1f1;
- li {
- background-color: #FFFFFF;
- border-top: 1px solid #f1f1f1;
- border-bottom: 1px solid #f1f1f1;
- border-left: 1px solid #f1f1f1;
- &:first-child {
- border-left: 1px solid #f1f1f1;
- }
- &:last-child {
- border-right: 1px solid #f1f1f1;
- }
- &.layui-this {
- background: #F2F3F5;
- border-radius: 2px 0 0 2px;
- &::after {
- border: none;
- border-radius: 0;
- }
- }
- }
- }
- .layui-tab-content {
- padding: 0;
- border: none;
- background-color: #fff;
- }
- }
- .layui-table tbody tr:hover, .layui-table-click {
- background-color: #f8f8f8 !important;
- }
- //单行筛选面板
- .single-filter-box {
- display: flex;
- justify-content: space-between;
- padding: 14px 0;
- background-color: #fff;
- .layui-form {
- margin-left: auto;
- .layui-btn {
- border-color: #e6e6e6;
- padding: 0 10px;
- }
- .layui-input + .layui-btn {
- height: 30px;
- line-height: 30px;
- position: absolute;
- right: 1px;
- top: 1px;
- border-width: 0;
- border-left-width: 1px;
- }
- }
- .layui-input-inline {
- margin-left: 8px;
- }
- }
- //筛选面板
- .screen {
- border: 0;
- background-color: #fff;
- border-radius: 5px;
- min-height: 45px;
- .layui-colla-item {
- position: relative;
- }
- .layui-colla-title {
- position: initial;
- height: 0;
- .layui-colla-icon {
- left: auto;
- transform: translateX(-50%);
- top: 0;
- color: #BEBEBE;
- right: 10px;
- z-index: 2;
- padding: 5px;
- }
- }
- .layui-colla-content {
- padding: 15px 0;
- border: 1px solid #f1f1f1;
- .layui-input, .layui-form-select {
- width: 185px !important;
- }
- }
- .layui-form-label {
- width: 120px;
- font-size: 14px;
- }
- .form-row {
- margin-left: 120px;
- }
- }
- //* 表单 */
- .form-wrap {
- background-color: #fff;
- padding: 15px 0;
- border-radius: 5px;
- }
- .layui-unselect.layui-form-radio.layui-form-radioed i:after {
- content: "";
- position: absolute;
- width: 8px;
- height: 8px;
- background: $base-color;
- border-radius: 50%;
- left: 4px;
- top: 10px;
- }
- //input宽度
- .len-long {
- width: 450px !important;
- }
- .len-mid {
- width: 250px !important;
- }
- .len-short {
- width: 120px !important;
- }
- .special-length {
- width: 650px !important;
- }
- //按钮样式
- .layui-btn {
- color: #fff;
- padding: 0 16px;
- background-color: $base-color;
- &.layui-btn-xs {
- height: 22px;
- line-height: 22px;
- padding: 0 5px;
- font-size: 12px;
- }
- &.layui-btn-sm {
- height: 30px;
- line-height: 30px;
- padding: 0 10px;
- font-size: 12px;
- }
- &.layui-btn-primary {
- color: #333;
- border-color: #e6e6e6;
- background-color: #ffffff;
- &:hover {
- color: #333;
- opacity: 1;
- border-color: #e6e6e6;
- }
- }
- }
- .layui-btn-disabled, .layui-btn-disabled:active, .layui-btn-disabled:hover {
- color: #C9C9C9 !important;
- }
- //input其他设置
- .layui-input, .layui-select, .layui-textarea {
- border-color: #E6E6E6;
- &:focus {
- border-color: $base-color !important;
- }
- }
- .layui-input, .layui-select, .input-text, .layui-btn {
- height: 34px;
- line-height: 34px;
- font-size: 14px;
- }
- .btn-hover {
- color: $base-color !important;
- border-color: $base-color !important;
- }
- //label宽度
- .layui-form-label {
- width: 200px;
- height: 34px;
- line-height: 34px;
- padding: 0 10px 0 0;
- box-sizing: border-box;
- color: #454545 !important;
- &.sm {
- width: 80px;
- }
- &.mid {
- width: 150px;
- }
- }
- //layui-input-block的边距
- .layui-form-label + .layui-input-block {
- margin-left: 200px;
- }
- .layui-form-label.sm + .layui-input-block {
- margin-left: 80px;
- }
- .layui-form-label.mid + .layui-input-block {
- margin-left: 150px;
- }
- //必填标志
- .required {
- color: red;
- margin-right: 3px;
- }
- //注释
- .word-aux {
- margin-left: 200px;
- display: block;
- margin-top: 5px;
- color: #B2B2B2;
- font-size: 12px;
- line-height: 1.6;
- &.sm {
- margin-left: 80px;
- }
- &.mid {
- margin-left: 150px;
- }
- }
- //下拉框
- .layui-form-select dl dd.layui-this {
- background-color: $base-color;
- }
- //复选框
- .layui-form-checked[lay-skin='primary'] i {
- border-color: $base-color !important;
- background-color: $base-color;
- color: #fff;
- }
- .layui-form-checkbox[lay-skin='primary']:hover i {
- border-color: $base-color;
- }
- //单选框
- .layui-form-radio > i:hover,
- .layui-form-radioed > i {
- color: $base-color;
- }
- // 表单样式
- .layui-form-radio:hover *, .layui-form-radioed, .layui-form-radioed > i {
- color: $base-color;
- }
- .draggable-element:hover {
- border-color: $base-color !important;
- }
- .draggable-element.selected {
- border-color: $base-color !important;
- box-shadow: 0 0 5px lighten($base-color, 30%);
- }
- .component-list ul li:not(.disabled):hover {
- background: lighten($base-color, 40%);
- color: lighten($base-color, 10%) !important;
- i {
- color: lighten($base-color, 10%) !important;
- }
- span:last-child {
- color: lighten($base-color, 10%);
- }
- }
- //开关按钮
- .layui-form-switch {
- margin-top: 6px;
- border-radius: 16px;
- border-color: #DDDDDD;
- i {
- width: 21px;
- height: 21px;
- border-radius: 25px;
- background-color: #fff;
- position: absolute;
- z-index: 2;
- top: 0;
- left: 1px;
- -webkit-transition-duration: 0.3s;
- transition-duration: 0.3s;
- -webkit-box-shadow: 0 2px 5px #5a5a5a;
- box-shadow: 0 2px 5px #5a5a5a;
- }
- &.layui-form-onswitch i {
- left: 46px;
- }
- }
- .layui-form-onswitch {
- background-color: $base-color;
- }
- // 文本域
- .layui-textarea {
- display: inline-block;
- resize: none;
- &::-webkit-scrollbar {
- display: none
- }
- }
- //按钮
- .form-row {
- margin-top: 20px;
- margin-left: 200px;
- &.sm {
- margin-left: 80px;
- }
- &.mid {
- margin-left: 150px;
- }
- .layui-btn {
- height: 34px;
- line-height: 34px;
- }
- }
- // 上传图片
- .upload-img-block.square {
- width: 100px;
- height: 100px;
- .hover:hover .operation > div {
- }
- .operation i {
- line-height: 90px;
- font-size: 25px !important;
- margin-left: 0 !important;
- margin-right: 10px !important;
- }
- .operation i:last-child {
- margin-right: 0px !important;
- }
- .upload-default .preview_img {
- line-height: 80px;
- }
- }
- .upload-img-block {
- padding: 10px;
- width: 250px;
- height: 120px;
- border: 1px dashed #ddd;
- box-sizing: border-box;
- position: relative;
- .replace {
- display: none;
- width: 100%;
- background-color: rgba(0, 0, 0, .5);
- bottom: 0;
- left: 0;
- color: #fff;
- position: absolute;
- text-align: center;
- line-height: 2;
- cursor: pointer;
- }
- &:hover .replace {
- display: block;
- }
- .no-replace {
- color: #fff;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- cursor: pointer;
- }
- .upload-img-box {
- text-align: center;
- // position: relative;
- cursor: pointer;
- height: 100%;
- .upload-default {
- // position: relative;
- // top: 50%; /*偏移*/
- // left: 50%;
- // transform: translate(-50%, -50%);
- .preview_img {
- line-height: 80px;
- }
- .preview_img, .img_prev {
- max-width: 100%;
- max-height: 100%;
- }
- .img_prev {
- position: absolute;
- top: 50%; /*偏移*/
- left: 50%;
- transform: translate(-50%, -50%);
- max-height: 100%;
- max-width: 100%;
- }
- .upload {
- position: absolute;
- top: 50%; /*偏移*/
- left: 50%;
- transform: translate(-50%, -50%);
- }
- .iconfont {
- font-size: 30px;
- color: #6D7278;
- }
- p {
- color: #5a5a5a;
- line-height: 20px;
- white-space: nowrap;
- }
- }
- > img {
- position: absolute;
- top: 50%; /*偏移*/
- left: 50%;
- transform: translate(-50%, -50%);
- max-height: 100%;
- max-width: 100%;
- }
- }
- .del {
- background: #999;
- color: #FFFFFF;
- position: absolute;
- border-radius: 50%;
- width: 20px;
- height: 20px;
- font-size: 12px;
- font-style: normal;
- line-height: 18px;
- text-align: center;
- right: -10px;
- top: -10px;
- cursor: pointer;
- z-index: 1;
- display: none;
- &.show {
- display: block;
- }
- }
- /* 长图上传操作 */
- .hover:hover .operation {
- display: block;
- }
- .operation {
- display: none;
- position: absolute;
- left: 0px;
- top: 0px;
- width: calc(100% + 0px);
- height: calc(100% + 0px);
- background-color: rgba(0, 0, 0, 0.5);
- color: #fff;
- i {
- font-size: 25px !important;
- margin-left: 30px;
- line-height: 120px;
- &:first-child {
- margin-left: 0px;
- }
- }
- .replace_img {
- position: absolute;
- bottom: 0;
- width: 100%;
- height: 24px;
- color: #fff;
- background: rgba(0, 0, 0, 0.5);
- font-size: 12px;
- line-height: 24px;
- }
- .upload-img-block {
- height: 120px;
- }
- }
- }
- // 弹框按钮
- .layui-layer-btn .layui-layer-btn0 {
- border-color: $base-color !important;
- background-color: $base-color !important;
- }
- .layui-btn-primary.date-picker-btn.selected {
- background-color: $base-color;
- border-color: $base-color;
- color: #FFFFFF;
- }
- .layui-layer.layui-layer-dialog.layui-layer-msg {
- z-index: 99999999 !important;
- }
- //表单的其他设置
- :root input:-webkit-autofill,
- textarea:-webkit-autofill,
- select:-webkit-autofill {
- box-shadow: 0 0 50px 50px white inset;
- }
- .layui-input-block {
- line-height: 34px;
- }
- .layui-form-item .layui-input-inline {
- width: auto;
- line-height: 34px;
- }
- .layui-form-item {
- margin-bottom: 10px;
- }
- .layui-form-mid, .layui-word-aux {
- display: inline-block;
- height: 34px;
- line-height: 34px;
- padding: 0 !important;
- }
- .layui-input-inline.input-append {
- margin-right: 0;
- .layui-input {
- padding-right: 30px
- }
- + .layui-form-mid {
- width: 30px !important;
- text-align: center;
- margin-left: -30px;
- }
- }
- // 日期框
- .layui-laydate-header i:hover, .layui-laydate-header span:hover {
- color: $base-color !important;
- }
- .layui-laydate .layui-laydate-content .layui-this {
- background-color: $base-color !important;
- }
- .layui-laydate-footer span:hover {
- color: $base-color !important;
- }
- .layui-laydate-footer span[lay-type=date] {
- color: $base-color !important;
- }
- //日历图标
- .calendar {
- position: absolute;
- top: 0;
- right: 0;
- width: 34px;
- height: 34px;
- z-index: 0;
- }
- //* 表格 */
- .layui-table-view {
- margin-top: 15px;
- background-color: #fff;
- border: 0;
- .layui-table {
- &[lay-skin=line] {
- width: 100%;
- border: 0;
- }
- thead tr {
- background-color: #fff;
- }
- tbody td > div {
- height: auto !important;
- }
- thead span {
- font-weight: 400;
- color: #333333;
- }
- }
- .table-btn {
- display: flex;
- flex-wrap: wrap;
- justify-content: flex-end;
- }
- tr .layui-btn {
- color: $base-color;
- display: flex;
- justify-content: center;
- align-items: center;
- height: 23px;
- border-radius: 50px;
- background-color: transparent;
- font-size: 14px;
- text-align: center;
- padding: 2px 2px 2px 8px;
- margin: 5px 0;
- position: relative;
- }
- }
- //表格中图片表现形式
- .table-title {
- display: flex;
- align-items: center;
- .title-pic {
- flex-shrink: 0;
- display: inline-block;
- width: 50px;
- height: 50px;
- text-align: center;
- line-height: 50px;
- margin-right: 10px;
- img {
- max-width: 100%;
- max-height: 100%;
- }
- }
- .title-content {
- overflow: hidden;
- flex: 1;
- line-height: 1.8;
- }
- }
- //单独图片
- .img-box {
- display: inline-block;
- width: 50px;
- height: 50px;
- text-align: center;
- line-height: 50px;
- img {
- max-width: 100%;
- max-height: 100%;
- }
- }
- //改变表格固定高度
- .layui-table-view .layui-table[lay-size=lg] .layui-table-cell {
- height: auto;
- font-size: 14px;
- }
- //超出范围下拉箭头隐藏
- .layui-table-grid-down {
- display: none;
- }
- //多行超出隐藏
- .line-hiding {
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-clamp: 1;
- -webkit-box-orient: vertical;
- white-space: normal;
- word-break: break-all;
- }
- .multi-line-hiding {
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- white-space: normal;
- word-break: break-all;
- line-height: 22px !important;
- max-height: 42px !important;
- }
- //分页
- .table-bottom {
- .layui-form-checkbox[lay-skin=primary] {
- padding-left: 24px;
- margin-top: 5px;
- }
- border-top: 1px solid #eee;
- padding-top: 10px;
- padding-bottom: 15px;
- position: relative;
- .layui-table-bottom-tool-temp {
- line-height: 34px;
- /* .layui-table-view .layui-form-checkbox {
- padding-left: 15px;
- } */
- .layui-form-checkbox[lay-skin=primary] {
- padding-left: 0;
- }
- .tool-temp-checkbox {
- display: inline-block;
- width: 3%;
- text-align: center;
- }
- .tool-temp-btns {
- display: inline-block;
- margin-left: 10px;
- }
- }
- .layui-btn {
- padding: 0px 5px;
- font-size: 12px;
- line-height: 2 !important;
- height: auto;
- display: inline-block;
- margin-top: 3px;
- }
- .layui-table-page {
- position: absolute;
- right: 0;
- top: 15px;
- width: auto;
- border-top: 0;
- padding: 0 !important;
- height: 34px !important;
- padding-top: 2px !important;
- }
- }
- /* 表格分页颜色 */
- .layui-laypage a:hover {
- color: $base-color !important;
- }
- .layui-laypage .layui-laypage-curr .layui-laypage-em {
- background-color: $base-color !important;
- }
- .layui-laypage input:focus, .layui-laypage select:focus {
- border-color: $base-color !important;
- }
- // 头工具条
- .layui-table-tool {
- padding: 10px 0;
- background-color: transparent;
- z-index: 1;
- border: 0;
- .layui-table-tool-temp {
- padding: 0;
- .layui-btn {
- padding: 0px 5px;
- font-size: 12px;
- line-height: 2 !important;
- height: auto;
- display: inline-block;
- }
- .layui-form-checkbox[lay-skin=primary] {
- padding-left: 0;
- }
- .tool-temp-checkbox {
- display: inline-block;
- width: 3%;
- text-align: center;
- }
- .tool-temp-btns {
- display: inline-block;
- margin-left: 10px;
- }
- }
- }
- .layui-table-header {
- border: 0;
- }
- //*************** 静态表格 ***************/
- .layui-table {
- th {
- font-weight: bold;
- background-color: #F7F7F7;
- }
- .table-btn {
- display: flex;
- flex-wrap: wrap;
- }
- .layui-btn {
- display: flex;
- justify-content: center;
- align-items: center;
- height: 23px;
- border-radius: 50px;
- background-color: transparent;
- text-align: center;
- padding: 2px 8px 2px 0;
- margin: 5px 0 5px 5px;
- position: relative;
- color: $base-color;
- }
- }
- .layui-table.pithy-table {
- margin-top: 15px;
- border: 0;
- thead th {
- height: 40px;
- line-height: 40px;
- border: 0;
- border-bottom: 1px solid #e6e6e6;
- }
- tbody td {
- min-height: 40px;
- border: 0;
- }
- tbody tr {
- border-bottom: 1px solid #e6e6e6;
- &:last-of-type {
- border-bottom: 0;
- }
- }
- }
- //*************** 弹框 ***************/
- //弹框阴影
- .layui-layer {
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
- }
- //弹框遮罩层颜色
- .layui-layer-shade {
- background-color: #373737 !important;
- opacity: 0.6 !important;
- }
- .layui-layer-page .layui-layer-content {
- overflow: initial !important;
- padding: 20px;
- .layui-form-selected dl {
- position: absolute;
- }
- }
- .layui-layer-page #layui-layer-photos {
- padding: 0;
- }
- /**************** 颜色选择器 ********************/
- .layui-colorpicker-main .layui-btn-container .layui-btn:last-of-type {
- background-color: $base-color;
- }
- //*************** 标题 ***************/
- .layui-elem-quote {
- position: relative;
- border: 0;
- font-size: 16px;
- background-color: transparent;
- &:after {
- content: "";
- position: absolute;
- width: 3px;
- height: 20px;
- background-color: $base-color;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- }
- }
- //*************** 标签块 ***************/
- .card {
- margin-top: 10px;
- padding: 20px;
- background-color: #fff;
- }
- .item-block-parent {
- padding: 20px;
- width: 100%;
- display: flex;
- flex-wrap: wrap;
- background-color: #fff;
- box-sizing: border-box;
- border-radius: 5px;
- .item-block {
- position: relative;
- display: inline-block;
- // border: 1px solid #e5e5e5;
- background: #f7f8fa;
- box-sizing: border-box;
- border-radius: 4px;
- }
- .item-block:hover {
- background: #f2f3f5;
- }
- //内容展示
- .item-block-wrap {
- padding: 15px;
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- }
- // 左侧图片
- .item-pic {
- flex-shrink: 0;
- width: 40px;
- height: 40px;
- text-align: center;
- line-height: 40px;
- margin-right: 10px;
- img {
- max-width: 100%;
- max-height: 100%;
- }
- }
- // 右侧内容
- .item-con {
- overflow: hidden;
- height: 40px;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- .item-content-title {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- line-height: 20px;
- font-size: 14px;
- color: #666;
- }
- .item-content-icon {
- font-size: 12px;
- color: #999;
- margin-top: 2px;
- .label {
- display: inline-block;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- max-width: 66%;
- height: 18px;
- padding-left: 5px;
- padding-right: 5px;
- margin-right: 5px;
- margin-bottom: 5px;
- border: 1px solid #e5e5e5;
- vertical-align: middle;
- line-height: 18px;
- border-radius: 2px;
- }
- img {
- width: 16px;
- height: 16px;
- padding: 2px;
- margin-bottom: 5px;
- }
- }
- .item-content-desc {
- line-height: 20px;
- font-size: 12px;
- color: #999;
- }
- }
- // 站点列表/操作栏
- .item-float-wrap {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- opacity: 0;
- transition: all 0.2s;
- }
- .item-float {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 30px;
- line-height: 30px;
- padding: 0 20px;
- color: #333;
- box-sizing: border-box;
- background-color: #f2f3f5;
- border-top: 1px solid #e5e5e5;
- font-size: 12px;
- display: flex;
- justify-content: space-between;
- i {
- display: inline-block;
- width: 8px;
- height: 8px;
- border-radius: 5px;
- }
- span {
- margin-left: 5px;
- margin-right: 5px;
- }
- }
- //鼠标悬浮时展示操作栏
- /* .item-block-hover-a:hover {
- border-color: transparent;
- box-shadow: 0 0 10px rgba(20, 20, 20, 0.15);
- }
- */
- .item-block-hover:hover {
- border-color: transparent;
- .item-float-wrap {
- bottom: -30px;
- opacity: 1;
- z-index: 99;
- // box-shadow: 0 0 10px rgba(20, 20, 20, 0.15);
- }
- }
- // 右上角未安装标志
- .item-poa-pic {
- position: absolute;
- top: 0;
- right: 0;
- width: 50px;
- height: 50px;
- img {
- width: 50px;
- height: 50px;
- }
- }
- }
- // 一行5个站点卡片时的排布
- @media screen and (min-width: 1700px) {
- .item-block {
- width: 19%;
- margin-right: 1.25%;
- margin-bottom: 25px;
- &:nth-child(5n) {
- margin-right: 0;
- }
- }
- }
- // 一行4个站点卡片时的排布
- @media screen and (min-width: 1460px) and (max-width: 1699px) {
- .item-block {
- width: 23.5%;
- margin-right: 2%;
- margin-bottom: 25px;
- &:nth-child(4n) {
- margin-right: 0;
- }
- }
- }
- // 一行3个站点卡片时的排布
- @media screen and (max-width: 1459px) {
- .item-block {
- width: 31.5%;
- margin-right: 2%;
- margin-bottom: 25px;
- &:nth-child(3n) {
- margin-right: 0;
- }
- }
- }
- // 一行2个站点卡片时的排布
- /* @media screen and (max-width: 1239px) {
- .item-block {
- width: 49%;
- margin-right: 2%;
- margin-bottom: 25px;
- &:nth-child(2n) {
- margin-right: 0;
- }
- }
- } */
- .category-list .item li:hover, .category-list .item li.selected {
- color: $base-color !important;
- background-color: #f5f5f5;
- }
- // 悬浮框
- .prompt-block {
- display: flex;
- align-items: center;
- .prompt {
- width: 18px;
- height: 18px;
- line-height: 18px;
- position: relative;
- }
- .prompt:hover {
- .prompt-box {
- display: inline-block;
- }
- }
- .prompt .iconfont {
- color: #000;
- font-weight: 100;
- margin-left: 3px;
- cursor: pointer;
- }
- .prompt-box {
- position: absolute;
- top: -20px;
- left: 32px;
- border: 1px solid #e4e4e4;
- width: 280px;
- text-align: left;
- border-radius: 5px;
- background-color: #FFFFFF;
- padding: 15px;
- box-sizing: border-box;
- word-break: break-all;
- color: #666666;
- line-height: 24px;
- z-index: 999;
- display: none;
- font-weight: normal;
- }
- .prompt-box:before, .prompt-box:after {
- content: '';
- display: inline-block;
- border: solid transparent;
- width: 0;
- height: 0;
- border-width: 12px;
- top: 16px;
- position: absolute;
- }
- .prompt-box:before {
- border-right-color: #e4e4e4;
- left: -25px;
- }
- .prompt-box:after {
- border-right-color: #FFFFFF;
- left: -23px;
- }
- .prompt-con {
- width: 100%;
- word-break: break-all;
- white-space: normal;
- }
- }
- // 颜色组件
- .flexbox-fix-btn .btn {
- width: 80px;
- border: 1px solid #DDDDDD;
- color: #666666;
- line-height: 32px;
- background-color: transparent;
- margin: 20px 5px 0;
- cursor: pointer;
- }
- // 小图上传样式
- .upload_img_square {
- display: inline-block;
- width: 80px;
- height: 80px;
- line-height: 78px;
- font-size: 30px;
- color: #bbbbbb;
- cursor: pointer;
- border: 1px dashed #ccc;
- border-radius: 5px;
- text-align: center;
- margin-bottom: 10px;
- margin-right: 10px;
- }
- .upload_img_square_item {
- display: inline-block;
- float: left;
- width: 80px;
- height: 80px;
- position: relative;
- border: 1px dashed #e5e5e5;
- text-align: center;
- transition: background-color 0.3s ease;
- margin-bottom: 10px;
- margin-right: 10px;
- &:hover {
- border: 1px dashed #ff8143;
- border-radius: 5px;
- }
- &:hover .operation {
- display: block;
- }
- .img-wrap {
- width: 80px;
- font-size: 0;
- line-height: 79px;
- border-radius: 5px;
- overflow: hidden;
- img {
- width: calc(100% - 2px);
- height: calc(100% - 2px);
- }
- }
- .operation {
- position: absolute;
- top: 0;
- z-index: 10;
- width: 80px;
- height: 80px;
- line-height: 80px;
- background: rgba(0, 0, 0, 0.5);
- color: #fff;
- cursor: pointer;
- text-align: center;
- display: none;
- i {
- font-size: 20px;
- margin-left: 10px;
- &:first-child {
- margin-left: 0;
- }
- }
- .replace_img {
- position: absolute;
- bottom: 0;
- width: 100%;
- height: 24px;
- color: #fff;
- background: rgba(0, 0, 0, 0.5);
- font-size: 12px;
- line-height: 24px;
- }
- }
- }
- .layui-form-item {
- .layui-table-view {
- margin-top: 0;
- }
- .layui-form-checkbox[lay-skin=primary] {
- margin-top: 0;
- }
- .layui-table-tool {
- min-height: 40px;
- padding: 0;
- }
- }
- .layui-table-init .layui-icon {
- position: absolute;
- }
- .layui-layer-tips {
- .layui-layer-content {
- color: #000 !important;
- }
- }
- @keyframes spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- .common-loading-layer {
- width: 35px;
- height: 35px;
- perspective: 800px;
- transform-style: preserve-3d;
- transition: all 0.2s ease-out;
- border-radius: 50%;
- border: 3px solid;
- border-left-color: var(--base-color);
- border-right-color: #C5C5C5;
- border-top-color: var(--base-color);
- border-bottom-color: #C5C5C5;
- animation: spin 0.6s linear normal infinite;
- display: block;
- &:before {
- content: ''
- }
- }
|