дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-28 21:42:27 +02: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 <[email protected]>
158 рядки
3.6 KiB
CSS
158 рядки
3.6 KiB
CSS
.workbench {
|
||
position: relative;
|
||
height: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
background: var(--bg-app);
|
||
color: var(--fg);
|
||
}
|
||
|
||
.content {
|
||
display: contents;
|
||
}
|
||
.content[inert] {
|
||
visibility: hidden;
|
||
}
|
||
/* IDEA's navigation bar under the main toolbar: project › dirs › file › symbols.
|
||
Same surface as the toolbar above it (the editor island below provides the split). */
|
||
.navigationBar {
|
||
flex: none;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-0-5);
|
||
height: var(--h-navigationbar);
|
||
padding: 0 10px;
|
||
overflow: hidden;
|
||
color: var(--fg);
|
||
font-size: var(--fs-ui);
|
||
}
|
||
.opening {
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: var(--z-panel);
|
||
display: flex;
|
||
flex-direction: column;
|
||
background: var(--bg-frame);
|
||
}
|
||
.openingBody {
|
||
flex: 1;
|
||
min-height: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: var(--splash-gap);
|
||
padding: var(--space-4) var(--space-4) var(--splash-offset);
|
||
color: var(--fg-muted);
|
||
text-align: center;
|
||
animation: opening-in var(--dur-slow) ease-out both;
|
||
}
|
||
.openingBrand {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: var(--splash-gap);
|
||
font-size: var(--fs-input-large);
|
||
font-weight: 500;
|
||
line-height: 1.21;
|
||
}
|
||
.openingLogo {
|
||
width: var(--splash-logo-size);
|
||
height: var(--splash-logo-size);
|
||
}
|
||
.openingProgress {
|
||
width: var(--splash-bar-width);
|
||
height: var(--splash-bar-height);
|
||
flex-shrink: 0;
|
||
border-radius: calc(var(--splash-bar-height) / 2);
|
||
background: color-mix(in srgb, var(--fg-muted) 24%, transparent);
|
||
}
|
||
.opening .openingProgress > div {
|
||
left: 0;
|
||
width: 100%;
|
||
opacity: 1;
|
||
background: var(--accent);
|
||
transform-origin: left;
|
||
animation: opening-progress var(--splash-progress-duration) var(--splash-progress-easing) both;
|
||
}
|
||
.openingTitle {
|
||
max-width: 100%;
|
||
overflow-wrap: anywhere;
|
||
font-size: var(--fs-small);
|
||
}
|
||
.openingPath {
|
||
max-width: 100%;
|
||
overflow-wrap: anywhere;
|
||
font-size: var(--fs-tiny);
|
||
}
|
||
@keyframes opening-in {
|
||
from {
|
||
opacity: 0;
|
||
}
|
||
}
|
||
@keyframes opening-progress {
|
||
from {
|
||
transform: scaleX(0.04);
|
||
}
|
||
to {
|
||
transform: scaleX(0.92);
|
||
}
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.openingBody {
|
||
animation: none;
|
||
}
|
||
}
|
||
/* Islands frame; the project colour washes in from the top-left corner (IDEA project gradient). */
|
||
.framed {
|
||
background:
|
||
radial-gradient(
|
||
600px 300px at 0 0,
|
||
color-mix(in srgb, var(--project-color) var(--project-gradient-strength, 22%), transparent),
|
||
transparent
|
||
),
|
||
var(--bg-frame);
|
||
}
|
||
|
||
/* Settings › Appearance › Background Image (variables from the settings runtime). */
|
||
.framed::after {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: var(--z-background-image);
|
||
pointer-events: none;
|
||
background-image: var(--background-image, none);
|
||
background-size: var(--background-image-size, cover);
|
||
background-repeat: var(--background-image-repeat, no-repeat);
|
||
background-position: var(--background-image-position, center);
|
||
opacity: var(--background-image-opacity, 0);
|
||
}
|
||
|
||
/* LightEdit: the editor as the only island, inset like the project frame's. */
|
||
.lightEditFrame {
|
||
background: var(--bg-frame);
|
||
}
|
||
.lightEdit {
|
||
flex: 1;
|
||
display: flex;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
padding: 0 var(--island-gap);
|
||
}
|
||
.lightEditIsland {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
background: var(--bg-island);
|
||
border-radius: var(--island-radius);
|
||
}
|
||
|
||
/* Settings › Appearance › "Use project colors in main toolbar" off. */
|
||
:global(:root[data-project-colors="off"]) .framed {
|
||
background: var(--bg-frame);
|
||
}
|