vue-antd-ui
Version:
An enterprise-class UI design language and Vue-based implementation
759 lines (758 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 declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors */
.ant-form {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
color: rgba(0, 0, 0, 0.65);
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
}
.ant-form legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: 20px;
font-size: 16px;
line-height: inherit;
color: rgba(0, 0, 0, 0.45);
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;
font-size: 14px;
line-height: 1.5;
color: rgba(0, 0, 0, 0.65);
}
.ant-form-item-required:before {
display: inline-block;
margin-right: 4px;
content: "*";
font-family: SimSun;
line-height: 1;
font-size: 14px;
color: #f5222d;
}
.ant-form-hide-required-mark .ant-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;
}
.ant-radio-inline.disabled,
.ant-radio-vertical.disabled,
.ant-checkbox-inline.disabled,
.ant-checkbox-vertical.disabled {
cursor: not-allowed;
}
.ant-radio.disabled label,
.ant-checkbox.disabled label {
cursor: not-allowed;
}
.ant-form-item {
font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
color: rgba(0, 0, 0, 0.65);
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
margin-bottom: 24px;
vertical-align: top;
}
.ant-form-item label {
position: relative;
}
.ant-form-item label > .anticon {
vertical-align: top;
font-size: 14px;
}
.ant-form-item-control > .ant-form-item:last-child,
.ant-form-item [class^="ant-col-"] > .ant-form-item:only-child {
margin-bottom: -24px;
}
.ant-form-item-control {
line-height: 39.9999px;
position: relative;
zoom: 1;
}
.ant-form-item-control:before,
.ant-form-item-control:after {
content: " ";
display: table;
}
.ant-form-item-control:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-form-item-children {
position: relative;
}
.ant-form-item-with-help {
margin-bottom: 5px;
}
.ant-form-item-label {
text-align: right;
vertical-align: middle;
line-height: 39.9999px;
display: inline-block;
overflow: hidden;
white-space: nowrap;
}
.ant-form-item-label label {
color: rgba(0, 0, 0, 0.85);
}
.ant-form-item-label label:after {
content: ":";
margin: 0 8px 0 2px;
position: relative;
top: -0.5px;
}
.ant-form-item .ant-switch {
margin: 2px 0 4px;
}
.ant-form-item-no-colon .ant-form-item-label label:after {
content: " ";
}
.ant-form-explain,
.ant-form-extra {
color: rgba(0, 0, 0, 0.45);
line-height: 1.5;
-webkit-transition: color 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
transition: color 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
margin-top: -2px;
}
.ant-form-extra {
padding-top: 4px;
}
.ant-form-text {
display: inline-block;
padding-right: 8px;
}
.ant-form-split {
display: block;
text-align: center;
}
form .has-feedback .ant-input {
padding-right: 24px;
}
form .has-feedback > .ant-select .ant-select-arrow,
form .has-feedback > .ant-select .ant-select-selection__clear,
form .has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-arrow,
form .has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection__clear {
right: 28px;
}
form .has-feedback > .ant-select .ant-select-selection-selected-value,
form .has-feedback :not(.ant-input-group-addon) > .ant-select .ant-select-selection-selected-value {
padding-right: 42px;
}
form .has-feedback .ant-cascader-picker-arrow {
margin-right: 17px;
}
form .has-feedback .ant-cascader-picker-clear {
right: 28px;
}
form .has-feedback .ant-input-search:not(.ant-input-search-enter-button) .ant-input-suffix {
right: 28px;
}
form .has-feedback .ant-calendar-picker-icon,
form .has-feedback .ant-time-picker-icon,
form .has-feedback .ant-calendar-picker-clear,
form .has-feedback .ant-time-picker-clear {
right: 28px;
}
form textarea.ant-input {
height: auto;
}
form .ant-upload {
background: transparent;
}
form input[type="radio"],
form input[type="checkbox"] {
width: 14px;
height: 14px;
}
form .ant-radio-inline,
form .ant-checkbox-inline {
display: inline-block;
vertical-align: middle;
font-weight: normal;
cursor: pointer;
margin-left: 8px;
}
form .ant-radio-inline:first-child,
form .ant-checkbox-inline:first-child {
margin-left: 0;
}
form .ant-checkbox-vertical,
form .ant-radio-vertical {
display: block;
}
form .ant-checkbox-vertical + .ant-checkbox-vertical,
form .ant-radio-vertical + .ant-radio-vertical {
margin-left: 0;
}
form .ant-input-number + .ant-form-text {
margin-left: 8px;
}
form .ant-select,
form .ant-cascader-picker {
width: 100%;
}
form .ant-input-group .ant-select,
form .ant-input-group .ant-cascader-picker {
width: auto;
}
form .ant-input-group-wrapper {
vertical-align: middle;
position: relative;
top: -1px;
}
.ant-input-group-wrap .ant-select-selection {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.ant-input-group-wrap .ant-select-selection:hover {
border-color: #d9d9d9;
}
.ant-input-group-wrap .ant-select-selection--single {
margin-left: -1px;
height: 40px;
background-color: #eee;
}
.ant-input-group-wrap .ant-select-selection--single .ant-select-selection__rendered {
padding-left: 8px;
padding-right: 25px;
line-height: 30px;
}
.ant-input-group-wrap .ant-select-open .ant-select-selection {
border-color: #d9d9d9;
-webkit-box-shadow: none;
box-shadow: none;
}
.ant-form-vertical .ant-form-item-label,
.ant-col-24.ant-form-item-label,
.ant-col-xl-24.ant-form-item-label {
padding: 0 0 8px;
margin: 0;
display: block;
text-align: left;
line-height: 1.5;
}
.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-vertical .ant-form-item {
padding-bottom: 8px;
}
.ant-form-vertical .ant-form-item-control {
line-height: 1.5;
}
.ant-form-vertical .ant-form-explain,
.ant-form-vertical .ant-form-extra {
margin-top: 2px;
margin-bottom: -4px;
}
@media (max-width: 575px) {
.ant-form-item-label,
.ant-form-item-control-wrapper {
display: block;
width: 100%;
}
.ant-form-item-label {
padding: 0 0 8px;
margin: 0;
display: block;
text-align: left;
line-height: 1.5;
}
.ant-form-item-label label:after {
display: none;
}
.ant-col-xs-24.ant-form-item-label {
padding: 0 0 8px;
margin: 0;
display: block;
text-align: left;
line-height: 1.5;
}
.ant-col-xs-24.ant-form-item-label label:after {
display: none;
}
}
@media (max-width: 767px) {
.ant-col-sm-24.ant-form-item-label {
padding: 0 0 8px;
margin: 0;
display: block;
text-align: left;
line-height: 1.5;
}
.ant-col-sm-24.ant-form-item-label label:after {
display: none;
}
}
@media (max-width: 991px) {
.ant-col-md-24.ant-form-item-label {
padding: 0 0 8px;
margin: 0;
display: block;
text-align: left;
line-height: 1.5;
}
.ant-col-md-24.ant-form-item-label label:after {
display: none;
}
}
@media (max-width: 1199px) {
.ant-col-lg-24.ant-form-item-label {
padding: 0 0 8px;
margin: 0;
display: block;
text-align: left;
line-height: 1.5;
}
.ant-col-lg-24.ant-form-item-label label:after {
display: none;
}
}
@media (max-width: 1599px) {
.ant-col-xl-24.ant-form-item-label {
padding: 0 0 8px;
margin: 0;
display: block;
text-align: left;
line-height: 1.5;
}
.ant-col-xl-24.ant-form-item-label label:after {
display: none;
}
}
.ant-form-inline .ant-form-item {
display: inline-block;
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-control-wrapper,
.ant-form-inline .ant-form-item > .ant-form-item-label {
display: inline-block;
vertical-align: middle;
}
.ant-form-inline .ant-form-text {
display: inline-block;
}
.ant-form-inline .has-feedback {
display: inline-block;
}
.ant-form-inline .ant-form-explain {
position: absolute;
}
.has-success.has-feedback .ant-form-item-children:after,
.has-warning.has-feedback .ant-form-item-children:after,
.has-error.has-feedback .ant-form-item-children:after,
.is-validating.has-feedback .ant-form-item-children:after {
position: absolute;
top: 50%;
right: 0;
visibility: visible;
pointer-events: none;
width: 32px;
height: 20px;
line-height: 20px;
margin-top: -10px;
text-align: center;
font-size: 14px;
-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);
font-family: 'anticon';
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
content: "";
z-index: 1;
}
.has-success.has-feedback .ant-form-item-children:after {
-webkit-animation-name: diffZoomIn1 ;
animation-name: diffZoomIn1 ;
content: '\e630';
color: #52c41a;
}
.has-warning .ant-form-explain,
.has-warning .ant-form-split {
color: #faad14;
}
.has-warning .ant-input,
.has-warning .ant-input:hover {
border-color: #faad14;
}
.has-warning .ant-input:focus {
border-color: #ffc53d;
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);
}
.has-warning .ant-input:not([disabled]):hover {
border-color: #faad14;
}
.has-warning .ant-calendar-picker-open .ant-calendar-picker-input {
border-color: #ffc53d;
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);
}
.has-warning .ant-input-prefix {
color: #faad14;
}
.has-warning .ant-input-group-addon {
color: #faad14;
border-color: #faad14;
background-color: #fff;
}
.has-warning .has-feedback {
color: #faad14;
}
.has-warning.has-feedback .ant-form-item-children:after {
content: '\e62c';
color: #faad14;
-webkit-animation-name: diffZoomIn3 ;
animation-name: diffZoomIn3 ;
}
.has-warning .ant-select-selection {
border-color: #faad14;
}
.has-warning .ant-select-open .ant-select-selection,
.has-warning .ant-select-focused .ant-select-selection {
border-color: #ffc53d;
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);
}
.has-warning .ant-calendar-picker-icon:after,
.has-warning .ant-time-picker-icon:after,
.has-warning .ant-picker-icon:after,
.has-warning .ant-select-arrow,
.has-warning .ant-cascader-picker-arrow {
color: #faad14;
}
.has-warning .ant-input-number,
.has-warning .ant-time-picker-input {
border-color: #faad14;
}
.has-warning .ant-input-number-focused,
.has-warning .ant-time-picker-input-focused,
.has-warning .ant-input-number:focus,
.has-warning .ant-time-picker-input:focus {
border-color: #ffc53d;
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);
}
.has-warning .ant-input-number:not([disabled]):hover,
.has-warning .ant-time-picker-input:not([disabled]):hover {
border-color: #faad14;
}
.has-warning .ant-cascader-picker:focus .ant-cascader-input {
border-color: #ffc53d;
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);
}
.has-error .ant-form-explain,
.has-error .ant-form-split {
color: #f5222d;
}
.has-error .ant-input,
.has-error .ant-input:hover {
border-color: #f5222d;
}
.has-error .ant-input:focus {
border-color: #ff4d4f;
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}
.has-error .ant-input:not([disabled]):hover {
border-color: #f5222d;
}
.has-error .ant-calendar-picker-open .ant-calendar-picker-input {
border-color: #ff4d4f;
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}
.has-error .ant-input-prefix {
color: #f5222d;
}
.has-error .ant-input-group-addon {
color: #f5222d;
border-color: #f5222d;
background-color: #fff;
}
.has-error .has-feedback {
color: #f5222d;
}
.has-error.has-feedback .ant-form-item-children:after {
content: '\e62e';
color: #f5222d;
-webkit-animation-name: diffZoomIn2 ;
animation-name: diffZoomIn2 ;
}
.has-error .ant-select-selection {
border-color: #f5222d;
}
.has-error .ant-select-open .ant-select-selection,
.has-error .ant-select-focused .ant-select-selection {
border-color: #ff4d4f;
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}
.has-error .ant-select.ant-select-auto-complete .ant-input:focus {
border-color: #f5222d;
}
.has-error .ant-input-group-addon .ant-select-selection {
border-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.has-error .ant-calendar-picker-icon:after,
.has-error .ant-time-picker-icon:after,
.has-error .ant-picker-icon:after,
.has-error .ant-select-arrow,
.has-error .ant-cascader-picker-arrow {
color: #f5222d;
}
.has-error .ant-input-number,
.has-error .ant-time-picker-input {
border-color: #f5222d;
}
.has-error .ant-input-number-focused,
.has-error .ant-time-picker-input-focused,
.has-error .ant-input-number:focus,
.has-error .ant-time-picker-input:focus {
border-color: #ff4d4f;
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}
.has-error .ant-input-number:not([disabled]):hover,
.has-error .ant-time-picker-input:not([disabled]):hover {
border-color: #f5222d;
}
.has-error .ant-mention-wrapper .ant-mention-editor,
.has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover {
border-color: #f5222d;
}
.has-error .ant-mention-wrapper.ant-mention-active:not([disabled]) .ant-mention-editor,
.has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus {
border-color: #ff4d4f;
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}
.has-error .ant-cascader-picker:focus .ant-cascader-input {
border-color: #ff4d4f;
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
box-shadow: 0 0 0 2px rgba(245, 34, 45, 0.2);
}
.is-validating.has-feedback .ant-form-item-children:after {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
content: "\e64d";
color: #1890ff;
}
.ant-advanced-search-form .ant-form-item {
margin-bottom: 24px;
}
.ant-advanced-search-form .ant-form-item-with-help {
margin-bottom: 5px;
}
.show-help-enter,
.show-help-appear {
-webkit-animation-duration: 0.15s;
animation-duration: 0.15s;
-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.15s;
animation-duration: 0.15s;
-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% {
opacity: 0;
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes antShowHelpIn {
0% {
opacity: 0;
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@-webkit-keyframes antShowHelpOut {
to {
opacity: 0;
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
}
}
@keyframes antShowHelpOut {
to {
opacity: 0;
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
}
}
@-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);
}
}