From 288b21d4070103456280cc2f0ac12c4dffb7173c Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:08:30 +0200 Subject: [PATCH 01/24] added proper color theme and services to inject based on system, dark, light mode --- webapp/angular.json | 14 +-- .../shared/services/chart-theme.service.ts | 46 ++++++++ .../src/app/shared/services/theme.service.ts | 100 ++++++++++++++++++ webapp/src/styles.scss | 93 +++++++++++++++- 4 files changed, 239 insertions(+), 14 deletions(-) create mode 100644 webapp/src/app/shared/services/chart-theme.service.ts create mode 100644 webapp/src/app/shared/services/theme.service.ts diff --git a/webapp/angular.json b/webapp/angular.json index bf59135f..dadf2610 100644 --- a/webapp/angular.json +++ b/webapp/angular.json @@ -25,10 +25,7 @@ "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": ["src/favicon.ico", "src/assets"], - "styles": [ - "@angular/material/prebuilt-themes/indigo-pink.css", - "src/styles.scss" - ], + "styles": ["src/styles.scss"], "scripts": [] }, "configurations": { @@ -41,8 +38,8 @@ }, { "type": "anyComponentStyle", - "maximumWarning": "5kb", - "maximumError": "10kb" + "maximumWarning": "10kb", + "maximumError": "20kb" } ], "outputHashing": "all" @@ -83,10 +80,7 @@ "tsConfig": "tsconfig.spec.json", "inlineStyleLanguage": "scss", "assets": ["src/favicon.ico", "src/assets"], - "styles": [ - "@angular/material/prebuilt-themes/indigo-pink.css", - "src/styles.scss" - ], + "styles": ["src/styles.scss"], "scripts": [] } } diff --git a/webapp/src/app/shared/services/chart-theme.service.ts b/webapp/src/app/shared/services/chart-theme.service.ts new file mode 100644 index 00000000..f545df2a --- /dev/null +++ b/webapp/src/app/shared/services/chart-theme.service.ts @@ -0,0 +1,46 @@ +import { Injectable, computed, inject } from '@angular/core'; +import { ThemeService } from './theme.service'; + +export interface ChartThemeColors { + textColor: string; + mutedTextColor: string; + gridLineColor: string; + backgroundColor: string; + tooltipBg: string; + tooltipBorder: string; + tooltipTextColor: string; + labelColor: string; + cardBg: string; + text: string; + splitLine: string; +} + +@Injectable({ + providedIn: 'root', +}) +export class ChartThemeService { + private theme = inject(ThemeService); + + readonly isDark = this.theme.isDark; + + /** Computed theme colors for ECharts options */ + readonly colors = computed(() => { + const dark = this.theme.isDark(); + const textVal = dark ? '#e8edf8' : '#334155'; + const splitLineVal = dark ? '#283654' : '#e2e8f0'; + + return { + textColor: textVal, + text: textVal, + mutedTextColor: dark ? '#9aa8c7' : '#64748b', + gridLineColor: splitLineVal, + splitLine: splitLineVal, + backgroundColor: 'transparent', + tooltipBg: dark ? '#1a2340' : '#ffffff', + tooltipBorder: dark ? '#283654' : '#dde5f2', + tooltipTextColor: textVal, + labelColor: dark ? '#e8edf8' : '#ffffff', + cardBg: dark ? '#131b2e' : '#ffffff', + }; + }); +} diff --git a/webapp/src/app/shared/services/theme.service.ts b/webapp/src/app/shared/services/theme.service.ts new file mode 100644 index 00000000..ecd36939 --- /dev/null +++ b/webapp/src/app/shared/services/theme.service.ts @@ -0,0 +1,100 @@ +import { + Injectable, + signal, + effect, + inject, + DOCUMENT, + RendererFactory2, + computed, +} from '@angular/core'; + +export type ThemeMode = 'light' | 'dark' | 'system'; + +@Injectable({ + providedIn: 'root', +}) +export class ThemeService { + private document = inject(DOCUMENT); + private renderer = inject(RendererFactory2).createRenderer(null, null); + + private readonly storageKey = 'sg-theme-mode'; + + /** Theme selection mode: 'light', 'dark', or 'system' */ + readonly mode = signal(this.readInitialMode()); + + /** Whether dark mode is active based on mode and system preferences */ + readonly isDark = signal(false); + + /** Label for current mode in UI */ + readonly currentModeLabel = computed(() => { + switch (this.mode()) { + case 'light': + return 'Hell'; + case 'dark': + return 'Dunkel'; + case 'system': + return 'System'; + } + }); + + /** Icon for current mode in UI */ + readonly currentModeIcon = computed(() => { + switch (this.mode()) { + case 'light': + return 'light_mode'; + case 'dark': + return 'dark_mode'; + case 'system': + return 'desktop_windows'; + } + }); + + constructor() { + const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)'); + + const updateThemeState = () => { + const currentMode = this.mode(); + localStorage.setItem(this.storageKey, currentMode); + + const dark = + currentMode === 'dark' || + (currentMode === 'system' && mediaQuery.matches); + this.isDark.set(dark); + + if (dark) { + this.renderer.addClass(this.document.documentElement, 'dark-theme'); + } else { + this.renderer.removeClass(this.document.documentElement, 'dark-theme'); + } + }; + + effect(() => { + updateThemeState(); + }); + + mediaQuery.addEventListener('change', () => { + if (this.mode() === 'system') { + updateThemeState(); + } + }); + } + + setTheme(mode: ThemeMode): void { + this.mode.set(mode); + } + + cycleTheme(): void { + const modes: ThemeMode[] = ['system', 'light', 'dark']; + const currentIndex = modes.indexOf(this.mode()); + const nextIndex = (currentIndex + 1) % modes.length; + this.setTheme(modes[nextIndex]); + } + + private readInitialMode(): ThemeMode { + const stored = localStorage.getItem(this.storageKey); + if (stored === 'light' || stored === 'dark' || stored === 'system') { + return stored; + } + return 'system'; + } +} diff --git a/webapp/src/styles.scss b/webapp/src/styles.scss index 71142e29..cc125cf9 100644 --- a/webapp/src/styles.scss +++ b/webapp/src/styles.scss @@ -76,25 +76,35 @@ -webkit-font-smoothing: antialiased; } +/* Angular Material M3 Base Themes */ html { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); height: 100%; - background: #ffffff; + background: var(--sg-background); @include mat.all-component-themes(m3.$light-theme); + @include mat.system-level-colors(m3.$light-theme); @include mat.typography-hierarchy(m3.$light-theme); } + +html.dark-theme { + @include mat.all-component-colors(m3.$dark-theme); + @include mat.system-level-colors(m3.$dark-theme); +} + body { height: 100%; margin: 0; - background: #ffffff; - color: #101a3d; + background: var(--sg-background); + color: var(--sg-text); font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 1.45; } +/* Centralized Design Tokens (Semantic CSS Custom Properties) */ :root { + /* Light Theme Palette */ --sg-background: #ffffff; --sg-surface: #ffffff; --sg-surface-muted: #f7f9ff; @@ -122,6 +132,22 @@ body { --sg-blue-highlight: #3d7cff; --sg-default-bold-weight: 900; + /* Additional Design Tokens for Dark Mode Support */ + --sg-color-mix-base: #ffffff; + --sg-card-bg: #ffffff; + --sg-card-hover-border: #93c5fd; + --sg-chart-text: #334155; + --sg-chart-text-muted: #64748b; + --sg-chart-grid: #e2e8f0; + --sg-chart-bg: #ffffff; + --sg-error: #ba1a1a; + --sg-error-soft: #ffdad6; + --sg-banner-warning-bg: #fff7ed; + --sg-banner-warning-border: #fed7aa; + --sg-banner-warning-text: #9a3412; + --sg-option-hover: rgba(0, 0, 0, 0.04); + --sg-avatar-gradient: linear-gradient(135deg, #dce8ff, #ffffff); + @include mat.button-toggle-overrides( ( shape: var(--sg-radius-sm), @@ -163,6 +189,44 @@ body { ); } +/* Dark Theme Overrides */ +html.dark-theme { + --sg-background: #0b0f19; + --sg-surface: #131b2e; + --sg-surface-muted: #1a2340; + --sg-surface-soft: #17203a; + --sg-border: #283654; + --sg-border-strong: #374a6e; + --sg-text: #e8edf8; + --sg-text-muted: #9aa8c7; + --sg-text-soft: #6b7a9e; + --sg-primary: #a4c4ff; + --sg-primary-strong: #d3e3ff; + --sg-primary-soft: #1c2a4a; + --sg-success: #4ade80; + --sg-success-soft: #0f2a1c; + --sg-warning-soft: #2a1f3d; + --sg-warning: #b69df7; + --sg-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 8px rgba(0, 0, 0, 0.2); + --sg-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4); + --sg-blue-highlight: #7ba7fb; + + --sg-color-mix-base: #1a2340; + --sg-card-bg: #131b2e; + --sg-card-hover-border: #3b6fd4; + --sg-chart-text: #c8d5e8; + --sg-chart-text-muted: #8a95b3; + --sg-chart-grid: #283654; + --sg-chart-bg: #131b2e; + --sg-error: #ffb4ab; + --sg-error-soft: #410002; + --sg-banner-warning-bg: #3d2200; + --sg-banner-warning-border: #6b3a00; + --sg-banner-warning-text: #ffb74d; + --sg-option-hover: rgba(255, 255, 255, 0.06); + --sg-avatar-gradient: linear-gradient(135deg, #1c2a4a, #131b2e); +} + * { box-sizing: border-box; } @@ -222,6 +286,27 @@ h3 { @include mat.icon-color(m3.$light-theme, $color-variant: tertiary); } +html.dark-theme { + .primary-button { + @include mat.button-color(m3.$dark-theme, $color-variant: primary); + } + .secondary-button { + @include mat.button-color(m3.$dark-theme, $color-variant: secondary); + } + .tertiary-button { + @include mat.button-color(m3.$dark-theme, $color-variant: tertiary); + } + .primary-icon { + @include mat.icon-color(m3.$dark-theme, $color-variant: primary); + } + .secondary-icon { + @include mat.icon-color(m3.$dark-theme, $color-variant: secondary); + } + .tertiary-icon { + @include mat.icon-color(m3.$dark-theme, $color-variant: tertiary); + } +} + .menu button { --mat-icon-button-disabled-icon-color: rgba(255, 255, 255, 0.35); --mat-icon-button-icon-color: #ffffff; @@ -264,7 +349,7 @@ h3 { .cdk-overlay-pane .mat-mdc-option:hover, .cdk-overlay-pane .mat-mdc-option.mdc-list-item--focused { - background: rgba(0, 0, 0, 0.04); + background: var(--sg-option-hover); } .career-stage-tooltip, -- 2.56.1 From 813953f1f564ff8cca336f8ddc53dcea7b61eb0a Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:09:55 +0200 Subject: [PATCH 02/24] changed static colors to use new theme --- .../modules/accounts/accounts.component.scss | 43 ++-- .../app-login/app-login.component.scss | 12 +- .../bookmarks/bookmarks.component.scss | 20 +- .../compare-authors.component.scss | 74 +++---- .../dashboard/dashboard.component.scss | 90 ++++---- .../dfg-topic-donut.component.scss | 2 +- .../dfg-topic-donut.component.ts | 26 ++- .../eu-project-status-chart.component.ts | 34 ++- .../topic-wordcloud-dialog.component.scss | 127 ++++++------ .../error-page/error-page.component.scss | 19 +- .../institution-patents.component.html | 2 +- .../institution-patents.component.scss | 196 +++++++++--------- .../job-logs-dialog.component.scss | 55 ++--- .../src/app/modules/jobs/jobs.component.scss | 53 ++--- .../task-create-dialog.component.scss | 9 +- .../task-edit-dialog.component.scss | 5 +- .../task-schedule-dialog.component.scss | 18 +- .../keywords-search.component.scss | 59 +++--- 18 files changed, 427 insertions(+), 417 deletions(-) diff --git a/webapp/src/app/modules/accounts/accounts.component.scss b/webapp/src/app/modules/accounts/accounts.component.scss index dc24d512..bf3600bd 100644 --- a/webapp/src/app/modules/accounts/accounts.component.scss +++ b/webapp/src/app/modules/accounts/accounts.component.scss @@ -23,10 +23,11 @@ h1, h2, p { margin: 0; + color: var(--sg-text); } .page-header p { - color: #64748b; + color: var(--sg-text-muted); margin-top: 6px; } @@ -46,19 +47,19 @@ p { } .table-panel { - border: 1px solid #d7dde6; + border: 1px solid var(--sg-border); border-radius: 8px; - background: #fff; + background: var(--sg-card-bg); } .table-header { justify-content: space-between; padding: 16px; - border-bottom: 1px solid #e5e7eb; + border-bottom: 1px solid var(--sg-border); } .table-header span { - color: #64748b; + color: var(--sg-text-muted); } .table-wrap { @@ -74,29 +75,29 @@ th, td { padding: 12px 16px; text-align: left; - border-bottom: 1px solid #edf1f7; + border-bottom: 1px solid var(--sg-border); white-space: nowrap; } th { - color: #475569; + color: var(--sg-text); font-weight: 700; - background: #f8fafc; + background: var(--sg-surface-muted); } tr.deleted { - color: #94a3b8; + color: var(--sg-text-soft); } tr.deactivated:not(.deleted) { - color: #64748b; - background: #f8fafc; + color: var(--sg-text-muted); + background: var(--sg-surface-soft); } .link-button { border: 0; background: transparent; - color: #1d4ed8; + color: var(--sg-blue-highlight); padding: 0; font: inherit; cursor: pointer; @@ -109,25 +110,25 @@ tr.deactivated:not(.deleted) { min-height: 24px; border-radius: 999px; padding: 2px 10px; - background: #eef2ff; - color: #3730a3; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); font-size: 12px; font-weight: 700; } .status { - background: #dcfce7; - color: #166534; + background: var(--sg-success-soft); + color: var(--sg-success); } .status--deleted { - background: #fee2e2; - color: #991b1b; + background: var(--sg-error-soft); + color: var(--sg-error); } .status--deactivated { - background: #fef3c7; - color: #92400e; + background: var(--sg-warning-soft); + color: var(--sg-warning); } .row-actions { @@ -135,7 +136,7 @@ tr.deactivated:not(.deleted) { } .empty { - color: #64748b; + color: var(--sg-text-muted); text-align: center; } diff --git a/webapp/src/app/modules/app-login/app-login.component.scss b/webapp/src/app/modules/app-login/app-login.component.scss index c09190d7..134c0d97 100644 --- a/webapp/src/app/modules/app-login/app-login.component.scss +++ b/webapp/src/app/modules/app-login/app-login.component.scss @@ -6,10 +6,14 @@ background: radial-gradient( circle at top left, - rgba(61, 124, 255, 0.12), + rgba(61, 124, 255, 0.15), transparent 34% ), - linear-gradient(160deg, #f7f9ff 0%, #ffffff 64%); + linear-gradient( + 160deg, + var(--sg-surface-muted) 0%, + var(--sg-background) 64% + ); } .login-panel { @@ -80,7 +84,7 @@ p { .step--active span { background: var(--sg-primary); border-color: var(--sg-primary); - color: #ffffff; + color: var(--sg-background); } .step-line { @@ -158,7 +162,7 @@ p { } .expiry--expired { - color: #ba1a1a; + color: var(--sg-error); } @media (max-width: 560px) { diff --git a/webapp/src/app/modules/bookmarks/bookmarks.component.scss b/webapp/src/app/modules/bookmarks/bookmarks.component.scss index b6473b46..1f6b9dc1 100644 --- a/webapp/src/app/modules/bookmarks/bookmarks.component.scss +++ b/webapp/src/app/modules/bookmarks/bookmarks.component.scss @@ -16,15 +16,16 @@ h1 { margin: 2px 0 6px; font-size: 2rem; + color: var(--sg-text); } p { margin: 0; - color: #667085; + color: var(--sg-text-muted); } .eyebrow { - color: #3f51b5; + color: var(--sg-primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; @@ -38,21 +39,22 @@ align-items: center; gap: 0 10px; padding: 14px 18px; - border: 1px solid #e4e7ec; + border: 1px solid var(--sg-border); border-radius: 14px; - background: white; + background: var(--sg-surface); mat-icon { grid-row: 1 / 3; - color: #3f51b5; + color: var(--sg-primary); } strong { font-size: 1.25rem; + color: var(--sg-text); } span { - color: #667085; + color: var(--sg-text-muted); font-size: 0.75rem; } } @@ -71,19 +73,19 @@ align-items: center; justify-content: center; text-align: center; - color: #667085; + color: var(--sg-text-muted); } .empty-state mat-icon { width: 54px; height: 54px; font-size: 54px; - color: #98a2b3; + color: var(--sg-text-soft); } .empty-state h2 { margin: 16px 0 6px; - color: #1d2939; + color: var(--sg-text); } @media (max-width: 700px) { diff --git a/webapp/src/app/modules/compare-authors/compare-authors.component.scss b/webapp/src/app/modules/compare-authors/compare-authors.component.scss index f05c3335..d1724a2f 100644 --- a/webapp/src/app/modules/compare-authors/compare-authors.component.scss +++ b/webapp/src/app/modules/compare-authors/compare-authors.component.scss @@ -18,7 +18,7 @@ margin: 0; font-size: 24px; font-weight: 700; - color: var(--sg-text, #101a3d); + color: var(--sg-text); } } @@ -34,16 +34,16 @@ gap: 6px; padding: 4px 12px; border-radius: 999px; - background: var(--sg-surface-muted, #f7f9ff); - border: 1px solid var(--sg-border, #dde5f2); - color: var(--sg-text-muted, #64708f); + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); + color: var(--sg-text-muted); font-size: 13px; mat-icon { font-size: 16px; width: 16px; height: 16px; - color: var(--sg-text-soft, #8a95b3); + color: var(--sg-text-soft); } } @@ -62,7 +62,7 @@ gap: 8px; font-size: 14px; font-weight: 600; - color: var(--sg-text, #101a3d); + color: var(--sg-text); } .legend-swatch { @@ -74,10 +74,10 @@ /* ---- cards ---- */ .card { - background: #fff; - border: 1px solid #d7e4ff; + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); border-radius: 16px; - box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + box-shadow: var(--sg-shadow-sm); padding: 20px 22px; } @@ -85,19 +85,19 @@ margin: 0; font-size: 16px; font-weight: 700; - color: var(--sg-text, #101a3d); + color: var(--sg-text); } .card-sub { margin: 4px 0 0; font-size: 13px; - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); } .compare-hint { padding: 24px; text-align: center; - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); } /* ---- comparison table ---- */ @@ -114,7 +114,7 @@ thead th { text-align: left; padding: 0 16px 10px; - border-bottom: 2px solid var(--sg-border, #dde5f2); + border-bottom: 2px solid var(--sg-border); vertical-align: bottom; } @@ -127,12 +127,12 @@ align-items: center; gap: 8px; font-weight: 700; - color: var(--sg-text, #101a3d); + color: var(--sg-text); } tbody tr + tr th, tbody tr + tr td { - border-top: 1px solid var(--sg-border, #dde5f2); + border-top: 1px solid var(--sg-border); } tbody th, @@ -148,7 +148,7 @@ .metric-label { display: block; font-weight: 600; - color: var(--sg-text, #101a3d); + color: var(--sg-text); } .metric-hint { @@ -156,24 +156,24 @@ margin-top: 2px; font-size: 12px; font-weight: 400; - color: var(--sg-text-soft, #8a95b3); + color: var(--sg-text-soft); } .value-cell { text-align: right; font-variant-numeric: tabular-nums; - color: var(--sg-text, #101a3d); + color: var(--sg-text); white-space: nowrap; &.best { font-weight: 700; - color: var(--sg-primary, #0b1020); - background: var(--sg-surface-soft, #f3f6fd); + color: var(--sg-primary); + background: var(--sg-surface-soft); } } .value-empty { - color: var(--sg-text-soft, #8a95b3); + color: var(--sg-text-soft); } /* author-position row: first / middle / last shown together, colour-coded */ @@ -186,49 +186,49 @@ font-variant-numeric: tabular-nums; &.pos-first { - color: #16a34a; + color: var(--sg-success); } &.pos-middle { - color: #d97706; + color: var(--sg-warning); } &.pos-last { - color: #2563eb; + color: var(--sg-primary); } &.rel-count { - color: #7c3aed; + color: var(--sg-blue-highlight); } &.rel-avg { - color: #0891b2; + color: var(--sg-blue-highlight); } &.cit-total { - color: #b91c1c; + color: var(--sg-error); } &.cit-avg { - color: #ea580c; + color: var(--sg-warning); } &.fwci-count { - color: #4d7c0f; + color: var(--sg-success); } &.fwci-avg { - color: #0d9488; + color: var(--sg-success); } &.year-from { - color: #6d28d9; + color: var(--sg-primary); } &.year-to { - color: #be185d; + color: var(--sg-primary); } &.ind-count { - color: #92400e; + color: var(--sg-warning); } &.ind-share { - color: #1d4ed8; + color: var(--sg-blue-highlight); } } .pos-sep { margin: 0 4px; - color: var(--sg-text-soft, #b6bed6); + color: var(--sg-text-soft); font-weight: 400; } @@ -244,13 +244,13 @@ margin: 18px 0 0; font-size: 14px; font-weight: 700; - color: var(--sg-text, #101a3d); + color: var(--sg-text); } .chart-hint { margin: 2px 0 8px; font-size: 12px; - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); } .profile-chart { diff --git a/webapp/src/app/modules/dashboard/dashboard.component.scss b/webapp/src/app/modules/dashboard/dashboard.component.scss index 9af762eb..789bfee7 100644 --- a/webapp/src/app/modules/dashboard/dashboard.component.scss +++ b/webapp/src/app/modules/dashboard/dashboard.component.scss @@ -1,8 +1,6 @@ -// src/app/modules/university-ranking/dashboard.component.scss .dashboard-wrapper { padding: 2rem; - font-family: 'Inter', sans-serif; - color: #333; + color: var(--sg-text); .dashboard-period-filter { display: flex; @@ -16,22 +14,22 @@ display: inline-flex; overflow: hidden; flex: 0 0 auto; - border: 1px solid #cbd5e1; + border: 1px solid var(--sg-border); border-radius: 6px; - background: #fff; + background: var(--sg-surface); button { padding: 0.55rem 0.8rem; border: 0; - border-right: 1px solid #cbd5e1; + border-right: 1px solid var(--sg-border); background: transparent; - color: #334155; + color: var(--sg-text); cursor: pointer; font: inherit; &.active { - background: #1d4ed8; - color: #fff; + background: var(--sg-blue-highlight); + color: var(--sg-card-bg); } } @@ -57,10 +55,10 @@ gap: 1rem; min-height: 120px; padding: 1.25rem; - border: 1px solid #e2e8f0; + border: 1px solid var(--sg-border); border-radius: 12px; - background: #fff; - box-shadow: 0 4px 14px rgb(15 23 42 / 6%); + background: var(--sg-card-bg); + box-shadow: var(--sg-shadow-sm); color: inherit; text-decoration: none; transition: @@ -69,13 +67,13 @@ transform 160ms ease; &:hover { - border-color: #93c5fd; - box-shadow: 0 8px 24px rgb(15 23 42 / 12%); + border-color: var(--sg-card-hover-border); + box-shadow: var(--sg-shadow-md); transform: translateY(-2px); } &:focus-visible { - outline: 3px solid #93c5fd; + outline: 3px solid var(--sg-card-hover-border); outline-offset: 3px; } @@ -86,13 +84,13 @@ span, small { display: block; - color: #64748b; + color: var(--sg-text-muted); } strong { display: block; margin: 0.2rem 0; - color: #0f172a; + color: var(--sg-text); font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; } @@ -105,38 +103,38 @@ height: 52px; place-items: center; border-radius: 12px; - background: #dbeafe; - color: #1d4ed8; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); &--persons { - background: #dcfce7; - color: #15803d; + background: var(--sg-success-soft); + color: var(--sg-success); } &--patents { - background: #fee2e2; - color: #b91c1c; + background: var(--sg-error-soft); + color: var(--sg-error); } &--eu-projects { - background: #e0f2fe; - color: #0369a1; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } &--bund-projects { - background: #fef3c7; - color: #b45309; + background: var(--sg-warning-soft); + color: var(--sg-warning); } &--dfg-projects { - background: #f3e8ff; - color: #7e22ce; + background: var(--sg-warning-soft); + color: var(--sg-warning); } } .statistics-error { margin: -1rem 0 2rem; - color: #b91c1c; + color: var(--sg-error); } .top-authors-section { @@ -146,9 +144,9 @@ .topic-heatmap-section { margin-bottom: 2.5rem; padding: 1.25rem; - border: 1px solid #e2e8f0; + border: 1px solid var(--sg-border); border-radius: 12px; - background: #fff; + background: var(--sg-card-bg); } .topic-heatmap-header { @@ -165,7 +163,7 @@ p { margin-top: 0.35rem; - color: #64748b; + color: var(--sg-text-muted); } @media (max-width: 820px) { @@ -194,8 +192,8 @@ span { padding: 0.35rem 0.65rem; border-radius: 999px; - background: #f1f5f9; - color: #475569; + background: var(--sg-surface-muted); + color: var(--sg-text-muted); font-size: 0.9rem; font-weight: 600; } @@ -203,7 +201,7 @@ .dfg-topic-summary { flex: 0 0 auto; - color: #475569; + color: var(--sg-text-muted); font-weight: 600; } @@ -221,7 +219,7 @@ p { margin-top: 0.35rem; - color: #64748b; + color: var(--sg-text-muted); } @media (max-width: 720px) { @@ -246,16 +244,16 @@ .top-authors-chart { padding: 1.25rem; - border: 1px solid #e2e8f0; + border: 1px solid var(--sg-border); border-radius: 12px; - background: #fff; + background: var(--sg-card-bg); h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; - color: #0f172a; + color: var(--sg-text); } } @@ -268,7 +266,7 @@ .author-rank { flex: 0 0 1.4rem; - color: #64748b; + color: var(--sg-text-muted); font-size: 0.8rem; text-align: center; } @@ -287,7 +285,7 @@ .author-name { overflow: hidden; - color: #1d4ed8; + color: var(--sg-blue-highlight); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; @@ -306,7 +304,7 @@ &:focus-visible { border-radius: 2px; - outline: 2px solid #93c5fd; + outline: 2px solid var(--sg-card-hover-border); outline-offset: 2px; } } @@ -315,20 +313,20 @@ overflow: hidden; height: 7px; border-radius: 999px; - background: #e2e8f0; + background: var(--sg-border); } .author-bar-fill { display: block; height: 100%; border-radius: inherit; - background: linear-gradient(90deg, #2563eb, #60a5fa); + background: var(--sg-primary); transition: width 220ms ease; } .empty-chart { margin: 2rem 0; - color: #64748b; + color: var(--sg-text-muted); text-align: center; } } diff --git a/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.scss b/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.scss index 73da71f3..6f698759 100644 --- a/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.scss +++ b/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.scss @@ -8,5 +8,5 @@ min-height: 260px; margin: 0; place-items: center; - color: #64748b; + color: var(--sg-text-muted); } diff --git a/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.ts b/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.ts index 2eb67e4a..0d65be22 100644 --- a/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.ts +++ b/webapp/src/app/modules/dashboard/dfg-topic-donut/dfg-topic-donut.component.ts @@ -1,6 +1,7 @@ -import { Component, Input, OnChanges } from '@angular/core'; +import { Component, Input, OnChanges, effect, inject } from '@angular/core'; import { EChartsOption } from 'echarts'; import { NgxEchartsDirective } from 'ngx-echarts'; +import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { DfgProjectTopic } from '../dashboard-statistics.service'; @@ -13,9 +14,22 @@ import { DfgProjectTopic } from '../dashboard-statistics.service'; export class DfgTopicDonutComponent implements OnChanges { @Input() topics: DfgProjectTopic[] = []; + private chartTheme = inject(ChartThemeService); options: EChartsOption = {}; + constructor() { + effect(() => { + this.buildOptions(); + }); + } + ngOnChanges(): void { + this.buildOptions(); + } + + private buildOptions(): void { + const theme = this.chartTheme.colors(); + this.options = { color: [ '#7255d9', @@ -29,9 +43,13 @@ export class DfgTopicDonutComponent implements OnChanges { '#db2777', '#9333ea', ], + backgroundColor: theme.backgroundColor, tooltip: { trigger: 'item', confine: true, + backgroundColor: theme.tooltipBg, + borderColor: theme.tooltipBorder, + textStyle: { color: theme.tooltipTextColor }, formatter: (params: any) => `${this.escapeHtml(String(params.name ?? ''))}
${Number(params.value ?? 0).toLocaleString('de-DE')} DFG-Projekte`, }, @@ -41,7 +59,7 @@ export class DfgTopicDonutComponent implements OnChanges { top: 'middle', right: 12, width: '38%', - textStyle: { color: '#334155' }, + textStyle: { color: theme.textColor }, formatter: (name: string) => this.truncate(name, 42), }, graphic: [ @@ -52,7 +70,7 @@ export class DfgTopicDonutComponent implements OnChanges { style: { text: `${this.topics.length}\nTopics`, align: 'center', - fill: '#0f172a', + fill: theme.textColor, fontSize: 18, fontWeight: 700, lineHeight: 25, @@ -68,7 +86,7 @@ export class DfgTopicDonutComponent implements OnChanges { avoidLabelOverlap: true, minAngle: 3, itemStyle: { - borderColor: '#ffffff', + borderColor: theme.cardBg, borderWidth: 3, borderRadius: 5, }, diff --git a/webapp/src/app/modules/dashboard/eu-project-status-chart/eu-project-status-chart.component.ts b/webapp/src/app/modules/dashboard/eu-project-status-chart/eu-project-status-chart.component.ts index d151b221..e3ac317e 100644 --- a/webapp/src/app/modules/dashboard/eu-project-status-chart/eu-project-status-chart.component.ts +++ b/webapp/src/app/modules/dashboard/eu-project-status-chart/eu-project-status-chart.component.ts @@ -1,6 +1,7 @@ -import { Component, Input, OnChanges } from '@angular/core'; +import { Component, Input, OnChanges, effect, inject } from '@angular/core'; import { EChartsOption } from 'echarts'; import { NgxEchartsDirective } from 'ngx-echarts'; +import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { BmbfProjectStatusStatistics, @@ -19,9 +20,23 @@ export class EuProjectStatusChartComponent implements OnChanges { @Input({ required: true }) bmbfStatuses!: BmbfProjectStatusStatistics; @Input({ required: true }) dfgStatuses!: DfgProjectStatusStatistics; + private chartTheme = inject(ChartThemeService); options: EChartsOption = {}; + constructor() { + effect(() => { + // Re-build options when theme colors signal changes + this.buildOptions(); + }); + } + ngOnChanges(): void { + this.buildOptions(); + } + + private buildOptions(): void { + const theme = this.chartTheme.colors(); + const values = [ { name: 'Laufend', @@ -48,17 +63,21 @@ export class EuProjectStatusChartComponent implements OnChanges { this.bmbfStatuses?.completed ?? 0, this.dfgStatuses?.completed ?? 0, ], - color: '#64748b', + color: theme.mutedTextColor, }, ]; this.options = { color: values.map((item) => item.color), animationDuration: 500, + backgroundColor: theme.backgroundColor, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' }, confine: true, + backgroundColor: theme.tooltipBg, + borderColor: theme.tooltipBorder, + textStyle: { color: theme.tooltipTextColor }, valueFormatter: (value) => `${Number(value ?? 0).toLocaleString('de-DE')} Projekte`, }, @@ -66,7 +85,7 @@ export class EuProjectStatusChartComponent implements OnChanges { top: 0, left: 'center', data: values.map((item) => item.name), - textStyle: { color: '#334155' }, + textStyle: { color: theme.textColor }, }, grid: { top: 56, right: 24, bottom: 30, left: 24, containLabel: true }, xAxis: { @@ -75,15 +94,16 @@ export class EuProjectStatusChartComponent implements OnChanges { name: 'Anzahl Projekte', nameLocation: 'middle', nameGap: 28, - axisLabel: { color: '#64748b' }, - splitLine: { lineStyle: { color: '#e2e8f0' } }, + axisLabel: { color: theme.mutedTextColor }, + nameTextStyle: { color: theme.mutedTextColor }, + splitLine: { lineStyle: { color: theme.gridLineColor } }, }, yAxis: { type: 'category', data: ['EU-Projekte', 'Bund-Projekte', 'DFG-Projekte'], axisTick: { show: false }, axisLine: { show: false }, - axisLabel: { color: '#334155', fontWeight: 600 }, + axisLabel: { color: theme.textColor, fontWeight: 600 }, }, series: values.map((item, index) => ({ name: item.name, @@ -96,7 +116,7 @@ export class EuProjectStatusChartComponent implements OnChanges { position: 'inside', formatter: (params) => Number(params.value ?? 0) > 0 ? String(params.value) : '', - color: '#ffffff', + color: theme.labelColor, fontWeight: 700, }, itemStyle: { diff --git a/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.scss b/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.scss index 76d9a95e..c79a89dc 100644 --- a/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.scss +++ b/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.scss @@ -4,12 +4,12 @@ justify-content: space-between; gap: 24px; padding: 24px 28px 20px; - border-bottom: 1px solid var(--sg-border, #dde5f2); - background: linear-gradient(135deg, #ffffff 52%, #f6f0ff 100%); + border-bottom: 1px solid var(--sg-border); + background: var(--sg-card-bg); h2 { margin: 1px 0 3px; - color: var(--sg-text, #101a3d); + color: var(--sg-text); font-family: 'Montserrat', sans-serif; font-size: 1.375rem; font-weight: 700; @@ -18,7 +18,7 @@ p { margin: 0; - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); font-size: 0.8125rem; font-weight: 400; } @@ -31,7 +31,7 @@ .dialog-eyebrow { display: block; - color: #7255d9; + color: var(--sg-primary); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; @@ -41,18 +41,18 @@ .dialog-close { flex: 0 0 auto; - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); &:hover { - background: #f1f3f7; - color: var(--sg-text, #101a3d); + background: var(--sg-surface-soft); + color: var(--sg-text); } } mat-dialog-content { min-height: 410px; padding: 20px 28px 28px !important; - background: #ffffff; + background: var(--sg-card-bg); } .topic-context-card { @@ -62,9 +62,9 @@ mat-dialog-content { gap: 12px; margin-bottom: 18px; padding: 12px; - border: 1px solid var(--sg-border, #dde5f2); + border: 1px solid var(--sg-border); border-radius: 12px; - background: var(--sg-surface-muted, #f7f9ff); + background: var(--sg-surface-muted); } .topic-context-item { @@ -91,21 +91,21 @@ mat-dialog-content { } .topic-context-icon--field { - border: 1px solid #bdd4ff; - background: #f0f6ff; - color: #0b63ce; + border: 1px solid var(--sg-blue-highlight); + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } .topic-context-icon--subfield { - border: 1px solid #bdebcf; - background: #effaf3; - color: #24834f; + border: 1px solid var(--sg-success); + background: var(--sg-success-soft); + color: var(--sg-success); } .topic-context-icon--topic { - border: 1px solid #d8cafe; - background: #f6f0ff; - color: #7255d9; + border: 1px solid var(--sg-primary); + background: var(--sg-primary-soft); + color: var(--sg-primary); } .topic-context-copy { @@ -116,7 +116,7 @@ mat-dialog-content { strong { overflow: hidden; - color: #334155; + color: var(--sg-text); font-size: 0.8125rem; font-weight: 600; line-height: 1.35; @@ -126,11 +126,11 @@ mat-dialog-content { } .topic-context-item--topic strong { - color: #7255d9; + color: var(--sg-primary); } .topic-context-label { - color: var(--sg-text-soft, #8a95b3); + color: var(--sg-text-soft); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.07em; @@ -141,15 +141,15 @@ mat-dialog-content { .topic-context-arrow { width: 18px; height: 18px; - color: #a8b2c8; + color: var(--sg-text-soft); font-size: 18px; } .word-cloud-panel { overflow: hidden; - border: 1px solid var(--sg-border, #dde5f2); + border: 1px solid var(--sg-border); border-radius: 16px; - background: #ffffff; + background: var(--sg-card-bg); box-shadow: var(--sg-shadow-sm); } @@ -159,11 +159,11 @@ mat-dialog-content { justify-content: space-between; gap: 16px; padding: 14px 18px; - border-bottom: 1px solid #e8edf5; + border-bottom: 1px solid var(--sg-border); h3 { margin: 0 0 2px; - color: var(--sg-text, #101a3d); + color: var(--sg-text); font-family: 'Montserrat', sans-serif; font-size: 0.9375rem; font-weight: 700; @@ -171,7 +171,7 @@ mat-dialog-content { p { margin: 0; - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); font-size: 0.75rem; } } @@ -179,10 +179,10 @@ mat-dialog-content { .word-count { flex: 0 0 auto; padding: 5px 9px; - border: 1px solid #d8cafe; + border: 1px solid var(--sg-primary); border-radius: 999px; - background: #f6f0ff; - color: #7255d9; + background: var(--sg-primary-soft); + color: var(--sg-primary); font-size: 0.6875rem; font-weight: 700; } @@ -193,20 +193,20 @@ mat-dialog-content { align-items: center; gap: 14px; padding: 10px 14px; - border-bottom: 1px solid #e8edf5; - background: #f8faff; + border-bottom: 1px solid var(--sg-border); + background: var(--sg-surface-muted); } .keyword-toolbar-label { display: flex; align-items: center; gap: 8px; - color: #334155; + color: var(--sg-text); > mat-icon { width: 19px; height: 19px; - color: #7255d9; + color: var(--sg-primary); font-size: 19px; } @@ -221,7 +221,7 @@ mat-dialog-content { } small { - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); font-size: 0.6875rem; } } @@ -240,10 +240,10 @@ mat-dialog-content { align-items: center; gap: 4px; padding: 4px 7px 4px 9px; - border: 1px solid #c9bafa; + border: 1px solid var(--sg-primary); border-radius: 999px; - background: #f6f0ff; - color: #6347c8; + background: var(--sg-primary-soft); + color: var(--sg-primary); cursor: pointer; font: inherit; font-size: 0.6875rem; @@ -256,13 +256,13 @@ mat-dialog-content { } &:hover { - border-color: #a992ef; - background: #eee7ff; + border-color: var(--sg-primary); + background: var(--sg-surface-soft); } } .keyword-selection-empty { - color: var(--sg-text-soft, #8a95b3); + color: var(--sg-text-soft); font-size: 0.75rem; font-style: italic; } @@ -286,7 +286,7 @@ mat-dialog-content { } .keyword-search--secondary { - background: #ffffff; + background: var(--sg-card-bg); } .keyword-search--disabled { @@ -303,18 +303,7 @@ mat-dialog-content { justify-content: center; gap: 14px 20px; padding: 30px 34px; - background: - radial-gradient( - circle at 15% 20%, - rgba(114, 85, 217, 0.06), - transparent 28% - ), - radial-gradient( - circle at 85% 75%, - rgba(11, 99, 206, 0.05), - transparent 30% - ), - #ffffff; + background: var(--sg-card-bg); } .word-cloud-word { @@ -332,20 +321,20 @@ mat-dialog-content { background-color 150ms ease; &:hover { - background: rgba(241, 243, 247, 0.9); + background: var(--sg-surface-soft); transform: translateY(-2px); } &:focus-visible { - outline: 3px solid rgba(114, 85, 217, 0.25); + outline: 3px solid var(--sg-primary); outline-offset: 2px; } } .word-cloud-word--selected { border-color: currentColor; - background: #ffffff; - box-shadow: 0 2px 8px rgba(51, 65, 85, 0.16); + background: var(--sg-card-bg); + box-shadow: var(--sg-shadow-md); transform: translateY(-2px); } @@ -357,12 +346,12 @@ mat-dialog-content { flex-direction: column; gap: 6px; padding: 24px; - color: var(--sg-text-muted, #64708f); + color: var(--sg-text-muted); text-align: center; strong { margin-top: 4px; - color: var(--sg-text, #101a3d); + color: var(--sg-text); font-size: 0.9375rem; } @@ -377,24 +366,24 @@ mat-dialog-content { height: 46px; place-items: center; border-radius: 50%; - background: #f1f3f7; - color: #64708f; + background: var(--sg-surface-soft); + color: var(--sg-text-muted); } .state-icon--loading { - background: #f6f0ff; - color: #7255d9; + background: var(--sg-primary-soft); + color: var(--sg-primary); animation: state-pulse 1.4s ease-in-out infinite; } .word-cloud-state--error .state-icon { - background: #fff1f5; - color: #d12f61; + background: var(--sg-error-soft); + color: var(--sg-error); } @keyframes state-pulse { 50% { - box-shadow: 0 0 0 8px rgba(114, 85, 217, 0.08); + box-shadow: 0 0 0 8px var(--sg-primary-soft); transform: scale(1.04); } } diff --git a/webapp/src/app/modules/error-page/error-page.component.scss b/webapp/src/app/modules/error-page/error-page.component.scss index b7c2bee1..2f4c1daa 100644 --- a/webapp/src/app/modules/error-page/error-page.component.scss +++ b/webapp/src/app/modules/error-page/error-page.component.scss @@ -1,6 +1,6 @@ .error-container { min-height: 90vh; - background-color: none !important; + background-color: transparent !important; display: flex; align-items: center; justify-content: center; @@ -11,9 +11,7 @@ .error-card { max-width: 450px; width: 100%; - box-shadow: - 0 4px 6px -1px rgb(0 0 0 / 0.05), - 0 2px 4px -2px rgb(0 0 0 / 0.05) !important; + box-shadow: var(--sg-shadow-sm) !important; } .error-content { @@ -33,7 +31,7 @@ font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; - color: #94a3b8; + color: var(--sg-text-muted); text-transform: uppercase; } @@ -41,7 +39,7 @@ margin: 0.5rem 0 1rem 0; font-size: 1.75rem; font-weight: 700; - color: #1e293b; + color: var(--sg-text); letter-spacing: -0.025em; line-height: 1.2; } @@ -49,7 +47,7 @@ .error-message { margin: 0 0 2rem 0; font-size: 1rem; - color: #475569; + color: var(--sg-text-muted); line-height: 1.6; } @@ -68,17 +66,18 @@ .diagnostics-title { font-size: 0.75rem !important; font-weight: 600; - color: #94a3b8; + color: var(--sg-text-muted); letter-spacing: 0.05em; } .diagnostics-code { margin-top: 0.5rem; padding: 1rem; - background-color: #0f172a; + background-color: var(--sg-surface-muted); + border: 1px solid var(--sg-border); border-radius: 8px; font-size: 0.75rem; - color: #34d399; + color: var(--sg-success); overflow-x: auto; font-family: monospace; text-align: left; diff --git a/webapp/src/app/modules/institution-patents/institution-patents.component.html b/webapp/src/app/modules/institution-patents/institution-patents.component.html index a80d0f90..eab62610 100644 --- a/webapp/src/app/modules/institution-patents/institution-patents.component.html +++ b/webapp/src/app/modules/institution-patents/institution-patents.component.html @@ -224,7 +224,7 @@ Patentdetails anzeigen - +

Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation diff --git a/webapp/src/app/modules/institution-patents/institution-patents.component.scss b/webapp/src/app/modules/institution-patents/institution-patents.component.scss index ec7cf852..2175e457 100644 --- a/webapp/src/app/modules/institution-patents/institution-patents.component.scss +++ b/webapp/src/app/modules/institution-patents/institution-patents.component.scss @@ -1,19 +1,19 @@ .message { padding: 16px; - color: #666; + color: var(--sg-text-muted); &.message-hint { padding-top: 0; font-size: 13px; - color: #888; + color: var(--sg-text-muted); code { display: inline-block; margin-top: 6px; padding: 4px 8px; border-radius: 6px; - background: #f5f5f5; - color: #333; + background: var(--sg-surface-soft); + color: var(--sg-text); font-size: 12px; } } @@ -60,30 +60,31 @@ th { text-align: left; padding: 10px 12px; - border-bottom: 2px solid #e0e0e0; + border-bottom: 2px solid var(--sg-border); font-weight: 600; - color: #333; + color: var(--sg-text); } tr { cursor: pointer; + color: var(--sg-text); &:hover { - background: #f5f5f5; + background: var(--sg-surface-soft); } &.selected { - background: #f0f0f0; + background: var(--sg-surface-muted); } } td { padding: 10px 12px; - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid var(--sg-border); } .patent-title { - color: #333; + color: var(--sg-text); font-weight: 500; max-width: 280px; white-space: nowrap; @@ -96,7 +97,7 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - color: #555; + color: var(--sg-text-muted); font-size: 13px; } @@ -118,26 +119,26 @@ font-weight: 700; &--institution { - background: #f5f3ff; - color: #6d28d9; - border: 1px solid #ddd6fe; + background: var(--sg-primary-soft); + color: var(--sg-primary); + border: 1px solid var(--sg-border); } &--name { - background: #fff7ed; - color: #c2410c; - border: 1px solid #fed7aa; + background: var(--sg-warning-soft); + color: var(--sg-warning); + border: 1px solid var(--sg-border); } &--both { - background: #ecfdf5; - color: #047857; - border: 1px solid #a7f3d0; + background: var(--sg-success-soft); + color: var(--sg-success); + border: 1px solid var(--sg-border); } } .author-link { - color: #2563eb; + color: var(--sg-blue-highlight); text-decoration: none; font-size: 0.82rem; @@ -155,30 +156,30 @@ font-weight: 700; &--epo { - background: #effaf3; - color: #24834f; - border: 1px solid #bdebcf; + background: var(--sg-success-soft); + color: var(--sg-success); + border: 1px solid var(--sg-border); } &--uspto { - background: #f0f6ff; - color: #0b63ce; - border: 1px solid #bdd4ff; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); + border: 1px solid var(--sg-border); } } .patent-detail { width: 440px; - border: 1px solid #e0e0e0; + border: 1px solid var(--sg-border); border-radius: 8px; padding: 20px; - background: #fafafa; + background: var(--sg-surface-muted); &.empty { display: flex; align-items: center; justify-content: center; - color: #999; + color: var(--sg-text-muted); min-height: 200px; } @@ -190,13 +191,13 @@ .overview-title { font-size: 15px; font-weight: 600; - color: #333; + color: var(--sg-text); margin: 0; } .overview-subtitle { font-size: 13px; - color: #888; + color: var(--sg-text-muted); margin: 0; } @@ -208,8 +209,8 @@ } .overview-stat { - background: white; - border: 1px solid #e0e0e0; + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); border-radius: 8px; padding: 12px 8px; text-align: center; @@ -218,48 +219,48 @@ display: block; font-size: 22px; font-weight: 700; - color: #333; + color: var(--sg-text); } .overview-label { display: block; font-size: 12px; - color: #888; + color: var(--sg-text-muted); margin-top: 4px; } &--total { .overview-value, .overview-label { - color: #0b63ce; + color: var(--sg-blue-highlight); } } &--institution { .overview-value, .overview-label { - color: #6d28d9; + color: var(--sg-primary); } } &--name { .overview-value, .overview-label { - color: #c2410c; + color: var(--sg-warning); } } &--both { .overview-value, .overview-label { - color: #047857; + color: var(--sg-success); } } } .overview-hint { font-size: 12px; - color: #aaa; + color: var(--sg-text-muted); margin: 0; } } @@ -267,7 +268,7 @@ h3 { margin: 0 0 16px 0; font-size: 16px; - color: #333; + color: var(--sg-text); line-height: 1.4; } } @@ -278,8 +279,8 @@ gap: 10px; .stat { - background: white; - border: 1px solid #e0e0e0; + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); border-radius: 8px; padding: 10px; text-align: center; @@ -287,7 +288,7 @@ .stat-label { display: block; font-size: 11px; - color: #666; + color: var(--sg-text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; @@ -297,7 +298,7 @@ display: block; font-size: 15px; font-weight: bold; - color: #333; + color: var(--sg-text); } } } @@ -306,7 +307,7 @@ margin: 14px 0 0; font-size: 13px; line-height: 1.55; - color: #555; + color: var(--sg-text-muted); } .patent-detail-action { @@ -317,10 +318,10 @@ width: 100%; margin-top: 16px; padding: 12px 14px; - border: 1px solid #bdd4ff; + border: 1px solid var(--sg-border); border-radius: 10px; - background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%); - color: #0b63ce; + background: var(--sg-surface-soft); + color: var(--sg-blue-highlight); font-size: 14px; font-weight: 600; cursor: pointer; @@ -330,9 +331,9 @@ box-shadow 0.15s; &:hover { - border-color: #0b63ce; - background: #f0f6ff; - box-shadow: 0 2px 8px rgba(11, 99, 206, 0.12); + border-color: var(--sg-blue-highlight); + background: var(--sg-primary-soft); + box-shadow: var(--sg-shadow-sm); } .material-icons { @@ -344,34 +345,34 @@ margin: 8px 0 0; font-size: 12px; line-height: 1.4; - color: #888; + color: var(--sg-text-muted); text-align: center; } .patent-full-detail { flex: 1; - border: 1px solid #e0e0e0; + border: 1px solid var(--sg-border); border-radius: 8px; padding: 20px; - background: #fafafa; + background: var(--sg-card-bg); h3 { margin: 0 0 4px 0; font-size: 16px; - color: #333; + color: var(--sg-text); line-height: 1.4; } h4 { margin: 16px 0 8px 0; font-size: 14px; - color: #555; + color: var(--sg-text-muted); font-weight: 600; } p { font-size: 13px; - color: #444; + color: var(--sg-text); line-height: 1.6; margin: 0; } @@ -386,11 +387,11 @@ margin-bottom: 1rem; padding: 0.5rem 0.85rem; - border: 1px solid #d6e3f8; + border: 1px solid var(--sg-border); border-radius: 999px; - background: #f8fbff; - color: #2563eb; + background: var(--sg-surface-soft); + color: var(--sg-blue-highlight); font-size: 0.9rem; font-weight: 600; @@ -403,14 +404,14 @@ box-shadow 0.15s ease; &:hover { - background: #eef5ff; - border-color: #bcd3f7; - color: #1d4ed8; - box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12); + background: var(--sg-primary-soft); + border-color: var(--sg-blue-highlight); + color: var(--sg-blue-highlight); + box-shadow: var(--sg-shadow-sm); } &:focus-visible { - outline: 2px solid #93c5fd; + outline: 2px solid var(--sg-blue-highlight); outline-offset: 2px; } } @@ -418,7 +419,7 @@ .detail-section { margin-top: 12px; padding-top: 12px; - border-top: 1px solid #eee; + border-top: 1px solid var(--sg-border); } .patent-meta { @@ -428,10 +429,10 @@ &__list { margin: 0; - border: 1px solid #e2e8f4; + border: 1px solid var(--sg-border); border-radius: 12px; - background: linear-gradient(180deg, #fff 0%, #f8faff 100%); - box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); + background: var(--sg-card-bg); + box-shadow: var(--sg-shadow-sm); overflow: hidden; } @@ -441,7 +442,7 @@ gap: 12px 16px; align-items: center; padding: 11px 16px; - border-top: 1px solid #eef2f8; + border-top: 1px solid var(--sg-border); &:first-child { border-top: 0; @@ -451,7 +452,7 @@ margin: 0; font-size: 12px; font-weight: 500; - color: #64748b; + color: var(--sg-text-muted); line-height: 1.35; } @@ -459,7 +460,7 @@ margin: 0; font-size: 14px; font-weight: 600; - color: #1e293b; + color: var(--sg-text); line-height: 1.35; word-break: break-word; } @@ -483,32 +484,32 @@ .tag { padding: 4px 10px; border-radius: 999px; - background: #f0f6ff; - border: 1px solid #dbeafe; - color: #1e40af; + background: var(--sg-primary-soft); + border: 1px solid var(--sg-border); + color: var(--sg-blue-highlight); font-size: 0.8rem; line-height: 1.3; } .classification-section { &--ipc .classification-card { - background: #f0f6ff; - border-color: #bfdbfe; + background: var(--sg-primary-soft); + border-color: var(--sg-border); } &--ipc .classification-badge--system { - background: #dbeafe; - color: #1d4ed8; + background: var(--sg-surface-muted); + color: var(--sg-blue-highlight); } &--cpc .classification-card { - background: #f0fdf4; - border-color: #bbf7d0; + background: var(--sg-success-soft); + border-color: var(--sg-border); } &--cpc .classification-badge--system { - background: #dcfce7; - color: #15803d; + background: var(--sg-surface-muted); + color: var(--sg-success); } } @@ -521,7 +522,7 @@ .classification-card { padding: 12px 14px; border-radius: 10px; - border: 1px solid #dbeafe; + border: 1px solid var(--sg-border); } .classification-card__header { @@ -547,7 +548,7 @@ .classification-code { font-size: 0.9rem; font-weight: 700; - color: #0f172a; + color: var(--sg-text); } .classification-badge { @@ -562,15 +563,15 @@ } .classification-badge--level { - background: #e2e8f0; - color: #475569; + background: var(--sg-surface-muted); + color: var(--sg-text-muted); } .classification-summary { margin: 10px 0 0; font-size: 0.84rem; line-height: 1.5; - color: #334155; + color: var(--sg-text-muted); } .classification-toggle { @@ -578,7 +579,7 @@ padding: 0; border: 0; background: none; - color: #2563eb; + color: var(--sg-blue-highlight); font-size: 0.78rem; cursor: pointer; @@ -590,7 +591,7 @@ .classification-hierarchy { margin: 10px 0 0; padding-top: 10px; - border-top: 1px solid rgba(15, 23, 42, 0.08); + border-top: 1px solid var(--sg-border); } .classification-hierarchy__row { @@ -603,7 +604,7 @@ margin: 0; font-size: 0.72rem; font-weight: 700; - color: #64748b; + color: var(--sg-text-muted); text-transform: uppercase; letter-spacing: 0.03em; } @@ -612,7 +613,7 @@ margin: 0; font-size: 0.8rem; line-height: 1.45; - color: #334155; + color: var(--sg-text); } } @@ -625,9 +626,10 @@ button { padding: 4px 10px; - border: 1px solid #d0d0d0; + border: 1px solid var(--sg-border); border-radius: 6px; - background: white; + background: var(--sg-surface); + color: var(--sg-text); cursor: pointer; font-size: 12px; @@ -639,6 +641,6 @@ span { font-size: 12px; - color: #666; + color: var(--sg-text-muted); } } diff --git a/webapp/src/app/modules/jobs/job-logs-dialog/job-logs-dialog.component.scss b/webapp/src/app/modules/jobs/job-logs-dialog/job-logs-dialog.component.scss index b65b114c..18ae63d9 100644 --- a/webapp/src/app/modules/jobs/job-logs-dialog/job-logs-dialog.component.scss +++ b/webapp/src/app/modules/jobs/job-logs-dialog/job-logs-dialog.component.scss @@ -1,5 +1,5 @@ .no-logs { - color: #64748b; + color: var(--sg-text-muted); margin: 0; } @@ -8,15 +8,15 @@ align-items: center; gap: 10px; min-height: 120px; - color: #64748b; + color: var(--sg-text-muted); } .logs-error { margin: 0; padding: 16px; border-radius: 6px; - background: #fef2f2; - color: #991b1b; + background: var(--sg-error-soft); + color: var(--sg-error); } .logs-header { @@ -32,7 +32,7 @@ align-items: center; gap: 12px; font-size: 13px; - color: #64748b; + color: var(--sg-text-muted); } .logs-actions { @@ -54,28 +54,29 @@ } &--success { - color: #166534; + color: var(--sg-success); } &--failed { - color: #991b1b; + color: var(--sg-error); } &--running { - color: #92400e; + color: var(--sg-warning); } &--stopped { - color: #64748b; + color: var(--sg-text-muted); } &--idle { - color: #64748b; + color: var(--sg-text-muted); } } .logs-panel { - background: #0f172a; + background: var(--sg-surface); + border: 1px solid var(--sg-border); border-radius: 6px; padding: 12px 14px; min-width: 520px; @@ -83,32 +84,10 @@ min-height: 120px; max-height: 55vh; overflow: auto; - scrollbar-width: thin; - scrollbar-color: #64748b #1e293b; - - &::-webkit-scrollbar { - width: 12px; - height: 12px; - } - - &::-webkit-scrollbar-track { - background: #1e293b; - border-radius: 6px; - } - - &::-webkit-scrollbar-thumb { - background: #64748b; - border-radius: 6px; - border: 3px solid #0f172a; - } - - &::-webkit-scrollbar-thumb:hover { - background: #94a3b8; - } pre { margin: 0; - color: #e2e8f0; + color: var(--sg-text); font-family: 'Roboto Mono', ui-monospace, monospace; font-size: 12px; white-space: pre-wrap; @@ -116,7 +95,7 @@ } .logs-loading { - color: #cbd5e1; + color: var(--sg-text-muted); } } @@ -124,7 +103,7 @@ display: flex; align-items: center; gap: 10px; - color: #64748b; + color: var(--sg-text-muted); font-size: 13px; } @@ -134,13 +113,13 @@ } .logs-hint { - color: #94a3b8; + color: var(--sg-text-muted); font-size: 12px; } .run-duration { font-size: 13px; - color: #475569; + color: var(--sg-text-muted); } @media (max-width: 640px) { diff --git a/webapp/src/app/modules/jobs/jobs.component.scss b/webapp/src/app/modules/jobs/jobs.component.scss index 1777b492..8f726798 100644 --- a/webapp/src/app/modules/jobs/jobs.component.scss +++ b/webapp/src/app/modules/jobs/jobs.component.scss @@ -20,6 +20,7 @@ h1, p { margin: 0; + color: var(--sg-text); } .page-header h1 { @@ -28,7 +29,7 @@ p { } .page-header p { - color: #64748b; + color: var(--sg-text-muted); margin-top: 6px; } @@ -45,6 +46,8 @@ mat-paginator { .health-card { flex: 1 1 0; min-width: 0; + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); } .health-content { @@ -69,21 +72,21 @@ mat-paginator { width: 12px; height: 12px; border-radius: 50%; - background: #94a3b8; + background: var(--sg-text-soft); flex-shrink: 0; &--ok { - background: #16a34a; + background: var(--sg-success); } &--error { - background: #dc2626; + background: var(--sg-error); } } .health-detail { font-size: 12px; - color: #64748b; + color: var(--sg-text-muted); } .health-title { @@ -95,7 +98,7 @@ mat-paginator { .health-host { font-size: 11px; - color: #64748b; + color: var(--sg-text-muted); word-break: break-all; } @@ -151,7 +154,7 @@ mat-paginator { border: none; background: none; cursor: pointer; - color: #64748b; + color: var(--sg-text-muted); opacity: 0; transition: opacity 0.15s ease; @@ -170,19 +173,19 @@ mat-paginator { .edit-name-action[disabled] { cursor: not-allowed; - color: #cbd5e1; + color: var(--sg-text-soft); } .task-description { font-size: 12px; - color: #64748b; + color: var(--sg-text-muted); } .task-index { width: fit-content; font-size: 11px; - color: #475569; - background: #f1f5f9; + color: var(--sg-text); + background: var(--sg-surface-muted); border-radius: 4px; padding: 1px 6px; } @@ -200,12 +203,12 @@ mat-paginator { font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace; font-size: 13px; - color: #334155; + color: var(--sg-text); } .next-run { font-size: 12px; - color: #64748b; + color: var(--sg-text-muted); } .enabled-badge { @@ -214,12 +217,12 @@ mat-paginator { font-weight: 700; padding: 1px 8px; border-radius: 999px; - background: #e2e8f0; - color: #64748b; + background: var(--sg-surface-soft); + color: var(--sg-text-muted); &--on { - background: #dcfce7; - color: #166534; + background: var(--sg-success-soft); + color: var(--sg-success); } } @@ -237,23 +240,23 @@ mat-paginator { } &--success { - color: #166534; + color: var(--sg-success); } &--failed { - color: #991b1b; + color: var(--sg-error); } &--running { - color: #92400e; + color: var(--sg-warning); } &--stopped { - color: #64748b; + color: var(--sg-text-muted); } &--idle { - color: #64748b; + color: var(--sg-text-muted); } } @@ -268,12 +271,12 @@ mat-paginator { .last-run-message { font-size: 12px; - color: #64748b; + color: var(--sg-text-muted); } .last-run-empty { font-size: 13px; - color: #64748b; + color: var(--sg-text-muted); } .row-actions { @@ -282,7 +285,7 @@ mat-paginator { } .delete-action:not(:disabled) { - color: #b91c1c; + color: var(--sg-error); } .actions-header { diff --git a/webapp/src/app/modules/jobs/task-create-dialog/task-create-dialog.component.scss b/webapp/src/app/modules/jobs/task-create-dialog/task-create-dialog.component.scss index e4d82bc2..2469e2a4 100644 --- a/webapp/src/app/modules/jobs/task-create-dialog/task-create-dialog.component.scss +++ b/webapp/src/app/modules/jobs/task-create-dialog/task-create-dialog.component.scss @@ -3,7 +3,6 @@ flex-direction: column; gap: 12px; min-width: 400px; - padding-top: 6px; } @@ -22,24 +21,24 @@ display: flex; align-items: center; gap: 8px; - color: #64748b; + color: var(--sg-text-muted); font-size: 14px; } .field-hint { margin: -6px 0 0; - color: #64748b; + color: var(--sg-text-muted); font-size: 12px; } .field-info { - color: #94a3b8; + color: var(--sg-text-muted); cursor: help; } .server-error { margin: 8px 0 0; - color: #b3261e; + color: var(--sg-error); font-size: 14px; } diff --git a/webapp/src/app/modules/jobs/task-edit-dialog/task-edit-dialog.component.scss b/webapp/src/app/modules/jobs/task-edit-dialog/task-edit-dialog.component.scss index 6f18c2d5..453fa371 100644 --- a/webapp/src/app/modules/jobs/task-edit-dialog/task-edit-dialog.component.scss +++ b/webapp/src/app/modules/jobs/task-edit-dialog/task-edit-dialog.component.scss @@ -3,7 +3,6 @@ flex-direction: column; gap: 12px; min-width: 400px; - padding-top: 6px; } @@ -19,13 +18,13 @@ } .field-info { - color: #94a3b8; + color: var(--sg-text-muted); cursor: help; } .server-error { margin: 8px 0 0; - color: #b3261e; + color: var(--sg-error); font-size: 14px; } diff --git a/webapp/src/app/modules/jobs/task-schedule-dialog/task-schedule-dialog.component.scss b/webapp/src/app/modules/jobs/task-schedule-dialog/task-schedule-dialog.component.scss index a684f79b..a297dd11 100644 --- a/webapp/src/app/modules/jobs/task-schedule-dialog/task-schedule-dialog.component.scss +++ b/webapp/src/app/modules/jobs/task-schedule-dialog/task-schedule-dialog.component.scss @@ -1,6 +1,6 @@ .task-description { margin: 0 0 16px; - color: #64748b; + color: var(--sg-text-muted); } .schedule-form { @@ -18,7 +18,7 @@ .field-hint { margin: -6px 0 0; - color: #64748b; + color: var(--sg-text-muted); font-size: 12px; } @@ -44,7 +44,7 @@ width: 36px; height: 20px; border-radius: 999px; - background: #cbd5e1; + background: var(--sg-border-strong); transition: background 0.15s ease; } @@ -55,13 +55,13 @@ width: 16px; height: 16px; border-radius: 50%; - background: #ffffff; - box-shadow: 0 1px 2px rgba(16, 26, 61, 0.3); + background: var(--sg-color-mix-base); + box-shadow: var(--sg-shadow-sm); transition: transform 0.15s ease; } .enabled-toggle--on .enabled-toggle__track { - background: #2259a8; + background: var(--sg-primary); } .enabled-toggle--on .enabled-toggle__thumb { @@ -70,11 +70,11 @@ .enabled-toggle__label { font-size: 14px; - color: var(--sg-text, #101a3d); + color: var(--sg-text); } .enabled-toggle:focus-visible { - outline: 2px solid #2259a8; + outline: 2px solid var(--sg-primary); outline-offset: 2px; border-radius: 4px; } @@ -82,7 +82,7 @@ .next-run-hint { margin: 0; font-size: 12px; - color: #64748b; + color: var(--sg-text-muted); } @media (max-width: 640px) { diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.scss b/webapp/src/app/modules/keywords-search/keywords-search.component.scss index 1acbbc26..470a8916 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.scss @@ -48,12 +48,12 @@ $touch-target: 44px; .keywords-toolbar { display: flex; flex-direction: column; - background: var(--sg-background-muted, #f4f5f7); + background: var(--sg-surface-muted); ::ng-deep app-topic-legend .topic-legend { width: 100%; - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8)); + border: 1px solid var(--sg-border); border-bottom: none; border-radius: 4px; margin: 0; @@ -65,17 +65,16 @@ $touch-target: 44px; justify-content: space-around; gap: 0.75rem; padding: 0.5rem 0.75rem; - background: var(--sg-background-muted, #f4f5f7); + background: var(--sg-surface-muted); } .toolbar-wrapper { display: grid; grid-template-columns: 3fr 1.3fr; - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8)); + border: 1px solid var(--sg-border); border-bottom: none; } .toolbar-controls--placeholder { - /* invisible spacer, preserves grid column width/position */ visibility: hidden; pointer-events: none; } @@ -109,7 +108,7 @@ $touch-target: 44px; } .toolbar-controls--placeholder { - display: none; /* no need for a spacer once stacked */ + display: none; } } @@ -117,7 +116,7 @@ $touch-target: 44px; display: flex; justify-content: center; gap: 0.5rem; - flex-wrap: nowrap; /* fixed: was invalid "no-wrap" */ + flex-wrap: nowrap; align-items: center; } @@ -141,7 +140,7 @@ $touch-target: 44px; .toolbar-divider { width: 1px; align-self: stretch; - background: var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-border); } mat-button-toggle-group { @@ -214,7 +213,7 @@ mat-button-toggle-group { .keyword-card { padding: 0 !important; - background: var(--sg-background-muted, #f4f5f7); + background: var(--sg-surface-muted); .mat-card-header { padding: 0 0 0.5rem 0; } @@ -233,14 +232,14 @@ mat-button-toggle-group { } .table-head { - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8)); + border: 1px solid var(--sg-border); padding-top: 0.5rem; display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; column-gap: 1rem; - border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8)); + border-bottom: 1px solid var(--sg-border); padding-bottom: 0.5rem; - background: var(--sg-background-muted, #f4f5f7); + background: var(--sg-surface-muted); } .head-cell { @@ -250,7 +249,7 @@ mat-button-toggle-group { .sub-cell { font-weight: 500; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); font-size: clamp(0.8rem, 1.2vw, 1rem); text-transform: uppercase; letter-spacing: 0.05em; @@ -265,7 +264,6 @@ mat-button-toggle-group { column-gap: 1rem; row-gap: 0.4rem; align-items: start; - //border-left: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8)); } .table-col { @@ -274,7 +272,7 @@ mat-button-toggle-group { min-width: 0; padding: 0.5rem; height: 100%; - border-right: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.8)); + border-right: 1px solid var(--sg-border); &:last-child { border-right: none; @@ -295,7 +293,7 @@ mat-button-toggle-group { } .thick-border { - border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.08)) !important; + border-right: 5px solid var(--sg-border) !important; } @container keyword-tool (max-width: #{$tablet}) { @@ -329,8 +327,8 @@ mat-button-toggle-group { margin-left: 0.35rem; font-size: 0.75rem; font-weight: 600; - color: var(--sg-text-secondary); - background: var(--sg-background-muted, #eceff1); + color: var(--sg-text-muted); + background: var(--sg-surface-muted); border-radius: 10px; padding: 0 6px; min-width: 18px; @@ -431,7 +429,7 @@ mat-button-toggle-group { .empty-state { text-align: center; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); margin: 0; font-size: 0.85rem; padding: 0.35rem 0; @@ -490,10 +488,10 @@ mat-button-toggle-group { position: sticky; bottom: 0; z-index: 5; - background: var(--sg-background, #fff); + background: var(--sg-background); padding: 0.75rem 0.5rem; margin-top: 0.75rem; - box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08); + box-shadow: var(--sg-shadow-md); } .search-actions { @@ -567,9 +565,8 @@ mat-button-toggle-group { ============================================================ */ .source-expansion { margin: 0.5rem 1rem; - background: var(--sg-background-muted, #f5f5f5); + background: var(--sg-surface-muted); border-radius: 4px; - //border-left: 4px solid var(--sg-primary, #1976d2); .mat-expansion-panel-header { padding: 0.5rem 0.75rem; @@ -577,7 +574,7 @@ mat-button-toggle-group { min-height: 36px; font-size: 1rem; text-transform: uppercase; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); letter-spacing: 0.05em; .mat-expansion-panel-header-title { @@ -594,7 +591,7 @@ mat-button-toggle-group { ::ng-deep .mat-expansion-panel-content { font-size: 0.85rem; line-height: 1.5; - color: var(--sg-text-primary); + color: var(--sg-text); } ::ng-deep .mat-expansion-panel-body { @@ -611,7 +608,7 @@ mat-button-toggle-group { } ::ng-deep .mat-expansion-panel-header:hover { - background: rgba(0, 0, 0, 0.03); + background: var(--sg-surface-soft); } } @@ -640,7 +637,7 @@ mat-button-toggle-group { 90deg, transparent 0%, transparent 35%, - #2196f3 50%, + var(--sg-primary) 50%, transparent 65%, transparent 100% ); @@ -649,8 +646,8 @@ mat-button-toggle-group { animation: border-loading 1.5s linear infinite; -webkit-mask: - linear-gradient(#fff 0 0) content-box, - linear-gradient(#fff 0 0); + linear-gradient(var(--sg-color-mix-base) 0 0) content-box, + linear-gradient(var(--sg-color-mix-base) 0 0); -webkit-mask-composite: xor; mask-composite: exclude; @@ -661,7 +658,7 @@ mat-button-toggle-group { align-self: center; margin-top: 0.5rem; font-size: 0.9rem; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); text-align: center; font-weight: 500; } @@ -688,6 +685,6 @@ mat-button-toggle-group { button:focus-visible, .mat-button-toggle:focus-visible, ::ng-deep .mat-mdc-tab:focus-visible { - outline: 2px solid var(--sg-primary, #1976d2); + outline: 2px solid var(--sg-primary); outline-offset: 2px; } -- 2.56.1 From b0581ad45281cfb98d573870a8ae657e2fb30bf6 Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:10:41 +0200 Subject: [PATCH 03/24] changed static color to use dynamic theme --- .../keywords-patents.component.html | 2 +- .../keywords-patents.component.scss | 46 +++--- .../keywords-search.component.ts | 2 +- .../news-results/news-results.component.scss | 4 +- .../patents-results.component.scss | 4 +- .../persons-results.component.scss | 26 ++-- .../search-results.component.scss | 34 ++--- .../works-results.component.scss | 14 +- .../news-detail/news-detail.component.scss | 140 +++++++++++------- .../src/app/modules/news/news.component.scss | 7 +- 10 files changed, 162 insertions(+), 117 deletions(-) diff --git a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html index 7f3312ef..4dd16bfe 100644 --- a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html +++ b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html @@ -130,7 +130,7 @@ Patentdetails anzeigen - + } diff --git a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss index 18059791..94b52874 100644 --- a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss @@ -1,28 +1,30 @@ .message { padding: 16px; - color: #666; + color: var(--sg-text-muted); } .fallback-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; - background: #f4f7fb; - color: #3d4f63; + background: var(--sg-surface-muted); + color: var(--sg-text); font-size: 0.9rem; } .section-title { margin: 0; font-size: 1.25rem; + color: var(--sg-text); } .patents-container { margin-top: 0; padding: 16px; border-radius: 12px; - background: #fff; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); + box-shadow: var(--sg-shadow-sm); } .patents-header { @@ -54,12 +56,14 @@ gap: 6px; padding: 10px 14px; border-radius: 20px; - background: #f2f2f2; + background: var(--sg-surface-soft); + color: var(--sg-text); font-size: 14px; select { border: 0; background: transparent; + color: var(--sg-text); font: inherit; cursor: pointer; } @@ -82,24 +86,26 @@ th { text-align: left; padding: 10px 12px; - border-bottom: 2px solid #e0e0e0; + border-bottom: 2px solid var(--sg-border); + color: var(--sg-text); } tr { cursor: pointer; + color: var(--sg-text); &:hover { - background: #f5f5f5; + background: var(--sg-surface-soft); } &.selected { - background: #f0f0f0; + background: var(--sg-surface-muted); } } td { padding: 10px 12px; - border-bottom: 1px solid #eee; + border-bottom: 1px solid var(--sg-border); } } @@ -115,13 +121,13 @@ font-weight: 600; &--epo { - background: #dbeafe; - color: #1e40af; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } &--uspto { - background: #dcfce7; - color: #166534; + background: var(--sg-success-soft); + color: var(--sg-success); } } @@ -136,7 +142,8 @@ flex: 0 0 320px; padding: 16px; border-radius: 12px; - background: #f8fafc; + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); } .detail-stats { @@ -147,19 +154,20 @@ .match-score { font-variant-numeric: tabular-nums; - color: #374151; + color: var(--sg-text); white-space: nowrap; } .stat-label { display: block; font-size: 12px; - color: #666; + color: var(--sg-text-muted); } .stat-value { display: block; word-break: break-word; + color: var(--sg-text); } .patent-detail-action { @@ -171,8 +179,8 @@ padding: 10px 12px; border: 0; border-radius: 8px; - background: #111827; - color: #fff; + background: var(--sg-primary); + color: var(--sg-card-bg); cursor: pointer; } diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index 1e30196d..2253d1b1 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -202,7 +202,7 @@ export class KeywordsSearchComponent { const regex = new RegExp(escapedRegexKeyword, 'gi'); - const replacement = `${escapedKeyword}`; + const replacement = `${escapedKeyword}`; highlightedContent = highlightedContent.replace(regex, replacement); } diff --git a/webapp/src/app/modules/keywords-search/search-results/news-results/news-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/news-results/news-results.component.scss index ffeea20d..aeffa51c 100644 --- a/webapp/src/app/modules/keywords-search/search-results/news-results/news-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/news-results/news-results.component.scss @@ -19,8 +19,8 @@ .search-summary-card, .results-card { - background: var(--sg-surface, #ffffff); - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-surface); + border: 1px solid var(--sg-border); box-shadow: none; .mat-mdc-card-content { diff --git a/webapp/src/app/modules/keywords-search/search-results/patents-results/patents-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/patents-results/patents-results.component.scss index adf24e22..dc68d5b9 100644 --- a/webapp/src/app/modules/keywords-search/search-results/patents-results/patents-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/patents-results/patents-results.component.scss @@ -19,8 +19,8 @@ } .weights-card { - background: var(--sg-surface, #ffffff); - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-surface); + border: 1px solid var(--sg-border); box-shadow: none; .mat-mdc-card-content { diff --git a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.scss index 336c8680..b78e8143 100644 --- a/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/persons-results/persons-results.component.scss @@ -28,8 +28,8 @@ .search-summary-card, .results-card { - background: var(--sg-surface, #ffffff); - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-surface); + border: 1px solid var(--sg-border); box-shadow: none; .mat-mdc-card-content { @@ -56,7 +56,7 @@ } .selected-hint { - color: var(--sg-text-secondary, rgba(0, 0, 0, 0.6)); + color: var(--sg-text-muted); font-size: 0.85rem; } @@ -65,14 +65,14 @@ align-items: center; gap: 0.75rem; padding: 0.5rem 0.25rem; - border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); + border-bottom: 1px solid var(--sg-border); } .author-name { flex: 1; font-weight: 500; text-decoration: none; - color: var(--sg-primary, #1565c0); + color: var(--sg-primary); &:hover { text-decoration: underline; @@ -81,7 +81,7 @@ .author-score { font-variant-numeric: tabular-nums; - color: var(--sg-text-secondary, rgba(0, 0, 0, 0.6)); + color: var(--sg-text-muted); white-space: nowrap; } @@ -95,9 +95,9 @@ ::ng-deep .filter-section { margin-top: 0.75rem; padding: 0.5rem 0.6rem 0.6rem; - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + border: 1px solid var(--sg-border); border-radius: 6px; - background: var(--sg-surface-variant, rgba(0, 0, 0, 0.015)); + background: var(--sg-surface-muted); } .filter-section-header { @@ -111,7 +111,7 @@ margin: 0; font-size: 0.8rem; font-weight: 650; - color: var(--sg-text-primary); + color: var(--sg-text); } button { @@ -126,7 +126,7 @@ ::ng-deep .filter-section .filter-row + .filter-row { margin-top: 0.5rem; padding-top: 0.5rem; - border-top: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); + border-top: 1px solid var(--sg-border); } ::ng-deep .company-filter-row { @@ -139,7 +139,7 @@ ::ng-deep .timespan-range-label { justify-content: center !important; font-weight: 500; - color: var(--sg-text-primary) !important; + color: var(--sg-text) !important; } ::ng-deep .timespan-slider { @@ -153,6 +153,6 @@ position: sticky; top: 0; z-index: 10; - background: white; - border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-surface); + border-bottom: 1px solid var(--sg-border); } diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss index d3dcdd8a..3a0616ff 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss @@ -24,12 +24,12 @@ $touch-target: 44px; margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 650; - color: var(--sg-text-primary); + color: var(--sg-text); } p { margin: 0.2rem 0 0; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); font-size: 0.9rem; } } @@ -38,8 +38,8 @@ $touch-target: 44px; KEYWORD SUMMARY CARD ============================================================ */ .summary-card { - background: var(--sg-surface, #ffffff); - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-surface); + border: 1px solid var(--sg-border); box-shadow: none; .mat-mdc-card-content { @@ -61,7 +61,7 @@ $touch-target: 44px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); } .summary-count { @@ -69,7 +69,7 @@ $touch-target: 44px; margin-top: 0.15rem; font-size: 0.95rem; font-weight: 650; - color: var(--sg-text-primary); + color: var(--sg-text); } .mode-badge { @@ -78,8 +78,8 @@ $touch-target: 44px; gap: 0.25rem; border-radius: 999px; padding: 0.25rem 0.5rem; - background: var(--sg-background-muted, #f4f5f7); - color: var(--sg-text-secondary); + background: var(--sg-surface-muted); + color: var(--sg-text-muted); font-size: 0.75rem; font-weight: 500; @@ -107,7 +107,7 @@ $touch-target: 44px; .result-nav { display: flex; gap: 0.25rem; - border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + border-bottom: 1px solid var(--sg-border); } .result-nav__link { @@ -116,7 +116,7 @@ $touch-target: 44px; gap: 0.35rem; padding: 0.5rem 0.85rem; border-radius: 6px 6px 0 0; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; @@ -132,12 +132,12 @@ $touch-target: 44px; } &:hover { - color: var(--sg-text-primary); + color: var(--sg-text); } &--active { - color: var(--sg-text-primary); - border-bottom-color: var(--sg-primary, currentColor); + color: var(--sg-text); + border-bottom-color: var(--sg-primary); } } @@ -145,8 +145,8 @@ $touch-target: 44px; EMPTY STATE ============================================================ */ .empty-card { - background: var(--sg-surface, #ffffff); - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-surface); + border: 1px solid var(--sg-border); box-shadow: none; } @@ -158,7 +158,7 @@ $touch-target: 44px; justify-content: center; gap: 0.5rem; text-align: center; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); mat-icon { font-size: 48px; @@ -169,7 +169,7 @@ $touch-target: 44px; h2 { margin: 0; - color: var(--sg-text-primary); + color: var(--sg-text); font-size: 1.1rem; } diff --git a/webapp/src/app/modules/keywords-search/search-results/works-results/works-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/works-results/works-results.component.scss index 9bcf6124..a0abcdb7 100644 --- a/webapp/src/app/modules/keywords-search/search-results/works-results/works-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/works-results/works-results.component.scss @@ -26,7 +26,7 @@ .filter-prefix-icon { margin-right: 0.25rem; - color: rgba(0, 0, 0, 0.54); + color: var(--sg-text-soft); } .select-search { @@ -34,10 +34,10 @@ align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; - border-bottom: 1px solid rgba(0, 0, 0, 0.12); + border-bottom: 1px solid var(--sg-border); &__icon { - color: rgba(0, 0, 0, 0.54); + color: var(--sg-text-soft); } &__input { @@ -46,11 +46,12 @@ outline: none; font: inherit; background: transparent; + color: var(--sg-text); } &__empty { padding: 0.5rem 0.75rem; - color: rgba(0, 0, 0, 0.54); + color: var(--sg-text-muted); font-size: 0.875rem; } } @@ -69,10 +70,9 @@ } .results-card { - background: var(--sg-surface, #ffffff); - border: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + background: var(--sg-surface); + border: 1px solid var(--sg-border); box-shadow: none; - width: 100%; } diff --git a/webapp/src/app/modules/news-detail/news-detail.component.scss b/webapp/src/app/modules/news-detail/news-detail.component.scss index 25cf50ab..1d31ab79 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.scss +++ b/webapp/src/app/modules/news-detail/news-detail.component.scss @@ -104,21 +104,21 @@ main { } &.is-relevant { - background: #effaf3; - border: 1px solid #bdebcf; - color: #24834f; + background: var(--sg-success-soft); + border: 1px solid var(--sg-success); + color: var(--sg-success); } &.not-relevant { background: var(--sg-surface-muted); - border: 1px solid #e2e2e2; + border: 1px solid var(--sg-border); color: var(--sg-text-muted); } &.undetermined { - background: #fff7e8; - border: 1px solid #ffd796; - color: #c67500; + background: var(--sg-warning-soft); + border: 1px solid var(--sg-warning); + color: var(--sg-warning); } } @@ -157,10 +157,10 @@ main { } .sidebar-card { - border: 1px solid #d7e4ff; + border: 1px solid var(--sg-border); border-radius: 16px; - background: #ffffff; - box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + background: var(--sg-card-bg); + box-shadow: var(--sg-shadow-sm); overflow: hidden; } @@ -186,7 +186,7 @@ main { transition: background 0.12s; &:hover { - background: #f6f9ff; + background: var(--sg-surface-soft); } mat-icon { @@ -205,8 +205,8 @@ main { .count-badge { padding: 2px 7px; border-radius: 999px; - background: #e8effe; - color: #3b5bd6; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); font-size: 11px; font-weight: 700; } @@ -264,12 +264,12 @@ main { } .person-item.is-link:hover { - background: #e5ecfb; + background: var(--sg-surface-soft); } .person-item.is-muted { .avatar { - background: #ececef; + background: var(--sg-surface-muted); color: var(--sg-text-muted); } @@ -282,9 +282,9 @@ main { justify-self: end; padding: 3px 9px; border-radius: 999px; - background: #effaf3; - border: 1px solid #bdebcf; - color: #24834f; + background: var(--sg-success-soft); + border: 1px solid var(--sg-success); + color: var(--sg-success); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; @@ -296,7 +296,7 @@ main { width: 36px; height: 36px; border-radius: 50%; - background: #e5ecfb; + background: var(--sg-primary-soft); color: var(--sg-text); font-size: 13px; font-weight: 700; @@ -329,7 +329,7 @@ main { place-items: center; width: 28px; height: 28px; - border: 1px solid #d7e4ff; + border: 1px solid var(--sg-border); border-radius: 8px; background: none; cursor: pointer; @@ -337,7 +337,7 @@ main { transition: background 0.12s; &:hover:not(:disabled) { - background: #f0f6ff; + background: var(--sg-surface-soft); color: var(--sg-text); } @@ -371,7 +371,7 @@ main { .topic-item { border-radius: 12px; overflow: hidden; - border: 1.5px solid color-mix(in srgb, var(--t) 38%, #ffffff); + border: 1.5px solid color-mix(in srgb, var(--t) 38%, var(--sg-color-mix-base)); } .topic-item-header { @@ -380,8 +380,8 @@ main { gap: 8px; width: 100%; padding: 11px 14px; - background: color-mix(in srgb, var(--t) 13%, #ffffff); - color: color-mix(in srgb, var(--t) 90%, #0f172a); + background: color-mix(in srgb, var(--t) 13%, var(--sg-color-mix-base)); + color: color-mix(in srgb, var(--t) 90%, var(--sg-text)); border: none; cursor: pointer; text-align: left; @@ -391,15 +391,15 @@ main { transition: background 0.15s; &:hover { - background: color-mix(in srgb, var(--t) 22%, #ffffff); + background: color-mix(in srgb, var(--t) 22%, var(--sg-color-mix-base)); } &.is-expanded { background: var(--t); - color: #ffffff; + color: var(--sg-color-mix-base); mat-icon { - color: rgba(255, 255, 255, 0.85); + color: color-mix(in srgb, var(--sg-color-mix-base) 85%, transparent); } } @@ -408,7 +408,7 @@ main { width: 18px; height: 18px; flex-shrink: 0; - color: color-mix(in srgb, var(--t) 70%, #0f172a); + color: color-mix(in srgb, var(--t) 70%, var(--sg-text)); } } @@ -423,11 +423,11 @@ main { align-items: flex-start; gap: 8px; padding: 14px 14px 14px; - background: #ffffff; + background: var(--sg-card-bg); .analyse-btn { position: absolute; - color: color-mix(in srgb, var(--t) 90%, #0f172a); + color: color-mix(in srgb, var(--t) 90%, var(--sg-text)); font-size: 18px; top: 0.1em; right: 0.1em; @@ -447,16 +447,16 @@ main { width: 100%; padding: 6px 14px; border-radius: 999px; - border: 1.5px solid color-mix(in srgb, var(--t) 50%, #ffffff); - background: color-mix(in srgb, var(--t) 10%, #ffffff); - color: color-mix(in srgb, var(--t) 90%, #0f172a); + border: 1.5px solid color-mix(in srgb, var(--t) 50%, var(--sg-color-mix-base)); + background: color-mix(in srgb, var(--t) 10%, var(--sg-color-mix-base)); + color: color-mix(in srgb, var(--t) 90%, var(--sg-text)); font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.12s; &:hover { - background: color-mix(in srgb, var(--t) 22%, #ffffff); + background: color-mix(in srgb, var(--t) 22%, var(--sg-color-mix-base)); } } @@ -522,43 +522,79 @@ main { } .purple { - --topic-border: #d8cafe; - --topic-bg: #f6f0ff; - --topic-color: #7255d9; + --topic-border: color-mix( + in srgb, + var(--sg-primary) 72%, + var(--sg-color-mix-base) + ); + --topic-bg: color-mix( + in srgb, + var(--sg-primary) 8%, + var(--sg-color-mix-base) + ); + --topic-color: var(--sg-primary); } .blue { - --topic-border: #bdd4ff; - --topic-bg: #f0f6ff; - --topic-color: #0b63ce; + --topic-border: color-mix( + in srgb, + var(--sg-blue-highlight) 72%, + var(--sg-color-mix-base) + ); + --topic-bg: color-mix( + in srgb, + var(--sg-blue-highlight) 8%, + var(--sg-color-mix-base) + ); + --topic-color: var(--sg-blue-highlight); } .green { - --topic-border: #bdebcf; - --topic-bg: #effaf3; - --topic-color: #24834f; + --topic-border: color-mix( + in srgb, + var(--sg-success) 72%, + var(--sg-color-mix-base) + ); + --topic-bg: color-mix( + in srgb, + var(--sg-success) 8%, + var(--sg-color-mix-base) + ); + --topic-color: var(--sg-success); } .orange { - --topic-border: #ffd796; - --topic-bg: #fff7e8; - --topic-color: #c67500; + --topic-border: color-mix( + in srgb, + var(--sg-warning) 72%, + var(--sg-color-mix-base) + ); + --topic-bg: color-mix( + in srgb, + var(--sg-warning) 8%, + var(--sg-color-mix-base) + ); + --topic-color: var(--sg-warning); } .pink { - --topic-border: #ffc7d7; - --topic-bg: #fff1f5; - --topic-color: #d12f61; + --topic-border: color-mix( + in srgb, + var(--sg-error) 72%, + var(--sg-color-mix-base) + ); + --topic-bg: color-mix(in srgb, var(--sg-error) 8%, var(--sg-color-mix-base)); + --topic-color: var(--sg-error); } // ── Keyword highlights in article text ─────────────────────────────────────── @keyframes kw-flash { 0% { - background: color-mix(in srgb, var(--t) 45%, #ffffff); + background: color-mix(in srgb, var(--t) 45%, var(--sg-color-mix-base)); } 40% { - background: color-mix(in srgb, var(--t) 45%, #ffffff); + background: color-mix(in srgb, var(--t) 45%, var(--sg-color-mix-base)); } 100% { background: transparent; @@ -579,7 +615,7 @@ main { transition: background 0.15s; &:hover { - background: color-mix(in srgb, var(--t) 15%, #ffffff); + background: color-mix(in srgb, var(--t) 15%, var(--sg-color-mix-base)); } &.kw-flash { diff --git a/webapp/src/app/modules/news/news.component.scss b/webapp/src/app/modules/news/news.component.scss index f45a7218..94f2534b 100644 --- a/webapp/src/app/modules/news/news.component.scss +++ b/webapp/src/app/modules/news/news.component.scss @@ -34,7 +34,8 @@ ::ng-deep .snippet em { font-style: normal; - background: #fff48d; + background: var(--sg-warning-soft); + color: var(--sg-warning); padding: 0 3px; border-radius: 3px; } @@ -93,10 +94,10 @@ min-width: 132px; height: 42px; padding: 0 14px; - border-color: #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); color: var(--sg-text); - background: #fff; + background: var(--sg-surface); mat-icon { margin-right: 6px; -- 2.56.1 From 7259e3a0c09c08ccfc0dcfc53d31d595892f31ff Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:11:04 +0200 Subject: [PATCH 04/24] changed static color to use dynamic theme --- .../organizations.component.scss | 11 +- .../patent-detail.component.scss | 42 ++--- .../modules/patents/patents.component.scss | 131 ++++++------- .../person-card/person-card.component.scss | 6 +- .../person-company-connections.component.scss | 53 +++--- .../person-funding.component.html | 2 +- .../person-funding.component.scss | 122 ++++++------ .../person-interesting.component.scss | 5 +- .../person-list/person-list.component.scss | 10 +- .../research-timeline.component.scss | 110 +++++------ .../person-patents.component.html | 2 +- .../person-patents.component.scss | 177 +++++++++--------- .../app/modules/person/person.component.scss | 16 +- 13 files changed, 342 insertions(+), 345 deletions(-) diff --git a/webapp/src/app/modules/organizations/organizations.component.scss b/webapp/src/app/modules/organizations/organizations.component.scss index e455d7e3..c314dc8d 100644 --- a/webapp/src/app/modules/organizations/organizations.component.scss +++ b/webapp/src/app/modules/organizations/organizations.component.scss @@ -15,11 +15,12 @@ h1, p { margin: 0; + color: var(--sg-text); } .page-header p, .table-header span { - color: #64748b; + color: var(--sg-text-muted); } .page-header p { @@ -32,15 +33,15 @@ p { min-height: 24px; border-radius: 999px; padding: 2px 10px; - background: #dcfce7; - color: #166534; + background: var(--sg-success-soft); + color: var(--sg-success); font-size: 12px; font-weight: 700; } .status--deleted { - background: #fee2e2; - color: #991b1b; + background: var(--sg-error-soft); + color: var(--sg-error); } @media (max-width: 640px) { diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.scss b/webapp/src/app/modules/patent-detail/patent-detail.component.scss index 6e9a4afc..b4504df9 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.scss +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.scss @@ -37,13 +37,7 @@ padding: 38px 42px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-lg); - background: - radial-gradient( - circle at 90% 10%, - rgba(200, 217, 255, 0.75), - transparent 35% - ), - linear-gradient(140deg, #fff 0%, #f8faff 100%); + background: var(--sg-card-bg); box-shadow: var(--sg-shadow-sm); } @@ -59,7 +53,7 @@ padding: 5px 10px; border: 1px solid var(--sg-border); border-radius: 999px; - background: rgba(255, 255, 255, 0.85); + background: var(--sg-surface-muted); color: var(--sg-text-muted); font-size: 11px; font-weight: 700; @@ -71,6 +65,7 @@ h1 { margin: 20px 0 13px; font-size: clamp(27px, 3vw, 42px); line-height: 1.13; + color: var(--sg-text); } .meta-line { @@ -93,7 +88,7 @@ h1 { padding: 9px 16px; border: 1px solid var(--sg-border-strong); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); color: var(--sg-text); font-weight: 700; text-decoration: none; @@ -102,7 +97,7 @@ h1 { .hero-actions a.primary-action { border-color: var(--sg-primary); background: var(--sg-primary); - color: #fff; + color: var(--sg-background); } .hero-actions mat-icon { @@ -116,9 +111,9 @@ h1 { grid-template-columns: repeat(3, 1fr); align-self: center; overflow: hidden; - border: 1px solid rgba(199, 211, 232, 0.8); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); - background: rgba(255, 255, 255, 0.8); + background: var(--sg-surface-muted); } .metrics div { @@ -185,6 +180,7 @@ aside { .section-title h2 { margin: 0; font-size: 16px; + color: var(--sg-text); } .section-title span { @@ -313,13 +309,13 @@ dd { } .source-badge--epo { - background: #e8f7ee; - color: #1f7a43; + background: var(--sg-success-soft); + color: var(--sg-success); } .source-badge--uspto { - background: #eef3ff; - color: #1f4fbf; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } .classification-cards { @@ -335,11 +331,11 @@ dd { } .classification-card-section--ipc .classification-card { - background: #f4f8ff; + background: var(--sg-primary-soft); } .classification-card-section--cpc .classification-card { - background: #f3fbf5; + background: var(--sg-success-soft); } .classification-card__header { @@ -359,7 +355,7 @@ dd { .classification-code { padding: 4px 8px; border-radius: 6px; - background: #fff; + background: var(--sg-surface); color: var(--sg-text); font-size: 12px; font-weight: 700; @@ -380,12 +376,12 @@ dd { } .classification-badge--system { - background: #e8eef8; - color: #35507a; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } .classification-badge--level { - background: #fff; + background: var(--sg-surface); color: var(--sg-text-muted); } @@ -415,7 +411,7 @@ dd { grid-template-columns: 90px minmax(0, 1fr); gap: 10px; padding: 6px 0; - border-top: 1px solid rgba(0, 0, 0, 0.06); + border-top: 1px solid var(--sg-border); } .classification-hierarchy__row dt { diff --git a/webapp/src/app/modules/patents/patents.component.scss b/webapp/src/app/modules/patents/patents.component.scss index 7c26daaf..a60cd0d2 100644 --- a/webapp/src/app/modules/patents/patents.component.scss +++ b/webapp/src/app/modules/patents/patents.component.scss @@ -10,6 +10,7 @@ h1 { font-size: 2rem; font-weight: 700; padding: 1rem 0 0; + color: var(--sg-text); } .search-and-filter { @@ -34,9 +35,9 @@ h1 { .year-filter { width: min(285px, 100%); padding: 5px 10px; - border: 1px solid #dbe5f6; + border: 1px solid var(--sg-border); border-radius: 10px; - background: #fbfdff; + background: var(--sg-surface-muted); box-sizing: border-box; } @@ -49,7 +50,7 @@ h1 { } .year-filter-label { - color: #07163d; + color: var(--sg-text); font-size: 12px; font-weight: 700; } @@ -57,20 +58,20 @@ h1 { .reset-range-button { border: 0; background: transparent; - color: #0057ff; + color: var(--sg-blue-highlight); font-size: 11px; cursor: pointer; padding: 0; font-family: inherit; &:disabled { - color: #9aa5bc; + color: var(--sg-text-soft); cursor: default; } } .year-filter-values { - color: #40506f; + color: var(--sg-text-muted); font-size: 12px; font-weight: 600; white-space: nowrap; @@ -80,14 +81,14 @@ h1 { display: flex; justify-content: space-between; margin-top: 0; - color: #7c88a3; + color: var(--sg-text-soft); font-size: 10px; } .year-range-slider { --range-start: 0%; --range-end: 100%; - --accent: #0057ff; + --accent: var(--sg-blue-highlight); position: relative; height: 16px; @@ -103,12 +104,12 @@ h1 { border-radius: 999px; background: linear-gradient( to right, - #d8e2f4 0%, - #d8e2f4 var(--range-start), + var(--sg-border) 0%, + var(--sg-border) var(--range-start), var(--accent) var(--range-start), var(--accent) var(--range-end), - #d8e2f4 var(--range-end), - #d8e2f4 100% + var(--sg-border) var(--range-end), + var(--sg-border) 100% ); } @@ -134,11 +135,11 @@ h1 { width: 15px; height: 15px; margin-top: -5px; - border: 2px solid #ffffff; + border: 2px solid var(--sg-surface); border-radius: 50%; - background: #0057ff; + background: var(--sg-blue-highlight); box-shadow: - 0 0 0 1px #9ab7ff, + 0 0 0 1px var(--sg-border-strong), 0 2px 6px rgba(0, 87, 255, 0.22); cursor: pointer; pointer-events: auto; @@ -147,11 +148,11 @@ h1 { &::-moz-range-thumb { width: 15px; height: 15px; - border: 2px solid #ffffff; + border: 2px solid var(--sg-surface); border-radius: 50%; - background: #0057ff; + background: var(--sg-blue-highlight); box-shadow: - 0 0 0 1px #9ab7ff, + 0 0 0 1px var(--sg-border-strong), 0 2px 6px rgba(0, 87, 255, 0.22); cursor: pointer; pointer-events: auto; @@ -170,11 +171,11 @@ h1 { align-items: center; gap: 12px; padding: 24px 1rem; - color: #666; + color: var(--sg-text-muted); font-size: 14px; &.error { - color: #c0392b; + color: var(--sg-error); } } @@ -203,7 +204,8 @@ mat-paginator { .card { padding: 0.5rem; - background-color: var(--sg-background); + background-color: var(--sg-card-bg); + border: 1px solid var(--sg-border); transition: transform 0.3s ease; display: flex; flex-direction: column; @@ -211,13 +213,14 @@ mat-paginator { &:hover { cursor: pointer; - transform: scale(1.05); + transform: scale(1.03); } mat-card-title { font-size: 14px; font-weight: 600; line-height: 1.4; + color: var(--sg-text); } } @@ -234,7 +237,7 @@ mat-paginator { flex-direction: column; gap: 0.2rem; font-size: 0.9rem; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); } mat-card-actions { @@ -258,21 +261,21 @@ mat-card-actions { font-weight: 700; &--epo { - background: #effaf3; - color: #24834f; - border: 1px solid #bdebcf; + background: var(--sg-success-soft); + color: var(--sg-success); + border: 1px solid var(--sg-success); } &--uspto { - background: #f0f6ff; - color: #0b63ce; - border: 1px solid #bdd4ff; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); + border: 1px solid var(--sg-border); } } .no-results { text-align: center; padding: 2rem; - color: var(--sg-text-secondary); + color: var(--sg-text-muted); } .detail-view { @@ -281,18 +284,18 @@ mat-card-actions { h2 { margin: 0 0 1rem; font-size: 1.4rem; - color: #333; + color: var(--sg-text); line-height: 1.4; } h4 { margin: 16px 0 8px; font-size: 14px; - color: #555; + color: var(--sg-text-muted); font-weight: 600; } p { font-size: 13px; - color: #444; + color: var(--sg-text); line-height: 1.6; margin: 0; } @@ -304,25 +307,25 @@ mat-card-actions { gap: 0.4rem; margin-bottom: 1rem; padding: 0.5rem 0.85rem; - border: 1px solid #d6e3f8; + border: 1px solid var(--sg-border); border-radius: 999px; - background: #f8fbff; - color: #2563eb; + background: var(--sg-surface-soft); + color: var(--sg-blue-highlight); font-size: 0.9rem; font-weight: 600; cursor: pointer; &:hover { - background: #eef5ff; - border-color: #bcd3f7; + background: var(--sg-primary-soft); + border-color: var(--sg-blue-highlight); } } .patent-meta__list { margin: 12px 0 20px; - border: 1px solid #e2e8f4; + border: 1px solid var(--sg-border); border-radius: 12px; - background: linear-gradient(180deg, #fff 0%, #f8faff 100%); + background: var(--sg-surface); overflow: hidden; } @@ -332,7 +335,7 @@ mat-card-actions { gap: 12px 16px; align-items: center; padding: 11px 16px; - border-top: 1px solid #eef2f8; + border-top: 1px solid var(--sg-border); &:first-child { border-top: 0; @@ -342,13 +345,13 @@ mat-card-actions { margin: 0; font-size: 12px; font-weight: 500; - color: #64748b; + color: var(--sg-text-muted); } dd { margin: 0; font-size: 14px; font-weight: 600; - color: #1e293b; + color: var(--sg-text); word-break: break-word; } } @@ -356,7 +359,7 @@ mat-card-actions { .detail-section { margin-top: 12px; padding-top: 12px; - border-top: 1px solid #eee; + border-top: 1px solid var(--sg-border); } .tag-list { @@ -376,28 +379,28 @@ mat-card-actions { .tag { padding: 4px 10px; border-radius: 999px; - background: #f0f6ff; - border: 1px solid #dbeafe; - color: #1e40af; + background: var(--sg-primary-soft); + border: 1px solid var(--sg-border); + color: var(--sg-blue-highlight); font-size: 0.8rem; } .classification-section { &--ipc .classification-card { - background: #f0f6ff; - border-color: #bfdbfe; + background: var(--sg-primary-soft); + border-color: var(--sg-border); } &--ipc .classification-badge--system { - background: #dbeafe; - color: #1d4ed8; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } &--cpc .classification-card { - background: #f0fdf4; - border-color: #bbf7d0; + background: var(--sg-success-soft); + border-color: var(--sg-success); } &--cpc .classification-badge--system { - background: #dcfce7; - color: #15803d; + background: var(--sg-success-soft); + color: var(--sg-success); } } @@ -410,7 +413,7 @@ mat-card-actions { .classification-card { padding: 12px 14px; border-radius: 10px; - border: 1px solid #dbeafe; + border: 1px solid var(--sg-border); } .classification-card__header { @@ -434,7 +437,7 @@ mat-card-actions { .classification-code { font-size: 0.9rem; font-weight: 700; - color: #0f172a; + color: var(--sg-text); } .classification-badge { @@ -448,14 +451,14 @@ mat-card-actions { } .classification-badge--level { - background: #e2e8f0; - color: #475569; + background: var(--sg-surface-soft); + color: var(--sg-text-muted); } .classification-summary { margin: 10px 0 0; font-size: 0.84rem; line-height: 1.5; - color: #334155; + color: var(--sg-text-muted); } .classification-toggle { @@ -463,7 +466,7 @@ mat-card-actions { padding: 0; border: 0; background: none; - color: #2563eb; + color: var(--sg-blue-highlight); font-size: 0.78rem; cursor: pointer; &:hover { @@ -474,7 +477,7 @@ mat-card-actions { .classification-hierarchy { margin: 10px 0 0; padding-top: 10px; - border-top: 1px solid rgba(15, 23, 42, 0.08); + border-top: 1px solid var(--sg-border); } .classification-hierarchy__row { @@ -487,13 +490,13 @@ mat-card-actions { margin: 0; font-size: 0.72rem; font-weight: 700; - color: #64748b; + color: var(--sg-text-muted); text-transform: uppercase; } dd { margin: 0; font-size: 0.8rem; line-height: 1.45; - color: #334155; + color: var(--sg-text); } } diff --git a/webapp/src/app/modules/person-card/person-card.component.scss b/webapp/src/app/modules/person-card/person-card.component.scss index fdbb1e9b..cbd9c8c3 100644 --- a/webapp/src/app/modules/person-card/person-card.component.scss +++ b/webapp/src/app/modules/person-card/person-card.component.scss @@ -212,7 +212,7 @@ &:hover, &:focus-visible { background: var(--sg-primary); - color: #fff; + color: var(--sg-background); border-color: var(--sg-primary); outline: none; box-shadow: @@ -223,14 +223,14 @@ &.active { border-color: var(--sg-primary); box-shadow: - 0 0 0 1px #ffffff, + 0 0 0 1px var(--sg-background), 0 0 0 3px var(--sg-primary); } &.active:hover, &.active:focus-visible { background: var(--sg-primary); - color: #fff; + color: var(--sg-background); } &.is-loading { diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss index 5fe97475..e53afe35 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss @@ -1,15 +1,15 @@ -$marked-color: #5470c6; -$related-person-color: #4f8df5; -$timeline-purple: #7255d9; -$timeline-purple-bg: #f6f0ff; +$marked-color: var(--sg-blue-highlight); +$related-person-color: var(--sg-primary); +$timeline-purple: var(--sg-warning); +$timeline-purple-bg: var(--sg-warning-soft); -$timeline-orange-bg: #fff7e8; -$timeline-orange-border: #ffd796; -$timeline-orange-text: #c67500; +$timeline-orange-bg: var(--sg-warning-soft); +$timeline-orange-border: var(--sg-warning); +$timeline-orange-text: var(--sg-warning); -$card-border: #dbe5f6; -$text-main: #07163d; -$text-muted: #64718f; +$card-border: var(--sg-border); +$text-main: var(--sg-text); +$text-muted: var(--sg-text-muted); :host { display: block; @@ -50,7 +50,7 @@ $text-muted: #64718f; } .state-error { - color: #b42318; + color: var(--sg-error); } .empty-state { @@ -58,8 +58,8 @@ $text-muted: #64718f; padding: 18px 22px; border: 1px solid $card-border; border-radius: 16px; - background: #ffffff; - box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + background: var(--sg-card-bg); + box-shadow: var(--sg-shadow-sm); h2 { margin: 0 0 6px; @@ -106,8 +106,9 @@ $text-muted: #64718f; .graph-card, .connection-list { border-radius: 16px; - background: #ffffff; - box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); + box-shadow: var(--sg-shadow-sm); overflow: hidden; } @@ -141,7 +142,7 @@ $text-muted: #64718f; } .graph-related-persons-button:hover { - background: rgba(84, 112, 198, 0.08); + background: var(--sg-primary-soft); } .graph-related-persons-icon { @@ -248,7 +249,7 @@ $text-muted: #64718f; flex: 0 0 auto; padding: 12px 16px; border-bottom: 1px solid $card-border; - background: #fbfdff; + background: var(--sg-surface-muted); color: $text-muted; font-size: 11px; font-weight: 700; @@ -271,7 +272,7 @@ $text-muted: #64718f; } .connection-item { - border-bottom: 1px solid #edf2fb; + border-bottom: 1px solid var(--sg-border); } .connection-row { @@ -281,11 +282,11 @@ $text-muted: #64718f; cursor: pointer; &:hover { - background: #f8fbff; + background: var(--sg-surface-soft); } &.selected { - background: #f0f6ff; + background: var(--sg-primary-soft); box-shadow: inset 3px 0 0 $marked-color; } @@ -320,7 +321,7 @@ $text-muted: #64718f; .connection-detail { padding: 0 16px 16px; - background: #f8fbff; + background: var(--sg-surface-soft); } .detail-grid { @@ -328,7 +329,7 @@ $text-muted: #64718f; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 14px 0 4px; - border-top: 1px solid #e5edf8; + border-top: 1px solid var(--sg-border); } .detail-field { @@ -375,11 +376,11 @@ $text-muted: #64718f; } .detail-value.detail-status--active { - color: #218354; + color: var(--sg-success); } .detail-value.detail-status--removed { - color: #6b7280; + color: var(--sg-text-soft); } .officers-toggle { @@ -390,7 +391,7 @@ $text-muted: #64718f; margin-top: 14px; padding: 12px 0 0; border: 0; - border-top: 1px solid #e5edf8; + border-top: 1px solid var(--sg-border); background: transparent; color: $text-muted; font-size: 11px; @@ -429,7 +430,7 @@ $text-muted: #64718f; .officer-role { padding-left: 10px; - border-left: 4px solid #8a95b3; + border-left: 4px solid var(--sg-border-strong); color: $text-main; font-weight: 600; } 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 ea0220d6..3aecaaa7 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.html +++ b/webapp/src/app/modules/person-funding/person-funding.component.html @@ -122,7 +122,7 @@ (click)="$event.stopPropagation()"> Mehr Infos - open_in_new + open_in_new } 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 debe3dff..898f7007 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.scss +++ b/webapp/src/app/modules/person-funding/person-funding.component.scss @@ -1,6 +1,6 @@ .message { padding: 16px; - color: #666; + color: var(--sg-text-muted); } .funding-container { @@ -40,25 +40,25 @@ th { text-align: left; padding: 10px 12px; - border-bottom: 2px solid #e0e0e0; + border-bottom: 2px solid var(--sg-border); font-weight: 600; - color: #333; + color: var(--sg-text); } tr { cursor: pointer; &.selected { - background: #f0f0f0; + background: var(--sg-primary-soft); } } td { padding: 10px 12px; - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid var(--sg-border); } .funder-name { - color: #333; + color: var(--sg-text); font-weight: 500; } } @@ -66,21 +66,21 @@ .funding-detail { width: 440px; - border: 1px solid #e0e0e0; + border: 1px solid var(--sg-border); border-radius: 8px; padding: 20px; - background: #fafafa; + background: var(--sg-surface-muted); h3 { margin: 0 0 16px; font-size: 16px; - color: #333; + color: var(--sg-text); } h4 { margin: 16px 0 8px; font-size: 14px; - color: #555; + color: var(--sg-text-muted); } } @@ -93,15 +93,15 @@ .stat { min-width: 100px; text-align: center; - background: #fff; - border: 1px solid #e0e0e0; + background: var(--sg-surface); + border: 1px solid var(--sg-border); border-radius: 8px; padding: 10px; .stat-label { display: block; font-size: 12px; - color: #666; + color: var(--sg-text-muted); margin-bottom: 4px; } @@ -109,57 +109,57 @@ display: block; font-size: 22px; font-weight: bold; - color: #333; + color: var(--sg-text); } &.stat-first { - background: #effaf3; - border-color: #bdebcf; + background: var(--sg-success-soft); + border-color: var(--sg-success); .stat-label, .stat-value { - color: #24834f; + color: var(--sg-success); } } &.stat-middle { - background: #f6f0ff; - border-color: #d8cafe; + background: var(--sg-warning-soft); + border-color: var(--sg-warning); .stat-label, .stat-value { - color: #7255d9; + color: var(--sg-warning); } } &.stat-last { - background: #fff1f2; - border-color: #fda4af; + background: var(--sg-error-soft); + border-color: var(--sg-error); .stat-label, .stat-value { - color: #be123c; + color: var(--sg-error); } } } } .position-badge--first { - background: #effaf3; - border-color: #bdebcf; - color: #24834f; + background: var(--sg-success-soft); + border-color: var(--sg-success); + color: var(--sg-success); } .position-badge--middle { - background: #f6f0ff; - border-color: #d8cafe; - color: #7255d9; + background: var(--sg-warning-soft); + border-color: var(--sg-warning); + color: var(--sg-warning); } .position-badge--last { - background: #fff1f2; - border-color: #fda4af; - color: #be123c; + background: var(--sg-error-soft); + border-color: var(--sg-error); + color: var(--sg-error); } .position-badge--first, @@ -178,7 +178,7 @@ li { padding: 6px 0; - border-bottom: 1px solid #5b5555; + border-bottom: 1px solid var(--sg-border); font-size: 13px; } } @@ -192,9 +192,9 @@ button { padding: 4px 10px; - border: 1px solid #d0d0d0; + border: 1px solid var(--sg-border); border-radius: 6px; - background: #fff; + background: var(--sg-surface); cursor: pointer; font-size: 12px; @@ -206,7 +206,7 @@ span { font-size: 12px; - color: #666; + color: var(--sg-text-muted); } } @@ -217,30 +217,30 @@ display: inline-block; margin-bottom: 12px; padding: 4px 12px; - border: 1px solid #dbe3f2; + border: 1px solid var(--sg-border); border-radius: 999px; - background: rgba(255, 255, 255, 0.9); - color: #475569; + background: var(--sg-surface-muted); + color: var(--sg-text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; &.position-badge--first { - background: #effaf3; - border-color: #bdebcf; - color: #24834f; + background: var(--sg-success-soft); + border-color: var(--sg-success); + color: var(--sg-success); } &.position-badge--middle { - background: #f6f0ff; - border-color: #d8cafe; - color: #7255d9; + background: var(--sg-warning-soft); + border-color: var(--sg-warning); + color: var(--sg-warning); } &.position-badge--last { - background: #fff1f2; - border-color: #fda4af; - color: #be123c; + background: var(--sg-error-soft); + border-color: var(--sg-error); + color: var(--sg-error); } } @@ -248,12 +248,12 @@ margin: 0 0 8px; font-size: 15px; font-weight: 600; - color: #333; + color: var(--sg-text); } &__subtitle { margin: 0 0 20px; - color: #888; + color: var(--sg-text-muted); font-size: 13px; } @@ -267,43 +267,43 @@ &__stat { text-align: center; padding: 12px 8px; - border: 1px solid #e0e0e0; + border: 1px solid var(--sg-border); border-radius: 8px; - background: #fff; + background: var(--sg-surface); } &__stat-value { display: block; font-size: 22px; font-weight: 700; - color: #333; + color: var(--sg-text); } &__stat-label { display: block; font-size: 12px; - color: #888; + color: var(--sg-text-muted); margin-top: 4px; } &__stat--publications { .empty-overview__stat-value, .empty-overview__stat-label { - color: #0b63ce; + color: var(--sg-blue-highlight); } } &__stat--funders { .empty-overview__stat-value, .empty-overview__stat-label { - color: #b45309; + color: var(--sg-warning); } } &__hint { p { margin: 0; - color: #aaa; + color: var(--sg-text-soft); font-size: 12px; } } @@ -323,13 +323,13 @@ .publication-item { padding: 8px 0; - border-bottom: 2px solid #5b5555; + border-bottom: 2px solid var(--sg-border); cursor: pointer; } .publication-title { font-size: 0.875rem; - color: #333; + color: var(--sg-text); white-space: normal; word-break: break-word; display: block; @@ -337,7 +337,7 @@ .mehr-infos-label, .publication-link-icon { - color: #1976d2; + color: var(--sg-blue-highlight); } .mehr-infos-label { @@ -349,7 +349,7 @@ display: flex; align-items: center; - .material-icons { + mat-icon { font-size: 16px; } } diff --git a/webapp/src/app/modules/person-interesting/person-interesting.component.scss b/webapp/src/app/modules/person-interesting/person-interesting.component.scss index 35eb3cf6..ab38f096 100644 --- a/webapp/src/app/modules/person-interesting/person-interesting.component.scss +++ b/webapp/src/app/modules/person-interesting/person-interesting.component.scss @@ -52,8 +52,7 @@ .interest-tags .interest-empty { padding: 9px 16px; - border: 1px solid #e2e8f0; - border-style: dashed; + border: 1px dashed var(--sg-border); border-radius: 7px; color: var(--sg-text-muted); font-size: 13px; @@ -67,7 +66,7 @@ align-items: center; justify-content: center; padding: 20px; - color: #68748f; + color: var(--sg-text-muted); font-size: 14px; text-align: center; } diff --git a/webapp/src/app/modules/person-list/person-list.component.scss b/webapp/src/app/modules/person-list/person-list.component.scss index 35d0d1cb..51b4f2e0 100644 --- a/webapp/src/app/modules/person-list/person-list.component.scss +++ b/webapp/src/app/modules/person-list/person-list.component.scss @@ -146,8 +146,12 @@ max-width: min(320px, 46vw); padding: 3px 8px; border-radius: 7px; - background: color-mix(in srgb, var(--topic-color) 22%, #ffffff); - color: color-mix(in srgb, var(--topic-color) 45%, #07163d); + background: color-mix( + in srgb, + var(--topic-color) 22%, + var(--sg-color-mix-base) + ); + color: color-mix(in srgb, var(--topic-color) 45%, var(--sg-text)); font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1px @@ -433,7 +437,7 @@ mat-paginator { .submit-btn { width: 100%; background: var(--sg-primary); - color: #fff; + color: var(--sg-color-mix-base); border: none; border-radius: var(--sg-radius-sm); padding: 10px; diff --git a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss index 98072adf..62a33fa2 100644 --- a/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss +++ b/webapp/src/app/modules/person-overview/components/research-timeline/research-timeline.component.scss @@ -1,12 +1,12 @@ .research-timeline-card { - --accent: #0057ff; + --accent: var(--sg-blue-highlight); width: 100%; padding: 24px 28px; - border: 1px solid #d7e4ff; + border: 1px solid var(--sg-border); border-radius: 16px; - background: #ffffff; - box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + background: var(--sg-card-bg); + box-shadow: var(--sg-shadow-sm); box-sizing: border-box; button { @@ -50,7 +50,7 @@ h2 { margin: 0 0 6px; - color: #07163d; + color: var(--sg-text); font-size: 20px; font-weight: 700; line-height: 1.25; @@ -58,12 +58,12 @@ p { margin: 0; - color: #64718f; + color: var(--sg-text-muted); font-size: 14px; line-height: 1.4; span { - color: #74809b; + color: var(--sg-text-soft); } } } @@ -86,26 +86,26 @@ display: flex; gap: 4px; padding: 4px; - border: 1px solid #dbe5f6; + border: 1px solid var(--sg-border); border-radius: 10px; - background: #ffffff; + background: var(--sg-surface); button { border-radius: 8px; padding: 9px 18px; - color: #3f4b66; + color: var(--sg-text-muted); font-size: 14px; transition: all 0.2s ease; &:hover { - background: #f2f6ff; + background: var(--sg-surface-muted); text-decoration: none; } &.active { - background: #eef4ff; + background: var(--sg-primary-soft); color: var(--accent); - box-shadow: inset 0 0 0 1px #3d7cff; + box-shadow: inset 0 0 0 1px var(--sg-blue-highlight); } } } @@ -116,9 +116,9 @@ justify-self: end; width: min(var(--year-filter-width), 100%); padding: 5px 10px; - border: 1px solid #dbe5f6; + border: 1px solid var(--sg-border); border-radius: 10px; - background: #fbfdff; + background: var(--sg-surface-muted); box-sizing: border-box; } @@ -141,7 +141,7 @@ } .year-filter-label { - color: #07163d; + color: var(--sg-text); font-size: 12px; font-weight: 700; } @@ -151,13 +151,13 @@ font-size: 11px; &:disabled { - color: #9aa5bc; + color: var(--sg-text-soft); } } .year-filter-values { gap: 5px; - color: #40506f; + color: var(--sg-text-muted); font-size: 12px; font-weight: 600; white-space: nowrap; @@ -166,7 +166,7 @@ .year-filter-bounds { justify-content: space-between; margin-top: 0; - color: #7c88a3; + color: var(--sg-text-soft); font-size: 10px; } @@ -188,12 +188,12 @@ border-radius: 999px; background: linear-gradient( to right, - #d8e2f4 0%, - #d8e2f4 var(--range-start), + var(--sg-border) 0%, + var(--sg-border) var(--range-start), var(--accent) var(--range-start), var(--accent) var(--range-end), - #d8e2f4 var(--range-end), - #d8e2f4 100% + var(--sg-border) var(--range-end), + var(--sg-border) 100% ); } @@ -220,11 +220,11 @@ width: 15px; height: 15px; margin-top: -5px; - border: 2px solid #ffffff; + border: 2px solid var(--sg-surface); border-radius: 50%; background: var(--accent); box-shadow: - 0 0 0 1px #9ab7ff, + 0 0 0 1px var(--sg-border-strong), 0 2px 6px rgba(0, 87, 255, 0.22); cursor: pointer; pointer-events: auto; @@ -233,11 +233,11 @@ .range-input::-moz-range-thumb { width: 15px; height: 15px; - border: 2px solid #ffffff; + border: 2px solid var(--sg-surface); border-radius: 50%; background: var(--accent); box-shadow: - 0 0 0 1px #9ab7ff, + 0 0 0 1px var(--sg-border-strong), 0 2px 6px rgba(0, 87, 255, 0.22); cursor: pointer; pointer-events: auto; @@ -269,7 +269,7 @@ left: 34px; right: 34px; height: 2px; - background: #23395d; + background: var(--sg-border-strong); &::after { content: ''; @@ -278,7 +278,7 @@ right: -10px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; - border-left: 12px solid #23395d; + border-left: 12px solid var(--sg-border-strong); } } @@ -298,7 +298,7 @@ .year-button { margin-bottom: 9px; - color: #15213f; + color: var(--sg-text); font-size: 14px; font-weight: 700; line-height: 18px; @@ -308,10 +308,10 @@ .dot { width: 18px; height: 18px; - border: 3px solid #ffffff; + border: 3px solid var(--sg-surface); border-radius: 50%; background: var(--timeline-color); - box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.24); + box-shadow: var(--sg-shadow-sm); } } @@ -321,7 +321,7 @@ } .timeline-load-more-point { - --timeline-color: #b8c7e6; + --timeline-color: var(--sg-text-soft); .year-button { color: var(--accent); @@ -331,9 +331,9 @@ .research-timeline-card .load-more-action-button { padding: 7px 12px; - border: 1px solid #bdd4ff; + border: 1px solid var(--sg-border); border-radius: 999px; - background: #f0f6ff; + background: var(--sg-primary-soft); color: var(--accent); font-size: 12px; font-weight: 700; @@ -347,7 +347,7 @@ h3 { min-height: 42px; margin: 0 0 8px; - color: #07163d; + color: var(--sg-text); font-size: 15px; font-weight: 700; line-height: 1.35; @@ -358,7 +358,7 @@ .publication-count { display: block; margin-bottom: 14px; - color: #68748f; + color: var(--sg-text-muted); font-size: 12px; } @@ -387,7 +387,7 @@ app-topic-chip.timeline-topic-chip { } .no-topics { - color: #9aa5bc; + color: var(--sg-text-soft); font-size: 12px; } @@ -409,10 +409,10 @@ app-topic-chip.timeline-topic-chip { min-width: 300px; box-sizing: border-box; padding: 15px 16px; - border: 1px solid #dbe5f6; + border: 1px solid var(--sg-border); border-left: 4px solid var(--timeline-color); border-radius: 14px; - background: #fbfdff; + background: var(--sg-surface-muted); } .phase-card-header { @@ -425,10 +425,10 @@ app-topic-chip.timeline-topic-chip { width: 16px; height: 16px; margin-top: 3px; - border: 3px solid #ffffff; + border: 3px solid var(--sg-surface); border-radius: 50%; background: var(--timeline-color); - box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22); + box-shadow: var(--sg-shadow-sm); } .phase-title-block { @@ -437,7 +437,7 @@ app-topic-chip.timeline-topic-chip { h3 { margin: 10px 0 0; - color: #07163d; + color: var(--sg-text); font-size: 15px; font-weight: 700; line-height: 1.35; @@ -449,20 +449,20 @@ app-topic-chip.timeline-topic-chip { width: fit-content; padding: 2px 8px; border-radius: 999px; - background: #eef4ff; + background: var(--sg-primary-soft); color: var(--accent); font-size: 12px; font-weight: 700; } .phase-years-button:hover { - background: #dfeaff; + background: var(--sg-surface-soft); } .phase-publications-button { display: inline-flex; width: fit-content; - color: #68748f; + color: var(--sg-text-muted); font-size: 12px; font-weight: 600; text-align: left; @@ -495,7 +495,7 @@ app-topic-chip.timeline-topic-chip { margin-top: 13px; padding-top: 4px; padding-right: 6px; - border-top: 1px solid #dbe5f6; + border-top: 1px solid var(--sg-border); overflow-y: auto; overflow-x: hidden; } @@ -508,7 +508,7 @@ app-topic-chip.timeline-topic-chip { padding: 10px 0; & + & { - border-top: 1px solid #e4ebf7; + border-top: 1px solid var(--sg-border); } } @@ -519,7 +519,7 @@ app-topic-chip.timeline-topic-chip { .phase-year-button { width: fit-content; - color: #07163d; + color: var(--sg-text); font-size: 13px; font-weight: 700; text-align: left; @@ -527,7 +527,7 @@ app-topic-chip.timeline-topic-chip { span, .phase-year-publication-button { - color: #68748f; + color: var(--sg-text-muted); font-size: 11px; } @@ -549,7 +549,7 @@ app-topic-chip.timeline-topic-chip { align-items: center; gap: 10px; margin-top: 18px; - color: #68748f; + color: var(--sg-text-muted); font-size: 13px; text-align: center; } @@ -557,9 +557,9 @@ app-topic-chip.timeline-topic-chip { .note-dot { width: 12px; height: 12px; - border: 3px solid #dce5f5; + border: 3px solid var(--sg-border); border-radius: 50%; - background: #52627f; + background: var(--sg-text-soft); } .load-more-content { @@ -585,7 +585,7 @@ app-topic-chip.timeline-topic-chip { align-items: center; justify-content: center; padding: 20px; - color: #68748f; + color: var(--sg-text-muted); font-size: 14px; text-align: center; } @@ -596,7 +596,7 @@ app-topic-chip.timeline-topic-chip { } .timeline-state-error { - color: #b42318; + color: var(--sg-error); } @media (max-width: 1100px) { diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html index 4f659cdd..7ae54317 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.html +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -137,7 +137,7 @@ Patentdetails anzeigen - +

Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss index b5fe67d8..ff872bad 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.scss +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -1,6 +1,6 @@ .message { padding: 16px; - color: #666; + color: var(--sg-text-muted); } .patents-container { @@ -44,30 +44,30 @@ th { text-align: left; padding: 10px 12px; - border-bottom: 2px solid #e0e0e0; + border-bottom: 2px solid var(--sg-border); font-weight: 600; - color: #333; + color: var(--sg-text); } tr { cursor: pointer; &:hover { - background: #f5f5f5; + background: var(--sg-surface-soft); } &.selected { - background: #f0f0f0; + background: var(--sg-primary-soft); } } td { padding: 10px 12px; - border-bottom: 1px solid #f0f0f0; + border-bottom: 1px solid var(--sg-border); } .patent-title { - color: #333; + color: var(--sg-text); font-weight: 500; max-width: 400px; white-space: nowrap; @@ -89,18 +89,18 @@ align-items: center; padding: 2px 8px; border-radius: 999px; - background: #f3f4f6; - border: 1px solid #e5e7eb; - color: #374151; + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); + color: var(--sg-text-muted); font-size: 0.68rem; font-weight: 600; &--signal { padding: 4px 10px; font-size: 0.75rem; - background: #ecfdf5; - border-color: #a7f3d0; - color: #047857; + background: var(--sg-success-soft); + border-color: var(--sg-success); + color: var(--sg-success); } } @@ -118,30 +118,30 @@ font-weight: 700; &--epo { - background: #effaf3; - color: #24834f; - border: 1px solid #bdebcf; + background: var(--sg-success-soft); + color: var(--sg-success); + border: 1px solid var(--sg-success); } &--uspto { - background: #f0f6ff; - color: #0b63ce; - border: 1px solid #bdd4ff; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); + border: 1px solid var(--sg-border); } } .patent-detail { width: 440px; - border: 1px solid #e0e0e0; + border: 1px solid var(--sg-border); border-radius: 8px; padding: 20px; - background: #fafafa; + background: var(--sg-surface-muted); &.empty { display: flex; align-items: center; justify-content: center; - color: #999; + color: var(--sg-text-soft); min-height: 200px; } @@ -153,13 +153,13 @@ .overview-title { font-size: 15px; font-weight: 600; - color: #333; + color: var(--sg-text); margin: 0; } .overview-subtitle { font-size: 13px; - color: #888; + color: var(--sg-text-muted); margin: 0; } @@ -171,8 +171,8 @@ } .overview-stat { - background: white; - border: 1px solid #e0e0e0; + background: var(--sg-surface); + border: 1px solid var(--sg-border); border-radius: 8px; padding: 12px 8px; text-align: center; @@ -181,41 +181,41 @@ display: block; font-size: 22px; font-weight: 700; - color: #333; + color: var(--sg-text); } .overview-label { display: block; font-size: 12px; - color: #888; + color: var(--sg-text-muted); margin-top: 4px; } &--total { .overview-value, .overview-label { - color: #7255d9; + color: var(--sg-warning); } } &--epo { .overview-value, .overview-label { - color: #24834f; + color: var(--sg-success); } } &--uspto { .overview-value, .overview-label { - color: #0b63ce; + color: var(--sg-blue-highlight); } } } .overview-hint { font-size: 12px; - color: #aaa; + color: var(--sg-text-soft); margin: 0; } } @@ -223,7 +223,7 @@ h3 { margin: 0 0 16px 0; font-size: 16px; - color: #333; + color: var(--sg-text); line-height: 1.4; } } @@ -234,8 +234,8 @@ gap: 10px; .stat { - background: white; - border: 1px solid #e0e0e0; + background: var(--sg-surface); + border: 1px solid var(--sg-border); border-radius: 8px; padding: 10px; text-align: center; @@ -243,7 +243,7 @@ .stat-label { display: block; font-size: 11px; - color: #666; + color: var(--sg-text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; @@ -253,7 +253,7 @@ display: block; font-size: 15px; font-weight: bold; - color: #333; + color: var(--sg-text); } } } @@ -262,7 +262,7 @@ margin: 14px 0 0; font-size: 13px; line-height: 1.55; - color: #555; + color: var(--sg-text-muted); } .patent-detail-action { @@ -273,10 +273,10 @@ width: 100%; margin-top: 16px; padding: 12px 14px; - border: 1px solid #bdd4ff; + border: 1px solid var(--sg-border); border-radius: 10px; - background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%); - color: #0b63ce; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); font-size: 14px; font-weight: 600; cursor: pointer; @@ -286,12 +286,12 @@ box-shadow 0.15s; &:hover { - border-color: #0b63ce; - background: #f0f6ff; - box-shadow: 0 2px 8px rgba(11, 99, 206, 0.12); + border-color: var(--sg-blue-highlight); + background: var(--sg-surface-soft); + box-shadow: var(--sg-shadow-sm); } - .material-icons { + mat-icon { font-size: 20px; } } @@ -300,34 +300,34 @@ margin: 8px 0 0; font-size: 12px; line-height: 1.4; - color: #888; + color: var(--sg-text-muted); text-align: center; } .patent-full-detail { flex: 1; - border: 1px solid #e0e0e0; + border: 1px solid var(--sg-border); border-radius: 8px; padding: 20px; - background: #fafafa; + background: var(--sg-surface-muted); h3 { margin: 0 0 4px 0; font-size: 16px; - color: #333; + color: var(--sg-text); line-height: 1.4; } h4 { margin: 16px 0 8px 0; font-size: 14px; - color: #555; + color: var(--sg-text-muted); font-weight: 600; } p { font-size: 13px; - color: #444; + color: var(--sg-text); line-height: 1.6; margin: 0; } @@ -342,11 +342,11 @@ margin-bottom: 1rem; padding: 0.5rem 0.85rem; - border: 1px solid #d6e3f8; + border: 1px solid var(--sg-border); border-radius: 999px; - background: #f8fbff; - color: #2563eb; + background: var(--sg-surface-soft); + color: var(--sg-blue-highlight); font-size: 0.9rem; font-weight: 600; @@ -359,14 +359,13 @@ box-shadow 0.15s ease; &:hover { - background: #eef5ff; - border-color: #bcd3f7; - color: #1d4ed8; - box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12); + background: var(--sg-primary-soft); + border-color: var(--sg-blue-highlight); + box-shadow: var(--sg-shadow-sm); } &:focus-visible { - outline: 2px solid #93c5fd; + outline: 2px solid var(--sg-card-hover-border); outline-offset: 2px; } } @@ -374,7 +373,7 @@ .detail-section { margin-top: 12px; padding-top: 12px; - border-top: 1px solid #eee; + border-top: 1px solid var(--sg-border); } .patent-meta { @@ -384,10 +383,10 @@ &__list { margin: 0; - border: 1px solid #e2e8f4; + border: 1px solid var(--sg-border); border-radius: 12px; - background: linear-gradient(180deg, #fff 0%, #f8faff 100%); - box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04); + background: var(--sg-surface); + box-shadow: var(--sg-shadow-sm); overflow: hidden; } @@ -397,7 +396,7 @@ gap: 12px 16px; align-items: center; padding: 11px 16px; - border-top: 1px solid #eef2f8; + border-top: 1px solid var(--sg-border); &:first-child { border-top: 0; @@ -407,7 +406,7 @@ margin: 0; font-size: 12px; font-weight: 500; - color: #64748b; + color: var(--sg-text-muted); line-height: 1.35; } @@ -415,7 +414,7 @@ margin: 0; font-size: 14px; font-weight: 600; - color: #1e293b; + color: var(--sg-text); line-height: 1.35; word-break: break-word; } @@ -439,32 +438,32 @@ .tag { padding: 4px 10px; border-radius: 999px; - background: #f0f6ff; - border: 1px solid #dbeafe; - color: #1e40af; + background: var(--sg-primary-soft); + border: 1px solid var(--sg-border); + color: var(--sg-blue-highlight); font-size: 0.8rem; line-height: 1.3; } .classification-section { &--ipc .classification-card { - background: #f0f6ff; - border-color: #bfdbfe; + background: var(--sg-primary-soft); + border-color: var(--sg-border); } &--ipc .classification-badge--system { - background: #dbeafe; - color: #1d4ed8; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } &--cpc .classification-card { - background: #f0fdf4; - border-color: #bbf7d0; + background: var(--sg-success-soft); + border-color: var(--sg-success); } &--cpc .classification-badge--system { - background: #dcfce7; - color: #15803d; + background: var(--sg-success-soft); + color: var(--sg-success); } } @@ -477,7 +476,7 @@ .classification-card { padding: 12px 14px; border-radius: 10px; - border: 1px solid #dbeafe; + border: 1px solid var(--sg-border); } .classification-card__header { @@ -503,7 +502,7 @@ .classification-code { font-size: 0.9rem; font-weight: 700; - color: #0f172a; + color: var(--sg-text); } .classification-badge { @@ -518,15 +517,15 @@ } .classification-badge--level { - background: #e2e8f0; - color: #475569; + background: var(--sg-surface-soft); + color: var(--sg-text-muted); } .classification-summary { margin: 10px 0 0; font-size: 0.84rem; line-height: 1.5; - color: #334155; + color: var(--sg-text-muted); } .classification-toggle { @@ -534,7 +533,7 @@ padding: 0; border: 0; background: none; - color: #2563eb; + color: var(--sg-blue-highlight); font-size: 0.78rem; cursor: pointer; @@ -546,7 +545,7 @@ .classification-hierarchy { margin: 10px 0 0; padding-top: 10px; - border-top: 1px solid rgba(15, 23, 42, 0.08); + border-top: 1px solid var(--sg-border); } .classification-hierarchy__row { @@ -559,7 +558,7 @@ margin: 0; font-size: 0.72rem; font-weight: 700; - color: #64748b; + color: var(--sg-text-muted); text-transform: uppercase; letter-spacing: 0.03em; } @@ -568,7 +567,7 @@ margin: 0; font-size: 0.8rem; line-height: 1.45; - color: #334155; + color: var(--sg-text); } } @@ -581,9 +580,9 @@ button { padding: 4px 10px; - border: 1px solid #d0d0d0; + border: 1px solid var(--sg-border); border-radius: 6px; - background: white; + background: var(--sg-surface); cursor: pointer; font-size: 12px; @@ -595,6 +594,6 @@ span { font-size: 12px; - color: #666; + color: var(--sg-text-muted); } } diff --git a/webapp/src/app/modules/person/person.component.scss b/webapp/src/app/modules/person/person.component.scss index f8407fc7..f7ec182b 100644 --- a/webapp/src/app/modules/person/person.component.scss +++ b/webapp/src/app/modules/person/person.component.scss @@ -34,13 +34,7 @@ width: 112px; height: 112px; border-radius: 50%; - background: - radial-gradient( - circle at 50% 30%, - rgba(255, 255, 255, 0.78), - transparent 34% - ), - linear-gradient(145deg, #c8d9ff, #f7faff 48%, #88a9ee); + background: var(--sg-avatar-gradient); border: 1px solid var(--sg-border); box-shadow: var(--sg-shadow-sm); color: var(--sg-primary); @@ -85,7 +79,7 @@ padding: 0; border: 1px solid var(--sg-border); border-radius: 50%; - background: white; + background: var(--sg-surface); color: var(--sg-text-muted); cursor: pointer; @@ -226,14 +220,14 @@ } .orcid-chip:hover { - border-color: #6cc24a; + border-color: var(--sg-success); } .orcid-chip mat-icon { width: 16px; height: 16px; font-size: 16px; - color: #6cc24a; + color: var(--sg-success); } .sidebar { @@ -252,7 +246,7 @@ padding: 24px 28px; border-radius: var(--sg-radius-sm); background: var(--sg-surface-muted); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); + box-shadow: var(--sg-shadow-sm); } .bio-card h3 { -- 2.56.1 From f36e9a7d54dcfa1ce7a741a12ac39564ee84a683 Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:11:36 +0200 Subject: [PATCH 05/24] changed static color to use dynamic theme --- .../bund-details/bund-details.component.scss | 68 +++++------ .../dfg-details/dfg-details.component.scss | 81 ++++++------- .../deliverables-cards.component.scss | 19 +-- .../eu-details.component.scss | 113 +++++++++--------- .../organizations-table.component.scss | 46 +++---- .../patents-cards.component.scss | 20 ++-- .../publications-table.component.scss | 50 ++++---- .../publication-detail.component.scss | 34 +++--- .../topic-hierarchy.component.scss | 2 +- .../app/modules/topic/topic.component.scss | 12 +- .../uni-pie-chart.component.scss | 14 +-- .../uni-pie-chart/uni-pie-chart.component.ts | 28 +++-- 12 files changed, 250 insertions(+), 237 deletions(-) diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.scss b/webapp/src/app/modules/projects/bund-details/bund-details.component.scss index 8d3075b1..6790faa9 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.scss +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.scss @@ -1,5 +1,3 @@ -// Complete SCSS with all styles including clickable elements - .detail-page { padding: 28px 32px 42px; max-width: 100%; @@ -19,7 +17,7 @@ gap: 6px; padding: 6px 14px; border-radius: var(--sg-radius-sm); - color: #fff; + color: var(--sg-background); font-size: 13px; font-weight: 500; cursor: pointer; @@ -28,7 +26,7 @@ .status-badge:hover { transform: translateY(-1px); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + box-shadow: var(--sg-shadow-sm); } .status-badge mat-icon { @@ -41,9 +39,9 @@ align-items: center; gap: 8px; padding: 8px 16px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); color: var(--sg-text); cursor: pointer; font-size: 14px; @@ -51,8 +49,8 @@ } .back-link:hover { - background: #f5f7fa; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .back-link mat-icon { @@ -81,8 +79,8 @@ } .project-hero { - background: #f8fafc; - border: 1px solid #d9e2f0; + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); padding: 28px 32px; margin-bottom: 28px; @@ -103,7 +101,7 @@ .project-badge { display: inline-block; padding: 4px 12px; - background: #e8edf5; + background: var(--sg-primary-soft); color: var(--sg-text); border-radius: var(--sg-radius-sm); font-size: 12px; @@ -120,8 +118,8 @@ .new-badge { display: inline-block; padding: 2px 10px; - background: #27ae60; - color: #fff; + background: var(--sg-success); + color: var(--sg-background); border-radius: var(--sg-radius-sm); font-size: 11px; font-weight: 600; @@ -155,8 +153,8 @@ h1 { align-items: center; gap: 8px; padding: 8px 16px; - background: #fff; - border: 1px solid #d9e2f0; + background: var(--sg-surface); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); color: var(--sg-text); font-size: 14px; @@ -166,8 +164,8 @@ h1 { .agency-info:hover, .funding-type-info:hover { - background: #f5f7fa; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .agency-info mat-icon, @@ -183,7 +181,7 @@ h1 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 20px; - border-top: 1px solid #d9e2f0; + border-top: 1px solid var(--sg-border); } .metric-item { @@ -217,7 +215,8 @@ h1 { .card { margin-bottom: 24px; - border-color: #d9e2f0 !important; + background: var(--sg-card-bg) !important; + border-color: var(--sg-border) !important; border-radius: var(--sg-radius-md) !important; } @@ -230,7 +229,7 @@ h1 { align-items: center; gap: 10px; padding: 16px 20px 12px; - border-bottom: 1px solid #f0f2f5; + border-bottom: 1px solid var(--sg-border); } .section-header mat-icon { @@ -255,7 +254,7 @@ h1 { height: 24px; padding: 0 8px; margin-left: auto; - background: #e8edf5; + background: var(--sg-primary-soft); border-radius: 12px; color: var(--sg-text-muted); font-size: 12px; @@ -300,16 +299,16 @@ h1 { align-items: center; gap: 10px; padding: 8px 12px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); cursor: pointer; transition: all 0.2s; } .person-item:hover { - background: #f8fafc; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); transform: translateY(-1px); } @@ -320,7 +319,7 @@ h1 { width: 32px; height: 32px; border-radius: 50%; - background: #e8edf5; + background: var(--sg-primary-soft); color: var(--sg-text); font-size: 13px; font-weight: 600; @@ -345,9 +344,9 @@ h1 { align-items: center; gap: 10px; padding: 8px 12px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); font-size: 13px; color: var(--sg-text); cursor: pointer; @@ -355,8 +354,8 @@ h1 { } .institution-item:hover { - background: #f8fafc; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .institution-item mat-icon { @@ -394,7 +393,7 @@ h1 { grid-template-columns: 140px 1fr; gap: 24px; padding: 8px 0; - border-bottom: 1px solid #f0f2f5; + border-bottom: 1px solid var(--sg-border); } .detail-row:last-child { @@ -423,7 +422,7 @@ h1 { } .detail-row dd.clickable:hover { - color: var(--sg-primary, #0066cc); + color: var(--sg-primary); } .detail-row dd.clickable:hover .search-icon { @@ -469,7 +468,7 @@ h1 { width: 48px; height: 48px; font-size: 48px; - color: #e74c3c; + color: var(--sg-error); } .error-state p { @@ -477,9 +476,8 @@ h1 { font-size: 16px; } -// Clickable external link styling .external-link { - color: var(--sg-primary, #0066cc); + color: var(--sg-primary); text-decoration: none; } diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss index ec175256..80885471 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss @@ -16,9 +16,9 @@ align-items: center; gap: 8px; padding: 8px 16px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); color: var(--sg-text); cursor: pointer; font-size: 14px; @@ -26,8 +26,8 @@ } .back-link:hover { - background: #f5f7fa; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .back-link mat-icon { @@ -56,8 +56,8 @@ } .project-hero { - background: #f8fafc; - border: 1px solid #d9e2f0; + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); padding: 28px 32px; margin-bottom: 28px; @@ -77,7 +77,7 @@ .project-badge { display: inline-block; padding: 4px 12px; - background: #e8edf5; + background: var(--sg-primary-soft); color: var(--sg-text); border-radius: var(--sg-radius-sm); font-size: 12px; @@ -125,24 +125,24 @@ h1 { } .primary-action { - background: var(--sg-primary, #0066cc); - color: #fff; + background: var(--sg-primary); + color: var(--sg-background); border: none; } .primary-action:hover { - background: var(--sg-primary-dark, #0052a3); + background: var(--sg-primary-strong); } .secondary-action { - background: #fff; + background: var(--sg-surface); color: var(--sg-text); - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); } .secondary-action:hover { - background: #f5f7fa; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .primary-action mat-icon, @@ -157,7 +157,7 @@ h1 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 20px; - border-top: 1px solid #d9e2f0; + border-top: 1px solid var(--sg-border); } .metric-item { @@ -191,7 +191,8 @@ h1 { .card { margin-bottom: 24px; - border-color: #d9e2f0 !important; + background: var(--sg-card-bg) !important; + border-color: var(--sg-border) !important; border-radius: var(--sg-radius-md) !important; } @@ -204,7 +205,7 @@ h1 { align-items: center; gap: 10px; padding: 16px 20px 12px; - border-bottom: 1px solid #f0f2f5; + border-bottom: 1px solid var(--sg-border); } .section-header mat-icon { @@ -229,7 +230,7 @@ h1 { height: 24px; padding: 0 8px; margin-left: auto; - background: #e8edf5; + background: var(--sg-primary-soft); border-radius: 12px; color: var(--sg-text-muted); font-size: 12px; @@ -241,7 +242,7 @@ h1 { gap: 6px; padding: 6px 14px; border-radius: var(--sg-radius-sm); - color: #fff; + color: var(--sg-background); font-size: 13px; font-weight: 500; cursor: pointer; @@ -250,7 +251,7 @@ h1 { .status-badge:hover { transform: translateY(-1px); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + box-shadow: var(--sg-shadow-sm); } .status-badge mat-icon { @@ -296,16 +297,16 @@ h1 { align-items: center; gap: 10px; padding: 8px 12px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); transition: all 0.2s; } .person-item:hover { cursor: pointer; - background: #f8fafc; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .avatar { @@ -315,7 +316,7 @@ h1 { width: 32px; height: 32px; border-radius: 50%; - background: #e8edf5; + background: var(--sg-primary-soft); color: var(--sg-text); font-size: 13px; font-weight: 600; @@ -337,7 +338,7 @@ h1 { .person-role { font-size: 11px; - color: var(--sg-primary, #0066cc); + color: var(--sg-primary); font-weight: 500; } @@ -362,9 +363,9 @@ h1 { align-items: center; gap: 10px; padding: 8px 12px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); font-size: 13px; color: var(--sg-text); } @@ -393,8 +394,8 @@ h1 { flex-shrink: 0; padding: 2px 8px; border-radius: 10px; - background: #fbeaea; - color: #c0392b; + background: var(--sg-error-soft); + color: var(--sg-error); font-size: 11px; font-weight: 500; } @@ -409,16 +410,16 @@ h1 { .subproject-item { padding: 10px 14px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); cursor: pointer; transition: all 0.2s; } .subproject-item:hover { - background: #f8fafc; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .subproject-main { @@ -438,7 +439,7 @@ h1 { flex-shrink: 0; padding: 2px 8px; border-radius: 10px; - background: #e8edf5; + background: var(--sg-primary-soft); color: var(--sg-text-muted); font-size: 11px; font-weight: 500; @@ -452,9 +453,9 @@ h1 { .publication-item { padding: 10px 14px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); } .publication-title { @@ -501,7 +502,7 @@ h1 { grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 0; - border-bottom: 1px solid #f0f2f5; + border-bottom: 1px solid var(--sg-border); } .detail-row:last-child { @@ -522,7 +523,7 @@ h1 { } .external-link { - color: var(--sg-primary, #0066cc); + color: var(--sg-primary); text-decoration: none; } @@ -556,7 +557,7 @@ h1 { width: 48px; height: 48px; font-size: 48px; - color: #e74c3c; + color: var(--sg-error); } .error-state p { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss index a729cc21..b990d794 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss @@ -11,19 +11,19 @@ align-items: flex-start; gap: 16px; padding: 14px 16px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); transition: all 0.2s; &:hover { - background: #f8fafc; + background: var(--sg-surface-soft); } } .deliv-icon { flex-shrink: 0; - color: #7b1fa2; + color: var(--sg-warning); mat-icon { width: 24px; @@ -53,16 +53,16 @@ .deliv-type { padding: 1px 8px; - background: #f3e5f5; + background: var(--sg-warning-soft); border-radius: var(--sg-radius-sm); - color: #7b1fa2; + color: var(--sg-warning); } .deliv-link { display: inline-flex; align-items: center; gap: 4px; - color: var(--sg-primary, #0066cc); + color: var(--sg-primary); text-decoration: none; &:hover { @@ -82,7 +82,8 @@ .card { margin-bottom: 24px; - border-color: #d9e2f0 !important; + background: var(--sg-card-bg) !important; + border-color: var(--sg-border) !important; border-radius: var(--sg-radius-md) !important; } @@ -91,7 +92,7 @@ align-items: center; gap: 12px; padding: 16px 20px; - border-bottom: 1px solid #e6e9ed; + border-bottom: 1px solid var(--sg-border); } .section-header mat-icon { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss index 6559f75a..0f33615a 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss @@ -27,8 +27,8 @@ font-weight: 500; } .project-hero { - background: #f8fafc; - border: 1px solid #d9e2f0; + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); padding: 28px 32px; margin-bottom: 28px; @@ -46,7 +46,7 @@ .project-badge { display: inline-block; padding: 4px 12px; - background: #e8edf5; + background: var(--sg-primary-soft); color: var(--sg-text); border-radius: var(--sg-radius-sm); font-size: 12px; @@ -81,7 +81,7 @@ h1 { gap: 6px; padding: 6px 14px; border-radius: var(--sg-radius-sm); - color: #fff; + color: var(--sg-background); font-size: 13px; font-weight: 500; cursor: pointer; @@ -89,7 +89,7 @@ h1 { } .status-badge:hover { transform: translateY(-1px); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + box-shadow: var(--sg-shadow-md); } .status-badge mat-icon { width: 16px; @@ -101,8 +101,8 @@ h1 { align-items: center; gap: 8px; padding: 6px 14px; - background: #fff; - border: 1px solid #d9e2f0; + background: var(--sg-surface); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); color: var(--sg-text); font-size: 13px; @@ -110,8 +110,8 @@ h1 { transition: all 0.2s; } .scheme-info:hover { - background: #f5f7fa; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); } .scheme-info mat-icon { color: var(--sg-text-muted); @@ -124,16 +124,16 @@ h1 { align-items: center; gap: 6px; padding: 6px 14px; - background: #e8f0fe; - border: 1px solid #c5d8f0; + background: var(--sg-primary-soft); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - color: #1a73e8; + color: var(--sg-blue-highlight); text-decoration: none; font-size: 13px; transition: all 0.2s; } .doi-link:hover { - background: #d5e3fa; + background: var(--sg-surface-soft); } .doi-link mat-icon { width: 18px; @@ -145,7 +145,7 @@ h1 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 20px; - border-top: 1px solid #d9e2f0; + border-top: 1px solid var(--sg-border); } .metric-item { display: flex; @@ -173,7 +173,8 @@ h1 { } .card { margin-bottom: 24px; - border-color: #d9e2f0 !important; + background: var(--sg-card-bg) !important; + border-color: var(--sg-border) !important; border-radius: var(--sg-radius-md) !important; } .section-header { @@ -181,7 +182,7 @@ h1 { align-items: center; gap: 12px; padding: 16px 20px; - border-bottom: 1px solid #e6e9ed; + border-bottom: 1px solid var(--sg-border); } .section-header mat-icon { color: var(--sg-text-muted); @@ -203,7 +204,7 @@ h1 { height: 24px; padding: 0 8px; margin-left: auto; - background: #e8edf5; + background: var(--sg-primary-soft); border-radius: 12px; color: var(--sg-text-muted); font-size: 12px; @@ -238,15 +239,15 @@ h1 { align-items: center; justify-content: space-between; padding: 10px 14px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); cursor: pointer; transition: all 0.2s; } .topic-item:hover { - background: #f8fafc; - border-color: #b8c5d6; + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); transform: translateY(-1px); } .topic-value { @@ -280,7 +281,7 @@ h1 { grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 0; - border-bottom: 1px solid #f0f2f5; + border-bottom: 1px solid var(--sg-border); } .detail-row:last-child { border-bottom: 0; @@ -304,7 +305,7 @@ h1 { transition: color 0.2s; } .detail-row dd.clickable:hover { - color: var(--sg-primary, #0066cc); + color: var(--sg-primary); } .detail-row dd.clickable:hover .search-icon, .detail-row dd:hover .search-icon { @@ -322,7 +323,7 @@ h1 { display: inline-block; padding: 2px 10px; border-radius: var(--sg-radius-sm); - color: #fff; + color: var(--sg-background); font-size: 12px; font-weight: 500; cursor: pointer; @@ -335,7 +336,7 @@ h1 { display: inline-flex; align-items: center; gap: 4px; - color: var(--sg-primary, #0066cc); + color: var(--sg-primary); text-decoration: none; word-break: break-all; } @@ -359,7 +360,7 @@ h1 { width: 48px; height: 48px; font-size: 48px; - color: #e74c3c; + color: var(--sg-error); } .error-state p { margin: 0; @@ -427,16 +428,16 @@ h1 { letter-spacing: 0.5px; } .program-badge.fp7 { - background: #e8eaf6; - color: #283593; + background: var(--sg-primary-soft); + color: var(--sg-primary); } .program-badge.h2020 { - background: #e3f2fd; - color: #0d47a1; + background: var(--sg-primary-soft); + color: var(--sg-blue-highlight); } .program-badge.heu { - background: #e8f5e9; - color: #1b5e20; + background: var(--sg-success-soft); + color: var(--sg-success); } .tabs-container { @@ -444,9 +445,9 @@ h1 { gap: 4px; padding: 0 4px; margin-bottom: 24px; - background: #f8fafc; + background: var(--sg-surface-muted); border-radius: var(--sg-radius-md); - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); overflow-x: auto; } .tab-btn { @@ -465,13 +466,13 @@ h1 { white-space: nowrap; } .tab-btn:hover { - background: rgba(0, 0, 0, 0.04); + background: var(--sg-surface-soft); color: var(--sg-text); } .tab-btn.active { - background: #fff; - color: var(--sg-primary, #0066cc); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); + background: var(--sg-card-bg); + color: var(--sg-primary); + box-shadow: var(--sg-shadow-sm); } .tab-btn mat-icon { width: 20px; @@ -485,7 +486,7 @@ h1 { min-width: 20px; height: 20px; padding: 0 6px; - background: #e8edf5; + background: var(--sg-primary-soft); border-radius: 10px; color: var(--sg-text-muted); font-size: 11px; @@ -515,15 +516,15 @@ h1 { align-items: center; gap: 12px; padding: 12px 16px; - background: #f8fafc; - border: 1px solid #e6e9ed; + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); border-radius: 8px; flex-wrap: wrap; } .eurosci-voc-item.clickable:hover { - background: #f0f3f7; - border-color: #b8c5d6; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); + background: var(--sg-surface-soft); + border-color: var(--sg-border-strong); + box-shadow: var(--sg-shadow-sm); } .eurosci-voc-item .voc-path { display: flex; @@ -536,36 +537,36 @@ h1 { .eurosci-voc-item .path-segment { font-size: 13px; font-weight: 500; - color: #1a1a1a; + color: var(--sg-text); padding: 2px 8px; border-radius: 4px; - background: #fff; - border: 1px solid #e6e9ed; + background: var(--sg-surface); + border: 1px solid var(--sg-border); } .eurosci-voc-item .path-segment:last-child { - background: #e8f0fe; - border-color: #c5d8f0; - color: #005a9c; + background: var(--sg-primary-soft); + border-color: var(--sg-border); + color: var(--sg-blue-highlight); font-weight: 600; } .eurosci-voc-item .path-separator { width: 16px; height: 16px; font-size: 16px; - color: #6b7a8a; + color: var(--sg-text-soft); } .eurosci-voc-item .voc-code { font-size: 12px; - color: #6b7a8a; + color: var(--sg-text-soft); font-family: monospace; - background: #eef2f7; + background: var(--sg-surface-soft); padding: 2px 8px; border-radius: 4px; white-space: nowrap; } .eurosci-voc-item .voc-description { font-size: 13px; - color: #6b7a8a; + color: var(--sg-text-muted); font-style: italic; } @@ -580,9 +581,9 @@ h1 { align-items: center; gap: 12px; padding: 10px 14px; - background: #f8fafc; + background: var(--sg-surface-muted); border-radius: var(--sg-radius-sm); - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); } .erc-pi-item .pi-name { font-weight: 500; diff --git a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss index 1d824631..44349ce4 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss @@ -5,10 +5,10 @@ align-items: center; gap: 12px; padding: 16px 20px; - border-bottom: 1px solid #e6e9ed; + border-bottom: 1px solid var(--sg-border); mat-icon { - color: #6b7a8a; + color: var(--sg-text-muted); font-size: 24px; width: 24px; height: 24px; @@ -18,7 +18,7 @@ margin: 0; font-size: 18px; font-weight: 600; - color: #1a1a1a; + color: var(--sg-text); } } @@ -31,18 +31,18 @@ .mat-mdc-header-cell { font-weight: 600; - color: #6b7a8a; + color: var(--sg-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; - background: #f8fafc; - border-bottom: 2px solid #e6e9ed; + background: var(--sg-surface-muted); + border-bottom: 2px solid var(--sg-border); padding: 12px 16px; } .mat-mdc-cell { padding: 12px 16px; - border-bottom: 1px solid #f0f2f5; + border-bottom: 1px solid var(--sg-border); font-size: 13px; } @@ -51,7 +51,7 @@ } .mat-mdc-row:hover { - background: #f8fafc; + background: var(--sg-surface-soft); } } @@ -64,21 +64,21 @@ .org-name-text { font-weight: 500; - color: #1a1a1a; + color: var(--sg-text); } .org-name-cell:hover .org-name-text { - color: #005a9c; + color: var(--sg-primary); text-decoration: underline; } .role-chip { display: inline-block; padding: 2px 10px; - background: #e8edf5; + background: var(--sg-primary-soft); border-radius: 12px; font-size: 12px; - color: #6b7a8a; + color: var(--sg-text-muted); } .country-chip { @@ -95,27 +95,27 @@ .currency-value { font-weight: 500; - color: #1a1a1a; + color: var(--sg-text); } .empty-value { - color: #6b7a8a; + color: var(--sg-text-soft); } .activity-chip { display: inline-block; padding: 2px 10px; - background: #f0f3f7; + background: var(--sg-surface-soft); border-radius: 12px; font-size: 12px; - color: #6b7a8a; + color: var(--sg-text-muted); } .sme-badge { display: inline-block; padding: 2px 8px; - background: #e8f5e9; - color: #2e7d32; + background: var(--sg-success-soft); + color: var(--sg-success); border-radius: 4px; font-weight: 500; font-size: 12px; @@ -132,23 +132,23 @@ align-items: center; gap: 4px; padding: 2px 8px; - background: #f0f3f7; + background: var(--sg-surface-soft); border-radius: 4px; - color: #4a5a6a; + color: var(--sg-text); text-decoration: none; font-size: 12px; transition: all 0.2s ease; &:hover { - background: #e8edf5; - color: #005a9c; + background: var(--sg-primary-soft); + color: var(--sg-primary); } .link-icon { font-size: 16px; width: 16px; height: 16px; - color: #6b7a8a; + color: var(--sg-text-muted); } .link-label { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss index 43846f9a..bc6a551d 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss @@ -3,7 +3,7 @@ align-items: center; gap: 12px; padding: 16px 20px; - border-bottom: 1px solid #e6e9ed; + border-bottom: 1px solid var(--sg-border); } .section-header mat-icon { @@ -33,19 +33,19 @@ align-items: flex-start; gap: 16px; padding: 14px 16px; - border: 1px solid #d9e2f0; + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); transition: all 0.2s; &:hover { - background: #f8fafc; + background: var(--sg-surface-soft); } } .ipr-icon { flex-shrink: 0; - color: #f39c12; + color: var(--sg-warning); mat-icon { width: 24px; @@ -74,17 +74,17 @@ .ipr-type { padding: 1px 8px; - background: #fff3e0; + background: var(--sg-warning-soft); border-radius: var(--sg-radius-sm); - color: #e65100; + color: var(--sg-warning); font-weight: 500; } .ipr-patent-type { padding: 1px 8px; - background: #e8eaf6; + background: var(--sg-primary-soft); border-radius: var(--sg-radius-sm); - color: #283593; + color: var(--sg-primary); } .ipr-applicant { @@ -103,7 +103,7 @@ .ipr-app-id, .ipr-award-id { padding: 1px 8px; - background: #f5f7fa; + background: var(--sg-surface-soft); border-radius: var(--sg-radius-sm); } } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss index 9a8b171c..c60fa1a1 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss @@ -3,6 +3,8 @@ .publications-tab { .card { margin-bottom: 24px; + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); } .publication-institution-more { display: inline-flex; @@ -11,7 +13,7 @@ padding: 3px 8px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); color: var(--sg-text-muted); font-family: inherit; font-size: 11px; @@ -32,10 +34,10 @@ align-items: center; gap: 12px; padding: 16px 20px; - border-bottom: 1px solid #e6e9ed; + border-bottom: 1px solid var(--sg-border); mat-icon { - color: #6b7a8a; + color: var(--sg-text-muted); font-size: 24px; width: 24px; height: 24px; @@ -45,7 +47,7 @@ margin: 0; font-size: 18px; font-weight: 600; - color: #1a1a1a; + color: var(--sg-text); } } @@ -57,28 +59,28 @@ .mat-mdc-header-cell { font-weight: 600; - color: #6b7a8a; + color: var(--sg-text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; - background: #f8fafc; - border-bottom: 2px solid #e6e9ed; + background: var(--sg-surface-muted); + border-bottom: 2px solid var(--sg-border); padding: 12px 16px; } .mat-mdc-cell { padding: 12px 16px; - border-bottom: 1px solid #f0f2f5; + border-bottom: 1px solid var(--sg-border); font-size: 13px; } .mat-mdc-row { transition: background 0.2s ease; cursor: pointer; - } - .mat-mdc-row:hover { - background: #f8fafc; + &:hover { + background: var(--sg-surface-soft); + } } .pub-title-cell { @@ -90,27 +92,27 @@ .pub-title-text { font-weight: 500; - color: #1a1a1a; + color: var(--sg-text); line-height: 1.4; } .pub-title-cell:hover .pub-title-text { - color: #005a9c; + color: var(--sg-primary); text-decoration: underline; } .author-name:hover { - color: #005a9c; + color: var(--sg-primary); text-decoration: underline; } .journal-chip { display: inline-block; padding: 2px 10px; - background: #e8edf5; + background: var(--sg-primary-soft); border-radius: 12px; font-size: 12px; - color: #6b7a8a; + color: var(--sg-text-muted); max-width: 200px; white-space: nowrap; overflow: hidden; @@ -119,16 +121,16 @@ .year-value { font-weight: 500; - color: #1a1a1a; + color: var(--sg-text); } .publisher-text { - color: #4a5a6a; + color: var(--sg-text-muted); font-size: 13px; } .empty-value { - color: #6b7a8a; + color: var(--sg-text-soft); font-size: 13px; } @@ -144,17 +146,17 @@ align-items: center; gap: 4px; padding: 4px 10px; - background: #f0f3f7; + background: var(--sg-surface-soft); border-radius: 12px; - color: #4a5a6a; + color: var(--sg-text); text-decoration: none; font-size: 11px; font-weight: 500; transition: all 0.2s ease; &:hover { - background: #e8edf5; - color: #005a9c; + background: var(--sg-primary-soft); + color: var(--sg-primary); transform: translateY(-1px); } @@ -162,7 +164,7 @@ font-size: 14px; width: 14px; height: 14px; - color: #6b7a8a; + color: var(--sg-text-muted); } .link-label { diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.scss b/webapp/src/app/modules/publication-detail/publication-detail.component.scss index 6c9b3334..254181d3 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.scss +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.scss @@ -37,13 +37,7 @@ padding: 38px 42px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius-lg); - background: - radial-gradient( - circle at 90% 10%, - rgba(200, 217, 255, 0.75), - transparent 35% - ), - linear-gradient(140deg, #fff 0%, #f8faff 100%); + background: var(--sg-card-bg); box-shadow: var(--sg-shadow-sm); } @@ -59,7 +53,7 @@ padding: 5px 10px; border: 1px solid var(--sg-border); border-radius: 999px; - background: rgba(255, 255, 255, 0.85); + background: var(--sg-surface-muted); color: var(--sg-text-muted); font-size: 11px; font-weight: 700; @@ -71,6 +65,7 @@ h1 { margin: 20px 0 13px; font-size: clamp(27px, 3vw, 42px); line-height: 1.13; + color: var(--sg-text); } .author-line { @@ -93,7 +88,7 @@ h1 { padding: 9px 16px; border: 1px solid var(--sg-border-strong); border-radius: var(--sg-radius-sm); - background: #fff; + background: var(--sg-surface); color: var(--sg-text); font-weight: 700; text-decoration: none; @@ -102,7 +97,7 @@ h1 { .hero-actions a.primary-action { border-color: var(--sg-primary); background: var(--sg-primary); - color: #fff; + color: var(--sg-background); } .hero-actions mat-icon { @@ -116,9 +111,9 @@ h1 { grid-template-columns: repeat(3, 1fr); align-self: center; overflow: hidden; - border: 1px solid rgba(199, 211, 232, 0.8); + border: 1px solid var(--sg-border); border-radius: var(--sg-radius-md); - background: rgba(255, 255, 255, 0.8); + background: var(--sg-surface-muted); } .metrics div { @@ -159,10 +154,10 @@ h1 { gap: 10px; margin-top: 20px; padding: 14px 18px; - border: 1px solid #f1c6cc; + border: 1px solid var(--sg-error); border-radius: var(--sg-radius-sm); - background: #fff4f5; - color: #9c2637; + background: var(--sg-error-soft); + color: var(--sg-error); font-weight: 700; } @@ -210,7 +205,7 @@ aside { transition: background 0.12s; &:hover { - background: #f6f9ff; + background: var(--sg-surface-soft); } mat-icon { @@ -229,8 +224,8 @@ aside { .count-badge { padding: 2px 7px; border-radius: 999px; - background: #e8effe; - color: #3b5bd6; + background: var(--sg-primary-soft); + color: var(--sg-primary); font-size: 11px; font-weight: 700; } @@ -275,6 +270,7 @@ aside { .section-title h2 { margin: 0; font-size: 16px; + color: var(--sg-text); } .section-title span { @@ -312,7 +308,7 @@ aside { width: 38px; height: 38px; border-radius: 50%; - background: #e5ecfb; + background: var(--sg-primary-soft); color: var(--sg-text); font-weight: 700; text-transform: uppercase; diff --git a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss index c42fbac7..b08208fb 100644 --- a/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss +++ b/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss @@ -101,7 +101,7 @@ height: 9px; margin-right: 7px; border-radius: 50%; - border: 1px solid rgba(255, 255, 255, 0.85); + border: 1px solid var(--sg-color-mix-base); box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2); } diff --git a/webapp/src/app/modules/topic/topic.component.scss b/webapp/src/app/modules/topic/topic.component.scss index 65ceca16..4e474fb4 100644 --- a/webapp/src/app/modules/topic/topic.component.scss +++ b/webapp/src/app/modules/topic/topic.component.scss @@ -1,6 +1,14 @@ .content { - --topic-border: color-mix(in srgb, hsl(var(--topic-color)) 72%, #ffffff); - --topic-background: color-mix(in srgb, hsl(var(--topic-color)) 8%, #ffffff); + --topic-border: color-mix( + in srgb, + hsl(var(--topic-color)) 72%, + var(--sg-color-mix-base) + ); + --topic-background: color-mix( + in srgb, + hsl(var(--topic-color)) 8%, + var(--sg-color-mix-base) + ); padding: 2rem; display: flex; diff --git a/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.scss b/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.scss index a2db20d3..d4ccfb1a 100644 --- a/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.scss +++ b/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.scss @@ -1,11 +1,11 @@ .pie-chart-holder { display: flex; flex-direction: column; - background: white; - border: 1px solid #d7e4ff; + background: var(--sg-card-bg); + border: 1px solid var(--sg-border); border-radius: 16px; padding: 1.25rem; - box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); + box-shadow: var(--sg-shadow-sm); box-sizing: border-box; width: 100%; min-height: clamp(420px, 48vh, 580px); @@ -20,7 +20,7 @@ .pie-chart-title { font-size: 0.95rem; font-weight: 600; - color: #1f2937; + color: var(--sg-text); margin: 0; line-height: 1.3; } @@ -28,7 +28,7 @@ .pie-chart-subtext { display: block; font-size: 0.75rem; - color: #6b7280; + color: var(--sg-text-muted); margin-top: 2px; } } @@ -50,14 +50,14 @@ flex-direction: column; align-items: center; justify-content: center; - background: rgba(255, 255, 255, 0.85); + background: var(--sg-card-bg); border-radius: 16px; z-index: 10; gap: 0.75rem; .pie-loader-text { font-size: 12px; - color: #6b7280; + color: var(--sg-text-muted); font-weight: 500; } } diff --git a/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.ts b/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.ts index c7b4b8cb..5db1ce6b 100644 --- a/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.ts +++ b/webapp/src/app/modules/university-ranking/uni-pie-chart/uni-pie-chart.component.ts @@ -2,6 +2,7 @@ import { Component, input, computed, + inject, ChangeDetectionStrategy, } from '@angular/core'; import { CommonModule } from '@angular/common'; @@ -12,6 +13,7 @@ import { topicHierarchyColor, TopicColorVariant, } from '../../../resolvers/utils/topic-colors'; +import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { MatProgressSpinner } from '@angular/material/progress-spinner'; @@ -23,6 +25,8 @@ import { MatProgressSpinner } from '@angular/material/progress-spinner'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class UniPieChartComponent { + private readonly chartTheme = inject(ChartThemeService); + readonly data = input(null); readonly entityId = input(null); readonly entityName = input(null); @@ -31,7 +35,6 @@ export class UniPieChartComponent { readonly getTopicColor = input<(topic: string, variant?: TopicColorVariant) => string>(); - // Inputs for direct rendering (useful for overall top 10 topics chart) readonly titleText = input(null); readonly pieData = input<{ value: number; name: string }[] | null>(null); readonly loading = input(false); @@ -67,19 +70,21 @@ export class UniPieChartComponent { } readonly chartOptions = computed(() => { - // 1. Check loading state + const textColor = this.chartTheme.colors().text; + const tooltipBg = this.chartTheme.colors().tooltipBg; + const tooltipBorder = this.chartTheme.colors().tooltipBorder; + if (this.loading()) { return { title: { text: 'Lade Daten...', left: 'center', top: 'center', - textStyle: { color: '#6b7280', fontSize: 13 }, + textStyle: { color: textColor, fontSize: 13 }, }, }; } - // 2. Check error state if (this.error()) { return { title: { @@ -96,7 +101,6 @@ export class UniPieChartComponent { let pieDataList: any[] = []; - // 3. If direct pieData input is provided, use it const directData = this.pieData(); if (directData !== null) { pieDataList = directData.map((item) => { @@ -113,14 +117,12 @@ export class UniPieChartComponent { }; }); } else { - // Otherwise, filter and extract from TrendResponse const trendData = this.data(); const entityIdVal = this.entityId(); if (!trendData || !entityIdVal) { return {}; } - // Find the series for the selected entity (resilient matching) const series = trendData.series.find((s) => { const sId = s.entity_id; const targetId = entityIdVal; @@ -138,7 +140,7 @@ export class UniPieChartComponent { text: 'Keine Daten vorhanden', left: 'center', top: 'center', - textStyle: { color: '#6b7280', fontSize: 13 }, + textStyle: { color: textColor, fontSize: 13 }, }, }; } @@ -188,7 +190,7 @@ export class UniPieChartComponent { text: `Keine Daten im Zeitraum ${startYr} - ${endYr}`, left: 'center', top: 'center', - textStyle: { color: '#6b7280', fontSize: 13 }, + textStyle: { color: textColor, fontSize: 13 }, }, }; } @@ -196,6 +198,9 @@ export class UniPieChartComponent { return { tooltip: { trigger: 'item', + backgroundColor: tooltipBg, + borderColor: tooltipBorder, + textStyle: { color: textColor }, formatter: '{b}: {c} ({d}%)', }, legend: { @@ -210,7 +215,7 @@ export class UniPieChartComponent { avoidLabelOverlap: true, itemStyle: { borderRadius: 6, - borderColor: '#fff', + borderColor: 'transparent', borderWidth: 2, }, label: { @@ -219,7 +224,7 @@ export class UniPieChartComponent { fontSize: 10, fontWeight: 500, formatter: '{b}: {d}%', - color: '#374151', + color: textColor, }, labelLine: { show: true, @@ -239,6 +244,7 @@ export class UniPieChartComponent { show: true, fontSize: 11, fontWeight: 'bold', + color: textColor, }, }, data: pieDataList, -- 2.56.1 From c33a900c66d96a6801571e9a9b938003bf41410e Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sat, 1 Aug 2026 15:11:56 +0200 Subject: [PATCH 06/24] changed static color to use dynamic theme --- .../uni-trend-chart.component.html | 7 +- .../uni-trend-chart.component.scss | 13 +-- .../uni-trend-chart.component.ts | 108 +++++++++--------- .../uni-trend-parent.component.html | 8 +- .../uni-trend-parent.component.scss | 64 +++++------ .../ui/app-layout/app-layout.component.scss | 10 +- .../ui/app-menu/app-menu.component.html | 17 +++ .../ui/app-menu/app-menu.component.scss | 6 +- .../shared/ui/app-menu/app-menu.component.ts | 2 + .../app-searchbar.component.scss | 4 +- .../app-topic-card.component.scss | 12 +- .../app-topic-chip.component.scss | 20 +++- 12 files changed, 156 insertions(+), 115 deletions(-) diff --git a/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.html b/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.html index 60e763bc..1ea922ee 100644 --- a/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.html +++ b/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.html @@ -9,7 +9,12 @@

bar_chart
diff --git a/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.scss b/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.scss index 97762b4a..d1163149 100644 --- a/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.scss +++ b/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.scss @@ -3,8 +3,7 @@ width: 100%; height: 100%; min-height: 450px; - background: rgba(255, 255, 255, 0.6); - backdrop-filter: blur(10px); + background: var(--sg-card-bg); border-radius: 12px; padding: 16px; box-sizing: border-box; @@ -21,11 +20,11 @@ justify-content: center; height: 380px; text-align: center; - color: #4b5563; + color: var(--sg-text-muted); padding: 24px; - border: 2px dashed #e5e7eb; + border: 2px dashed var(--sg-border); border-radius: 12px; - background: rgba(249, 250, 251, 0.5); + background: var(--sg-surface-muted); .icon { font-size: 48px; @@ -36,13 +35,13 @@ h3 { font-size: 18px; font-weight: 600; - color: #111827; + color: var(--sg-text); margin-bottom: 8px; } p { font-size: 14px; - color: #6b7280; + color: var(--sg-text-muted); max-width: 320px; line-height: 1.5; } diff --git a/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.ts b/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.ts index a52682a3..abf25c1b 100644 --- a/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.ts +++ b/webapp/src/app/modules/university-ranking/uni-trend-chart/uni-trend-chart.component.ts @@ -3,11 +3,13 @@ import { ChangeDetectionStrategy, input, computed, + inject, } from '@angular/core'; import { EChartsOption } from 'echarts'; import { NgxEchartsDirective } from 'ngx-echarts'; import { MatIconModule } from '@angular/material/icon'; import { TrendResponse, TrendSeries, TopicYearlyData } from '../../../api'; +import { ChartThemeService } from '../../../shared/services/chart-theme.service'; @Component({ selector: 'app-uni-trend-chart', @@ -17,7 +19,8 @@ import { TrendResponse, TrendSeries, TopicYearlyData } from '../../../api'; changeDetection: ChangeDetectionStrategy.OnPush, }) export class UniTrendChartComponent { - // Input signals following Angular v21 standards + private readonly chartTheme = inject(ChartThemeService); + readonly data = input(null); readonly mode = input<'normalized' | 'total' | 'cumulative'>('normalized'); readonly activeTopic = input(null); @@ -25,13 +28,17 @@ export class UniTrendChartComponent { readonly endYear = input(2025); readonly getEntityColor = input<(id: string) => string>(); - // Computed signal to automatically rebuild ECharts options when data or mode changes readonly chartOptions = computed(() => { const trendData = this.data(); if (!trendData || !trendData.series || trendData.series.length === 0) { return {}; } + const textColor = this.chartTheme.colors().text; + const splitLineColor = this.chartTheme.colors().splitLine; + const tooltipBg = this.chartTheme.colors().tooltipBg; + const tooltipBorder = this.chartTheme.colors().tooltipBorder; + const currentMode = this.mode(); const startYr = this.startYear(); const endYr = this.endYear(); @@ -69,31 +76,29 @@ export class UniTrendChartComponent { const series: any[] = []; const entityColors = [ - '#ec4899', // Pink - '#3b82f6', // Blue - '#10b981', // Emerald Green - '#f59e0b', // Amber/Yellow - '#8b5cf6', // Purple - '#06b6d4', // Cyan - '#6366f1', // Indigo - '#ef4444', // Red - '#14b8a6', // Teal - '#f97316', // Orange - '#d946ef', // Fuchsia - '#84cc16', // Lime - '#22c55e', // Green - '#a855f7', // Purple/Fuchsia - '#eab308', // Amber/Yellow Dark - '#f43f5e', // Rose + '#ec4899', + '#3b82f6', + '#10b981', + '#f59e0b', + '#8b5cf6', + '#06b6d4', + '#6366f1', + '#ef4444', + '#14b8a6', + '#f97316', + '#d946ef', + '#84cc16', + '#22c55e', + '#a855f7', + '#eab308', + '#f43f5e', ]; const getFn = this.getEntityColor(); - // Find index of first visible series for markLine zero baseline attachment const firstVisibleIdx = trendData.series.findIndex( (s) => (s as any).visible !== false, ); - // Build series: Line in top grid, growth volume bars and S-Curve in bottom grid trendData.series.forEach((entity, entityIdx) => { const rawColor = getFn ? getFn(entity.entity_id) @@ -107,7 +112,6 @@ export class UniTrendChartComponent { } const yrTopicData = entity.topic_data[selectedTopic] || []; - // 1. Add line series for the currently selected topic (placed in Grid 0) const lineData = years.map((year) => { const yrData = yrTopicData.find((y) => y.year === year); if (!yrData) return 0; @@ -140,15 +144,11 @@ export class UniTrendChartComponent { }, }); - // 2. Add YoY growth volume bars for the selected topic (placed in Grid 1) const bars = years.map((year) => { const yrData = yrTopicData.find((y) => y.year === year); const val = yrData ? yrData.raw : 0; - - // Find previous year's raw count (even if previous year is outside the viewport years range!) const prevYrData = yrTopicData.find((y) => y.year === year - 1); const prevVal = prevYrData ? prevYrData.raw : 0; - return val - prevVal; }); @@ -169,7 +169,7 @@ export class UniTrendChartComponent { label: { show: false }, lineStyle: { type: 'solid', - color: '#374151', + color: textColor, width: 1.5, }, data: [{ yAxis: 0 }], @@ -192,21 +192,21 @@ export class UniTrendChartComponent { textStyle: { fontSize: 16, fontWeight: 600, - color: '#1f2937', + color: textColor, }, }, tooltip: { trigger: 'axis', enterable: true, - backgroundColor: 'rgba(255, 255, 255, 0.98)', - borderColor: '#e5e7eb', + backgroundColor: tooltipBg, + borderColor: tooltipBorder, borderWidth: 1, padding: 8, confine: true, extraCssText: 'z-index: 9999; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); border-radius: 8px;', textStyle: { - color: '#374151', + color: textColor, fontSize: 11, }, formatter: (params: any) => { @@ -214,8 +214,8 @@ export class UniTrendChartComponent { const yearNum = parseInt(params[0].name, 10); let res = `
`; - res += `Jahr: ${yearNum}`; - res += `
`; + res += `Jahr: ${yearNum}`; + res += `
`; res += `
`; trendData.series.forEach((entity: TrendSeries, entityIdx: number) => { @@ -231,7 +231,6 @@ export class UniTrendChartComponent { } const yrTopicData = entity.topic_data[selectedTopic] || []; - // Recalculate cumulative sum map for this entity const cumulativeSumMap = new Map(); let runningSum = 0; trendData.years.forEach((yr) => { @@ -248,7 +247,6 @@ export class UniTrendChartComponent { const normVal = yrData.normalized.toFixed(2); const cumVal = cumulativeSumMap.get(yearNum) || 0; - // YoY growth const prevYrData = yrTopicData.find( (y) => y.year === yearNum - 1, ); @@ -337,13 +335,13 @@ export class UniTrendChartComponent { res += `
`; res += `
`; res += ``; - res += `${entity.entity_name}`; + res += `${entity.entity_name}`; res += `
`; - res += ``; - res += ``; - res += ``; - res += ``; + res += `
• Publikationen:${rawCount.toLocaleString()}${contributionStr}
• Normiert (0-1):${normVal}
• Kumuliert:${cumVal.toLocaleString()}
`; + res += ``; + res += ``; + res += ``; const yoySign = yoyGrowth > 0 ? '+' : ''; const yoyColor = @@ -351,15 +349,15 @@ export class UniTrendChartComponent { ? '#10b981' : yoyGrowth < 0 ? '#ef4444' - : '#6b7280'; + : textColor; res += ``; res += `
• Publikationen:${rawCount.toLocaleString()}${contributionStr}
• Normiert (0-1):${normVal}
• Kumuliert:${cumVal.toLocaleString()}
• YoY Wachstum:${yoySign}${yoyGrowth.toLocaleString()}
`; res += `
`; } }); - res += `
`; // closes scrollable div - res += `
`; // closes main wrapper + res += `
`; + res += ``; return res; }, }, @@ -368,7 +366,7 @@ export class UniTrendChartComponent { }, axisPointer: { link: [{ xAxisIndex: 'all' }], - label: { backgroundColor: '#777' }, + label: { backgroundColor: splitLineColor, color: textColor }, }, grid: [ { @@ -389,8 +387,8 @@ export class UniTrendChartComponent { type: 'category', data: xAxisData, boundaryGap: false, - axisLine: { onZero: false, lineStyle: { color: '#e5e7eb' } }, - axisLabel: { color: '#4b5563' }, + axisLine: { onZero: false, lineStyle: { color: splitLineColor } }, + axisLabel: { color: textColor }, splitLine: { show: false }, min: 'dataMin', max: 'dataMax', @@ -401,7 +399,7 @@ export class UniTrendChartComponent { gridIndex: 1, data: xAxisData, boundaryGap: false, - axisLine: { onZero: false, lineStyle: { color: '#e5e7eb' } }, + axisLine: { onZero: false, lineStyle: { color: splitLineColor } }, axisTick: { show: false }, splitLine: { show: false }, axisLabel: { show: false }, @@ -417,13 +415,13 @@ export class UniTrendChartComponent { nameRotate: 90, nameGap: 50, nameTextStyle: { - color: '#4b5563', + color: textColor, padding: [0, 0, 8, 0], fontWeight: 'bold', }, - axisLabel: { color: '#4b5563' }, - axisLine: { lineStyle: { color: '#e5e7eb' } }, - splitLine: { lineStyle: { color: '#f3f4f6' } }, + axisLabel: { color: textColor }, + axisLine: { lineStyle: { color: splitLineColor } }, + splitLine: { lineStyle: { color: splitLineColor } }, }, { scale: false, @@ -431,7 +429,7 @@ export class UniTrendChartComponent { splitNumber: 2, axisLabel: { show: true, - color: '#6b7280', + color: textColor, fontSize: 9, formatter: (value: number) => { return value > 0 ? `+${value}` : `${value}`; @@ -440,13 +438,13 @@ export class UniTrendChartComponent { axisLine: { show: true, onZero: true, - lineStyle: { color: '#9ca3af', width: 1 }, + lineStyle: { color: splitLineColor, width: 1 }, }, axisTick: { show: false }, splitLine: { show: true, lineStyle: { - color: '#e5e7eb', + color: splitLineColor, type: 'dashed', }, }, @@ -470,7 +468,7 @@ export class UniTrendChartComponent { xAxisIndex: [0, 1], bottom: 30, height: 15, - borderColor: '#e5e7eb', + borderColor: splitLineColor, fillerColor: 'rgba(236, 72, 153, 0.1)', handleIcon: 'path://M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4v1.3h1.3v-1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7V23h6.6V24.4z M13.3,19.6H6.7v-1.4h6.6V19.6z', @@ -480,7 +478,7 @@ export class UniTrendChartComponent { shadowBlur: 3, shadowColor: 'rgba(0, 0, 0, 0.2)', }, - textStyle: { color: '#4b5563' }, + textStyle: { color: textColor }, }, ], series: series, diff --git a/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.html b/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.html index 1ea744c2..4183676e 100644 --- a/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.html +++ b/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.html @@ -273,19 +273,21 @@ margin-bottom: 16px; font-weight: 700; font-size: 1.1rem; - color: #101a3d; + color: var(--sg-text); display: flex; align-items: center; gap: 8px; "> - account_tree + account_tree Themen-Hierarchie & Verteilung (Treemap) @if (selectedPieEntity()?.name || primaryInstitutionName()) { · {{ selectedPieEntity()?.name || primaryInstitutionName() }} diff --git a/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.scss b/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.scss index bf857fd4..30951435 100644 --- a/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.scss +++ b/webapp/src/app/modules/university-ranking/uni-trend-parent/uni-trend-parent.component.scss @@ -4,21 +4,16 @@ gap: 1rem; width: 100%; box-sizing: border-box; - font-family: - 'Inter', - system-ui, - -apple-system, - sans-serif; } .strategy-toggles-bar { display: flex; flex-wrap: wrap; gap: 8px; - background: #f8fafc; + background: var(--sg-surface-muted); border-radius: 12px; padding: 6px; - border: 1px solid #e2e8f0; + border: 1px solid var(--sg-border); button { padding: 0.45rem 0.9rem; @@ -26,7 +21,7 @@ background: none; font-size: 0.8125rem; font-weight: 500; - color: #64748b; + color: var(--sg-text-muted); border-radius: 8px; cursor: pointer; display: inline-flex; @@ -41,8 +36,8 @@ } &:hover:not(.active):not([disabled]) { - color: #0f172a; - background: #f1f5f9; + color: var(--sg-text); + background: var(--sg-surface-soft); } &[disabled] { @@ -51,12 +46,10 @@ } &.active { - background: white; - color: #2563eb; + background: var(--sg-card-bg); + color: var(--sg-primary); font-weight: 600; - box-shadow: - 0 2px 4px rgba(0, 0, 0, 0.05), - 0 1px 2px rgba(0, 0, 0, 0.03); + box-shadow: var(--sg-shadow-sm); } } } @@ -75,11 +68,11 @@ justify-content: space-between; align-items: center; gap: 1.5rem; - background: white; + background: var(--sg-card-bg); border-radius: 12px; padding: 0.75rem 1.25rem; - border: 1px solid #e5e7eb; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); + border: 1px solid var(--sg-border); + box-shadow: var(--sg-shadow-sm); width: 100%; box-sizing: border-box; @@ -97,21 +90,21 @@ .toggle-label { font-size: 0.8125rem; font-weight: 600; - color: #4b5563; + color: var(--sg-text-muted); white-space: nowrap; } mat-button-toggle-group { - border: 1px solid #e2e8f0; + border: 1px solid var(--sg-border); border-radius: 8px; overflow: hidden; - background: #f8fafc; + background: var(--sg-surface-muted); box-shadow: none; mat-button-toggle { font-size: 0.75rem; font-weight: 500; - color: #475569; + color: var(--sg-text-muted); mat-icon { font-size: 16px; @@ -127,8 +120,8 @@ } .mat-button-toggle-checked { - background-color: white !important; - color: #2563eb !important; + background-color: var(--sg-card-bg) !important; + color: var(--sg-primary) !important; font-weight: 600; } } @@ -151,10 +144,10 @@ .chart-holder-card { position: relative; - background: white; + background: var(--sg-card-bg); border-radius: 12px; - border: 1px solid #e5e7eb; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); + border: 1px solid var(--sg-border); + box-shadow: var(--sg-shadow-sm); overflow: hidden; min-height: 450px; width: 100%; @@ -167,8 +160,8 @@ align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; - background: #f8fafc; - border-bottom: 1px solid #e2e8f0; + background: var(--sg-surface-muted); + border-bottom: 1px solid var(--sg-border); } .loader-overlay { @@ -177,7 +170,8 @@ left: 0; right: 0; bottom: 0; - background: rgba(255, 255, 255, 0.85); + background: var(--sg-card-bg); + opacity: 0.85; z-index: 10; display: flex; flex-direction: column; @@ -188,7 +182,7 @@ p { font-size: 0.875rem; font-weight: 500; - color: #3b82f6; + color: var(--sg-primary); margin: 0; } } @@ -227,10 +221,10 @@ align-items: center; justify-content: center; min-height: 400px; - background: white; + background: var(--sg-card-bg); border-radius: 12px; - border: 1px solid #e5e7eb; - color: #9ca3af; + border: 1px solid var(--sg-border); + color: var(--sg-text-soft); gap: 0.75rem; mat-icon { @@ -242,7 +236,7 @@ p { font-size: 0.9375rem; font-weight: 500; - color: #6b7280; + color: var(--sg-text-muted); margin: 0; } } diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss index 7c3ff20a..f354c690 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.scss +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.scss @@ -65,9 +65,9 @@ mat-toolbar.main { gap: 10px; min-height: 44px; padding: 6px 20px; - background: #fff7ed; - border-bottom: 1px solid #fed7aa; - color: #9a3412; + background: var(--sg-warning-soft); + border-bottom: 1px solid var(--sg-border); + color: var(--sg-warning); font-size: 13px; font-weight: 700; } @@ -175,10 +175,10 @@ mat-toolbar.main { top: 100%; left: 0; right: 0; - background: white; + background: var(--sg-card-bg); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-sm); - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); + box-shadow: var(--sg-shadow-md); z-index: 1000; max-height: 300px; overflow-y: auto; diff --git a/webapp/src/app/shared/ui/app-menu/app-menu.component.html b/webapp/src/app/shared/ui/app-menu/app-menu.component.html index c44ff5cd..6d224092 100644 --- a/webapp/src/app/shared/ui/app-menu/app-menu.component.html +++ b/webapp/src/app/shared/ui/app-menu/app-menu.component.html @@ -136,6 +136,16 @@