mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-11 03:26:10 +08:00
200 lines
4.4 KiB
SCSS
200 lines
4.4 KiB
SCSS
@use "../styles/typography" as type;
|
|
|
|
.root {
|
|
--app-region-gap: 16px;
|
|
--app-toolbar-height: 36px;
|
|
--app-page-max-width: 1280px;
|
|
--app-page-padding: 18px;
|
|
--app-content-left: calc(var(--app-edge) + var(--app-menu-width) );
|
|
--app-content-top: calc(var(--window-safe-top) + var(--app-toolbar-height) + 10px );
|
|
background: var(--vscode-editor-background);
|
|
}
|
|
|
|
.menuCard {
|
|
position: fixed;
|
|
z-index: 10;
|
|
top: calc(var(--window-menu-top));
|
|
bottom: var(--app-edge);
|
|
left: var(--app-edge);
|
|
width: var(--app-menu-width);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.navigation {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 6px;
|
|
-webkit-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.navigationList {
|
|
--scroll-shadow-bottom-size: 28px;
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.navigationGroup {
|
|
display: flex;
|
|
align-items: center;
|
|
color: color-mix(in srgb, var(--vscode-descriptionForeground) 65%, transparent);
|
|
font-size: type.$font-size-xs;
|
|
font-weight: normal;
|
|
padding: 5px 9px 2px;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.navigationRow {
|
|
flex: 0 0 36px;
|
|
display: flex;
|
|
align-items: stretch;
|
|
|
|
a,
|
|
button {
|
|
width: 100%;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 0 11px;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
|
|
&:hover {
|
|
background: var(--vscode-list-hoverBackground);
|
|
}
|
|
|
|
&[aria-current="page"] {
|
|
color: var(--vscode-list-activeSelectionForeground);
|
|
background: var(--vscode-list-activeSelectionBackground);
|
|
}
|
|
}
|
|
|
|
button {
|
|
font: inherit;
|
|
text-align: left;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
.menuStatusTag {
|
|
flex: 0 0 auto;
|
|
margin-left: auto;
|
|
padding: 1px 5px;
|
|
color: var(--vscode-descriptionForeground);
|
|
background: color-mix(in srgb, var(--vscode-descriptionForeground) 10%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--vscode-descriptionForeground) 28%, transparent);
|
|
border-radius: 999px;
|
|
font-size: type.$font-size-2xs;
|
|
line-height: 1.4;
|
|
|
|
&[data-taken] {
|
|
color: var(--vscode-testing-iconPassed, #73c991);
|
|
background: color-mix(in srgb, var(--vscode-testing-iconPassed, #73c991) 10%, transparent);
|
|
border-color: color-mix(in srgb, var(--vscode-testing-iconPassed, #73c991) 28%, transparent);
|
|
}
|
|
}
|
|
|
|
.menuIndicatorDot {
|
|
width: 7px;
|
|
height: 7px;
|
|
flex: 0 0 7px;
|
|
margin-left: auto;
|
|
background: #ef4444;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.dismissReason {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin-top: 14px;
|
|
font-size: type.$font-size-base;
|
|
|
|
textarea {
|
|
min-height: 78px;
|
|
padding: 8px 10px;
|
|
resize: vertical;
|
|
color: var(--vscode-input-foreground);
|
|
background: var(--vscode-input-background);
|
|
border: 1px solid var(--vscode-input-border, var(--vscode-sideBar-border));
|
|
border-radius: 6px;
|
|
outline: none;
|
|
|
|
&:focus {
|
|
border-color: var(--vscode-focusBorder);
|
|
}
|
|
|
|
&:disabled {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content {
|
|
width: calc(100% - var(--app-content-left));
|
|
height: 100%;
|
|
position: relative;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
margin-left: var(--app-content-left);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.keepAliveContainer,
|
|
.keepAlivePage {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.actionRegion {
|
|
position: absolute;
|
|
z-index: 12500;
|
|
top: var(--window-safe-top);
|
|
right: max(var(--app-page-padding), calc((100% - var(--app-page-max-width)) / 2));
|
|
height: calc(var(--app-content-top) - var(--window-safe-top));
|
|
display: flex;
|
|
align-items: center;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-drag: none;
|
|
// Page actions (e.g. the overview time-range bar and the floating refresh
|
|
// button) must not act as a window drag handle; the dedicated drag layer in
|
|
// AppHeader owns window dragging. Otherwise these controls get dragged and
|
|
// double-click maximizes the window.
|
|
-webkit-app-region: no-drag;
|
|
}
|
|
|
|
.actions {
|
|
height: var(--app-toolbar-height);
|
|
min-width: var(--app-toolbar-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 6px 6px;
|
|
gap: 3px;
|
|
box-shadow: 0 0px 6px 4px var(--vscode-editor-background);
|
|
transform: translateX(6px);
|
|
}
|
|
|
|
.pageActions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
}
|