354 lines
6.1 KiB
SCSS
354 lines
6.1 KiB
SCSS
// src/app/modules/university-ranking/dashboard.component.scss
|
|
.dashboard-wrapper {
|
|
padding: 2rem;
|
|
font-family: 'Inter', sans-serif;
|
|
color: #333;
|
|
|
|
.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 #e2e8f0;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
box-shadow: 0 4px 14px rgb(15 23 42 / 6%);
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition:
|
|
border-color 160ms ease,
|
|
box-shadow 160ms ease,
|
|
transform 160ms ease;
|
|
|
|
&:hover {
|
|
border-color: #93c5fd;
|
|
box-shadow: 0 8px 24px rgb(15 23 42 / 12%);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 3px solid #93c5fd;
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
&.disabled {
|
|
pointer-events: none;
|
|
}
|
|
|
|
span,
|
|
small {
|
|
display: block;
|
|
color: #64748b;
|
|
}
|
|
|
|
strong {
|
|
display: block;
|
|
margin: 0.2rem 0;
|
|
color: #0f172a;
|
|
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: #dbeafe;
|
|
color: #1d4ed8;
|
|
|
|
&--persons {
|
|
background: #dcfce7;
|
|
color: #15803d;
|
|
}
|
|
|
|
&--eu-projects {
|
|
background: #e0f2fe;
|
|
color: #0369a1;
|
|
}
|
|
|
|
&--bund-projects {
|
|
background: #fef3c7;
|
|
color: #b45309;
|
|
}
|
|
|
|
&--dfg-projects {
|
|
background: #f3e8ff;
|
|
color: #7e22ce;
|
|
}
|
|
}
|
|
|
|
.statistics-error {
|
|
margin: -1rem 0 2rem;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.top-authors-section {
|
|
margin-bottom: 2.5rem;
|
|
}
|
|
|
|
.topic-heatmap-section {
|
|
margin-bottom: 2.5rem;
|
|
padding: 1.25rem;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
}
|
|
|
|
.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: #64748b;
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.topic-treemap-period-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.65rem;
|
|
|
|
label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
color: #475569;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
input {
|
|
width: 5.5rem;
|
|
padding: 0.45rem 0.55rem;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
color: #0f172a;
|
|
font: inherit;
|
|
|
|
&:focus {
|
|
border-color: #93c5fd;
|
|
outline: 3px solid #bfdbfe;
|
|
outline-offset: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.topic-treemap-period-toggle {
|
|
display: inline-flex;
|
|
overflow: hidden;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
|
|
button {
|
|
padding: 0.5rem 0.7rem;
|
|
border: 0;
|
|
border-right: 1px solid #cbd5e1;
|
|
background: transparent;
|
|
color: #334155;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
font-weight: 600;
|
|
|
|
&:last-child {
|
|
border-right: 0;
|
|
}
|
|
|
|
&.active {
|
|
background: #1d4ed8;
|
|
color: #fff;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 3px solid #93c5fd;
|
|
outline-offset: -3px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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: #64748b;
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
}
|
|
|
|
}
|
|
|
|
.top-authors-period-toggle {
|
|
display: inline-flex;
|
|
overflow: hidden;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
|
|
button {
|
|
padding: 0.55rem 0.8rem;
|
|
border: 0;
|
|
border-right: 1px solid #cbd5e1;
|
|
background: transparent;
|
|
color: #334155;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
|
|
&:last-child {
|
|
border-right: 0;
|
|
}
|
|
|
|
&.active {
|
|
background: #1d4ed8;
|
|
color: #fff;
|
|
}
|
|
|
|
&:focus-visible {
|
|
outline: 3px solid #93c5fd;
|
|
outline-offset: -3px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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 #e2e8f0;
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
|
|
h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin: 0 0 1rem;
|
|
color: #0f172a;
|
|
}
|
|
}
|
|
|
|
.author-bar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
margin-top: 0.7rem;
|
|
}
|
|
|
|
.author-rank {
|
|
flex: 0 0 1.4rem;
|
|
color: #64748b;
|
|
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;
|
|
|
|
span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.author-link {
|
|
overflow: hidden;
|
|
color: #1d4ed8;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
&:focus-visible {
|
|
border-radius: 2px;
|
|
outline: 2px solid #93c5fd;
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
.author-bar-track {
|
|
overflow: hidden;
|
|
height: 7px;
|
|
border-radius: 999px;
|
|
background: #e2e8f0;
|
|
}
|
|
|
|
.author-bar-fill {
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: inherit;
|
|
background: linear-gradient(90deg, #2563eb, #60a5fa);
|
|
transition: width 220ms ease;
|
|
}
|
|
|
|
.empty-chart {
|
|
margin: 2rem 0;
|
|
color: #64748b;
|
|
text-align: center;
|
|
}
|
|
}
|