462 lines
8.5 KiB
SCSS
462 lines
8.5 KiB
SCSS
.dashboard-wrapper {
|
|
padding: 2rem;
|
|
color: var(--sg-text);
|
|
|
|
.dashboard-period-filter {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.dashboard-period-presets {
|
|
display: inline-flex;
|
|
overflow: hidden;
|
|
flex: 0 0 auto;
|
|
border: 1px solid var(--sg-border);
|
|
border-radius: 6px;
|
|
background: var(--sg-surface);
|
|
|
|
button {
|
|
padding: 0.55rem 0.8rem;
|
|
border: 0;
|
|
border-right: 1px solid var(--sg-border);
|
|
background: transparent;
|
|
color: var(--sg-text);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
|
|
&.active {
|
|
background: var(--sg-blue-highlight);
|
|
color: var(--sg-card-bg);
|
|
}
|
|
}
|
|
|
|
button:last-child {
|
|
border-right: 0;
|
|
}
|
|
}
|
|
|
|
.dashboard-period-slider {
|
|
width: 280px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.dashboard-institution-filter {
|
|
width: 280px;
|
|
max-width: 100%;
|
|
margin-left: auto;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.dashboard-institution-filter,
|
|
.dashboard-period-slider {
|
|
width: 100%;
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.statistics-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.statistics-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
min-height: 120px;
|
|
padding: 1.25rem;
|
|
border: 1px solid var(--sg-border);
|
|
border-radius: 12px;
|
|
background: var(--sg-card-bg);
|
|
box-shadow: var(--sg-shadow-sm);
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition:
|
|
border-color 160ms ease,
|
|
box-shadow 160ms ease,
|
|
transform 160ms ease;
|
|
|
|
&:hover {
|
|
border-color: var(--sg-card-hover-border);
|
|
box-shadow: var(--sg-shadow-md);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 3px solid var(--sg-card-hover-border);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
&.disabled {
|
|
pointer-events: none;
|
|
}
|
|
|
|
span,
|
|
small {
|
|
display: block;
|
|
color: var(--sg-text-muted);
|
|
}
|
|
|
|
strong {
|
|
display: block;
|
|
margin: 0.2rem 0;
|
|
color: var(--sg-text);
|
|
font-size: clamp(1.7rem, 3vw, 2.3rem);
|
|
line-height: 1.1;
|
|
}
|
|
}
|
|
|
|
.statistics-icon {
|
|
display: grid;
|
|
flex: 0 0 52px;
|
|
width: 52px;
|
|
height: 52px;
|
|
place-items: center;
|
|
border-radius: 12px;
|
|
background: var(--sg-primary-soft);
|
|
color: var(--sg-blue-highlight);
|
|
|
|
&--persons {
|
|
background: var(--sg-success-soft);
|
|
color: var(--sg-success);
|
|
}
|
|
|
|
&--patents {
|
|
background: var(--sg-error-soft);
|
|
color: var(--sg-error);
|
|
}
|
|
|
|
&--eu-projects {
|
|
background: var(--sg-primary-soft);
|
|
color: var(--sg-blue-highlight);
|
|
}
|
|
|
|
&--bund-projects {
|
|
background: var(--sg-warning-soft);
|
|
color: var(--sg-warning);
|
|
}
|
|
|
|
&--dfg-projects {
|
|
background: var(--sg-warning-soft);
|
|
color: var(--sg-warning);
|
|
}
|
|
}
|
|
|
|
.statistics-error {
|
|
margin: -1rem 0 2rem;
|
|
color: var(--sg-error);
|
|
}
|
|
|
|
.dashboard-institution-tabs {
|
|
margin: -0.25rem 0 2rem;
|
|
|
|
h2 {
|
|
margin: 0 0 0.75rem;
|
|
font-size: 1.2rem;
|
|
line-height: 1.25;
|
|
}
|
|
}
|
|
|
|
.dashboard-institution-tab-bar {
|
|
display: grid;
|
|
grid-template-columns: 40px minmax(0, 1fr) 40px;
|
|
align-items: stretch;
|
|
border-bottom: 1px solid var(--sg-border);
|
|
}
|
|
|
|
.dashboard-institution-tab-arrow {
|
|
display: grid;
|
|
width: 40px;
|
|
height: 48px;
|
|
padding: 0;
|
|
place-items: center;
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--sg-text-muted);
|
|
cursor: pointer;
|
|
transition:
|
|
color 0.15s ease,
|
|
background-color 0.15s ease,
|
|
opacity 0.15s ease;
|
|
|
|
&:hover:not(:disabled) {
|
|
background: var(--sg-option-hover);
|
|
color: var(--sg-text);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline-offset: -3px;
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
&.is-hidden {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.dashboard-institution-tab-list {
|
|
display: flex;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
border-bottom: 0;
|
|
background: transparent;
|
|
scrollbar-width: none;
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
button {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
min-width: 120px;
|
|
height: 48px;
|
|
padding: 0 16px;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: var(--sg-text-muted);
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
line-height: 48px;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
transition:
|
|
color 0.15s ease,
|
|
background-color 0.15s ease;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
border-top: 3px solid transparent;
|
|
background: transparent;
|
|
content: '';
|
|
}
|
|
|
|
&:hover {
|
|
background: var(--sg-option-hover);
|
|
color: var(--sg-text);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 3px solid var(--sg-card-hover-border);
|
|
outline-offset: -3px;
|
|
}
|
|
|
|
&.active {
|
|
color: var(--sg-blue-highlight);
|
|
|
|
&::after {
|
|
border-top-color: var(--sg-blue-highlight);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.top-authors-section {
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
.topic-heatmap-section {
|
|
margin-bottom: 2.5rem;
|
|
padding: 1.25rem;
|
|
border: 1px solid var(--sg-border);
|
|
border-radius: 12px;
|
|
background: var(--sg-card-bg);
|
|
}
|
|
|
|
.topic-heatmap-header {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
|
|
h2,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
p {
|
|
margin-top: 0.35rem;
|
|
color: var(--sg-text-muted);
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.topic-heatmap-loading {
|
|
min-height: 25rem;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.project-status-loading {
|
|
min-height: 15rem;
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.project-status-summary {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
gap: 0.5rem;
|
|
|
|
span {
|
|
padding: 0.35rem 0.65rem;
|
|
border-radius: 999px;
|
|
background: var(--sg-surface-muted);
|
|
color: var(--sg-text-muted);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
.dfg-topic-summary {
|
|
flex: 0 0 auto;
|
|
color: var(--sg-text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.top-authors-header {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
margin-bottom: 1rem;
|
|
|
|
h2,
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
p {
|
|
margin-top: 0.35rem;
|
|
color: var(--sg-text-muted);
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.top-authors-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 1rem;
|
|
|
|
&.loading {
|
|
opacity: 0.65;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.top-authors-chart {
|
|
padding: 1.25rem;
|
|
border: 1px solid var(--sg-border);
|
|
border-radius: 12px;
|
|
background: var(--sg-card-bg);
|
|
|
|
h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin: 0 0 1rem;
|
|
color: var(--sg-text);
|
|
}
|
|
}
|
|
|
|
.author-bar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
margin-top: 0.7rem;
|
|
}
|
|
|
|
.author-rank {
|
|
flex: 0 0 1.4rem;
|
|
color: var(--sg-text-muted);
|
|
font-size: 0.8rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.author-bar-content {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.author-bar-label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.25rem;
|
|
font-size: 0.85rem;
|
|
|
|
.author-name {
|
|
overflow: hidden;
|
|
color: var(--sg-blue-highlight);
|
|
font-weight: 600;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.author-link {
|
|
overflow: hidden;
|
|
text-decoration: none;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
&:focus-visible {
|
|
border-radius: 2px;
|
|
outline: 2px solid var(--sg-card-hover-border);
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.author-bar-track {
|
|
overflow: hidden;
|
|
height: 7px;
|
|
border-radius: 999px;
|
|
background: var(--sg-border);
|
|
}
|
|
|
|
.author-bar-fill {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: var(--sg-blue-highlight);
|
|
transition: width 220ms ease;
|
|
}
|
|
|
|
.empty-chart {
|
|
margin: 2rem 0;
|
|
color: var(--sg-text-muted);
|
|
text-align: center;
|
|
}
|
|
}
|