Files
cursor-byok/apps/desktop/src/components/ui/JsonEditor.module.scss
T

58 lines
1.1 KiB
SCSS

@use "../../styles/typography" as type;
.root {
--json-editor-font-size: #{type.$font-size-2xs};
width: 100%;
height: 150px;
min-width: 0;
position: relative;
overflow: hidden;
background: var(--vscode-input-background);
border: 1px solid var(--vscode-input-border, transparent);
border-radius: 5px;
&:focus-within {
border-color: var(--vscode-focusBorder);
}
}
.detail {
height: 320px;
}
.toolbar {
position: absolute;
z-index: 5;
top: 5px;
right: 12px;
display: flex;
align-items: center;
justify-content: center;
color: var(--vscode-descriptionForeground);
background: var(--vscode-editorWidget-background);
border: 1px solid var(--vscode-editorWidget-border, var(--vscode-input-border));
border-radius: 5px;
box-shadow: 0 2px 6px color-mix(in srgb, #000 22%, transparent);
}
.formatButton {
padding: 2px 4px;
color: inherit;
background: transparent;
border: 0;
border-radius: 4px;
font-size: type.$font-size-xs;
&:hover {
color: var(--vscode-foreground);
background: var(--vscode-list-hoverBackground);
}
}
.host {
width: 100%;
height: 100%;
min-height: 0;
}