2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
@import "../../input/style/mixin";
|
|
|
|
@import "../../button/style/mixin";
|
|
|
|
@import "../../layout/style/mixin";
|
|
|
|
@import "./mixin";
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@form-prefix-cls: ~"@{ant-prefix}-form";
|
2015-06-15 11:43:18 +08:00
|
|
|
|
|
|
|
.reset-form();
|
|
|
|
|
2015-07-07 11:32:08 +08:00
|
|
|
label {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
> .@{iconfont-css-prefix} {
|
|
|
|
vertical-align: top;
|
2015-07-08 12:02:57 +08:00
|
|
|
font-size: @font-size-base;
|
2015-07-07 11:32:08 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-item-required:before {
|
2016-02-02 20:47:52 +08:00
|
|
|
display: inline-block;
|
|
|
|
margin-right: 4px;
|
|
|
|
content: "*";
|
|
|
|
font-family: SimSun;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
color: @label-required-color;
|
|
|
|
}
|
|
|
|
|
2015-07-17 15:05:12 +08:00
|
|
|
// Radio && Checkbox
|
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
&[disabled],
|
2016-10-14 09:12:10 +08:00
|
|
|
&.disabled {
|
2016-11-08 20:45:56 +08:00
|
|
|
cursor: not-allowed;
|
2015-07-17 15:05:12 +08:00
|
|
|
}
|
|
|
|
}
|
2016-05-23 20:09:25 +08:00
|
|
|
|
2015-07-17 15:05:12 +08:00
|
|
|
// These classes are used directly on <label>s
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-radio-inline,
|
|
|
|
.@{ant-prefix}-radio-vertical,
|
|
|
|
.@{ant-prefix}-checkbox-inline,
|
|
|
|
.@{ant-prefix}-checkbox-vertical {
|
2016-10-14 09:12:10 +08:00
|
|
|
&.disabled {
|
2016-11-08 20:45:56 +08:00
|
|
|
cursor: not-allowed;
|
2015-07-17 15:05:12 +08:00
|
|
|
}
|
|
|
|
}
|
2016-07-28 08:39:03 +08:00
|
|
|
|
2015-07-17 15:05:12 +08:00
|
|
|
// These classes are used on elements with <label> descendants
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-radio,
|
|
|
|
.@{ant-prefix}-checkbox {
|
2016-10-14 09:12:10 +08:00
|
|
|
&.disabled {
|
2015-07-17 15:05:12 +08:00
|
|
|
label {
|
2016-11-08 20:45:56 +08:00
|
|
|
cursor: not-allowed;
|
2015-07-17 15:05:12 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-07 11:32:08 +08:00
|
|
|
// Form items
|
2016-04-27 20:44:36 +08:00
|
|
|
// You should wrap labels and controls in .@{form-prefix-cls}-item for optimum spacing
|
|
|
|
.@{form-prefix-cls}-item {
|
2015-09-14 20:22:31 +08:00
|
|
|
font-size: @font-size-base;
|
2015-07-07 11:32:08 +08:00
|
|
|
margin-bottom: @form-item-margin-bottom;
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2016-10-21 15:04:55 +08:00
|
|
|
vertical-align: top;
|
2015-07-07 11:32:08 +08:00
|
|
|
|
2016-05-19 15:21:48 +08:00
|
|
|
// nested FormItem
|
2016-08-10 14:38:35 +08:00
|
|
|
& > &,
|
|
|
|
& :not(.@{form-prefix-cls}) > & {
|
2016-05-19 15:21:48 +08:00
|
|
|
margin-bottom: -@form-item-margin-bottom;
|
|
|
|
}
|
|
|
|
|
2016-01-22 14:56:35 +08:00
|
|
|
&-control {
|
|
|
|
line-height: 32px;
|
2016-05-17 15:46:21 +08:00
|
|
|
position: relative;
|
2016-05-19 15:21:48 +08:00
|
|
|
.clearfix;
|
2016-01-22 14:56:35 +08:00
|
|
|
}
|
|
|
|
|
2016-05-19 15:21:48 +08:00
|
|
|
&-with-help {
|
2016-09-21 22:26:53 +08:00
|
|
|
margin-bottom: @form-item-margin-bottom - @font-size-base * @line-height-base;
|
2015-12-31 15:57:24 +08:00
|
|
|
}
|
|
|
|
|
2016-07-10 17:04:03 +08:00
|
|
|
&-label {
|
2015-07-07 11:32:08 +08:00
|
|
|
text-align: right;
|
2015-07-17 15:43:31 +08:00
|
|
|
vertical-align: middle;
|
2016-06-02 18:09:20 +08:00
|
|
|
padding: 7px 0;
|
2016-07-28 08:39:03 +08:00
|
|
|
display: inline-block;
|
2016-10-07 14:34:25 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2015-07-22 17:17:47 +08:00
|
|
|
|
2016-07-09 17:44:28 +08:00
|
|
|
label {
|
|
|
|
color: @label-color;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: ":";
|
|
|
|
margin: 0 8px 0 2px;
|
|
|
|
position: relative;
|
|
|
|
top: -0.5px;
|
|
|
|
}
|
2015-07-24 16:08:44 +08:00
|
|
|
}
|
2015-07-07 11:32:08 +08:00
|
|
|
}
|
2015-07-16 22:57:47 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-switch {
|
2015-07-16 22:57:47 +08:00
|
|
|
margin: 4px 0;
|
|
|
|
}
|
2016-07-09 15:10:07 +08:00
|
|
|
|
2016-07-21 15:51:37 +08:00
|
|
|
&-no-colon &-label label:after {
|
2016-07-09 15:10:07 +08:00
|
|
|
content: " ";
|
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-explain {
|
2016-01-22 20:58:45 +08:00
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-explain,
|
|
|
|
.@{form-prefix-cls}-extra {
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2016-04-25 16:25:57 +08:00
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-text {
|
2015-07-20 19:25:34 +08:00
|
|
|
display: inline-block;
|
2015-07-20 20:35:48 +08:00
|
|
|
padding-right: 8px;
|
2015-07-20 19:25:34 +08:00
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-split {
|
2015-07-20 19:25:34 +08:00
|
|
|
display: block;
|
2015-07-17 15:05:12 +08:00
|
|
|
text-align: center;
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
2015-07-07 11:32:08 +08:00
|
|
|
// 表单下的输入框尺寸唯一: 大尺寸
|
|
|
|
form {
|
|
|
|
.has-feedback {
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-input {
|
2016-04-12 14:06:51 +08:00
|
|
|
padding-right: 24px;
|
|
|
|
}
|
2015-07-07 11:32:08 +08:00
|
|
|
}
|
2015-07-21 14:54:49 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
textarea.@{ant-prefix}-input {
|
2015-12-16 20:13:18 +08:00
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
2015-07-07 11:32:08 +08:00
|
|
|
// input[type=file]
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-upload {
|
2015-07-08 13:17:14 +08:00
|
|
|
background: transparent;
|
2015-07-07 11:32:08 +08:00
|
|
|
}
|
2015-07-15 17:22:58 +08:00
|
|
|
|
2015-07-17 15:05:12 +08:00
|
|
|
input[type="radio"],
|
|
|
|
input[type="checkbox"] {
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
}
|
|
|
|
|
2015-07-15 17:22:58 +08:00
|
|
|
// Radios and checkboxes on same line
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-radio-inline,
|
|
|
|
.@{ant-prefix}-checkbox-inline {
|
2015-07-15 17:22:58 +08:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2015-06-15 20:24:01 +08:00
|
|
|
font-weight: normal;
|
|
|
|
cursor: pointer;
|
2016-04-27 20:44:36 +08:00
|
|
|
margin-left: 8px;
|
2015-12-16 17:39:10 +08:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2015-06-15 20:24:01 +08:00
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-checkbox-vertical,
|
|
|
|
.@{ant-prefix}-radio-vertical {
|
2015-07-17 15:05:12 +08:00
|
|
|
display: block;
|
2015-06-15 20:24:01 +08:00
|
|
|
}
|
2015-07-20 17:28:29 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-checkbox-vertical + .@{ant-prefix}-checkbox-vertical,
|
|
|
|
.@{ant-prefix}-radio-vertical + .@{ant-prefix}-radio-vertical {
|
2016-06-27 17:22:03 +08:00
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-input-number {
|
2015-07-20 17:43:01 +08:00
|
|
|
margin-top: -1px;
|
|
|
|
margin-right: 8px;
|
2015-07-20 17:28:29 +08:00
|
|
|
}
|
2015-07-20 19:25:34 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-select,
|
|
|
|
.@{ant-prefix}-cascader-picker {
|
2015-07-20 19:25:34 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
2015-06-15 20:24:01 +08:00
|
|
|
}
|
|
|
|
|
2015-12-02 19:33:26 +08:00
|
|
|
// Input combined with select
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-input-group-wrap {
|
|
|
|
.@{ant-prefix}-select-selection {
|
2015-12-02 19:33:26 +08:00
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
&:hover {
|
2016-03-04 17:06:39 +08:00
|
|
|
border-color: @border-color-base;
|
2015-12-02 19:33:26 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-select-selection--single {
|
2015-12-02 19:33:26 +08:00
|
|
|
margin-left: -1px;
|
|
|
|
height: @input-height-lg;
|
|
|
|
background-color: #eee;
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-select-selection__rendered {
|
2015-12-02 19:33:26 +08:00
|
|
|
padding-left: 8px;
|
|
|
|
padding-right: 25px;
|
|
|
|
line-height: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-select-open .@{ant-prefix}-select-selection {
|
2016-03-04 17:06:39 +08:00
|
|
|
border-color: @border-color-base;
|
2015-12-02 19:33:26 +08:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
// Form layout
|
|
|
|
//== Horizontal Form
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-horizontal {
|
|
|
|
.@{form-prefix-cls}-item {
|
2015-06-15 11:43:18 +08:00
|
|
|
.make-row;
|
|
|
|
}
|
2015-07-17 15:05:12 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-radio-inline,
|
|
|
|
.@{ant-prefix}-checkbox-inline {
|
2016-04-12 14:55:02 +08:00
|
|
|
vertical-align: baseline;
|
2015-07-17 15:05:12 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
2016-08-04 17:45:15 +08:00
|
|
|
// Form layout
|
|
|
|
//== Vertical Form
|
|
|
|
.@{form-prefix-cls}-vertical {
|
|
|
|
.@{form-prefix-cls}-item-label {
|
|
|
|
padding: 0 0 8px;
|
|
|
|
|
|
|
|
label:after {
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
//== Inline Form
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-inline {
|
|
|
|
.@{form-prefix-cls}-item {
|
2015-08-18 17:15:08 +08:00
|
|
|
display: inline-block;
|
|
|
|
margin-right: 10px;
|
2016-03-08 23:53:09 +08:00
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
&-with-help {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
|
2015-12-08 17:48:12 +08:00
|
|
|
> div {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2015-08-18 17:15:08 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-text {
|
2015-08-18 17:15:08 +08:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2015-06-15 20:24:01 +08:00
|
|
|
|
2015-08-18 17:15:08 +08:00
|
|
|
.has-feedback {
|
|
|
|
display: inline-block;
|
2015-07-07 11:32:08 +08:00
|
|
|
}
|
2016-02-20 17:41:40 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
// Fix https://github.comdesigndesign/issues/1040
|
|
|
|
.@{form-prefix-cls}-explain {
|
2016-02-20 17:41:40 +08:00
|
|
|
position: absolute;
|
|
|
|
}
|
2015-07-07 11:32:08 +08:00
|
|
|
}
|
2015-06-15 20:24:01 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-horizontal,
|
|
|
|
.@{form-prefix-cls}-inline {
|
2015-07-07 11:32:08 +08:00
|
|
|
label {
|
2015-07-16 14:18:03 +08:00
|
|
|
> input[type="radio"],
|
2015-07-17 11:06:38 +08:00
|
|
|
> input[type="checkbox"] {
|
2016-01-22 20:58:45 +08:00
|
|
|
margin-right: 4px;
|
2015-07-16 14:18:03 +08:00
|
|
|
}
|
2015-06-15 20:24:01 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
// Validation state
|
2015-11-26 19:32:55 +08:00
|
|
|
.has-success,
|
|
|
|
.has-warning,
|
|
|
|
.has-error,
|
|
|
|
.is-validating {
|
2015-08-03 13:34:40 +08:00
|
|
|
&.has-feedback:after {
|
|
|
|
position: absolute;
|
2016-01-21 13:15:28 +08:00
|
|
|
top: 0;
|
2015-08-03 13:34:40 +08:00
|
|
|
right: 0;
|
2016-05-24 20:08:13 +08:00
|
|
|
visibility: visible;
|
2015-08-04 14:41:30 +08:00
|
|
|
.square(@input-height-lg);
|
2016-06-28 18:32:03 +08:00
|
|
|
line-height: @input-height-lg;
|
2015-08-03 13:34:40 +08:00
|
|
|
text-align: center;
|
|
|
|
font-size: 14px;
|
2016-04-19 15:15:54 +08:00
|
|
|
animation: zoomIn .3s @ease-out-back;
|
2016-07-25 14:03:56 +08:00
|
|
|
.iconfont-font("");
|
2015-08-20 14:58:09 +08:00
|
|
|
}
|
|
|
|
}
|
2015-11-18 15:41:30 +08:00
|
|
|
|
|
|
|
.has-success {
|
2015-08-20 18:09:28 +08:00
|
|
|
&.has-feedback:after {
|
2015-11-18 15:41:30 +08:00
|
|
|
animation-name: diffZoomIn1 !important;
|
2015-08-20 14:58:09 +08:00
|
|
|
}
|
|
|
|
}
|
2015-11-18 15:41:30 +08:00
|
|
|
|
|
|
|
.has-error {
|
2015-08-20 18:09:28 +08:00
|
|
|
&.has-feedback:after {
|
2015-11-18 15:41:30 +08:00
|
|
|
animation-name: diffZoomIn2 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.has-warning {
|
|
|
|
&.has-feedback:after {
|
|
|
|
animation-name: diffZoomIn3 !important;
|
2015-08-03 13:34:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
.has-success {
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-input {
|
2015-07-07 11:32:08 +08:00
|
|
|
border-color: @input-border-color;
|
2015-08-03 13:34:40 +08:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-feedback:after {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: '\e630';
|
2015-08-03 13:34:40 +08:00
|
|
|
color: @success-color;
|
2015-07-07 11:32:08 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
2015-08-03 13:34:40 +08:00
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
.has-warning {
|
|
|
|
.form-control-validation(@warning-color; @warning-color;);
|
2015-08-03 13:34:40 +08:00
|
|
|
|
|
|
|
&.has-feedback:after {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: '\e62c';
|
2015-08-03 13:34:40 +08:00
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
//select
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-select {
|
2015-08-03 13:34:40 +08:00
|
|
|
&-selection {
|
|
|
|
border-color: @warning-color;
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@warning-color);
|
2015-08-03 13:34:40 +08:00
|
|
|
}
|
|
|
|
&-arrow {
|
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
//datepicker
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-calendar-picker-icon:after {
|
2015-08-03 13:34:40 +08:00
|
|
|
color: @warning-color;
|
|
|
|
}
|
2015-10-15 19:59:21 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
//timepicker
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-time-picker-icon:after {
|
2015-11-19 14:11:34 +08:00
|
|
|
color: @warning-color;
|
|
|
|
}
|
|
|
|
|
2016-09-13 17:06:11 +08:00
|
|
|
//input-number, timepicker
|
2016-09-15 01:21:48 +08:00
|
|
|
.@{ant-prefix}-input-number,
|
|
|
|
.@{ant-prefix}-time-picker-input {
|
2015-10-15 19:59:21 +08:00
|
|
|
border-color: @warning-color;
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@warning-color);
|
2015-11-18 15:41:30 +08:00
|
|
|
&:not([disabled]):hover {
|
|
|
|
border-color: @warning-color;
|
|
|
|
}
|
2015-10-15 19:59:21 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
2015-08-03 13:34:40 +08:00
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
.has-error {
|
|
|
|
.form-control-validation(@error-color; @error-color;);
|
2015-08-03 13:34:40 +08:00
|
|
|
|
|
|
|
&.has-feedback:after {
|
2016-09-18 09:54:47 +08:00
|
|
|
content: '\e62e';
|
2015-08-03 13:34:40 +08:00
|
|
|
color: @error-color;
|
|
|
|
}
|
2015-08-20 14:58:09 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
//select
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-select {
|
2015-08-03 13:34:40 +08:00
|
|
|
&-selection {
|
|
|
|
border-color: @error-color;
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@error-color);
|
2015-08-03 13:34:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-arrow {
|
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
//datepicker
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-calendar-picker-icon:after {
|
2015-08-03 13:34:40 +08:00
|
|
|
color: @error-color;
|
|
|
|
}
|
2015-10-15 19:59:21 +08:00
|
|
|
|
2016-04-27 20:44:36 +08:00
|
|
|
//timepicker
|
2016-09-15 01:21:48 +08:00
|
|
|
.@{ant-prefix}-picker-icon:after {
|
2015-11-19 14:11:34 +08:00
|
|
|
color: @error-color;
|
|
|
|
}
|
|
|
|
|
2016-09-13 17:06:11 +08:00
|
|
|
//input-number, timepicker
|
2016-09-15 01:21:48 +08:00
|
|
|
.@{ant-prefix}-input-number,
|
|
|
|
.@{ant-prefix}-time-picker-input {
|
2015-10-15 19:59:21 +08:00
|
|
|
border-color: @error-color;
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@error-color);
|
2015-11-18 15:41:30 +08:00
|
|
|
&:not([disabled]):hover {
|
|
|
|
border-color: @error-color;
|
|
|
|
}
|
2015-10-15 19:59:21 +08:00
|
|
|
}
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-mention-wrapper,
|
|
|
|
.@{ant-prefix}-mention-wrapper.active {
|
|
|
|
.@{ant-prefix}-mention-editor {
|
2016-07-20 18:56:44 +08:00
|
|
|
border-color: @error-color;
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@error-color);
|
2016-07-20 18:56:44 +08:00
|
|
|
&:not([disabled]):hover,
|
|
|
|
&:not([disabled]):focus {
|
|
|
|
border-color: @error-color;
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@error-color);
|
2016-07-20 18:56:44 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-03 13:34:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.is-validating {
|
|
|
|
&.has-feedback:after {
|
|
|
|
display: inline-block;
|
2016-04-19 15:15:54 +08:00
|
|
|
animation: loadingCircle 1s infinite linear;
|
2016-09-18 09:54:47 +08:00
|
|
|
content: "\e6ae";
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2015-08-03 13:34:40 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
2015-08-20 14:58:09 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-advanced-search-form {
|
2016-04-27 20:44:36 +08:00
|
|
|
.@{form-prefix-cls}-item {
|
2016-04-12 14:55:02 +08:00
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-input,
|
|
|
|
.@{ant-prefix}-input-group .@{ant-prefix}-input,
|
|
|
|
.@{ant-prefix}-input-group .@{ant-prefix}-input-group-addon {
|
2016-04-12 14:55:02 +08:00
|
|
|
height: 28px;
|
|
|
|
}
|
2016-04-06 12:08:40 +08:00
|
|
|
}
|
|
|
|
|
2015-11-18 15:41:30 +08:00
|
|
|
// need there different zoom animation
|
|
|
|
// otherwise won't trigger anim
|
|
|
|
@keyframes diffZoomIn1 {
|
2015-11-26 19:32:55 +08:00
|
|
|
0% {
|
2015-08-20 14:58:09 +08:00
|
|
|
transform: scale(0);
|
|
|
|
}
|
2015-11-26 19:32:55 +08:00
|
|
|
100% {
|
2015-08-20 14:58:09 +08:00
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
2015-11-18 15:41:30 +08:00
|
|
|
|
|
|
|
@keyframes diffZoomIn2 {
|
2015-11-26 19:32:55 +08:00
|
|
|
0% {
|
2015-11-18 15:41:30 +08:00
|
|
|
transform: scale(0);
|
|
|
|
}
|
2015-11-26 19:32:55 +08:00
|
|
|
100% {
|
2015-11-18 15:41:30 +08:00
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes diffZoomIn3 {
|
2015-11-26 19:32:55 +08:00
|
|
|
0% {
|
2015-08-20 14:58:09 +08:00
|
|
|
transform: scale(0);
|
|
|
|
}
|
2015-11-26 19:32:55 +08:00
|
|
|
100% {
|
2015-08-20 14:58:09 +08:00
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|