antd
Version:
An enterprise-class UI design language and React-based implementation
517 lines (516 loc) • 11.4 kB
CSS
fieldset {
padding: 0;
margin: 0;
border: 0;
min-width: 0;
}
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: 20px;
font-size: 14px;
line-height: inherit;
color: #999;
border: 0;
border-bottom: 1px solid #d9d9d9;
}
label {
font-size: 12px;
}
input[type="search"] {
box-sizing: border-box;
}
input[type="radio"],
input[type="checkbox"] {
line-height: normal;
}
input[type="file"] {
display: block;
}
input[type="range"] {
display: block;
width: 100%;
}
select[multiple],
select[size] {
height: auto;
}
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;
}
output {
display: block;
padding-top: 15px;
font-size: 12px;
line-height: 1.5;
color: #666;
}
label {
position: relative;
}
label > .anticon {
vertical-align: top;
font-size: 12px;
}
.ant-form-item-required:before {
display: inline-block;
margin-right: 4px;
content: "*";
font-family: SimSun;
font-size: 12px;
color: #f50;
}
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-size: 12px;
margin-bottom: 24px;
color: #666;
vertical-align: top;
}
.ant-form-item > .ant-form-item,
.ant-form-item :not(.ant-form) > .ant-form-item {
margin-bottom: -24px;
}
.ant-form-item-control {
line-height: 32px;
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-with-help {
margin-bottom: 6px;
}
.ant-form-item-label {
text-align: right;
vertical-align: middle;
padding: 7px 0;
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ant-form-item-label label {
color: #666;
}
.ant-form-item-label label:after {
content: ":";
margin: 0 8px 0 2px;
position: relative;
top: -0.5px;
}
.ant-form-item .ant-switch {
margin: 4px 0;
}
.ant-form-item-no-colon .ant-form-item-label label:after {
content: " ";
}
.ant-form-explain {
line-height: 1.5;
}
.ant-form-explain,
.ant-form-extra {
color: #999;
}
.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 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 {
margin-top: -1px;
margin-right: 8px;
}
form .ant-select,
form .ant-cascader-picker {
width: 100%;
}
.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: 32px;
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;
box-shadow: none;
}
.ant-form-horizontal .ant-form-item {
position: relative;
margin-left: 0;
margin-right: 0;
height: auto;
zoom: 1;
}
.ant-form-horizontal .ant-form-item:before,
.ant-form-horizontal .ant-form-item:after {
content: " ";
display: table;
}
.ant-form-horizontal .ant-form-item:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-form-horizontal .ant-radio-inline,
.ant-form-horizontal .ant-checkbox-inline {
vertical-align: baseline;
}
.ant-form-vertical .ant-form-item-label {
padding: 0 0 8px;
}
.ant-form-vertical .ant-form-item-label label:after {
content: '';
}
.ant-form-inline .ant-form-item {
display: inline-block;
margin-right: 10px;
margin-bottom: 0;
}
.ant-form-inline .ant-form-item-with-help {
margin-bottom: 24px;
}
.ant-form-inline .ant-form-item > div {
display: inline-block;
}
.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;
}
.ant-form-horizontal label > input[type="radio"],
.ant-form-inline label > input[type="radio"],
.ant-form-horizontal label > input[type="checkbox"],
.ant-form-inline label > input[type="checkbox"] {
margin-right: 4px;
}
.has-success.has-feedback:after,
.has-warning.has-feedback:after,
.has-error.has-feedback:after,
.is-validating.has-feedback:after {
position: absolute;
top: 0;
right: 0;
visibility: visible;
width: 32px;
height: 32px;
line-height: 32px;
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: "";
}
.has-success.has-feedback:after {
-webkit-animation-name: diffZoomIn1 ;
animation-name: diffZoomIn1 ;
}
.has-error.has-feedback:after {
-webkit-animation-name: diffZoomIn2 ;
animation-name: diffZoomIn2 ;
}
.has-warning.has-feedback:after {
-webkit-animation-name: diffZoomIn3 ;
animation-name: diffZoomIn3 ;
}
.has-success .ant-input {
border-color: #d9d9d9;
box-shadow: none;
}
.has-success.has-feedback:after {
content: '\e630';
color: #87d068;
}
.has-warning .ant-form-explain,
.has-warning .ant-form-split {
color: #fa0;
}
.has-warning .ant-input,
.has-warning .ant-input:hover,
.has-warning .ant-input:focus {
border-color: #fa0;
border-color: #ffbb33;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.2);
}
.has-warning .ant-input:not([disabled]):hover {
border-color: #fa0;
}
.has-warning .ant-calendar-picker-open .ant-calendar-picker-input {
border-color: #ffbb33;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.2);
}
.has-warning .ant-input-group-addon {
color: #fa0;
border-color: #fa0;
background-color: #fff;
}
.has-warning .has-feedback {
color: #fa0;
}
.has-warning.has-feedback:after {
content: '\e62c';
color: #fa0;
}
.has-warning .ant-select-selection {
border-color: #fa0;
border-color: #ffbb33;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.2);
}
.has-warning .ant-select-arrow {
color: #fa0;
}
.has-warning .ant-calendar-picker-icon:after {
color: #fa0;
}
.has-warning .ant-time-picker-icon:after {
color: #fa0;
}
.has-warning .ant-input-number,
.has-warning .ant-time-picker-input {
border-color: #fa0;
border-color: #ffbb33;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 170, 0, 0.2);
}
.has-warning .ant-input-number:not([disabled]):hover,
.has-warning .ant-time-picker-input:not([disabled]):hover {
border-color: #fa0;
}
.has-error .ant-form-explain,
.has-error .ant-form-split {
color: #f50;
}
.has-error .ant-input,
.has-error .ant-input:hover,
.has-error .ant-input:focus {
border-color: #f50;
border-color: #ff7733;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}
.has-error .ant-input:not([disabled]):hover {
border-color: #f50;
}
.has-error .ant-calendar-picker-open .ant-calendar-picker-input {
border-color: #ff7733;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}
.has-error .ant-input-group-addon {
color: #f50;
border-color: #f50;
background-color: #fff;
}
.has-error .has-feedback {
color: #f50;
}
.has-error.has-feedback:after {
content: '\e62e';
color: #f50;
}
.has-error .ant-select-selection {
border-color: #f50;
border-color: #ff7733;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}
.has-error .ant-select-arrow {
color: #f50;
}
.has-error .ant-calendar-picker-icon:after {
color: #f50;
}
.has-error .ant-picker-icon:after {
color: #f50;
}
.has-error .ant-input-number,
.has-error .ant-time-picker-input {
border-color: #f50;
border-color: #ff7733;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}
.has-error .ant-input-number:not([disabled]):hover,
.has-error .ant-time-picker-input:not([disabled]):hover {
border-color: #f50;
}
.has-error .ant-mention-wrapper .ant-mention-editor,
.has-error .ant-mention-wrapper.active .ant-mention-editor {
border-color: #f50;
border-color: #ff7733;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}
.has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):hover,
.has-error .ant-mention-wrapper.active .ant-mention-editor:not([disabled]):hover,
.has-error .ant-mention-wrapper .ant-mention-editor:not([disabled]):focus,
.has-error .ant-mention-wrapper.active .ant-mention-editor:not([disabled]):focus {
border-color: #f50;
border-color: #ff7733;
outline: 0;
box-shadow: 0 0 0 2px rgba(255, 85, 0, 0.2);
}
.is-validating.has-feedback:after {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
content: "\e6ae";
color: #999;
}
.ant-advanced-search-form .ant-form-item {
margin-bottom: 16px;
}
.ant-advanced-search-form .ant-input,
.ant-advanced-search-form .ant-input-group .ant-input,
.ant-advanced-search-form .ant-input-group .ant-input-group-addon {
height: 28px;
}
@-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);
}
}