Files
openidea/src/workbench/Workbench.module.css
T
Muuandmuutot 632b21ac46 feat(workbench): add the Navigation Bar with a top / status bar / hidden position choice (#2317)
Adds the Navigation Bar — project › directories › file › symbol for the active editor, each segment opening a popup of its children — and a choice of where it lives: in the status bar (default, where it was before), above the editor, or hidden, from View › Appearance › Navigation Bar or Settings › Appearance. The choice is stored as appearance.navigationBar; the old showNavigationBar boolean migrates at load time. The row stays put while tabs change, follows the Project view's selection until the editor takes focus again, and Jump to Navigation Bar works in every placement (a popup bar when hidden), with keyboard navigation of segments and popups.

Co-authored-by: muutot <92625353+muutot@users.noreply.github.com>
2026-11-10 02:03:39 +08:00

144 lines
3.1 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.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: 2px;
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);
}
/* 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);
}