fieldset { margin: 0; border: 1px solid #e6e6e6; padding: 10px 20px 5px 20px; legend { color: #666; padding: 0 10px; font-size: 14px } } /*! 搜索表单样式 */ .form-search { .layui-btn { height: 32px; line-height: 28px; font-size: 12px; padding: 0 10px } .layui-form-label { width: auto !important; height: 32px; padding: 0 8px; line-height: 30px } .layui-input-inline { width: 170px; input, select { width: 100%; height: 32px; padding: 2px 8px; line-height: 1em } } .layui-form-select dl { top: 31px; padding: 0 } } .layui-form { input.layui-input, select.layui-select { line-height: 1em; } &.layui-card { box-shadow: none } } /* 表单验证异常提示 */ .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-form-label { padding: 9px 15px; font-weight: 400; line-height: 20px; text-align: right } .think-form-group-right { border-left: none; border-top-left-radius: 0; border-bottom-left-radius: 0; } .think-form-group-left input { border-right: none; border-top-right-radius: 0; border-bottom-right-radius: 0; } .think-box-shadow { padding: 20px !important; background: #fff !important; box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1); } /** 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: 17px; } .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; font-style: normal; font-weight: 700; position: absolute; 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-radius: 0 !important; border-left: 1px solid #C9C9C9 !important; &:last-child { border-right: 1px solid #C9C9C9 !important; } &.layui-btn-active { border-left: 0 !important; border-right: 0 !important; + .layui-btn { border-left: 0 !important; } } } } .layui-btn-primary { &.layui-btn-xs { line-height: 20px } &.layui-btn-sm { line-height: 28px } } .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 #e6e6e6; 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 } } }