mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
264b3514d8
* fix: TextArea height bug when has `showCount` close #33049 * fix snapshot * revert form demo
73 lines
1.8 KiB
Plaintext
73 lines
1.8 KiB
Plaintext
@import (reference) '../../style/themes/index';
|
|
|
|
@form-prefix-cls: ~'@{ant-prefix}-form';
|
|
@form-item-prefix-cls: ~'@{form-prefix-cls}-item';
|
|
|
|
// ================================================================
|
|
// = Children Component =
|
|
// ================================================================
|
|
.@{form-item-prefix-cls} {
|
|
// input[type=file]
|
|
.@{ant-prefix}-upload {
|
|
background: transparent;
|
|
}
|
|
.@{ant-prefix}-upload.@{ant-prefix}-upload-drag {
|
|
background: @background-color-light;
|
|
}
|
|
|
|
input[type='radio'],
|
|
input[type='checkbox'] {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
// Radios and checkboxes on same line
|
|
.@{ant-prefix}-radio-inline,
|
|
.@{ant-prefix}-checkbox-inline {
|
|
display: inline-block;
|
|
margin-left: 8px;
|
|
font-weight: normal;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.@{ant-prefix}-checkbox-vertical,
|
|
.@{ant-prefix}-radio-vertical {
|
|
display: block;
|
|
}
|
|
|
|
.@{ant-prefix}-checkbox-vertical + .@{ant-prefix}-checkbox-vertical,
|
|
.@{ant-prefix}-radio-vertical + .@{ant-prefix}-radio-vertical {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.@{ant-prefix}-input-number {
|
|
+ .@{form-prefix-cls}-text {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
&-handler-wrap {
|
|
z-index: 2; // https://github.com/ant-design/ant-design/issues/6289
|
|
}
|
|
}
|
|
|
|
.@{ant-prefix}-select,
|
|
.@{ant-prefix}-cascader-picker {
|
|
width: 100%;
|
|
}
|
|
|
|
// Don't impact select inside input group and calendar header select
|
|
.@{ant-prefix}-picker-calendar-year-select,
|
|
.@{ant-prefix}-picker-calendar-month-select,
|
|
.@{ant-prefix}-input-group .@{ant-prefix}-select,
|
|
.@{ant-prefix}-input-group .@{ant-prefix}-cascader-picker,
|
|
.@{ant-prefix}-input-number-group .@{ant-prefix}-select,
|
|
.@{ant-prefix}-input-number-group .@{ant-prefix}-cascader-picker {
|
|
width: auto;
|
|
}
|
|
}
|