mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-05 12:13:05 +08:00
195 lines
3.6 KiB
SCSS
195 lines
3.6 KiB
SCSS
@use "../../styles/typography" as type;
|
|
|
|
.trigger,
|
|
.combo input {
|
|
width: 100%;
|
|
height: 34px;
|
|
color: var(--vscode-input-foreground);
|
|
background: var(--vscode-input-background);
|
|
border: 1px solid var(--vscode-input-border, transparent);
|
|
border-radius: 5px;
|
|
outline: none;
|
|
font-size: type.$font-size-xs;
|
|
&:focus {
|
|
border-color: var(--vscode-focusBorder);
|
|
}
|
|
}
|
|
|
|
.trigger {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 0 10px;
|
|
}
|
|
.optionContent {
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-align: left;
|
|
|
|
> :last-child {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
.dropdownIcon {
|
|
transition: transform 160ms ease;
|
|
}
|
|
.dropdownIconOpen {
|
|
transform: rotate(180deg);
|
|
}
|
|
.comboRow {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
.combo {
|
|
min-width: 0;
|
|
flex: 1;
|
|
height: 34px;
|
|
display: flex;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
border: 1px solid var(--vscode-input-border, transparent);
|
|
border-radius: 6px;
|
|
background: var(--vscode-input-background);
|
|
&:focus-within {
|
|
border-color: var(--vscode-focusBorder);
|
|
}
|
|
}
|
|
|
|
.multiCombo {
|
|
min-width: 0;
|
|
min-height: 34px;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: stretch;
|
|
overflow: hidden;
|
|
background: var(--vscode-input-background);
|
|
border: 1px solid var(--vscode-input-border, transparent);
|
|
border-radius: 6px;
|
|
|
|
&:focus-within,
|
|
&[data-open] {
|
|
border-color: var(--vscode-focusBorder);
|
|
}
|
|
}
|
|
|
|
.multiValues {
|
|
min-width: 0;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 6px;
|
|
|
|
> input {
|
|
min-width: 120px;
|
|
min-height: 24px;
|
|
flex: 1;
|
|
padding: 0 3px;
|
|
color: var(--vscode-input-foreground);
|
|
background: transparent;
|
|
border: 0;
|
|
outline: 0;
|
|
font-size: type.$font-size-xs;
|
|
}
|
|
}
|
|
|
|
.multiCount {
|
|
height: 24px;
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 0 3px;
|
|
color: var(--vscode-descriptionForeground);
|
|
font-size: type.$font-size-xs;
|
|
white-space: nowrap;
|
|
}
|
|
.combo input {
|
|
min-width: 0;
|
|
flex: 1;
|
|
padding: 0 10px;
|
|
border: 0;
|
|
background: transparent;
|
|
}
|
|
.comboToggle {
|
|
width: 34px;
|
|
height: 34px;
|
|
flex: 0 0 34px;
|
|
align-self: center;
|
|
padding: 0;
|
|
color: var(--vscode-descriptionForeground);
|
|
background: transparent;
|
|
border: 0;
|
|
appearance: none;
|
|
font-size: type.$font-size-base;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
&:hover {
|
|
color: var(--vscode-foreground);
|
|
}
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.menu {
|
|
position: fixed;
|
|
z-index: 14000;
|
|
overflow: hidden;
|
|
padding: 4px;
|
|
background: var(--vscode-dropdown-background);
|
|
border: 1px solid var(--vscode-dropdown-border);
|
|
border-radius: 6px;
|
|
box-shadow: var(--oa-dropdown-shadow);
|
|
|
|
button {
|
|
width: 100%;
|
|
min-height: 30px;
|
|
display: block;
|
|
padding: 5px 8px;
|
|
color: var(--vscode-dropdown-foreground);
|
|
text-align: left;
|
|
background: transparent;
|
|
border: 0;
|
|
border-radius: 4px;
|
|
font-size: type.$font-size-xs;
|
|
&:hover,
|
|
&[data-active],
|
|
&[aria-selected="true"] {
|
|
background: var(--vscode-list-activeSelectionBackground);
|
|
color: var(--vscode-list-activeSelectionForeground);
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu .multiOption {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
|
|
> span {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.empty {
|
|
padding: 8px;
|
|
color: var(--vscode-descriptionForeground);
|
|
font-size: type.$font-size-xs;
|
|
}
|