Latest updates from IceHrmPro
This commit is contained in:
69
web/node_modules/antd/es/form/style/components.less
generated
vendored
Normal file
69
web/node_modules/antd/es/form/style/components.less
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
@import './index';
|
||||
|
||||
// ================================================================
|
||||
// = Children Component =
|
||||
// ================================================================
|
||||
.@{form-item-prefix-cls} {
|
||||
.@{ant-prefix}-mentions,
|
||||
textarea.@{ant-prefix}-input {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
// input[type=file]
|
||||
.@{ant-prefix}-upload {
|
||||
background: transparent;
|
||||
}
|
||||
.@{ant-prefix}-upload.@{ant-prefix}-upload-drag {
|
||||
background: @background-color-light;
|
||||
}
|
||||
|
||||
input[type='radio'],
|
||||
input[type='checkbox'] {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
// Radios and checkboxes on same line
|
||||
.@{ant-prefix}-radio-inline,
|
||||
.@{ant-prefix}-checkbox-inline {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
font-weight: normal;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
|
||||
&:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-checkbox-vertical,
|
||||
.@{ant-prefix}-radio-vertical {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.@{ant-prefix}-checkbox-vertical + .@{ant-prefix}-checkbox-vertical,
|
||||
.@{ant-prefix}-radio-vertical + .@{ant-prefix}-radio-vertical {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.@{ant-prefix}-input-number {
|
||||
+ .@{form-prefix-cls}-text {
|
||||
margin-left: 8px;
|
||||
}
|
||||
&-handler-wrap {
|
||||
z-index: 2; // https://github.com/ant-design/ant-design/issues/6289
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-select,
|
||||
.@{ant-prefix}-cascader-picker {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
// Don't impact select inside input group
|
||||
.@{ant-prefix}-input-group .@{ant-prefix}-select,
|
||||
.@{ant-prefix}-input-group .@{ant-prefix}-cascader-picker {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
4
web/node_modules/antd/es/form/style/css.js
generated
vendored
Normal file
4
web/node_modules/antd/es/form/style/css.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import '../../style/index.css';
|
||||
import './index.css'; // style dependencies
|
||||
|
||||
import '../../grid/style/css';
|
||||
10
web/node_modules/antd/es/form/style/horizontal.less
generated
vendored
Normal file
10
web/node_modules/antd/es/form/style/horizontal.less
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
@import './index';
|
||||
|
||||
.@{form-prefix-cls}-horizontal {
|
||||
.@{form-item-prefix-cls}-label {
|
||||
flex-grow: 0;
|
||||
}
|
||||
.@{form-item-prefix-cls}-control {
|
||||
flex: 1 1 0;
|
||||
}
|
||||
}
|
||||
938
web/node_modules/antd/es/form/style/index.css
generated
vendored
Normal file
938
web/node_modules/antd/es/form/style/index.css
generated
vendored
Normal file
@@ -0,0 +1,938 @@
|
||||
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
||||
/* stylelint-disable no-duplicate-selectors */
|
||||
/* stylelint-disable */
|
||||
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
||||
.ant-form-item .ant-mentions,
|
||||
.ant-form-item textarea.ant-input {
|
||||
height: auto;
|
||||
}
|
||||
.ant-form-item .ant-upload {
|
||||
background: transparent;
|
||||
}
|
||||
.ant-form-item .ant-upload.ant-upload-drag {
|
||||
background: #fafafa;
|
||||
}
|
||||
.ant-form-item input[type='radio'],
|
||||
.ant-form-item input[type='checkbox'] {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
.ant-form-item .ant-radio-inline,
|
||||
.ant-form-item .ant-checkbox-inline {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
font-weight: normal;
|
||||
vertical-align: middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ant-form-item .ant-radio-inline:first-child,
|
||||
.ant-form-item .ant-checkbox-inline:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-form-item .ant-checkbox-vertical,
|
||||
.ant-form-item .ant-radio-vertical {
|
||||
display: block;
|
||||
}
|
||||
.ant-form-item .ant-checkbox-vertical + .ant-checkbox-vertical,
|
||||
.ant-form-item .ant-radio-vertical + .ant-radio-vertical {
|
||||
margin-left: 0;
|
||||
}
|
||||
.ant-form-item .ant-input-number + .ant-form-text {
|
||||
margin-left: 8px;
|
||||
}
|
||||
.ant-form-item .ant-input-number-handler-wrap {
|
||||
z-index: 2;
|
||||
}
|
||||
.ant-form-item .ant-select,
|
||||
.ant-form-item .ant-cascader-picker {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-form-item .ant-input-group .ant-select,
|
||||
.ant-form-item .ant-input-group .ant-cascader-picker {
|
||||
width: auto;
|
||||
}
|
||||
.ant-form-inline {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.ant-form-inline .ant-form-item {
|
||||
-webkit-box-flex: 0;
|
||||
-ms-flex: none;
|
||||
flex: none;
|
||||
-ms-flex-wrap: nowrap;
|
||||
flex-wrap: nowrap;
|
||||
margin-right: 16px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ant-form-inline .ant-form-item-with-help {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.ant-form-inline .ant-form-item > .ant-form-item-label,
|
||||
.ant-form-inline .ant-form-item > .ant-form-item-control {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
.ant-form-inline .ant-form-item .ant-form-text {
|
||||
display: inline-block;
|
||||
}
|
||||
.ant-form-inline .ant-form-item .ant-form-item-has-feedback {
|
||||
display: inline-block;
|
||||
}
|
||||
.ant-form-horizontal .ant-form-item-label {
|
||||
-webkit-box-flex: 0;
|
||||
-ms-flex-positive: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
.ant-form-horizontal .ant-form-item-control {
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex: 1 1 0px;
|
||||
flex: 1 1 0;
|
||||
}
|
||||
.ant-form-vertical .ant-form-item {
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
}
|
||||
.ant-form-vertical .ant-form-item-label > label {
|
||||
height: auto;
|
||||
}
|
||||
.ant-form-vertical .ant-form-item-label,
|
||||
.ant-col-24.ant-form-item-label,
|
||||
.ant-col-xl-24.ant-form-item-label {
|
||||
margin: 0;
|
||||
padding: 0 0 8px;
|
||||
line-height: 1.5715;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
}
|
||||
.ant-form-vertical .ant-form-item-label > label,
|
||||
.ant-col-24.ant-form-item-label > label,
|
||||
.ant-col-xl-24.ant-form-item-label > label {
|
||||
margin: 0;
|
||||
}
|
||||
.ant-form-vertical .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: none;
|
||||
}
|
||||
.ant-form-rtl.ant-form-vertical .ant-form-item-label,
|
||||
.ant-form-rtl.ant-col-24.ant-form-item-label,
|
||||
.ant-form-rtl.ant-col-xl-24.ant-form-item-label {
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 575px) {
|
||||
.ant-form-item .ant-form-item-label {
|
||||
margin: 0;
|
||||
padding: 0 0 8px;
|
||||
line-height: 1.5715;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
}
|
||||
.ant-form-item .ant-form-item-label > label {
|
||||
margin: 0;
|
||||
}
|
||||
.ant-form-item .ant-form-item-label > label::after {
|
||||
display: none;
|
||||
}
|
||||
.ant-form-rtl.ant-form-item .ant-form-item-label {
|
||||
text-align: right;
|
||||
}
|
||||
.ant-form .ant-form-item {
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.ant-form .ant-form-item .ant-form-item-label,
|
||||
.ant-form .ant-form-item .ant-form-item-control {
|
||||
-webkit-box-flex: 0;
|
||||
-ms-flex: 0 0 100%;
|
||||
flex: 0 0 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
.ant-col-xs-24.ant-form-item-label {
|
||||
margin: 0;
|
||||
padding: 0 0 8px;
|
||||
line-height: 1.5715;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
}
|
||||
.ant-col-xs-24.ant-form-item-label > label {
|
||||
margin: 0;
|
||||
}
|
||||
.ant-col-xs-24.ant-form-item-label > label::after {
|
||||
display: none;
|
||||
}
|
||||
.ant-form-rtl.ant-col-xs-24.ant-form-item-label {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.ant-col-sm-24.ant-form-item-label {
|
||||
margin: 0;
|
||||
padding: 0 0 8px;
|
||||
line-height: 1.5715;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
}
|
||||
.ant-col-sm-24.ant-form-item-label > label {
|
||||
margin: 0;
|
||||
}
|
||||
.ant-col-sm-24.ant-form-item-label > label::after {
|
||||
display: none;
|
||||
}
|
||||
.ant-form-rtl.ant-col-sm-24.ant-form-item-label {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
.ant-col-md-24.ant-form-item-label {
|
||||
margin: 0;
|
||||
padding: 0 0 8px;
|
||||
line-height: 1.5715;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
}
|
||||
.ant-col-md-24.ant-form-item-label > label {
|
||||
margin: 0;
|
||||
}
|
||||
.ant-col-md-24.ant-form-item-label > label::after {
|
||||
display: none;
|
||||
}
|
||||
.ant-form-rtl.ant-col-md-24.ant-form-item-label {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1199px) {
|
||||
.ant-col-lg-24.ant-form-item-label {
|
||||
margin: 0;
|
||||
padding: 0 0 8px;
|
||||
line-height: 1.5715;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
}
|
||||
.ant-col-lg-24.ant-form-item-label > label {
|
||||
margin: 0;
|
||||
}
|
||||
.ant-col-lg-24.ant-form-item-label > label::after {
|
||||
display: none;
|
||||
}
|
||||
.ant-form-rtl.ant-col-lg-24.ant-form-item-label {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
@media (max-width: 1599px) {
|
||||
.ant-col-xl-24.ant-form-item-label {
|
||||
margin: 0;
|
||||
padding: 0 0 8px;
|
||||
line-height: 1.5715;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
}
|
||||
.ant-col-xl-24.ant-form-item-label > label {
|
||||
margin: 0;
|
||||
}
|
||||
.ant-col-xl-24.ant-form-item-label > label::after {
|
||||
display: none;
|
||||
}
|
||||
.ant-form-rtl.ant-col-xl-24.ant-form-item-label {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
.ant-form-item {
|
||||
/* Some non-status related component style is in `components.less` */
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-input {
|
||||
padding-right: 24px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix {
|
||||
padding-right: 18px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {
|
||||
right: 28px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-switch {
|
||||
margin: 2px 0 4px;
|
||||
}
|
||||
.ant-form-item-has-feedback > .ant-select .ant-select-arrow,
|
||||
.ant-form-item-has-feedback > .ant-select .ant-select-selection__clear,
|
||||
.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,
|
||||
.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection__clear {
|
||||
right: 28px;
|
||||
}
|
||||
.ant-form-item-has-feedback > .ant-select .ant-select-selection-selected-value,
|
||||
.ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value {
|
||||
padding-right: 42px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-cascader-picker-arrow {
|
||||
margin-right: 17px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-cascader-picker-clear {
|
||||
right: 28px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-picker {
|
||||
padding-right: 29.2px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-picker-large {
|
||||
padding-right: 29.2px;
|
||||
}
|
||||
.ant-form-item-has-feedback .ant-picker-small {
|
||||
padding-right: 25.2px;
|
||||
}
|
||||
.ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,
|
||||
.ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,
|
||||
.ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,
|
||||
.ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
width: 32px;
|
||||
height: 20px;
|
||||
margin-top: -10px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
visibility: visible;
|
||||
-webkit-animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);
|
||||
animation: zoomIn 0.3s cubic-bezier(0.12, 0.4, 0.29, 1.46);
|
||||
pointer-events: none;
|
||||
}
|
||||
.ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon svg,
|
||||
.ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon svg,
|
||||
.ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon svg,
|
||||
.ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.ant-form-item-has-success.ant-form-item-has-feedback .ant-form-item-children-icon {
|
||||
color: #52c41a;
|
||||
-webkit-animation-name: diffZoomIn1 !important;
|
||||
animation-name: diffZoomIn1 !important;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-form-item-explain,
|
||||
.ant-form-item-has-warning .ant-form-item-split {
|
||||
color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input,
|
||||
.ant-form-item-has-warning .ant-input-affix-wrapper,
|
||||
.ant-form-item-has-warning .ant-input:hover,
|
||||
.ant-form-item-has-warning .ant-input-affix-wrapper:hover {
|
||||
background-color: #fff;
|
||||
border-color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input:focus,
|
||||
.ant-form-item-has-warning .ant-input-affix-wrapper:focus,
|
||||
.ant-form-item-has-warning .ant-input-focused,
|
||||
.ant-form-item-has-warning .ant-input-affix-wrapper-focused {
|
||||
border-color: #ffc53d;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input:not([disabled]):hover,
|
||||
.ant-form-item-has-warning .ant-input-affix-wrapper:not([disabled]):hover {
|
||||
border-color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input-affix-wrapper input:focus {
|
||||
-webkit-box-shadow: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-calendar-picker-open .ant-calendar-picker-input {
|
||||
border-color: #ffc53d;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input-prefix {
|
||||
color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input-group-addon {
|
||||
color: #faad14;
|
||||
background-color: #fff;
|
||||
border-color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning .has-feedback {
|
||||
color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning.ant-form-item-has-feedback .ant-form-item-children-icon {
|
||||
color: #faad14;
|
||||
-webkit-animation-name: diffZoomIn3 !important;
|
||||
animation-name: diffZoomIn3 !important;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-select:not(.ant-select-borderless) .ant-select-selector {
|
||||
border-color: #faad14 !important;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector,
|
||||
.ant-form-item-has-warning .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {
|
||||
border-color: #ffc53d;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input-number,
|
||||
.ant-form-item-has-warning .ant-picker {
|
||||
border-color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input-number-focused,
|
||||
.ant-form-item-has-warning .ant-picker-focused,
|
||||
.ant-form-item-has-warning .ant-input-number:focus,
|
||||
.ant-form-item-has-warning .ant-picker:focus {
|
||||
border-color: #ffc53d;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
}
|
||||
.ant-form-item-has-warning .ant-input-number:not([disabled]):hover,
|
||||
.ant-form-item-has-warning .ant-picker:not([disabled]):hover {
|
||||
border-color: #faad14;
|
||||
}
|
||||
.ant-form-item-has-warning .ant-cascader-picker:focus .ant-cascader-input {
|
||||
border-color: #ffc53d;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(250, 173, 20, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error .ant-form-item-explain,
|
||||
.ant-form-item-has-error .ant-form-item-split {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-input,
|
||||
.ant-form-item-has-error .ant-input-affix-wrapper,
|
||||
.ant-form-item-has-error .ant-input:hover,
|
||||
.ant-form-item-has-error .ant-input-affix-wrapper:hover {
|
||||
background-color: #fff;
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-input:focus,
|
||||
.ant-form-item-has-error .ant-input-affix-wrapper:focus,
|
||||
.ant-form-item-has-error .ant-input-focused,
|
||||
.ant-form-item-has-error .ant-input-affix-wrapper-focused {
|
||||
border-color: #ff7875;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error .ant-input:not([disabled]):hover,
|
||||
.ant-form-item-has-error .ant-input-affix-wrapper:not([disabled]):hover {
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-input-affix-wrapper input:focus {
|
||||
-webkit-box-shadow: none !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.ant-form-item-has-error .ant-calendar-picker-open .ant-calendar-picker-input {
|
||||
border-color: #ff7875;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error .ant-input-prefix {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-input-group-addon {
|
||||
color: #ff4d4f;
|
||||
background-color: #fff;
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .has-feedback {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error.ant-form-item-has-feedback .ant-form-item-children-icon {
|
||||
color: #ff4d4f;
|
||||
-webkit-animation-name: diffZoomIn2 !important;
|
||||
animation-name: diffZoomIn2 !important;
|
||||
}
|
||||
.ant-form-item-has-error .ant-select:not(.ant-select-borderless) .ant-select-selector {
|
||||
border-color: #ff4d4f !important;
|
||||
}
|
||||
.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-open .ant-select-selector,
|
||||
.ant-form-item-has-error .ant-select:not(.ant-select-borderless).ant-select-focused .ant-select-selector {
|
||||
border-color: #ff7875;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error .ant-input-group-addon .ant-select.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
|
||||
border: 0;
|
||||
}
|
||||
.ant-form-item-has-error .ant-select.ant-select-auto-complete .ant-input:focus {
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-input-number,
|
||||
.ant-form-item-has-error .ant-picker {
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-input-number-focused,
|
||||
.ant-form-item-has-error .ant-picker-focused,
|
||||
.ant-form-item-has-error .ant-input-number:focus,
|
||||
.ant-form-item-has-error .ant-picker:focus {
|
||||
border-color: #ff7875;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error .ant-input-number:not([disabled]):hover,
|
||||
.ant-form-item-has-error .ant-picker:not([disabled]):hover {
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor,
|
||||
.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor,
|
||||
.ant-form-item-has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {
|
||||
border-color: #ff7875;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error .ant-cascader-picker:focus .ant-cascader-input {
|
||||
border-color: #ff7875;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error .ant-transfer-list {
|
||||
border-color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-has-error .ant-transfer-list-search:not([disabled]) {
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):hover {
|
||||
border-color: #40a9ff;
|
||||
border-right-width: 1px !important;
|
||||
}
|
||||
.ant-form-item-has-error .ant-transfer-list-search:not([disabled]):focus {
|
||||
border-color: #40a9ff;
|
||||
border-right-width: 1px !important;
|
||||
outline: 0;
|
||||
-webkit-box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||
}
|
||||
.ant-form-item-has-error-leave .ant-form-item-explain {
|
||||
color: #ff4d4f;
|
||||
}
|
||||
.ant-form-item-is-validating.ant-form-item-has-feedback .ant-form-item-children-icon {
|
||||
display: inline-block;
|
||||
color: #1890ff;
|
||||
}
|
||||
.ant-form {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
}
|
||||
.ant-form legend {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-size: 16px;
|
||||
line-height: inherit;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #d9d9d9;
|
||||
}
|
||||
.ant-form label {
|
||||
font-size: 14px;
|
||||
}
|
||||
.ant-form input[type='search'] {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.ant-form input[type='radio'],
|
||||
.ant-form input[type='checkbox'] {
|
||||
line-height: normal;
|
||||
}
|
||||
.ant-form input[type='file'] {
|
||||
display: block;
|
||||
}
|
||||
.ant-form input[type='range'] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
.ant-form select[multiple],
|
||||
.ant-form select[size] {
|
||||
height: auto;
|
||||
}
|
||||
.ant-form input[type='file']:focus,
|
||||
.ant-form input[type='radio']:focus,
|
||||
.ant-form input[type='checkbox']:focus {
|
||||
outline: thin dotted;
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
.ant-form output {
|
||||
display: block;
|
||||
padding-top: 15px;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
}
|
||||
.ant-form .ant-form-text {
|
||||
display: inline-block;
|
||||
padding-right: 8px;
|
||||
}
|
||||
.ant-form-small .ant-form-item-label > label {
|
||||
height: 24px;
|
||||
}
|
||||
.ant-form-small .ant-form-item-control-input {
|
||||
min-height: 24px;
|
||||
}
|
||||
.ant-form-large .ant-form-item-label > label {
|
||||
height: 40px;
|
||||
}
|
||||
.ant-form-large .ant-form-item-control-input {
|
||||
min-height: 40px;
|
||||
}
|
||||
.ant-form-item {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: rgba(0, 0, 0, 0.65);
|
||||
font-size: 14px;
|
||||
font-variant: tabular-nums;
|
||||
line-height: 1.5715;
|
||||
list-style: none;
|
||||
-webkit-font-feature-settings: 'tnum';
|
||||
font-feature-settings: 'tnum';
|
||||
margin-bottom: 24px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.ant-form-item-with-help {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.ant-form-item-label {
|
||||
display: inline-block;
|
||||
-webkit-box-flex: 0;
|
||||
-ms-flex-positive: 0;
|
||||
flex-grow: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.ant-form-item-label-left {
|
||||
text-align: left;
|
||||
}
|
||||
.ant-form-item-label > label {
|
||||
position: relative;
|
||||
display: -webkit-inline-box;
|
||||
display: -ms-inline-flexbox;
|
||||
display: inline-flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
height: 32px;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
font-size: 14px;
|
||||
}
|
||||
.ant-form-item-label > label > .anticon {
|
||||
font-size: 14px;
|
||||
vertical-align: top;
|
||||
}
|
||||
.ant-form-item-label > label.ant-form-item-required::before {
|
||||
display: inline-block;
|
||||
margin-right: 4px;
|
||||
color: #ff4d4f;
|
||||
font-size: 14px;
|
||||
font-family: SimSun, sans-serif;
|
||||
line-height: 1;
|
||||
content: '*';
|
||||
}
|
||||
.ant-form-hide-required-mark .ant-form-item-label > label.ant-form-item-required::before {
|
||||
display: none;
|
||||
}
|
||||
.ant-form-item-label > label::after {
|
||||
content: ':';
|
||||
position: relative;
|
||||
top: -0.5px;
|
||||
margin: 0 8px 0 2px;
|
||||
}
|
||||
.ant-form-item-label > label.ant-form-item-no-colon::after {
|
||||
content: ' ';
|
||||
}
|
||||
.ant-form-item-control {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex-positive: 1;
|
||||
flex-grow: 1;
|
||||
}
|
||||
.ant-form-item-control:first-child:not([class^='ant-col-']):not([class*=' ant-col-']) {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-form-item-control-input {
|
||||
position: relative;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
min-height: 32px;
|
||||
}
|
||||
.ant-form-item-control-input-content {
|
||||
-webkit-box-flex: 1;
|
||||
-ms-flex: auto;
|
||||
flex: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
.ant-form-item-explain,
|
||||
.ant-form-item-extra {
|
||||
clear: both;
|
||||
min-height: 24px;
|
||||
padding-top: 0px;
|
||||
color: rgba(0, 0, 0, 0.45);
|
||||
font-size: 14px;
|
||||
line-height: 1.5715;
|
||||
-webkit-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
||||
}
|
||||
.show-help-enter,
|
||||
.show-help-appear {
|
||||
-webkit-animation-duration: 0.3s;
|
||||
animation-duration: 0.3s;
|
||||
-webkit-animation-fill-mode: both;
|
||||
animation-fill-mode: both;
|
||||
-webkit-animation-play-state: paused;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.show-help-leave {
|
||||
-webkit-animation-duration: 0.3s;
|
||||
animation-duration: 0.3s;
|
||||
-webkit-animation-fill-mode: both;
|
||||
animation-fill-mode: both;
|
||||
-webkit-animation-play-state: paused;
|
||||
animation-play-state: paused;
|
||||
}
|
||||
.show-help-enter.show-help-enter-active,
|
||||
.show-help-appear.show-help-appear-active {
|
||||
-webkit-animation-name: antShowHelpIn;
|
||||
animation-name: antShowHelpIn;
|
||||
-webkit-animation-play-state: running;
|
||||
animation-play-state: running;
|
||||
}
|
||||
.show-help-leave.show-help-leave-active {
|
||||
-webkit-animation-name: antShowHelpOut;
|
||||
animation-name: antShowHelpOut;
|
||||
-webkit-animation-play-state: running;
|
||||
animation-play-state: running;
|
||||
pointer-events: none;
|
||||
}
|
||||
.show-help-enter,
|
||||
.show-help-appear {
|
||||
opacity: 0;
|
||||
-webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
.show-help-leave {
|
||||
-webkit-animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
animation-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1);
|
||||
}
|
||||
@-webkit-keyframes antShowHelpIn {
|
||||
0% {
|
||||
-webkit-transform: translateY(-5px);
|
||||
transform: translateY(-5px);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@keyframes antShowHelpIn {
|
||||
0% {
|
||||
-webkit-transform: translateY(-5px);
|
||||
transform: translateY(-5px);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes antShowHelpOut {
|
||||
to {
|
||||
-webkit-transform: translateY(-5px);
|
||||
transform: translateY(-5px);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@keyframes antShowHelpOut {
|
||||
to {
|
||||
-webkit-transform: translateY(-5px);
|
||||
transform: translateY(-5px);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes diffZoomIn1 {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
@keyframes diffZoomIn1 {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes diffZoomIn2 {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
@keyframes diffZoomIn2 {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes diffZoomIn3 {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
@keyframes diffZoomIn3 {
|
||||
0% {
|
||||
-webkit-transform: scale(0);
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
.ant-form-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-label {
|
||||
text-align: left;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-label > label.ant-form-item-required::before {
|
||||
margin-right: 0;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-label > label::after {
|
||||
margin: 0 2px 0 8px;
|
||||
}
|
||||
.ant-col-rtl .ant-form-item-control:first-child {
|
||||
width: 100%;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-input {
|
||||
padding-right: 11px;
|
||||
padding-left: 24px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input-suffix {
|
||||
padding-right: 11px;
|
||||
padding-left: 18px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-input-affix-wrapper .ant-input {
|
||||
padding: 0;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {
|
||||
right: auto;
|
||||
left: 28px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-input-number {
|
||||
padding-left: 18px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-arrow,
|
||||
.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-selection__clear,
|
||||
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,
|
||||
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection__clear {
|
||||
right: auto;
|
||||
left: 28px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback > .ant-select .ant-select-selection-selected-value,
|
||||
.ant-form-rtl .ant-form-item-has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value {
|
||||
padding-right: 0;
|
||||
padding-left: 42px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-arrow {
|
||||
margin-right: 0;
|
||||
margin-left: 17px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-cascader-picker-clear {
|
||||
right: auto;
|
||||
left: 28px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-picker {
|
||||
padding-right: 11px;
|
||||
padding-left: 29.2px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-picker-large {
|
||||
padding-right: 11px;
|
||||
padding-left: 29.2px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback .ant-picker-small {
|
||||
padding-right: 7px;
|
||||
padding-left: 25.2px;
|
||||
}
|
||||
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-success .ant-form-item-children-icon,
|
||||
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-warning .ant-form-item-children-icon,
|
||||
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-has-error .ant-form-item-children-icon,
|
||||
.ant-form-rtl .ant-form-item-has-feedback.ant-form-item-is-validating .ant-form-item-children-icon {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
.ant-form-rtl.ant-form-inline .ant-form-item {
|
||||
margin-right: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
3
web/node_modules/antd/es/form/style/index.d.ts
generated
vendored
Normal file
3
web/node_modules/antd/es/form/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less';
|
||||
import '../../grid/style';
|
||||
4
web/node_modules/antd/es/form/style/index.js
generated
vendored
Normal file
4
web/node_modules/antd/es/form/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import '../../style/index.less';
|
||||
import './index.less'; // style dependencies
|
||||
|
||||
import '../../grid/style';
|
||||
227
web/node_modules/antd/es/form/style/index.less
generated
vendored
Normal file
227
web/node_modules/antd/es/form/style/index.less
generated
vendored
Normal file
@@ -0,0 +1,227 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import '../../input/style/mixin';
|
||||
@import '../../button/style/mixin';
|
||||
@import '../../grid/style/mixin';
|
||||
@import './components';
|
||||
@import './inline';
|
||||
@import './horizontal';
|
||||
@import './vertical';
|
||||
@import './status';
|
||||
@import './mixin';
|
||||
|
||||
@form-prefix-cls: ~'@{ant-prefix}-form';
|
||||
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
|
||||
@form-font-height: ceil(@font-size-base * @line-height-base);
|
||||
|
||||
.@{form-prefix-cls} {
|
||||
.reset-component;
|
||||
.reset-form;
|
||||
|
||||
.@{form-prefix-cls}-text {
|
||||
display: inline-block;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
// ================================================================
|
||||
// = Size =
|
||||
// ================================================================
|
||||
.formSize(@input-height) {
|
||||
.@{form-item-prefix-cls}-label > label {
|
||||
height: @input-height;
|
||||
}
|
||||
|
||||
.@{form-item-prefix-cls}-control-input {
|
||||
min-height: @input-height;
|
||||
}
|
||||
}
|
||||
|
||||
&-small {
|
||||
.formSize(@input-height-sm);
|
||||
}
|
||||
&-large {
|
||||
.formSize(@input-height-lg);
|
||||
}
|
||||
}
|
||||
|
||||
.explainAndExtraDistance(@num) when (@num>=0) {
|
||||
padding-top: floor(@num);
|
||||
}
|
||||
.explainAndExtraDistance(@num) when (@num<0) {
|
||||
margin-top: floor(@num);
|
||||
}
|
||||
|
||||
// ================================================================
|
||||
// = Item =
|
||||
// ================================================================
|
||||
.@{form-item-prefix-cls} {
|
||||
.reset-component;
|
||||
|
||||
margin-bottom: @form-item-margin-bottom;
|
||||
vertical-align: top;
|
||||
|
||||
&-with-help {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
// ==============================================================
|
||||
// = Label =
|
||||
// ==============================================================
|
||||
&-label {
|
||||
display: inline-block;
|
||||
flex-grow: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
|
||||
&-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
> label {
|
||||
position: relative;
|
||||
// display: inline;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: @form-item-label-height;
|
||||
color: @label-color;
|
||||
font-size: @form-item-label-font-size;
|
||||
|
||||
> .@{iconfont-css-prefix} {
|
||||
font-size: @form-item-label-font-size;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
&.@{form-item-prefix-cls}-required::before {
|
||||
display: inline-block;
|
||||
margin-right: 4px;
|
||||
color: @label-required-color;
|
||||
font-size: @form-item-label-font-size;
|
||||
font-family: SimSun, sans-serif;
|
||||
line-height: 1;
|
||||
content: '*';
|
||||
|
||||
.@{form-prefix-cls}-hide-required-mark & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&::after {
|
||||
& when (@form-item-trailing-colon=true) {
|
||||
content: ':';
|
||||
}
|
||||
& when not (@form-item-trailing-colon=true) {
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
position: relative;
|
||||
top: -0.5px;
|
||||
margin: 0 @form-item-label-colon-margin-right 0 @form-item-label-colon-margin-left;
|
||||
}
|
||||
|
||||
&.@{form-item-prefix-cls}-no-colon::after {
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ==============================================================
|
||||
// = Input =
|
||||
// ==============================================================
|
||||
&-control {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
|
||||
&:first-child:not([class^=~"'@{ant-prefix}-col-'"]):not([class*=~"' @{ant-prefix}-col-'"]) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&-control-input {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: @input-height-base;
|
||||
|
||||
&-content {
|
||||
flex: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&-explain,
|
||||
&-extra {
|
||||
clear: both;
|
||||
min-height: @form-item-margin-bottom;
|
||||
.explainAndExtraDistance((@form-item-margin-bottom - @form-font-height) / 2);
|
||||
color: @text-color-secondary;
|
||||
font-size: @font-size-base;
|
||||
line-height: @line-height-base;
|
||||
transition: color 0.3s @ease-out; // sync input color transition
|
||||
}
|
||||
}
|
||||
|
||||
.show-help-motion(@className, @keyframeName, @duration: @animation-duration-slow) {
|
||||
.make-motion(@className, @keyframeName, @duration);
|
||||
.@{className}-enter,
|
||||
.@{className}-appear {
|
||||
opacity: 0;
|
||||
animation-timing-function: @ease-in-out;
|
||||
}
|
||||
.@{className}-leave {
|
||||
animation-timing-function: @ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
.show-help-motion(show-help, antShowHelp, 0.3s);
|
||||
|
||||
@keyframes antShowHelpIn {
|
||||
0% {
|
||||
transform: translateY(-5px);
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes antShowHelpOut {
|
||||
to {
|
||||
transform: translateY(-5px);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// need there different zoom animation
|
||||
// otherwise won't trigger anim
|
||||
@keyframes diffZoomIn1 {
|
||||
0% {
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes diffZoomIn2 {
|
||||
0% {
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes diffZoomIn3 {
|
||||
0% {
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@import './rtl';
|
||||
31
web/node_modules/antd/es/form/style/inline.less
generated
vendored
Normal file
31
web/node_modules/antd/es/form/style/inline.less
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
@import './index';
|
||||
|
||||
.@{form-prefix-cls}-inline {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.@{form-prefix-cls}-item {
|
||||
flex: none;
|
||||
flex-wrap: nowrap;
|
||||
margin-right: 16px;
|
||||
margin-bottom: 0;
|
||||
|
||||
&-with-help {
|
||||
margin-bottom: @form-item-margin-bottom;
|
||||
}
|
||||
|
||||
> .@{form-item-prefix-cls}-label,
|
||||
> .@{form-item-prefix-cls}-control {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.@{form-prefix-cls}-text {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.@{form-item-prefix-cls}-has-feedback {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
115
web/node_modules/antd/es/form/style/mixin.less
generated
vendored
Normal file
115
web/node_modules/antd/es/form/style/mixin.less
generated
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
@import '../../input/style/mixin';
|
||||
|
||||
.form-control-validation(@text-color: @input-color; @border-color: @input-border-color; @background-color: @input-bg) {
|
||||
.@{ant-prefix}-form-item-explain,
|
||||
.@{ant-prefix}-form-item-split {
|
||||
color: @text-color;
|
||||
}
|
||||
// 输入框的不同校验状态
|
||||
.@{ant-prefix}-input,
|
||||
.@{ant-prefix}-input-affix-wrapper {
|
||||
&,
|
||||
&:hover {
|
||||
background-color: @background-color;
|
||||
border-color: @border-color;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&-focused {
|
||||
.active(@border-color);
|
||||
}
|
||||
|
||||
&:not([disabled]):hover {
|
||||
border-color: @border-color;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-input-affix-wrapper {
|
||||
input:focus {
|
||||
box-shadow: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-calendar-picker-open .@{ant-prefix}-calendar-picker-input {
|
||||
.active(@border-color);
|
||||
}
|
||||
|
||||
.@{ant-prefix}-input-prefix {
|
||||
color: @text-color;
|
||||
}
|
||||
|
||||
.@{ant-prefix}-input-group-addon {
|
||||
color: @text-color;
|
||||
background-color: @background-color;
|
||||
border-color: @border-color;
|
||||
}
|
||||
|
||||
.has-feedback {
|
||||
color: @text-color;
|
||||
}
|
||||
}
|
||||
|
||||
// Reset form styles
|
||||
// -----------------------------
|
||||
// Based on Bootstrap framework
|
||||
.reset-form() {
|
||||
legend {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
padding: 0;
|
||||
color: @text-color-secondary;
|
||||
font-size: @font-size-lg;
|
||||
line-height: inherit;
|
||||
border: 0;
|
||||
border-bottom: @border-width-base @border-style-base @border-color-base;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: @font-size-base;
|
||||
}
|
||||
|
||||
input[type='search'] {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
// Position radios and checkboxes better
|
||||
input[type='radio'],
|
||||
input[type='checkbox'] {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
input[type='file'] {
|
||||
display: block;
|
||||
}
|
||||
|
||||
// Make range inputs behave like textual form controls
|
||||
input[type='range'] {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
// Make multiple select elements height not fixed
|
||||
select[multiple],
|
||||
select[size] {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
// Focus for file, radio, and checkbox
|
||||
input[type='file']:focus,
|
||||
input[type='radio']:focus,
|
||||
input[type='checkbox']:focus {
|
||||
outline: thin dotted;
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
// Adjust output element
|
||||
output {
|
||||
display: block;
|
||||
padding-top: 15px;
|
||||
color: @input-color;
|
||||
font-size: @font-size-base;
|
||||
line-height: @line-height-base;
|
||||
}
|
||||
}
|
||||
180
web/node_modules/antd/es/form/style/rtl.less
generated
vendored
Normal file
180
web/node_modules/antd/es/form/style/rtl.less
generated
vendored
Normal file
@@ -0,0 +1,180 @@
|
||||
@import '../../style/themes/index';
|
||||
@import '../../style/mixins/index';
|
||||
@import '../../input/style/mixin';
|
||||
@import '../../button/style/mixin';
|
||||
@import '../../grid/style/mixin';
|
||||
|
||||
@form-prefix-cls: ~'@{ant-prefix}-form';
|
||||
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
|
||||
|
||||
.@{form-prefix-cls} {
|
||||
&-rtl {
|
||||
direction: rtl;
|
||||
}
|
||||
}
|
||||
|
||||
// ================================================================
|
||||
// = Item =
|
||||
// ================================================================
|
||||
.@{form-item-prefix-cls} {
|
||||
// ==============================================================
|
||||
// = Label =
|
||||
// ==============================================================
|
||||
&-label {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
> label {
|
||||
&.@{form-item-prefix-cls}-required::before {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
&::after {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
margin: 0 @form-item-label-colon-margin-left 0 @form-item-label-colon-margin-right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ==============================================================
|
||||
// = Input =
|
||||
// ==============================================================
|
||||
&-control {
|
||||
.@{ant-prefix}-col-rtl &:first-child {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// status
|
||||
&-has-feedback {
|
||||
.@{ant-prefix}-input {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding-right: @input-padding-horizontal-base;
|
||||
padding-left: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-input-affix-wrapper {
|
||||
.@{ant-prefix}-input-suffix {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding-right: @input-padding-horizontal-base;
|
||||
padding-left: 18px;
|
||||
}
|
||||
}
|
||||
.@{ant-prefix}-input {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) {
|
||||
.@{ant-prefix}-input-suffix {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-input-number {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding-left: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
> .@{ant-prefix}-select .@{ant-prefix}-select-arrow,
|
||||
> .@{ant-prefix}-select .@{ant-prefix}-select-selection__clear,
|
||||
:not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-arrow,
|
||||
:not(.@{ant-prefix}-input-group-addon)
|
||||
> .@{ant-prefix}-select
|
||||
.@{ant-prefix}-select-selection__clear {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
> .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value,
|
||||
:not(.@{ant-prefix}-input-group-addon)
|
||||
> .@{ant-prefix}-select
|
||||
.@{ant-prefix}-select-selection-selected-value {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding-right: 0;
|
||||
padding-left: 42px;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-cascader-picker {
|
||||
&-arrow {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
margin-right: 0;
|
||||
margin-left: 17px;
|
||||
}
|
||||
}
|
||||
&-clear {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-picker {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding-right: @input-padding-horizontal-base;
|
||||
padding-left: @input-padding-horizontal-base + @font-size-base * 1.3;
|
||||
}
|
||||
|
||||
&-large {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding-right: @input-padding-horizontal-lg;
|
||||
padding-left: @input-padding-horizontal-lg + @font-size-base * 1.3;
|
||||
}
|
||||
}
|
||||
|
||||
&-small {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
padding-right: @input-padding-horizontal-sm;
|
||||
padding-left: @input-padding-horizontal-sm + @font-size-base * 1.3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.@{form-item-prefix-cls} {
|
||||
&-has-success,
|
||||
&-has-warning,
|
||||
&-has-error,
|
||||
&-is-validating {
|
||||
// ====================== Icon ======================
|
||||
.@{form-item-prefix-cls}-children-icon {
|
||||
.@{form-prefix-cls}-rtl & {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// inline
|
||||
.@{form-prefix-cls}-inline {
|
||||
.@{form-prefix-cls}-item {
|
||||
.@{form-prefix-cls}-rtl& {
|
||||
margin-right: 0;
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// vertical
|
||||
.make-vertical-layout-label() {
|
||||
.@{form-prefix-cls}-rtl& {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
253
web/node_modules/antd/es/form/style/status.less
generated
vendored
Normal file
253
web/node_modules/antd/es/form/style/status.less
generated
vendored
Normal file
@@ -0,0 +1,253 @@
|
||||
@import './index.less';
|
||||
|
||||
.@{form-item-prefix-cls} {
|
||||
// ================================================================
|
||||
// = Status =
|
||||
// ================================================================
|
||||
/* Some non-status related component style is in `components.less` */
|
||||
|
||||
&-has-feedback {
|
||||
// ========================= Input =========================
|
||||
.@{ant-prefix}-input {
|
||||
padding-right: 24px;
|
||||
}
|
||||
// https://github.com/ant-design/ant-design/issues/19884
|
||||
.@{ant-prefix}-input-affix-wrapper {
|
||||
.@{ant-prefix}-input-suffix {
|
||||
padding-right: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
// Fix issue: https://github.com/ant-design/ant-design/issues/7854
|
||||
.@{ant-prefix}-input-search:not(.@{ant-prefix}-input-search-enter-button) {
|
||||
.@{ant-prefix}-input-suffix {
|
||||
right: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
// ======================== Switch =========================
|
||||
.@{ant-prefix}-switch {
|
||||
margin: 2px 0 4px;
|
||||
}
|
||||
|
||||
// ======================== Select =========================
|
||||
// Fix overlapping between feedback icon and <Select>'s arrow.
|
||||
// https://github.com/ant-design/ant-design/issues/4431
|
||||
> .@{ant-prefix}-select .@{ant-prefix}-select-arrow,
|
||||
> .@{ant-prefix}-select .@{ant-prefix}-select-selection__clear,
|
||||
:not(.@{ant-prefix}-input-group-addon) > .@{ant-prefix}-select .@{ant-prefix}-select-arrow,
|
||||
:not(.@{ant-prefix}-input-group-addon)
|
||||
> .@{ant-prefix}-select
|
||||
.@{ant-prefix}-select-selection__clear {
|
||||
right: 28px;
|
||||
}
|
||||
> .@{ant-prefix}-select .@{ant-prefix}-select-selection-selected-value,
|
||||
:not(.@{ant-prefix}-input-group-addon)
|
||||
> .@{ant-prefix}-select
|
||||
.@{ant-prefix}-select-selection-selected-value {
|
||||
padding-right: 42px;
|
||||
}
|
||||
|
||||
// ======================= Cascader ========================
|
||||
.@{ant-prefix}-cascader-picker {
|
||||
&-arrow {
|
||||
margin-right: 17px;
|
||||
}
|
||||
&-clear {
|
||||
right: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
// ======================== Picker =========================
|
||||
// Fix issue: https://github.com/ant-design/ant-design/issues/4783
|
||||
.@{ant-prefix}-picker {
|
||||
padding-right: @input-padding-horizontal-base + @font-size-base * 1.3;
|
||||
|
||||
&-large {
|
||||
padding-right: @input-padding-horizontal-lg + @font-size-base * 1.3;
|
||||
}
|
||||
|
||||
&-small {
|
||||
padding-right: @input-padding-horizontal-sm + @font-size-base * 1.3;
|
||||
}
|
||||
}
|
||||
|
||||
// ===================== Status Group ======================
|
||||
&.@{form-item-prefix-cls} {
|
||||
&-has-success,
|
||||
&-has-warning,
|
||||
&-has-error,
|
||||
&-is-validating {
|
||||
// ====================== Icon ======================
|
||||
.@{form-item-prefix-cls}-children-icon {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
width: @input-height-base;
|
||||
height: 20px;
|
||||
margin-top: -10px;
|
||||
font-size: @font-size-base;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
visibility: visible;
|
||||
animation: zoomIn 0.3s @ease-out-back;
|
||||
pointer-events: none;
|
||||
|
||||
& svg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ======================== Success ========================
|
||||
&-has-success {
|
||||
&.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon {
|
||||
color: @success-color;
|
||||
animation-name: diffZoomIn1 !important;
|
||||
}
|
||||
}
|
||||
|
||||
// ======================== Warning ========================
|
||||
&-has-warning {
|
||||
.form-control-validation(@warning-color; @warning-color; @form-warning-input-bg);
|
||||
|
||||
&.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon {
|
||||
color: @warning-color;
|
||||
animation-name: diffZoomIn3 !important;
|
||||
}
|
||||
|
||||
//select
|
||||
.@{ant-prefix}-select:not(.@{ant-prefix}-select-borderless) {
|
||||
.@{ant-prefix}-select-selector {
|
||||
border-color: @warning-color !important;
|
||||
}
|
||||
&.@{ant-prefix}-select-open .@{ant-prefix}-select-selector,
|
||||
&.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector {
|
||||
.active(@warning-color);
|
||||
}
|
||||
}
|
||||
|
||||
//input-number, timepicker
|
||||
.@{ant-prefix}-input-number,
|
||||
.@{ant-prefix}-picker {
|
||||
border-color: @warning-color;
|
||||
&-focused,
|
||||
&:focus {
|
||||
.active(@warning-color);
|
||||
}
|
||||
&:not([disabled]):hover {
|
||||
border-color: @warning-color;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-cascader-picker:focus .@{ant-prefix}-cascader-input {
|
||||
.active(@warning-color);
|
||||
}
|
||||
}
|
||||
|
||||
// ========================= Error =========================
|
||||
&-has-error {
|
||||
.form-control-validation(@error-color; @error-color; @form-error-input-bg);
|
||||
|
||||
&.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon {
|
||||
color: @error-color;
|
||||
animation-name: diffZoomIn2 !important;
|
||||
}
|
||||
|
||||
//select
|
||||
.@{ant-prefix}-select:not(.@{ant-prefix}-select-borderless) {
|
||||
.@{ant-prefix}-select-selector {
|
||||
border-color: @error-color !important;
|
||||
}
|
||||
&.@{ant-prefix}-select-open .@{ant-prefix}-select-selector,
|
||||
&.@{ant-prefix}-select-focused .@{ant-prefix}-select-selector {
|
||||
.active(@error-color);
|
||||
}
|
||||
}
|
||||
|
||||
// fixes https://github.com/ant-design/ant-design/issues/20482
|
||||
.@{ant-prefix}-input-group-addon .@{ant-prefix}-select {
|
||||
&.@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input)
|
||||
.@{ant-prefix}-select-selector {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-select.@{ant-prefix}-select-auto-complete {
|
||||
.@{ant-prefix}-input:focus {
|
||||
border-color: @error-color;
|
||||
}
|
||||
}
|
||||
|
||||
//input-number, timepicker
|
||||
.@{ant-prefix}-input-number,
|
||||
.@{ant-prefix}-picker {
|
||||
border-color: @error-color;
|
||||
&-focused,
|
||||
&:focus {
|
||||
.active(@error-color);
|
||||
}
|
||||
&:not([disabled]):hover {
|
||||
border-color: @error-color;
|
||||
}
|
||||
}
|
||||
.@{ant-prefix}-mention-wrapper {
|
||||
.@{ant-prefix}-mention-editor {
|
||||
&,
|
||||
&:not([disabled]):hover {
|
||||
border-color: @error-color;
|
||||
}
|
||||
}
|
||||
&.@{ant-prefix}-mention-active:not([disabled]) .@{ant-prefix}-mention-editor,
|
||||
.@{ant-prefix}-mention-editor:not([disabled]):focus {
|
||||
.active(@error-color);
|
||||
}
|
||||
}
|
||||
|
||||
.@{ant-prefix}-cascader-picker:focus .@{ant-prefix}-cascader-input {
|
||||
.active(@error-color);
|
||||
}
|
||||
|
||||
// transfer
|
||||
.@{ant-prefix}-transfer {
|
||||
&-list {
|
||||
border-color: @error-color;
|
||||
|
||||
&-search:not([disabled]) {
|
||||
border-color: @input-border-color;
|
||||
|
||||
&:hover {
|
||||
.hover();
|
||||
}
|
||||
|
||||
&:focus {
|
||||
.active();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Patch to keep error explain color
|
||||
&-has-error-leave {
|
||||
.@{form-item-prefix-cls}-explain {
|
||||
color: @error-color;
|
||||
}
|
||||
}
|
||||
|
||||
// ====================== Validating =======================
|
||||
&-is-validating {
|
||||
&.@{form-item-prefix-cls}-has-feedback .@{form-item-prefix-cls}-children-icon {
|
||||
display: inline-block;
|
||||
color: @primary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
82
web/node_modules/antd/es/form/style/vertical.less
generated
vendored
Normal file
82
web/node_modules/antd/es/form/style/vertical.less
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
@import './index';
|
||||
|
||||
// ================== Label ==================
|
||||
.make-vertical-layout-label() {
|
||||
margin: @form-vertical-label-margin;
|
||||
padding: @form-vertical-label-padding;
|
||||
line-height: @line-height-base;
|
||||
white-space: initial;
|
||||
text-align: left;
|
||||
|
||||
> label {
|
||||
margin: 0;
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.make-vertical-layout() {
|
||||
.@{form-prefix-cls}-item .@{form-prefix-cls}-item-label {
|
||||
.make-vertical-layout-label();
|
||||
}
|
||||
.@{form-prefix-cls} {
|
||||
.@{form-prefix-cls}-item {
|
||||
flex-wrap: wrap;
|
||||
.@{form-prefix-cls}-item-label,
|
||||
.@{form-prefix-cls}-item-control {
|
||||
flex: 0 0 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{form-prefix-cls}-vertical {
|
||||
.@{form-item-prefix-cls} {
|
||||
flex-direction: column;
|
||||
|
||||
&-label > label {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.@{form-prefix-cls}-vertical .@{form-item-prefix-cls}-label,
|
||||
// when labelCol is 24, it is a vertical form
|
||||
.@{ant-prefix}-col-24.@{form-item-prefix-cls}-label,
|
||||
.@{ant-prefix}-col-xl-24.@{form-item-prefix-cls}-label {
|
||||
.make-vertical-layout-label();
|
||||
}
|
||||
|
||||
@media (max-width: @screen-xs-max) {
|
||||
.make-vertical-layout();
|
||||
.@{ant-prefix}-col-xs-24.@{form-item-prefix-cls}-label {
|
||||
.make-vertical-layout-label();
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-sm-max) {
|
||||
.@{ant-prefix}-col-sm-24.@{form-item-prefix-cls}-label {
|
||||
.make-vertical-layout-label();
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-md-max) {
|
||||
.@{ant-prefix}-col-md-24.@{form-item-prefix-cls}-label {
|
||||
.make-vertical-layout-label();
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-lg-max) {
|
||||
.@{ant-prefix}-col-lg-24.@{form-item-prefix-cls}-label {
|
||||
.make-vertical-layout-label();
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: @screen-xl-max) {
|
||||
.@{ant-prefix}-col-xl-24.@{form-item-prefix-cls}-label {
|
||||
.make-vertical-layout-label();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user