mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 08:03:19 +00:00
Extends the 4px-grid spacing scale with --space-0-5 (2px), --space-1 (4px) and --space-1-5 (6px) and replaces the literal 2/4/6/8/12/16px gap, row-gap and column-gap values with the tokens; computed values are unchanged. src/styles/spacingScale.test.ts flags an on-scale literal gap. Co-authored-by: Mr0Bread <55754540+Mr0Bread@users.noreply.github.com>
217 lines
3.9 KiB
CSS
217 lines
3.9 KiB
CSS
/* Editor gutter ▶ per request (same look as run configuration targets). */
|
|
.runGutter :global(.cm-gutterElement) {
|
|
display: flex;
|
|
align-items: center;
|
|
/* Spare width stays left of the icons, which sit next to the code. */
|
|
justify-content: flex-end;
|
|
}
|
|
.runMarker {
|
|
width: 14px;
|
|
height: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-small);
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Toolbar panel above `.http` files. */
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
height: var(--h-header);
|
|
padding: 0 8px;
|
|
background: var(--bg-editor);
|
|
border-bottom: 1px solid var(--border);
|
|
font-family: var(--font-ui);
|
|
font-size: var(--fs-ui);
|
|
color: var(--fg-secondary);
|
|
}
|
|
.toolbarLabel {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* Tool window. */
|
|
.root {
|
|
height: 100%;
|
|
}
|
|
.list {
|
|
height: 100%;
|
|
overflow: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.entry {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
height: var(--h-list-row);
|
|
padding: 0 8px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--fg);
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: default;
|
|
flex: none;
|
|
}
|
|
.entry:hover {
|
|
background: var(--bg-tree-hover);
|
|
}
|
|
.entrySelected,
|
|
.entrySelected:hover {
|
|
background: var(--bg-tree-selected);
|
|
}
|
|
.runningRow {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
height: var(--h-list-row);
|
|
padding: 0 8px;
|
|
color: var(--fg-secondary);
|
|
}
|
|
.status {
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
flex: none;
|
|
}
|
|
.statusOk {
|
|
color: var(--success);
|
|
}
|
|
.statusRedirect {
|
|
color: var(--warning);
|
|
}
|
|
.statusError {
|
|
color: var(--danger);
|
|
}
|
|
.method {
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
color: var(--syn-keyword);
|
|
flex: none;
|
|
}
|
|
.url {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.when {
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
flex: none;
|
|
}
|
|
.exchange {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
.statusLine {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-3);
|
|
height: var(--h-header);
|
|
padding: 0 8px;
|
|
flex: none;
|
|
}
|
|
.meta {
|
|
color: var(--fg-secondary);
|
|
font-size: var(--fs-small);
|
|
}
|
|
.requestLine {
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--fg-muted);
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
text-align: right;
|
|
}
|
|
.tabBody {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
outline: none;
|
|
}
|
|
.tabBody:focus-visible {
|
|
outline: 2px solid var(--focus-ring);
|
|
outline-offset: -2px;
|
|
}
|
|
.pre {
|
|
margin: 0;
|
|
padding: 8px;
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-code);
|
|
line-height: var(--lh-code);
|
|
color: var(--fg-editor);
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
}
|
|
.truncated {
|
|
color: var(--fg-muted);
|
|
}
|
|
.headers {
|
|
border-collapse: collapse;
|
|
margin: 4px 8px;
|
|
font-family: var(--font-mono);
|
|
font-size: var(--fs-small);
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
}
|
|
.headers th {
|
|
text-align: left;
|
|
font-weight: normal;
|
|
color: var(--syn-property);
|
|
padding: 2px 16px 2px 0;
|
|
vertical-align: top;
|
|
white-space: nowrap;
|
|
}
|
|
.headers td {
|
|
padding: 2px 0;
|
|
color: var(--fg);
|
|
word-break: break-all;
|
|
}
|
|
.center {
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* The request being sent, in place of a response. */
|
|
.pending {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 12px;
|
|
}
|
|
.pendingLine {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
color: var(--fg-secondary);
|
|
}
|
|
.pendingRequest {
|
|
font-family: var(--font-mono);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.pendingMethod {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.match {
|
|
border-radius: 2px;
|
|
color: var(--fg-search-match);
|
|
background: var(--bg-search-match);
|
|
}
|
|
.matchCurrent {
|
|
background: var(--bg-search-match-current);
|
|
}
|