mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-05 20:44:07 +08:00
223 lines
4.0 KiB
SCSS
223 lines
4.0 KiB
SCSS
@use "../../styles/typography" as type;
|
|
|
|
.page {
|
|
display: grid;
|
|
gap: 16px;
|
|
}
|
|
|
|
.gateActions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.gate {
|
|
min-height: 250px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 9px;
|
|
color: var(--vscode-descriptionForeground);
|
|
text-align: center;
|
|
border: 1px dashed var(--vscode-sideBar-border);
|
|
border-radius: var(--oa-overlay-radius);
|
|
strong {
|
|
color: var(--vscode-foreground);
|
|
font-size: type.$font-size-base;
|
|
}
|
|
span {
|
|
max-width: 440px;
|
|
font-size: type.$font-size-xs;
|
|
}
|
|
button {
|
|
margin-top: 6px;
|
|
}
|
|
}
|
|
|
|
.modelGrid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.modelCard {
|
|
position: relative;
|
|
padding: 16px;
|
|
}
|
|
.modelCardContent {
|
|
height: 150px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
.modelCardTop {
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
.modelCardName {
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
|
|
strong,
|
|
span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
strong {
|
|
color: var(--vscode-foreground);
|
|
font-size: type.$font-size-base;
|
|
}
|
|
span {
|
|
color: var(--vscode-descriptionForeground);
|
|
font-size: type.$font-size-xs;
|
|
}
|
|
}
|
|
.modelTypeBadge {
|
|
flex: 0 0 auto;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 7px;
|
|
color: var(--vscode-foreground);
|
|
border: 1px solid var(--vscode-sideBar-border);
|
|
border-radius: 999px;
|
|
font-size: type.$font-size-2xs;
|
|
}
|
|
.modelCardTest {
|
|
min-height: 31px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.modelCardActions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
.deleteButton:hover {
|
|
color: var(--vscode-errorForeground, #f48771);
|
|
}
|
|
.sortHandle {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
z-index: 1;
|
|
width: 30px;
|
|
height: 30px;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 0;
|
|
color: transparent;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
opacity: 0;
|
|
cursor: grab;
|
|
touch-action: none;
|
|
transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease, background-color 160ms ease;
|
|
|
|
&:focus-visible,
|
|
.modelCard:hover & {
|
|
color: var(--vscode-foreground);
|
|
background: var(--vscode-list-hoverBackground);
|
|
border-color: var(--vscode-sideBar-border);
|
|
opacity: 1;
|
|
}
|
|
&:active {
|
|
cursor: grabbing;
|
|
}
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
.sortGhost {
|
|
opacity: 0.4;
|
|
}
|
|
.sortChosen {
|
|
border-color: var(--vscode-focusBorder);
|
|
}
|
|
.sortDragging {
|
|
cursor: grabbing;
|
|
}
|
|
.editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
.command {
|
|
margin: 0;
|
|
padding: 10px;
|
|
overflow: auto;
|
|
color: var(--vscode-textLink-foreground);
|
|
background: var(--vscode-textCodeBlock-background);
|
|
border-radius: 4px;
|
|
white-space: pre-wrap;
|
|
user-select: text;
|
|
}
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.fullWidth {
|
|
width: 100%;
|
|
grid-column: 1 / -1;
|
|
}
|
|
.discoverButton {
|
|
min-height: 34px;
|
|
height: 34px;
|
|
flex: 0 0 auto;
|
|
}
|
|
.urlField {
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
}
|
|
.switches {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 9px;
|
|
label {
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
color: var(--vscode-descriptionForeground);
|
|
font-size: type.$font-size-xs;
|
|
}
|
|
}
|
|
|
|
.jsonOption {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
|
|
> label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
color: var(--vscode-descriptionForeground);
|
|
font-size: type.$font-size-xs;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.fullWidth {
|
|
grid-column: auto;
|
|
}
|
|
}
|