184 lines
3.4 KiB
SCSS
184 lines
3.4 KiB
SCSS
:host {
|
|
--uh-gap: 8px;
|
|
--uh-strip-width: 44px;
|
|
--uh-radius: 8px;
|
|
--uh-row-height: min(72vh, 680px);
|
|
display: block;
|
|
}
|
|
|
|
.university-hierarchy {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
flex-direction: column;
|
|
gap: var(--uh-gap);
|
|
}
|
|
/* ---------------------------------- toolbar --------------------------------- */
|
|
.uh-spacer {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
.uh-loader-overlay {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 48px 0;
|
|
color: var(--sg-text-muted);
|
|
|
|
.uh-loader-text {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* --------------------------------- breadcrumb -------------------------------- */
|
|
|
|
.uh-breadcrumb {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
|
|
mat-chip {
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.uh-chip-index {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 6px;
|
|
border-radius: 50%;
|
|
background: var(--sg-surface-soft);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.uh-chip-active {
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
/* ----------------------------------- row ------------------------------------ */
|
|
|
|
.uh-row {
|
|
display: flex;
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
flex-basis: auto;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-items: stretch;
|
|
gap: var(--uh-gap);
|
|
height: var(--uh-row-height);
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
/* collapsed (already-opened, not the active) level */
|
|
|
|
.uh-strip {
|
|
flex: 0 0 var(--uh-strip-width);
|
|
width: var(--uh-strip-width);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 12px 0;
|
|
border: 1px solid var(--sg-border);
|
|
border-radius: var(--uh-radius);
|
|
background: var(--sg-surface-muted);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
transition:
|
|
background 0.15s ease,
|
|
border-color 0.15s ease;
|
|
|
|
&:hover,
|
|
&:focus-visible {
|
|
background: var(--sg-surface-soft);
|
|
border-color: var(--sg-border-strong);
|
|
}
|
|
|
|
.uh-strip-index {
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: var(--mat-sys-primary, #3f51b5);
|
|
color: var(--sg-background);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.uh-strip-label {
|
|
writing-mode: vertical-rl;
|
|
transform: rotate(180deg);
|
|
min-height: calc(100% - 32px);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 12px;
|
|
color: var(--sg-text);
|
|
}
|
|
}
|
|
|
|
/* active (currently drilled-into) level */
|
|
|
|
.uh-level-card {
|
|
flex: 1 1 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.uh-level-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
padding: 8px 8px 8px 14px;
|
|
border-bottom: 1px solid var(--sg-border);
|
|
|
|
.uh-level-titles {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.uh-level-index {
|
|
flex: 0 0 auto;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--sg-text-muted);
|
|
}
|
|
|
|
.uh-level-name {
|
|
overflow: hidden;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
.uh-chart-viewport {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.uh-chart {
|
|
width: 100%;
|
|
}
|