iter(g110): 下拉选择支持清空
This commit is contained in:
@@ -3751,3 +3751,36 @@ button.ua-step-dot:hover {
|
||||
.ua-form-summary[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* —— 下拉清空按钮 —— */
|
||||
.ua-select-clear {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 24px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
background: none;
|
||||
color: var(--ua-color-text-muted);
|
||||
font-size: var(--ua-font-size-md);
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
transform: translateY(-50%);
|
||||
transition: color 0.15s, background-color 0.15s;
|
||||
}
|
||||
.ua-select-clear:hover {
|
||||
color: var(--ua-color-text);
|
||||
background: color-mix(in srgb, var(--ua-color-accent) 12%, transparent);
|
||||
}
|
||||
.ua-select-clear:focus-visible {
|
||||
outline: 2px solid var(--ua-color-accent);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
.ua-select-clear[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user