2019-05-06 12:04:39 +08:00
|
|
|
@import '../../style/themes/index';
|
2018-12-07 16:17:45 +08:00
|
|
|
@import '../../style/mixins/index';
|
2016-04-27 20:44:36 +08:00
|
|
|
|
2019-07-31 18:39:58 +08:00
|
|
|
@input-affix-with-clear-btn-width: 38px;
|
2017-01-01 01:06:19 +08:00
|
|
|
|
2015-07-07 11:32:08 +08:00
|
|
|
// size mixins for input
|
2015-06-15 11:43:18 +08:00
|
|
|
.input-lg() {
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: @input-padding-vertical-lg @input-padding-horizontal-lg;
|
2017-12-28 15:41:10 +08:00
|
|
|
font-size: @font-size-lg;
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.input-sm() {
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: @input-padding-vertical-sm @input-padding-horizontal-sm;
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
2015-07-09 17:19:01 +08:00
|
|
|
// input status
|
|
|
|
// == when focus or actived
|
2016-08-31 17:04:24 +08:00
|
|
|
.active(@color: @outline-color) {
|
2019-12-01 23:44:51 +08:00
|
|
|
& when (@theme = dark) {
|
|
|
|
border-color: @color;
|
|
|
|
}
|
2019-12-03 15:39:32 +08:00
|
|
|
& when not (@theme = dark) {
|
|
|
|
border-color: ~`colorPalette('@{color}', 5) `;
|
|
|
|
}
|
2019-02-15 10:48:07 +08:00
|
|
|
border-right-width: @border-width-base !important;
|
2015-07-09 17:19:01 +08:00
|
|
|
outline: 0;
|
2020-03-05 20:39:03 +08:00
|
|
|
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@color, @outline-fade);
|
2015-07-09 17:19:01 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// == when hoverd
|
2015-11-26 19:32:55 +08:00
|
|
|
.hover(@color: @input-hover-border-color) {
|
2019-07-23 15:06:25 +08:00
|
|
|
border-color: @color;
|
2018-12-04 00:04:34 +08:00
|
|
|
border-right-width: @border-width-base !important;
|
2015-07-09 17:19:01 +08:00
|
|
|
}
|
|
|
|
|
2015-07-09 20:06:03 +08:00
|
|
|
.disabled() {
|
2020-04-30 15:37:11 +08:00
|
|
|
color: @input-disabled-color;
|
2015-07-09 20:06:03 +08:00
|
|
|
background-color: @input-disabled-bg;
|
2016-11-08 20:45:56 +08:00
|
|
|
cursor: not-allowed;
|
2019-02-15 10:48:07 +08:00
|
|
|
opacity: 1;
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2015-07-09 20:06:03 +08:00
|
|
|
&:hover {
|
|
|
|
.hover(@input-border-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-11 09:57:37 +08:00
|
|
|
// Basic style for input
|
2015-06-09 19:45:18 +08:00
|
|
|
.input() {
|
|
|
|
position: relative;
|
2015-07-07 16:18:14 +08:00
|
|
|
display: inline-block;
|
2015-06-09 19:45:18 +08:00
|
|
|
width: 100%;
|
2020-02-10 15:26:32 +08:00
|
|
|
min-width: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding: @input-padding-vertical-base @input-padding-horizontal-base;
|
|
|
|
color: @input-color;
|
2015-08-04 14:41:30 +08:00
|
|
|
font-size: @font-size-base;
|
2019-09-02 15:35:42 +08:00
|
|
|
line-height: @line-height-base;
|
2015-06-09 19:45:18 +08:00
|
|
|
background-color: @input-bg;
|
|
|
|
background-image: none;
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base @input-border-color;
|
2015-07-07 11:32:08 +08:00
|
|
|
border-radius: @border-radius-base;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: all 0.3s;
|
2019-02-15 10:48:07 +08:00
|
|
|
.placeholder(); // Reset placeholder
|
2015-06-09 19:45:18 +08:00
|
|
|
|
2015-06-15 20:24:01 +08:00
|
|
|
&:hover {
|
2015-07-09 17:19:01 +08:00
|
|
|
.hover();
|
2015-06-09 19:45:18 +08:00
|
|
|
}
|
|
|
|
|
2020-01-14 11:59:38 +08:00
|
|
|
&:focus,
|
|
|
|
&-focused {
|
2015-07-09 17:19:01 +08:00
|
|
|
.active();
|
2015-06-09 19:45:18 +08:00
|
|
|
}
|
|
|
|
|
2017-07-12 14:23:47 +08:00
|
|
|
&-disabled {
|
2016-10-14 09:12:10 +08:00
|
|
|
.disabled();
|
2015-06-09 19:45:18 +08:00
|
|
|
}
|
|
|
|
|
2019-03-11 18:09:14 +08:00
|
|
|
&[disabled] {
|
|
|
|
.disabled();
|
|
|
|
}
|
|
|
|
|
2020-07-16 00:25:47 +08:00
|
|
|
&-borderless {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&-focused,
|
|
|
|
&-disabled,
|
|
|
|
&[disabled] {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-09 19:45:18 +08:00
|
|
|
// Reset height for `textarea`s
|
|
|
|
textarea& {
|
2015-07-27 08:52:47 +08:00
|
|
|
max-width: 100%; // prevent textearea resize from coming out of its container
|
2015-06-09 19:45:18 +08:00
|
|
|
height: auto;
|
2019-02-15 10:48:07 +08:00
|
|
|
min-height: @input-height-base;
|
2019-06-19 19:09:08 +08:00
|
|
|
line-height: @line-height-base;
|
2015-07-20 16:44:39 +08:00
|
|
|
vertical-align: bottom;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: all 0.3s, height 0s;
|
2015-06-09 19:45:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Size
|
|
|
|
&-lg {
|
2015-06-15 11:43:18 +08:00
|
|
|
.input-lg();
|
2015-06-09 19:45:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-sm {
|
2015-06-15 11:43:18 +08:00
|
|
|
.input-sm();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-08 20:12:49 +08:00
|
|
|
// label input
|
2015-07-21 14:54:49 +08:00
|
|
|
.input-group(@inputClass) {
|
2015-06-15 11:43:18 +08:00
|
|
|
position: relative;
|
|
|
|
display: table;
|
2019-02-15 10:48:07 +08:00
|
|
|
width: 100%;
|
2015-06-15 11:43:18 +08:00
|
|
|
border-collapse: separate;
|
2016-12-10 01:03:16 +08:00
|
|
|
border-spacing: 0;
|
2015-06-15 11:43:18 +08:00
|
|
|
|
|
|
|
// Undo padding and float of grid classes
|
2018-12-07 16:17:45 +08:00
|
|
|
&[class*='col-'] {
|
2015-06-15 11:43:18 +08:00
|
|
|
float: none;
|
|
|
|
padding-right: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
padding-left: 0;
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
> [class*='col-'] {
|
2015-07-09 13:48:24 +08:00
|
|
|
padding-right: 8px;
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2017-06-26 21:37:46 +08:00
|
|
|
&:last-child {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2015-07-09 13:48:24 +08:00
|
|
|
}
|
|
|
|
|
2015-07-20 22:56:43 +08:00
|
|
|
&-addon,
|
2015-07-21 14:54:49 +08:00
|
|
|
&-wrap,
|
2019-08-06 14:40:17 +08:00
|
|
|
> .@{inputClass} {
|
2015-06-15 11:43:18 +08:00
|
|
|
display: table-cell;
|
|
|
|
|
|
|
|
&:not(:first-child):not(:last-child) {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2015-06-09 19:45:18 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
|
2015-07-20 22:56:43 +08:00
|
|
|
&-addon,
|
2015-07-21 14:54:49 +08:00
|
|
|
&-wrap {
|
2016-10-21 15:04:55 +08:00
|
|
|
width: 1px; // To make addon/wrap as small as possible
|
2015-06-15 11:43:18 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
&-wrap > * {
|
2016-05-24 20:08:13 +08:00
|
|
|
display: block !important;
|
2016-01-22 14:56:35 +08:00
|
|
|
}
|
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
.@{inputClass} {
|
|
|
|
float: left;
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: 0;
|
2019-02-19 11:21:55 +08:00
|
|
|
text-align: inherit;
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2017-08-03 21:48:26 +08:00
|
|
|
&:focus {
|
|
|
|
z-index: 1; // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
|
2018-05-14 17:11:11 +08:00
|
|
|
border-right-width: 1px;
|
|
|
|
}
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2018-05-14 17:11:11 +08:00
|
|
|
&:hover {
|
|
|
|
z-index: 1;
|
|
|
|
border-right-width: 1px;
|
2020-10-26 10:56:09 +08:00
|
|
|
.@{ant-prefix}-input-search-with-button & {
|
|
|
|
z-index: 0;
|
|
|
|
}
|
2017-08-03 21:48:26 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-addon {
|
2019-02-15 10:48:07 +08:00
|
|
|
position: relative;
|
2017-12-20 22:40:36 +08:00
|
|
|
padding: 0 @input-padding-horizontal-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
color: @input-color;
|
2015-06-15 11:43:18 +08:00
|
|
|
font-weight: normal;
|
2019-02-15 10:48:07 +08:00
|
|
|
font-size: @font-size-base;
|
2015-06-15 11:43:18 +08:00
|
|
|
text-align: center;
|
2017-05-08 13:55:34 +08:00
|
|
|
background-color: @input-addon-bg;
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base @input-border-color;
|
2015-07-07 11:32:08 +08:00
|
|
|
border-radius: @border-radius-base;
|
2018-12-07 16:17:45 +08:00
|
|
|
transition: all 0.3s;
|
2016-06-16 21:15:59 +08:00
|
|
|
|
|
|
|
// Reset Select's style in addon
|
2016-09-14 16:18:33 +08:00
|
|
|
.@{ant-prefix}-select {
|
2018-11-12 12:02:30 +08:00
|
|
|
margin: -(@input-padding-vertical-base + 1px) (-@input-padding-horizontal-base);
|
2016-06-16 21:15:59 +08:00
|
|
|
|
2019-10-23 22:17:06 +08:00
|
|
|
&.@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input)
|
|
|
|
.@{ant-prefix}-select-selector {
|
2019-02-15 10:48:07 +08:00
|
|
|
background-color: inherit;
|
2017-01-31 16:05:10 +08:00
|
|
|
border: @border-width-base @border-style-base transparent;
|
2016-11-09 22:25:39 +08:00
|
|
|
box-shadow: none;
|
2016-06-16 22:04:17 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-open,
|
|
|
|
&-focused {
|
2019-10-23 22:17:06 +08:00
|
|
|
.@{ant-prefix}-select-selector {
|
2016-11-09 22:25:39 +08:00
|
|
|
color: @primary-color;
|
2016-06-16 22:04:17 +08:00
|
|
|
}
|
2016-06-16 21:15:59 +08:00
|
|
|
}
|
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Reset rounded corners
|
2019-08-06 14:40:17 +08:00
|
|
|
> .@{inputClass}:first-child,
|
2015-07-09 13:48:24 +08:00
|
|
|
&-addon:first-child {
|
2015-06-15 11:43:18 +08:00
|
|
|
border-top-right-radius: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-bottom-right-radius: 0;
|
2016-06-16 21:15:59 +08:00
|
|
|
|
|
|
|
// Reset Select's style in addon
|
2019-10-23 22:17:06 +08:00
|
|
|
.@{ant-prefix}-select .@{ant-prefix}-select-selector {
|
2016-06-16 21:15:59 +08:00
|
|
|
border-top-right-radius: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-bottom-right-radius: 0;
|
2016-06-16 21:15:59 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
2015-07-07 16:18:14 +08:00
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
> .@{inputClass}-affix-wrapper {
|
2017-01-01 01:06:19 +08:00
|
|
|
&:not(:first-child) .@{inputClass} {
|
|
|
|
border-top-left-radius: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-bottom-left-radius: 0;
|
2017-01-01 01:06:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) .@{inputClass} {
|
|
|
|
border-top-right-radius: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-bottom-right-radius: 0;
|
2017-01-01 01:06:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
&-addon:first-child {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2015-07-08 20:12:49 +08:00
|
|
|
&-addon:last-child {
|
|
|
|
border-left: 0;
|
|
|
|
}
|
2015-07-07 16:18:14 +08:00
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
> .@{inputClass}:last-child,
|
2015-07-21 14:54:49 +08:00
|
|
|
&-addon:last-child {
|
2015-06-15 11:43:18 +08:00
|
|
|
border-top-left-radius: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-bottom-left-radius: 0;
|
2016-06-16 21:15:59 +08:00
|
|
|
|
|
|
|
// Reset Select's style in addon
|
2019-10-23 22:17:06 +08:00
|
|
|
.@{ant-prefix}-select .@{ant-prefix}-select-selector {
|
2016-06-16 21:15:59 +08:00
|
|
|
border-top-left-radius: 0;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-bottom-left-radius: 0;
|
2016-06-16 21:15:59 +08:00
|
|
|
}
|
2015-06-15 11:43:18 +08:00
|
|
|
}
|
2015-07-07 16:18:14 +08:00
|
|
|
|
2015-06-15 11:43:18 +08:00
|
|
|
// Sizing options
|
2015-07-09 13:48:24 +08:00
|
|
|
&-lg .@{inputClass},
|
2019-08-06 14:40:17 +08:00
|
|
|
&-lg > &-addon {
|
2015-06-15 11:43:18 +08:00
|
|
|
.input-lg();
|
|
|
|
}
|
|
|
|
|
2015-07-09 13:48:24 +08:00
|
|
|
&-sm .@{inputClass},
|
2019-08-06 14:40:17 +08:00
|
|
|
&-sm > &-addon {
|
2015-06-15 11:43:18 +08:00
|
|
|
.input-sm();
|
|
|
|
}
|
2017-01-01 01:06:19 +08:00
|
|
|
|
2017-04-14 11:43:56 +08:00
|
|
|
// Fix https://github.com/ant-design/ant-design/issues/5754
|
2020-05-26 10:32:35 +08:00
|
|
|
&-lg .@{ant-prefix}-select-single .@{ant-prefix}-select-selector {
|
2017-04-14 11:43:56 +08:00
|
|
|
height: @input-height-lg;
|
|
|
|
}
|
|
|
|
|
2020-05-26 10:32:35 +08:00
|
|
|
&-sm .@{ant-prefix}-select-single .@{ant-prefix}-select-selector {
|
2017-04-14 11:43:56 +08:00
|
|
|
height: @input-height-sm;
|
|
|
|
}
|
|
|
|
|
2017-03-18 21:26:42 +08:00
|
|
|
.@{inputClass}-affix-wrapper {
|
2020-02-10 15:26:32 +08:00
|
|
|
&:not(:first-child) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
2020-10-26 10:56:09 +08:00
|
|
|
.@{ant-prefix}-input-search & {
|
|
|
|
border-top-left-radius: @border-radius-base;
|
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
}
|
2020-02-10 15:26:32 +08:00
|
|
|
}
|
2017-01-01 01:06:19 +08:00
|
|
|
}
|
2017-01-02 00:12:41 +08:00
|
|
|
|
|
|
|
&&-compact {
|
2017-09-22 20:35:30 +08:00
|
|
|
display: block;
|
2017-09-20 16:46:37 +08:00
|
|
|
.clearfix;
|
|
|
|
|
2018-09-30 15:23:47 +08:00
|
|
|
&-addon,
|
|
|
|
&-wrap,
|
2019-08-06 14:40:17 +08:00
|
|
|
> .@{inputClass} {
|
2018-09-30 15:23:47 +08:00
|
|
|
&:not(:first-child):not(:last-child) {
|
2018-12-18 16:53:45 +08:00
|
|
|
border-right-width: @border-width-base;
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2018-09-30 15:23:47 +08:00
|
|
|
&:hover {
|
2018-12-18 16:53:45 +08:00
|
|
|
z-index: 1;
|
2018-09-30 15:23:47 +08:00
|
|
|
}
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2018-09-30 15:23:47 +08:00
|
|
|
&:focus {
|
2018-12-18 16:53:45 +08:00
|
|
|
z-index: 1;
|
2018-09-30 15:23:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
& > * {
|
2020-04-07 11:25:48 +08:00
|
|
|
display: inline-block;
|
2019-02-15 10:48:07 +08:00
|
|
|
float: none;
|
|
|
|
vertical-align: top; // https://github.com/ant-design/ant-design-pro/issues/139
|
|
|
|
border-radius: 0;
|
2017-01-02 00:12:41 +08:00
|
|
|
}
|
|
|
|
|
2020-04-07 11:25:48 +08:00
|
|
|
& > .@{inputClass}-affix-wrapper {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
2020-04-11 20:33:08 +08:00
|
|
|
& > .@{ant-prefix}-picker-range {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
& > *:not(:last-child) {
|
2018-12-18 16:53:45 +08:00
|
|
|
margin-right: -@border-width-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-right-width: @border-width-base;
|
2018-08-24 20:33:02 +08:00
|
|
|
}
|
|
|
|
|
2017-01-02 00:12:41 +08:00
|
|
|
// Undo float for .ant-input-group .ant-input
|
|
|
|
.@{inputClass} {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
2019-11-25 19:08:33 +08:00
|
|
|
// reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
|
2019-10-23 22:17:06 +08:00
|
|
|
& > .@{ant-prefix}-select > .@{ant-prefix}-select-selector,
|
2019-08-06 14:40:17 +08:00
|
|
|
& > .@{ant-prefix}-select-auto-complete .@{ant-prefix}-input,
|
|
|
|
& > .@{ant-prefix}-cascader-picker .@{ant-prefix}-input,
|
2019-11-25 19:08:33 +08:00
|
|
|
& > .@{ant-prefix}-input-group-wrapper .@{ant-prefix}-input {
|
2018-12-10 10:42:23 +08:00
|
|
|
border-right-width: @border-width-base;
|
2019-02-15 10:48:07 +08:00
|
|
|
border-radius: 0;
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2018-09-30 15:23:47 +08:00
|
|
|
&:hover {
|
2018-12-18 16:53:45 +08:00
|
|
|
z-index: 1;
|
2018-09-30 15:23:47 +08:00
|
|
|
}
|
2019-08-02 18:21:24 +08:00
|
|
|
|
2018-09-30 15:23:47 +08:00
|
|
|
&:focus {
|
2018-12-18 16:53:45 +08:00
|
|
|
z-index: 1;
|
2018-09-30 15:23:47 +08:00
|
|
|
}
|
2017-01-02 00:12:41 +08:00
|
|
|
}
|
|
|
|
|
2020-05-09 14:41:00 +08:00
|
|
|
& > .@{ant-prefix}-select-focused {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2019-12-28 16:13:33 +08:00
|
|
|
// update z-index for arrow icon
|
|
|
|
& > .@{ant-prefix}-select > .@{ant-prefix}-select-arrow {
|
|
|
|
z-index: 1; // https://github.com/ant-design/ant-design/issues/20371
|
|
|
|
}
|
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
& > *:first-child,
|
2019-10-23 22:17:06 +08:00
|
|
|
& > .@{ant-prefix}-select:first-child > .@{ant-prefix}-select-selector,
|
2019-08-06 14:40:17 +08:00
|
|
|
& > .@{ant-prefix}-select-auto-complete:first-child .@{ant-prefix}-input,
|
2020-10-14 16:35:29 +08:00
|
|
|
& > .@{ant-prefix}-cascader-picker:first-child .@{ant-prefix}-input {
|
2017-01-02 00:12:41 +08:00
|
|
|
border-top-left-radius: @border-radius-base;
|
|
|
|
border-bottom-left-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
|
2019-08-06 14:40:17 +08:00
|
|
|
& > *:last-child,
|
2019-10-23 22:17:06 +08:00
|
|
|
& > .@{ant-prefix}-select:last-child > .@{ant-prefix}-select-selector,
|
2019-08-06 14:40:17 +08:00
|
|
|
& > .@{ant-prefix}-cascader-picker:last-child .@{ant-prefix}-input,
|
2020-10-14 16:35:29 +08:00
|
|
|
& > .@{ant-prefix}-cascader-picker-focused:last-child .@{ant-prefix}-input {
|
2019-02-15 10:48:07 +08:00
|
|
|
border-right-width: @border-width-base;
|
2017-01-02 00:12:41 +08:00
|
|
|
border-top-right-radius: @border-radius-base;
|
|
|
|
border-bottom-right-radius: @border-radius-base;
|
|
|
|
}
|
2018-10-09 11:52:58 +08:00
|
|
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/12493
|
2019-08-06 14:40:17 +08:00
|
|
|
& > .@{ant-prefix}-select-auto-complete .@{ant-prefix}-input {
|
2018-10-09 11:52:58 +08:00
|
|
|
vertical-align: top;
|
|
|
|
}
|
2020-10-26 10:56:09 +08:00
|
|
|
|
|
|
|
.@{ant-prefix}-input-group-wrapper + .@{ant-prefix}-input-group-wrapper {
|
|
|
|
margin-left: -1px;
|
|
|
|
.@{ant-prefix}-input-affix-wrapper {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{ant-prefix}-input-group-wrapper:not(:last-child) {
|
|
|
|
&.@{ant-prefix}-input-search > .@{ant-prefix}-input-group {
|
|
|
|
& > .@{ant-prefix}-input-group-addon > .@{ant-prefix}-input-search-button {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > .@{ant-prefix}-input {
|
|
|
|
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-01-02 00:12:41 +08:00
|
|
|
}
|
2017-01-01 01:06:19 +08:00
|
|
|
}
|