ygd
Version:
An enterprise-class UI design language and React-based implementation
821 lines (820 loc) • 19.6 kB
CSS
/* 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 */
.yg-form {
box-sizing: content-box;
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
}
.yg-form legend {
display: block;
width: 100%;
margin-bottom: 20px;
padding: 0;
color: rgba(0, 0, 0, 0.45);
font-size: 14px;
line-height: inherit;
border: 0;
border-bottom: 1px solid #ccc;
}
.yg-form label {
font-size: 12px;
}
.yg-form input[type='search'] {
box-sizing: content-box;
}
.yg-form input[type='radio'],
.yg-form input[type='checkbox'] {
line-height: normal;
}
.yg-form input[type='file'] {
display: block;
}
.yg-form input[type='range'] {
display: block;
width: 100%;
}
.yg-form select[multiple],
.yg-form select[size] {
height: auto;
}
.yg-form input[type='file']:focus,
.yg-form input[type='radio']:focus,
.yg-form input[type='checkbox']:focus {
outline: thin dotted;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
.yg-form output {
display: block;
padding-top: 15px;
color: #333;
font-size: 12px;
line-height: 28px;
}
.yg-form-item-required::before {
display: inline-block;
margin-right: 4px;
color: #e2062c;
font-size: 12px;
font-family: SimSun, sans-serif;
line-height: 1;
content: '*';
}
.yg-form-hide-required-mark .yg-form-item-required::before {
display: none;
}
input[type='radio'][disabled],
input[type='checkbox'][disabled],
input[type='radio'].disabled,
input[type='checkbox'].disabled {
cursor: not-allowed;
}
.yg-radio-inline.disabled,
.yg-radio-vertical.disabled,
.yg-checkbox-inline.disabled,
.yg-checkbox-vertical.disabled {
cursor: not-allowed;
}
.yg-radio.disabled label,
.yg-checkbox.disabled label {
cursor: not-allowed;
}
.yg-form-item {
box-sizing: content-box;
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
margin-bottom: 24px;
vertical-align: top;
}
.yg-form-item label {
position: relative;
}
.yg-form-item label > .anticon {
font-size: 12px;
vertical-align: top;
}
.yg-form-item-control {
position: relative;
line-height: 28px;
zoom: 1;
}
.yg-form-item-control::before,
.yg-form-item-control::after {
content: '';
display: table;
}
.yg-form-item-control::after {
clear: both;
}
.yg-form-item-children {
position: relative;
}
.yg-form-item-with-help {
margin-bottom: 2px;
}
.yg-form-item-label {
display: inline-block;
overflow: hidden;
line-height: 27.9999px;
white-space: nowrap;
text-align: right;
vertical-align: middle;
}
.yg-form-item-label-left {
text-align: left;
}
.yg-form-item-label > label {
color: #333333;
margin-right: 5px;
}
.yg-form-item .yg-switch {
margin: 2px 0 4px;
}
.yg-form-item-no-colon .yg-form-item-label label::after {
content: ' ';
}
.yg-form-explain,
.yg-form-extra {
clear: both;
min-height: 21px;
margin-top: 2px;
color: rgba(0, 0, 0, 0.45);
font-size: 12px;
line-height: 28px;
transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.yg-form-explain {
margin-bottom: -1px;
display: inline-block;
margin-left: 5px;
}
.yg-form-extra {
padding-top: 4px;
}
.yg-form-text {
display: inline-block;
padding-right: 8px;
}
.yg-form-split {
display: block;
text-align: center;
}
form .has-feedback .yg-input {
padding-right: 24px;
width: 164px;
}
form .has-feedback > .yg-select .yg-select-arrow,
form .has-feedback > .yg-select .yg-select-selection__clear,
form .has-feedback :not(.yg-input-group-addon) > .yg-select .yg-select-arrow,
form .has-feedback :not(.yg-input-group-addon) > .yg-select .yg-select-selection__clear {
right: 28px;
}
form .has-feedback > .yg-select .yg-select-selection-selected-value,
form .has-feedback :not(.yg-input-group-addon) > .yg-select .yg-select-selection-selected-value {
padding-right: 42px;
width: 136px;
}
form .has-feedback .yg-cascader-picker-arrow {
margin-right: 17px;
}
form .has-feedback .yg-cascader-picker-clear {
right: 28px;
}
form .has-feedback .yg-input-search:not(.yg-input-search-enter-button) .yg-input-suffix {
right: 28px;
}
form .has-feedback .yg-calendar-picker-icon,
form .has-feedback .yg-time-picker-icon,
form .has-feedback .yg-calendar-picker-clear,
form .has-feedback .yg-time-picker-clear {
right: 28px;
}
form textarea.yg-input {
height: auto;
margin-bottom: 4px;
}
form .yg-upload {
background: transparent;
}
form input[type='radio'],
form input[type='checkbox'] {
width: 14px;
height: 14px;
}
form .yg-radio-inline,
form .yg-checkbox-inline {
display: inline-block;
margin-left: 8px;
font-weight: normal;
vertical-align: middle;
cursor: pointer;
}
form .yg-radio-inline:first-child,
form .yg-checkbox-inline:first-child {
margin-left: 0;
}
form .yg-checkbox-vertical,
form .yg-radio-vertical {
display: block;
}
form .yg-checkbox-vertical + .yg-checkbox-vertical,
form .yg-radio-vertical + .yg-radio-vertical {
margin-left: 0;
}
form .yg-input-number + .yg-form-text {
margin-left: 8px;
}
form .yg-input-number-handler-wrap {
z-index: 2;
}
form .yg-select,
form .yg-cascader-picker,
form .yg-input-number {
width: 200px;
}
form .yg-select-selection-selected-value {
width: 178px;
}
form .yg-cascader-picker-arrow {
right: 10px;
}
form .yg-input-group .yg-select,
form .yg-input-group .yg-cascader-picker {
width: auto;
}
form :not(.yg-input-group-wrapper) > .yg-input-group,
form .yg-input-group-wrapper {
position: relative;
top: -1px;
display: inline-block;
vertical-align: middle;
}
.yg-input-group-wrap .yg-select-selection {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.yg-input-group-wrap .yg-select-selection:hover {
border-color: #ccc;
}
.yg-input-group-wrap .yg-select-selection--single {
height: 38px;
margin-left: -1px;
background-color: rgba(0, 0, 0, 0.07);
}
.yg-input-group-wrap .yg-select-selection--single .yg-select-selection__rendered {
padding-right: 25px;
padding-left: 8px;
line-height: 30px;
}
.yg-input-group-wrap .yg-select-open .yg-select-selection {
border-color: #ccc;
box-shadow: none;
}
.yg-form-vertical .yg-form-item-label,
.yg-col-24.yg-form-item-label,
.yg-col-xl-24.yg-form-item-label {
display: block;
margin: 0;
padding: 0 0 8px;
line-height: 28px;
white-space: initial;
text-align: left;
}
.yg-form-vertical .yg-form-item-label label::after,
.yg-col-24.yg-form-item-label label::after,
.yg-col-xl-24.yg-form-item-label label::after {
display: none;
}
.yg-form-vertical .yg-form-item {
padding-bottom: 8px;
}
.yg-form-vertical .yg-form-item-control {
line-height: 28px;
}
.yg-form-vertical .yg-form-explain {
margin-top: 2px;
margin-bottom: -5px;
}
.yg-form-vertical .yg-form-extra {
margin-top: 2px;
margin-bottom: -4px;
}
@media (max-width: 575px) {
.yg-form-item-label,
.yg-form-item-control-wrapper {
display: block;
width: 100%;
}
.yg-form-item-label {
display: block;
margin: 0;
padding: 0 0 8px;
line-height: 28px;
white-space: initial;
text-align: left;
}
.yg-form-item-label label::after {
display: none;
}
.yg-col-xs-24.yg-form-item-label {
display: block;
margin: 0;
padding: 0 0 8px;
line-height: 28px;
white-space: initial;
text-align: left;
}
.yg-col-xs-24.yg-form-item-label label::after {
display: none;
}
}
@media (max-width: 767px) {
.yg-col-sm-24.yg-form-item-label {
display: block;
margin: 0;
padding: 0 0 8px;
line-height: 28px;
white-space: initial;
text-align: left;
}
.yg-col-sm-24.yg-form-item-label label::after {
display: none;
}
}
@media (max-width: 991px) {
.yg-col-md-24.yg-form-item-label {
display: block;
margin: 0;
padding: 0 0 8px;
line-height: 28px;
white-space: initial;
text-align: left;
}
.yg-col-md-24.yg-form-item-label label::after {
display: none;
}
}
@media (max-width: 1199px) {
.yg-col-lg-24.yg-form-item-label {
display: block;
margin: 0;
padding: 0 0 8px;
line-height: 28px;
white-space: initial;
text-align: left;
}
.yg-col-lg-24.yg-form-item-label label::after {
display: none;
}
}
@media (max-width: 1599px) {
.yg-col-xl-24.yg-form-item-label {
display: block;
margin: 0;
padding: 0 0 8px;
line-height: 28px;
white-space: initial;
text-align: left;
}
.yg-col-xl-24.yg-form-item-label label::after {
display: none;
}
}
.yg-form-horizontal .yg-form-item > .yg-form-item-control-wrapper,
.yg-form-horizontal .yg-form-item > .yg-form-item-label {
display: inline-block;
vertical-align: top;
}
.yg-form-inline .yg-form-item {
display: inline-block;
margin-right: 16px;
margin-bottom: 0;
}
.yg-form-inline .yg-form-item-with-help {
margin-bottom: 24px;
}
.yg-form-inline .yg-form-item > .yg-form-item-control-wrapper,
.yg-form-inline .yg-form-item > .yg-form-item-label {
display: inline-block;
vertical-align: top;
}
.yg-form-inline .yg-form-text {
display: inline-block;
}
.yg-form-inline .has-feedback {
display: inline-block;
}
.has-success.has-feedback .yg-form-item-children-icon,
.has-warning.has-feedback .yg-form-item-children-icon,
.has-error.has-feedback .yg-form-item-children-icon,
.is-validating.has-feedback .yg-form-item-children-icon {
position: absolute;
top: 50%;
right: 0;
z-index: 1;
width: 28px;
height: 20px;
margin-top: -10px;
font-size: 12px;
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;
}
.has-success.has-feedback .yg-form-item-children-icon svg,
.has-warning.has-feedback .yg-form-item-children-icon svg,
.has-error.has-feedback .yg-form-item-children-icon svg,
.is-validating.has-feedback .yg-form-item-children-icon svg {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
.has-success.has-feedback .yg-form-item-children-icon {
color: #228b22;
-webkit-animation-name: diffZoomIn1;
animation-name: diffZoomIn1;
}
.has-warning .yg-form-explain,
.has-warning .yg-form-split {
color: #ffa812;
}
.has-warning .yg-input,
.has-warning .yg-input:hover {
border-color: #ffa812;
}
.has-warning .yg-input:focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 168, 18, 0.2);
}
.has-warning .yg-input:not([disabled]):hover {
border-color: #ffa812;
}
.has-warning .yg-calendar-picker-open .yg-calendar-picker-input {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 168, 18, 0.2);
}
.has-warning .yg-input-affix-wrapper .yg-input,
.has-warning .yg-input-affix-wrapper .yg-input:hover {
border-color: #ffa812;
}
.has-warning .yg-input-affix-wrapper .yg-input:focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 168, 18, 0.2);
}
.has-warning .yg-input-affix-wrapper:hover .yg-input:not(.yg-input-disabled) {
border-color: #ffa812;
}
.has-warning .yg-input-prefix {
color: #ffa812;
}
.has-warning .yg-input-group-addon {
color: #ffa812;
background-color: #fff;
border-color: #ffa812;
}
.has-warning .has-feedback {
color: #ffa812;
}
.has-warning.has-feedback .yg-form-item-children-icon {
color: #ffa812;
-webkit-animation-name: diffZoomIn3;
animation-name: diffZoomIn3;
}
.has-warning .yg-select-selection {
border-color: #ffa812;
}
.has-warning .yg-select-selection:hover {
border-color: #ffa812;
}
.has-warning .yg-select-open .yg-select-selection,
.has-warning .yg-select-focused .yg-select-selection {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 168, 18, 0.2);
}
.has-warning .yg-calendar-picker-icon::after,
.has-warning .yg-time-picker-icon::after,
.has-warning .yg-picker-icon::after,
.has-warning .yg-select-arrow,
.has-warning .yg-cascader-picker-arrow {
color: #ffa812;
}
.has-warning .yg-input-number,
.has-warning .yg-time-picker-input {
border-color: #ffa812;
}
.has-warning .yg-input-number-focused,
.has-warning .yg-time-picker-input-focused,
.has-warning .yg-input-number:focus,
.has-warning .yg-time-picker-input:focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 168, 18, 0.2);
}
.has-warning .yg-input-number:not([disabled]):hover,
.has-warning .yg-time-picker-input:not([disabled]):hover {
border-color: #ffa812;
}
.has-warning .yg-cascader-picker:focus .yg-cascader-input {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 168, 18, 0.2);
}
.has-error .yg-form-explain,
.has-error .yg-form-split {
color: #e2062c;
}
.has-error .yg-input,
.has-error .yg-input:hover {
border-color: #e2062c;
}
.has-error .yg-input:focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(226, 6, 44, 0.2);
}
.has-error .yg-input:not([disabled]):hover {
border-color: #e2062c;
}
.has-error .yg-calendar-picker-open .yg-calendar-picker-input {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(226, 6, 44, 0.2);
}
.has-error .yg-input-affix-wrapper .yg-input,
.has-error .yg-input-affix-wrapper .yg-input:hover {
border-color: #e2062c;
}
.has-error .yg-input-affix-wrapper .yg-input:focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(226, 6, 44, 0.2);
}
.has-error .yg-input-affix-wrapper:hover .yg-input:not(.yg-input-disabled) {
border-color: #e2062c;
}
.has-error .yg-input-prefix {
color: #e2062c;
}
.has-error .yg-input-group-addon {
color: #e2062c;
background-color: #fff;
border-color: #e2062c;
}
.has-error .has-feedback {
color: #e2062c;
}
.has-error.has-feedback .yg-form-item-children-icon {
color: #e2062c;
-webkit-animation-name: diffZoomIn2;
animation-name: diffZoomIn2;
}
.has-error .yg-select-selection {
border-color: #e2062c;
}
.has-error .yg-select-selection:hover {
border-color: #e2062c;
}
.has-error .yg-select-open .yg-select-selection,
.has-error .yg-select-focused .yg-select-selection {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(226, 6, 44, 0.2);
}
.has-error .yg-select.yg-select-auto-complete .yg-input:focus {
border-color: #e2062c;
}
.has-error .yg-input-group-addon .yg-select-selection {
border-color: transparent;
box-shadow: none;
}
.has-error .yg-calendar-picker-icon::after,
.has-error .yg-time-picker-icon::after,
.has-error .yg-picker-icon::after,
.has-error .yg-select-arrow,
.has-error .yg-cascader-picker-arrow {
color: #e2062c;
}
.has-error .yg-input-number,
.has-error .yg-time-picker-input {
border-color: #e2062c;
}
.has-error .yg-input-number-focused,
.has-error .yg-time-picker-input-focused,
.has-error .yg-input-number:focus,
.has-error .yg-time-picker-input:focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(226, 6, 44, 0.2);
}
.has-error .yg-input-number:not([disabled]):hover,
.has-error .yg-time-picker-input:not([disabled]):hover {
border-color: #e2062c;
}
.has-error .yg-mention-wrapper .yg-mention-editor,
.has-error .yg-mention-wrapper .yg-mention-editor:not([disabled]):hover {
border-color: #e2062c;
}
.has-error .yg-mention-wrapper.yg-mention-active:not([disabled]) .yg-mention-editor,
.has-error .yg-mention-wrapper .yg-mention-editor:not([disabled]):focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(226, 6, 44, 0.2);
}
.has-error .yg-cascader-picker:focus .yg-cascader-input {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(226, 6, 44, 0.2);
}
.has-error .yg-transfer-list {
border-color: #e2062c;
}
.has-error .yg-transfer-list-search:not([disabled]) {
border-color: #ccc;
}
.has-error .yg-transfer-list-search:not([disabled]):hover {
border-color: #bababa;
border-right-width: 1px;
}
.has-error .yg-transfer-list-search:not([disabled]):focus {
border-color: #bababa;
border-right-width: 1px;
outline: 0;
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.2);
}
.is-validating.has-feedback .yg-form-item-children-icon {
display: inline-block;
color: #00a1ff;
}
.yg-advanced-search-form .yg-search-item-one.moreitem {
display: none;
}
.yg-advanced-search-form .yg-form-item {
margin-bottom: 24px;
}
.yg-advanced-search-form .yg-form-item-label {
text-align: right;
font-size: 12px;
}
.yg-advanced-search-form .yg-form-item-label label {
width: 72px;
display: inline-block;
}
.yg-advanced-search-form .yg-form-item-with-help {
margin-bottom: 2px;
}
.yg-advanced-search-form .yg-search-item-one.row {
flex: 0 0 100%;
text-align: left;
width: 100%;
}
.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% {
transform: translateY(-5px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@keyframes antShowHelpIn {
0% {
transform: translateY(-5px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
@-webkit-keyframes antShowHelpOut {
to {
transform: translateY(-5px);
opacity: 0;
}
}
@keyframes antShowHelpOut {
to {
transform: translateY(-5px);
opacity: 0;
}
}
@-webkit-keyframes diffZoomIn1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes diffZoomIn1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@-webkit-keyframes diffZoomIn2 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes diffZoomIn2 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@-webkit-keyframes diffZoomIn3 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes diffZoomIn3 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}