Files
smartguide/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss
T
genja bf1e1bbfef
LocationBasedServices/smartguide/pipeline/head This commit looks good
reorganized layout. Standartized the component containers and headers
2026-11-06 12:55:23 +01:00

348 lines
6.2 KiB
SCSS

.institution-overview {
width: 100%;
margin-bottom: 1.5rem;
}
.institution-overview-card {
padding: 1.5rem;
background: var(--sg-surface);
border: 1px solid var(--sg-border);
border-radius: 12px;
display: flex;
flex-direction: column;
gap: 1.25rem;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
/* --- Header & Avatar --- */
.overview-header {
display: flex;
align-items: flex-start;
gap: 1.25rem;
@media (max-width: 768px) {
flex-direction: column;
align-items: center;
text-align: center;
}
}
.avatar-col {
flex-shrink: 0;
}
.institution-avatar {
width: 64px;
height: 64px;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
background: var(--sg-surface-container-high, rgba(0, 0, 0, 0.04));
border: 1px solid var(--sg-border);
color: var(--sg-primary);
mat-icon {
font-size: 34px;
width: 34px;
height: 34px;
}
&.type-education {
background: rgba(33, 150, 243, 0.1);
color: #1976d2;
border-color: rgba(33, 150, 243, 0.25);
}
&.type-healthcare {
background: rgba(233, 30, 99, 0.1);
color: #c2185b;
border-color: rgba(233, 30, 99, 0.25);
}
&.type-facility {
background: rgba(156, 39, 176, 0.1);
color: #7b1fa2;
border-color: rgba(156, 39, 176, 0.25);
}
&.type-company {
background: rgba(255, 152, 0, 0.1);
color: #f57c00;
border-color: rgba(255, 152, 0, 0.25);
}
&.type-government {
background: rgba(0, 150, 136, 0.1);
color: #00796b;
border-color: rgba(0, 150, 136, 0.25);
}
}
.identity-col {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.5rem;
min-width: 0;
}
.title-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.75rem;
@media (max-width: 768px) {
justify-content: center;
}
}
.institution-name {
margin: 0;
color: var(--sg-text-primary);
font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px));
font-weight: var(--sg-page-title-weight, 700);
letter-spacing: var(--sg-page-title-letter-spacing, -0.02em);
line-height: var(--sg-page-title-line-height, 1.18);
}
.type-badge {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-size: 0.75rem;
font-weight: 600;
padding: 0.25rem 0.65rem;
border-radius: 9999px;
background: var(--sg-surface-container-high, rgba(0, 0, 0, 0.05));
color: var(--sg-text-secondary);
border: 1px solid var(--sg-border);
.badge-icon {
font-size: 14px;
width: 14px;
height: 14px;
}
&.type-education {
background: rgba(33, 150, 243, 0.1);
color: #1565c0;
border-color: rgba(33, 150, 243, 0.3);
}
&.type-healthcare {
background: rgba(233, 30, 99, 0.1);
color: #ad1457;
border-color: rgba(233, 30, 99, 0.3);
}
&.type-facility {
background: rgba(156, 39, 176, 0.1);
color: #6a1b9a;
border-color: rgba(156, 39, 176, 0.3);
}
&.type-company {
background: rgba(255, 152, 0, 0.1);
color: #e65100;
border-color: rgba(255, 152, 0, 0.3);
}
&.type-government {
background: rgba(0, 150, 136, 0.1);
color: #004d40;
border-color: rgba(0, 150, 136, 0.3);
}
}
.meta-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
font-size: 0.875rem;
color: var(--sg-text-secondary);
@media (max-width: 768px) {
justify-content: center;
}
}
.meta-item {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.meta-link {
display: inline-flex;
align-items: center;
gap: 0.35rem;
color: var(--sg-primary);
text-decoration: none;
font-weight: 500;
transition: opacity 0.2s;
mat-icon {
font-size: 16px;
width: 16px;
height: 16px;
}
.external-icon {
font-size: 13px;
width: 13px;
height: 13px;
opacity: 0.7;
}
&:hover {
text-decoration: underline;
opacity: 0.85;
}
}
.ror-tag {
background: var(--sg-primary);
color: #ffffff;
font-size: 0.65rem;
font-weight: 700;
padding: 1px 4px;
border-radius: 4px;
letter-spacing: 0.5px;
}
/* --- Metrics Grid --- */
.metrics-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 0.85rem;
width: 100%;
}
.stat-card {
display: flex;
align-items: center;
gap: 0.85rem;
padding: 0.85rem 1rem;
background: var(--sg-surface-container-low, rgba(0, 0, 0, 0.02));
border: 1px solid var(--sg-border);
border-radius: 10px;
}
.stat-icon-wrapper {
width: 40px;
height: 40px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
mat-icon {
font-size: 20px;
width: 20px;
height: 20px;
}
&.pub-icon {
background: rgba(33, 150, 243, 0.12);
color: #1976d2;
}
&.cite-icon {
background: rgba(156, 39, 176, 0.12);
color: #7b1fa2;
}
&.hindex-icon {
background: rgba(76, 175, 80, 0.12);
color: #2e7d32;
}
}
.stat-content {
display: flex;
flex-direction: column;
}
.stat-value {
font-size: 1.15rem;
font-weight: 700;
color: var(--sg-text-primary);
line-height: 1.2;
}
.stat-label {
font-size: 0.75rem;
color: var(--sg-text-secondary);
}
/* --- Section Lists --- */
.details-section {
display: flex;
flex-direction: column;
gap: 0.65rem;
}
.section-title {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-size: 0.85rem;
font-weight: 600;
color: var(--sg-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
margin: 0;
mat-icon {
font-size: 16px;
width: 16px;
height: 16px;
color: var(--sg-primary);
}
.section-count {
font-weight: normal;
opacity: 0.8;
}
}
.alternatives-list {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
}
.alternative-chip {
font-size: 0.8rem;
padding: 0.3rem 0.7rem;
background: var(--sg-surface-container-high, rgba(0, 0, 0, 0.04));
border: 1px solid var(--sg-border);
border-radius: 6px;
color: var(--sg-text-primary);
}
.expand-btn {
font-size: 0.75rem;
height: 28px;
line-height: 28px;
padding: 0 0.5rem;
color: var(--sg-primary);
}
.associated-chips-container {
display: flex;
flex-wrap: wrap;
gap: 0.65rem;
align-items: center;
}
.associated-chip-wrapper {
display: inline-flex;
align-items: center;
}