From 0150f81a24a35fdf7b53e84adf15b7bd37b5caf0 Mon Sep 17 00:00:00 2001
From: Kazgatari <56477241+Kazgatari@users.noreply.github.com>
Date: Sat, 1 Aug 2026 20:14:29 +0200
Subject: [PATCH] !!! Implemented big style changes to overall style.css for
scroll bars and navigation tabs!!! + minor style changes for the author
compare components to adapt in darkmode.
---
.../author-research-profile.component.scss | 17 +--
.../compare-authors.component.ts | 10 +-
.../search-results.component.html | 5 +-
.../search-results.component.scss | 35 +----
.../app/modules/person/person.component.html | 2 +-
.../app/modules/person/person.component.scss | 20 ---
.../orientation-gauge.component.ts | 23 +--
webapp/src/styles.scss | 144 ++++++++++++++++++
8 files changed, 168 insertions(+), 88 deletions(-)
diff --git a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss
index 28b32db8..d4f61b56 100644
--- a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss
+++ b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss
@@ -126,19 +126,12 @@ section {
}
.legend-chip {
- --mdc-chip-elevated-container-color: color-mix(
- in srgb,
- var(--legend-color) 10%,
- var(--sg-surface)
- );
- --mdc-chip-label-text-color: var(--legend-color);
- --mdc-chip-outline-color: color-mix(
- in srgb,
- var(--legend-color) 28%,
- transparent
- );
+ --mdc-chip-elevated-container-color: var(--sg-surface-soft);
+ --mdc-chip-label-text-color: var(--sg-text);
+ --mdc-chip-outline-color: var(--sg-border);
- border: 1px solid color-mix(in srgb, var(--legend-color) 28%, transparent);
+ border: 1px solid var(--sg-border);
+ color: var(--sg-text);
}
.legend-color {
diff --git a/webapp/src/app/modules/compare-authors/compare-authors.component.ts b/webapp/src/app/modules/compare-authors/compare-authors.component.ts
index 0105d3f8..98fa4b6c 100644
--- a/webapp/src/app/modules/compare-authors/compare-authors.component.ts
+++ b/webapp/src/app/modules/compare-authors/compare-authors.component.ts
@@ -471,7 +471,11 @@ export class CompareAuthorsComponent implements OnInit {
return `${params[0]?.name ?? ''}
${lines.join('
')}`;
},
},
- legend: { type: 'scroll', top: 0 },
+ legend: {
+ type: 'scroll',
+ top: 0,
+ textStyle: { color: this.chartTheme.colors().text },
+ },
grid: { left: 16, right: 24, top: 56, bottom: 8, containLabel: true },
xAxis: {
type: 'value',
@@ -508,7 +512,7 @@ export class CompareAuthorsComponent implements OnInit {
return `${params[0]?.name ?? ''}
${lines.join('
')}`;
},
},
- legend: { top: 0 },
+ legend: { top: 0, textStyle: { color: this.chartTheme.colors().text } },
grid: { left: 16, right: 40, top: 32, bottom: 8, containLabel: true },
xAxis: {
type: 'value',
@@ -555,7 +559,7 @@ export class CompareAuthorsComponent implements OnInit {
return {
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
- legend: { top: 0 },
+ legend: { top: 0, textStyle: { color: this.chartTheme.colors().text } },
grid: { left: 16, right: 40, top: 32, bottom: 8, containLabel: true },
xAxis: { type: 'value' },
yAxis: {
diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.html b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html
index 758b2d1c..4f16bd57 100644
--- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.html
+++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html
@@ -57,7 +57,10 @@
-