fieldset { margin: 0 0 10px 0; border: 1px solid #DDD; padding: 10px 20px 5px 20px; background: #fff; border-radius: 5px; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1); legend { color: #333; padding: 0 10px; font-size: 14px; } } .layui-table { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1); border-color: #DDD; } .layui-tab, .layui-card { overflow: hidden; border-radius: 5px; box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1); .layui-card-header { padding: 0 20px; } .layui-card-body { padding: 20px; } .layui-tab-content { padding: 20px; background: #fff; } } .layui-btn { border: 1px solid #009688; &-warm { border: 1px solid #FFB800; } &-danger { border: 1px solid #FF5722; } &-normal { border: 1px solid #1E9FFF; } &-disabled { border: 1px solid #DDD; } & + .layui-btn { margin-left: 8px; } } .layui-btn-group { .layui-btn:last-child { border-radius: 0 5px 5px 0; } .layui-btn:first-child { border-radius: 5px 0 0 5px; } .layui-btn-primary:hover { border-color: #009688; } } .layui-badge { margin-right: 5px; box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15); &-middle { width: 1em; height: auto; padding: 5px; margin-right: 5px; white-space: normal; vertical-align: middle; } } /*! 搜索表单样式 */ .form-search { .layui-btn { height: 32px; padding: 0 10px; font-size: 13px; line-height: 32px; .layui-icon { font-size: 15px; } } .layui-form-label { width: auto !important; height: 32px; padding: 0 8px; line-height: 32px } .layui-input-inline { width: 170px; input, select { width: 100%; height: 32px; padding: 0 8px; line-height: 32px } } .layui-form-select dl { top: 31px; padding: 0 } } /* 表单验证异常提示 */ .label-required { &-prev:before { width: 1em; color: red; content: '*'; display: inline-block; position: absolute; text-align: left; font-weight: 700; line-height: 1.6em; margin-left: -0.8em; } &:after, &-next:after { top: 6px; right: 5px; color: red; content: '*'; position: absolute; margin-left: 4px; font-weight: 700; line-height: 1.8em } &-null:before { content: none !important } } /** 自定义表单样式 */ .think-box-shadow { padding: 20px !important; background: #fff !important; border-radius: 5px; box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .2); } /** checkbox & radio */ label.think-checkbox, label.think-radio { margin-right: 10px; display: inline-block; } .think-checkbox, .think-radio { cursor: pointer; margin-top: 10px; font-weight: 400; line-height: 18px; } .think-checkbox input[type=checkbox] { width: 18px; height: 18px; border: 1px solid #dcdcdc; cursor: pointer; margin: 0 5px 0 0; position: relative; display: inline-block !important; background: #fff; appearance: none; box-sizing: border-box !important; border-radius: 1px; vertical-align: bottom; -webkit-appearance: none; &:checked:after { color: #666; padding: 2px; display: block; content: "\e605"; font-size: 12px; position: absolute; font-style: normal; font-weight: 700; font-family: layui-icon !important; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale } } .think-radio input[type=radio] { width: 18px; height: 18px; cursor: pointer; margin: 0 5px 0 0; position: relative; border: 1px solid #dcdcdc; display: inline-block !important; box-sizing: border-box !important; appearance: none; background: #fff; border-radius: 1em; vertical-align: bottom; -webkit-appearance: none; &:checked:after { top: 4px; left: 4px; width: 8px; height: 8px; content: ''; display: block; position: relative; background: #666; border-radius: 1em } } .layui-layer-content .layui-form.layui-card .layui-card-body { padding: 30px 40px 0 0 } .layui-layer-dialog .layui-layer-content .layui-layer-ico { top: 50% !important; margin-top: -15px !important } .laydate-footer-btns span { line-height: 24px !important } /** Layui 样式调整 */ .layui-input, .layui-select { line-height: 38px } .layui-btn-group { > .layui-btn { border-right: 0 !important; border-left: 1px solid #009688 !important; &:last-child { border-right: 1px solid #009688 !important; } &.layui-btn-active { border-left: 0 !important; border-right: 0 !important; + .layui-btn { border-left: 0 !important; } } } } .layui-table { td, th { font-size: 12px } .list-table-image { width: 22px; cursor: pointer } .list-table-sort-td { width: 10px !important; text-align: center !important; padding-left: 5px !important; padding-right: 5px !important; button { width: 56px; background: #009688 } input { width: 50px; color: #666; padding: 2px; border: 1px solid #DDD; text-align: center; font-size: 9pt; line-height: 18px } } .list-table-check-td { width: 10px !important; text-align: center; padding-left: 15px !important; padding-right: 15px !important; input { margin: 0 !important; vertical-align: middle } } td { .text-explode { color: #ccc !important; margin: 0 4px !important; &:first-child { display: none; opacity: 0 } } .background-image { float: left; width: 40px; height: 40px; display: inline-block; margin-right: 5px; background: no-repeat center center; background-size: cover; vertical-align: middle } } }