schema-form-g
Version:
gantd schemaform
147 lines (119 loc) • 4.16 kB
text/less
@gant-prefix: gant;
@component: ~'@{gant-prefix}-schemaform';
:root {
--font-size-base: 12px;
}
.@{component} {
&-schemaCard {
clear: both;
}
&-schemaForm {
.ant-input-group.gant-input-group,
.ant-input-group-wrapper {
top: 0px ;
vertical-align: top;
}
.ant-input-group {
.ant-select,
.ant-cascader-picker {
width: 100%;
}
}
.ant-form-item {
margin-bottom: 4px;
.ant-form-item-label {
color: rgba(125, 125, 125, 0.65);
height: 32px;
line-height: 32px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0 0 0px;
}
.ant-form-item-control-wrapper {
color: var(--text-color);
.ant-form-item-control {
margin-bottom: 4px;
line-height: 32px;
.ant-form-extra {
padding-top: 4px;
}
.ant-form-explain {
position: absolute;
font-size: 14px;
line-height: 32px;
bottom: 1px;
right: 7px;
z-index: 10;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
word-break: break-all;
}
}
}
}
.@{gant-prefix} {
&-form-item-sm {
font-size: var(--font-size-base);
.ant-select-sm {
font-size: var(--font-size-base);
.ant-select-selection__placeholder {
line-height: 24px;
}
}
.ant-form-item-control-wrapper {
.ant-form-item-control {
margin-top: -1px;
line-height: 24px;
.ant-form-explain {
font-size: var(--font-size-base);
line-height: 24px;
}
.ant-form-extra {
min-height: 18px;
padding-top: 2px;
font-size: var(--font-size-base);
}
}
}
.ant-form-item-label {
font-size: var(--font-size-base);
line-height: 24px;
height: 24px;
}
label {
font-size: var(--font-size-base);
}
}
}
.ant-form-item-label label::after,
.ant-col-24.ant-form-item-label label::after,
.ant-col-xl-24.ant-form-item-label label::after {
display: inline;
}
.ant-input {
padding: 4px 7px
}
.@{component}-showRequiredMark {
.ant-form-item-required::before {
display: inline;
}
}
}
&-right {
.ant-form-item-label {
text-align: right;
}
}
&-left {
.ant-form-item-label {
text-align: left;
}
}
&-schemaTable {
padding: 5px;
}
}