mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
4cdf37bedb
* init form * first demo * add normal login * add style * webit * support nest errors * beauti form errors * use onReset * modal demo * add list demo * match key of errors logic * date demo * customize component * moving style * add status style * without form create * add demos * add inline style * clean up legacy * fix drawer demo * mention * fix edit-row * editable table cell * update mentions demo * fix some test case * fix upload test * fix lint * part of doc * fix ts * doc update * rm react 15 * rm config * enhance test coverage * clean up * fix FormItem context pass logic * add more demo * en to build * update demo * update demo & snapshot * more doc * update list doc * update doc * update demo to display condition render * update snapshot * add provider doc * support configProvider * more doc about validateMessages * more description * more and more doc * fix typo * en doc * Form.List doc * m v3 -> v4 * add skip
77 lines
1.8 KiB
Plaintext
77 lines
1.8 KiB
Plaintext
@import './index';
|
|
|
|
// ================================================================
|
|
// = Children Component =
|
|
// ================================================================
|
|
.@{form-item-prefix-cls} {
|
|
.@{ant-prefix}-mentions,
|
|
textarea.@{ant-prefix}-input {
|
|
height: auto;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
// input[type=file]
|
|
.@{ant-prefix}-upload {
|
|
background: transparent;
|
|
}
|
|
|
|
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
|
|
.@{ant-prefix}-input-group .@{ant-prefix}-select,
|
|
.@{ant-prefix}-input-group .@{ant-prefix}-cascader-picker {
|
|
width: auto;
|
|
}
|
|
|
|
// fix input with addon position. https://github.com/ant-design/ant-design/issues/8243
|
|
:not(.@{ant-prefix}-input-group-wrapper) > .@{ant-prefix}-input-group,
|
|
.@{ant-prefix}-input-group-wrapper {
|
|
position: relative;
|
|
top: -1px;
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
}
|