mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
c3e51506cc
* feat: add Space.Compact * feat: update input style * feat: add CompactItem for context memoize * feat: add demo * feat: update button style * feat: update input style * feat: 提取 getCompactClassNames 公用方法 * feat: update button style * feat: update picker * feat: add block prop for Space.Compact * feat: use Space.Compact for Input#addonBefore/After * feat: update addon * refactor: compact * feat: update * feat: update * feat: migrate styles to compact for new Input/Input.Search * feat: organize input demo * feat: add more button compact demo * feat: resolve select border collapse * feat: fix input addon select style * feat: add input addon demo in Space * feat: add useCompactItemContext hook * feat: update compact-item style * feat: rollback input#addon implements * feat: rollback input#addon and input.search style * feat: select border collapse * feat: add Space.Compact demo * feat: Space.Compact vertical for Button * refactor: useCompactItemContext * feat: update Button vertical demo * feat: rtl for compact mixin * feat: rtl for compact button * feat: input rtl * feat: add docs for Space.Compact * test: add some tests for Space.Compact * test: add tests * feat: select style * feat: handle select focus style * feat: add useCompactItemContext for Picker and Cascader * style: add compact-item style for cascader * feat: support nested Space.Compact * style: Input.Search in Space.Compact * chore: clean * feat: add useCompactItemContext for TreeSelect * fix: lint issues * fix: style lint * docs: update demos for Space.Compact * docs: update demo * fix: add deps-lint-skip for space * fix: add deps-lint-skip for space * fix: handle edge case for useCompactItemContext * test: add search test case * chore: + bundlesize * style: merge button compact style into one file * style: improve style for nested compact * fix: stylelint * docs: update Space.Compact docs * test: update demo snapshot * test: update input debug test snapshot * docs: update doccs for Space.Compact * test: improve test cases for Compact * docs: clean demos for Compact * refactor: improve Space.Compact * fix: add useCompactItemContext for Input.Search * style: improve compact border-radius implementation * refactor: use context to make nested compact works * fix: input-number focused style * refactor: remove useless style * refactor: improve style for vertical compact * test: update snapshot * test: update snapshot for input * refactor: improve compact-item-border-radius * fix: search group in RTL * style: improve style for button compact * style: use after * fix: stylelint * chore: update snapshot * style: improve button compact * refactor: improve btn-icon-only style in compact
109 lines
2.4 KiB
Plaintext
109 lines
2.4 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
@import '../../input/style/mixin';
|
|
@import '../../checkbox/style/mixin';
|
|
|
|
@cascader-prefix-cls: ~'@{ant-prefix}-cascader';
|
|
|
|
.antCheckboxFn(@checkbox-prefix-cls: ~'@{cascader-prefix-cls}-checkbox');
|
|
|
|
.@{cascader-prefix-cls} {
|
|
width: 184px;
|
|
|
|
&-checkbox {
|
|
top: 0;
|
|
margin-right: @padding-xs;
|
|
}
|
|
|
|
&-menus {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: flex-start;
|
|
|
|
&.@{cascader-prefix-cls}-menu-empty {
|
|
.@{cascader-prefix-cls}-menu {
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
&-menu {
|
|
flex-grow: 1;
|
|
min-width: 111px;
|
|
height: 180px;
|
|
margin: 0;
|
|
margin: -@dropdown-edge-child-vertical-padding 0;
|
|
padding: @cascader-dropdown-edge-child-vertical-padding 0;
|
|
overflow: auto;
|
|
vertical-align: top;
|
|
list-style: none;
|
|
border-right: @border-width-base @border-style-base @cascader-menu-border-color-split;
|
|
-ms-overflow-style: -ms-autohiding-scrollbar; // https://github.com/ant-design/ant-design/issues/11857
|
|
|
|
&-item {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
padding: @cascader-dropdown-vertical-padding @control-padding-horizontal;
|
|
overflow: hidden;
|
|
line-height: @cascader-dropdown-line-height;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
|
|
&:hover {
|
|
background: @item-hover-bg;
|
|
}
|
|
|
|
&-disabled {
|
|
color: @disabled-color;
|
|
cursor: not-allowed;
|
|
|
|
&:hover {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
.@{cascader-prefix-cls}-menu-empty & {
|
|
color: @disabled-color;
|
|
cursor: default;
|
|
pointer-events: none;
|
|
}
|
|
|
|
&-active:not(&-disabled) {
|
|
&,
|
|
&:hover {
|
|
font-weight: @select-item-selected-font-weight;
|
|
background-color: @cascader-item-selected-bg;
|
|
}
|
|
}
|
|
|
|
&-content {
|
|
flex: auto;
|
|
}
|
|
|
|
&-expand &-expand-icon,
|
|
&-loading-icon {
|
|
margin-left: @padding-xss;
|
|
color: @text-color-secondary;
|
|
font-size: 10px;
|
|
|
|
.@{cascader-prefix-cls}-menu-item-disabled& {
|
|
color: @disabled-color;
|
|
}
|
|
}
|
|
|
|
&-keyword {
|
|
color: @highlight-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
// ===================== Compact Item Styles =====================
|
|
.compact-item(@cascader-prefix-cls);
|
|
}
|
|
|
|
@import './rtl';
|