2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
|
|
|
@import "../../input/style/mixin";
|
|
|
|
@import "../../button/style/mixin";
|
2016-11-09 14:43:32 +08:00
|
|
|
@import "../../grid/style/mixin";
|
2016-04-27 20:44:36 +08:00
|
|
|
@import "./mixin";
|
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@form-prefix-cls: ~"@{ant-prefix}-form";
|
2017-02-15 11:19:16 +08:00
|
|
|
@form-component-height: @input-height-lg;
|
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;
|
2016-12-16 20:24:22 +08:00
|
|
|
line-height: 1;
|
2016-02-02 20:47:52 +08:00
|
|
|
font-size: @font-size-base;
|
|
|
|
color: @label-required-color;
|
2017-01-13 21:52:48 +08:00
|
|
|
.@{form-prefix-cls}-hide-required-mark & {
|
|
|
|
display: none;
|
|
|
|
}
|
2016-02-02 20:47:52 +08:00
|
|
|
}
|
|
|
|
|
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 {
|
2017-02-15 11:19:16 +08:00
|
|
|
line-height: @form-component-height;
|
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 {
|
2017-03-02 10:49:06 +08:00
|
|
|
display: block;
|
|
|
|
float: none; // To reset `col-*`
|
|
|
|
padding: 0 0 8px;
|
|
|
|
text-align: left;
|
2015-07-17 15:43:31 +08:00
|
|
|
vertical-align: middle;
|
2017-02-15 11:19:16 +08:00
|
|
|
line-height: @form-component-height;
|
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;
|
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;
|
|
|
|
}
|
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;
|
2017-01-01 17:20:08 +08:00
|
|
|
}
|
|
|
|
|
2017-01-01 17:39:27 +08:00
|
|
|
// Fix overlapping between feedback icon and <Select>'s arrow.
|
|
|
|
// https://github.com/ant-design/ant-design/issues/4431
|
|
|
|
.@{ant-prefix}-select {
|
|
|
|
&-arrow,
|
|
|
|
&-selection__clear {
|
|
|
|
right: 28px;
|
|
|
|
}
|
|
|
|
&-selection-selected-value {
|
|
|
|
padding-right: 42px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{ant-prefix}-cascader-picker {
|
|
|
|
&-arrow {
|
|
|
|
padding-right: 36px;
|
|
|
|
}
|
|
|
|
&-clear {
|
|
|
|
right: 28px;
|
|
|
|
}
|
2016-04-12 14:06:51 +08:00
|
|
|
}
|
2017-02-09 11:09:22 +08:00
|
|
|
|
|
|
|
// Fix issue: https://github.com/ant-design/ant-design/issues/4783
|
|
|
|
.@{ant-prefix}-calendar-picker {
|
|
|
|
&-icon,
|
|
|
|
&-clear {
|
|
|
|
right: 28px;
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-02 10:49:06 +08:00
|
|
|
@media (min-width: @screen-sm) {
|
|
|
|
// Form layout
|
|
|
|
// == common style of Horizontal Form & Inline Form
|
|
|
|
.@{form-prefix-cls}-horizontal,
|
|
|
|
.@{form-prefix-cls}-inline {
|
|
|
|
// when labelCol is 24, it is a vertical form
|
|
|
|
.@{form-prefix-cls}-item-label:not(.@{ant-prefix}-col-24) {
|
|
|
|
display: inline-block;
|
|
|
|
float: left; // To revert `col-*`
|
|
|
|
padding: 0;
|
|
|
|
text-align: right;
|
2016-08-04 17:45:15 +08:00
|
|
|
|
2017-03-02 10:49:06 +08:00
|
|
|
label:after {
|
|
|
|
content: ":";
|
|
|
|
margin: 0 8px 0 2px;
|
|
|
|
position: relative;
|
|
|
|
top: -0.5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.@{form-prefix-cls}-item-no-colon .@{form-prefix-cls}-item-label label:after {
|
|
|
|
content: " ";
|
|
|
|
}
|
2016-08-04 17:45:15 +08:00
|
|
|
}
|
|
|
|
|
2017-03-02 10:49:06 +08:00
|
|
|
//== Inline Form
|
|
|
|
.@{form-prefix-cls}-inline {
|
|
|
|
.@{form-prefix-cls}-item {
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 10px;
|
|
|
|
margin-bottom: 0;
|
2016-03-08 23:53:09 +08:00
|
|
|
|
2017-03-02 10:49:06 +08:00
|
|
|
&-with-help {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> div {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2016-03-08 23:53:09 +08:00
|
|
|
}
|
|
|
|
|
2017-03-02 10:49:06 +08:00
|
|
|
.@{form-prefix-cls}-text {
|
2015-12-08 17:48:12 +08:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2015-06-15 20:24:01 +08:00
|
|
|
|
2017-03-02 10:49:06 +08:00
|
|
|
.has-feedback {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2016-02-20 17:41:40 +08:00
|
|
|
|
2017-03-02 10:49:06 +08:00
|
|
|
// Fix https://github.comdesigndesign/issues/1040
|
|
|
|
.@{form-prefix-cls}-explain {
|
|
|
|
position: absolute;
|
|
|
|
}
|
2016-02-20 17:41:40 +08:00
|
|
|
}
|
2015-07-07 11:32:08 +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;
|
2016-11-17 17:33:00 +08:00
|
|
|
pointer-events: none;
|
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;
|
2016-11-08 21:07:01 +08:00
|
|
|
font-size: @font-size-lg;
|
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 {
|
2015-08-03 13:34:40 +08:00
|
|
|
&.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-11-16 20:13:00 +08:00
|
|
|
&-open .@{ant-prefix}-select-selection,
|
|
|
|
&-focused .@{ant-prefix}-select-selection {
|
|
|
|
.active(@warning-color);
|
2015-08-03 13:34:40 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-16 20:13:00 +08:00
|
|
|
// arrow and icon
|
|
|
|
.@{ant-prefix}-calendar-picker-icon:after,
|
|
|
|
.@{ant-prefix}-picker-icon:after,
|
|
|
|
.@{ant-prefix}-select-arrow,
|
|
|
|
.@{ant-prefix}-cascader-picker-arrow {
|
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-11-11 15:08:02 +08:00
|
|
|
&-focused,
|
|
|
|
&:focus {
|
|
|
|
.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-11-09 22:25:39 +08:00
|
|
|
}
|
2016-11-16 20:13:00 +08:00
|
|
|
&-open .@{ant-prefix}-select-selection,
|
|
|
|
&-focused .@{ant-prefix}-select-selection {
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@error-color);
|
2015-08-03 13:34:40 +08:00
|
|
|
}
|
|
|
|
}
|
2015-10-15 19:59:21 +08:00
|
|
|
|
2016-11-16 20:13:00 +08:00
|
|
|
// arrow and icon
|
|
|
|
.@{ant-prefix}-calendar-picker-icon:after,
|
|
|
|
.@{ant-prefix}-picker-icon:after,
|
|
|
|
.@{ant-prefix}-select-arrow,
|
|
|
|
.@{ant-prefix}-cascader-picker-arrow {
|
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-11-11 15:08:02 +08:00
|
|
|
&-focused,
|
2016-11-09 22:25:39 +08:00
|
|
|
&:focus {
|
|
|
|
.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-11-11 15:08:02 +08:00
|
|
|
.@{ant-prefix}-mention-wrapper {
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-mention-editor {
|
2016-11-11 15:08:02 +08:00
|
|
|
&,
|
|
|
|
&:not([disabled]):hover {
|
2016-07-20 18:56:44 +08:00
|
|
|
border-color: @error-color;
|
|
|
|
}
|
|
|
|
}
|
2016-11-11 15:08:02 +08:00
|
|
|
&.active .@{ant-prefix}-mention-editor,
|
|
|
|
.@{ant-prefix}-mention-editor:not([disabled]):focus {
|
|
|
|
.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;
|
2017-01-14 20:59:37 +08:00
|
|
|
content: "\e64d";
|
|
|
|
color: @primary-color;
|
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-12-15 11:17:09 +08:00
|
|
|
height: @input-height-base;
|
2016-04-12 14:55:02 +08:00
|
|
|
}
|
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);
|
|
|
|
}
|
|
|
|
}
|