дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
The frame's project colour gradient was pinned to the top-left corner, so it stayed there when the Project widget was moved to the Center or Right toolbar group. The title bar now measures the widget's icon whenever the bar or its entries change size and writes its centre to the frame as --project-gradient-x. Without the widget the gradient keeps the corner.
159 рядки
3.7 KiB
CSS
159 рядки
3.7 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 Project widget's icon (IDEA project gradient),
|
||
or from the top-left corner while the toolbar has no Project widget (`projectGradient.ts`). */
|
||
.framed {
|
||
background:
|
||
radial-gradient(
|
||
600px 300px at var(--project-gradient-x, 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);
|
||
}
|