ant-design-blazor/components/input/style/allow-clear.less

43 lines
842 B
Plaintext
Raw Normal View History

@import './index';
2020-10-25 23:07:27 +08:00
// ========================= Input =========================
.@{ant-prefix}-input-clear-icon {
margin: 0 @input-affix-margin;
color: @disabled-color;
font-size: @font-size-sm;
2020-10-25 23:07:27 +08:00
vertical-align: -1px;
// https://github.com/ant-design/ant-design/pull/18151
// https://codesandbox.io/s/wizardly-sun-u10br
cursor: pointer;
transition: color 0.3s;
&:hover {
color: @text-color-secondary;
}
&:active {
color: @text-color;
}
2020-04-20 10:04:24 +08:00
&-hidden {
visibility: hidden;
}
&:last-child {
margin-right: 0;
}
}
// ======================= TextArea ========================
.@{ant-prefix}-input-affix-wrapper-textarea-with-clear-btn {
2020-03-30 09:53:10 +08:00
padding: 0 !important;
border: 0 !important;
2020-10-25 23:07:27 +08:00
.@{ant-prefix}-input-clear-icon {
position: absolute;
top: 8px;
right: 8px;
z-index: 1;
}
}