From f342406402d2038b241e3d120ebbe98505f16b23 Mon Sep 17 00:00:00 2001 From: Khuder Khalti Date: Mon, 20 Jul 2026 22:52:43 +0200 Subject: [PATCH] fix(person-funding): color author-position stat boxes and filter chip by position. --- .../person-funding.component.html | 5 +- .../person-funding.component.scss | 75 +++++++++++++------ 2 files changed, 56 insertions(+), 24 deletions(-) diff --git a/webapp/src/app/modules/person-funding/person-funding.component.html b/webapp/src/app/modules/person-funding/person-funding.component.html index 2051dd59..c25bc55a 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.html +++ b/webapp/src/app/modules/person-funding/person-funding.component.html @@ -445,7 +445,9 @@
@if (activeFilter !== 'all') { - + Filter: {{ getPositionLabel(activeFilter) }} } @@ -474,7 +476,6 @@
-

Wähle links einen Förderer aus, um die zugehörigen Publikationen anzuzeigen. diff --git a/webapp/src/app/modules/person-funding/person-funding.component.scss b/webapp/src/app/modules/person-funding/person-funding.component.scss index e8de6dea..3d0ba121 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.scss +++ b/webapp/src/app/modules/person-funding/person-funding.component.scss @@ -147,51 +147,64 @@ font-weight: bold; color: #333; } + + &.stat-first { + background: #effaf3; + border-color: #bdebcf; + + .stat-label, + .stat-value { + color: #24834f; + } + } + + &.stat-middle { + background: #f6f0ff; + border-color: #d8cafe; + + .stat-label, + .stat-value { + color: #7255d9; + } + } + + &.stat-last { + background: #fff1f2; + border-color: #fda4af; + + .stat-label, + .stat-value { + color: #be123c; + } + } } } -.stat-first, .position-badge--first, .hero-highlight--open, .publication-detail-grid .access-badge--open { background: #effaf3; -} - -.stat-first { - border-color: #bdebcf; -} - -.position-badge--first { - color: #24834f; - border: 1px solid #bdebcf; -} - -.hero-highlight--open, -.publication-detail-grid .access-badge--open { border-color: #bdebcf; color: #24834f; } -.stat-middle, .position-badge--middle { background: #f6f0ff; border-color: #d8cafe; -} - -.position-badge--middle { color: #7255d9; - border: 1px solid #d8cafe; } -.stat-last, .position-badge--last { background: #fff1f2; border-color: #fda4af; + color: #be123c; } +.position-badge--first, +.position-badge--middle, .position-badge--last { - color: #be123c; - border: 1px solid #fda4af; + border-width: 1px; + border-style: solid; } .publication-list { @@ -250,6 +263,24 @@ font-size: 0.75rem; font-weight: 600; text-transform: uppercase; + + &.position-badge--first { + background: #effaf3; + border-color: #bdebcf; + color: #24834f; + } + + &.position-badge--middle { + background: #f6f0ff; + border-color: #d8cafe; + color: #7255d9; + } + + &.position-badge--last { + background: #fff1f2; + border-color: #fda4af; + color: #be123c; + } } &__title {