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/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..b0cfab10 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), + color-mix(in srgb, var(--sg-primary) 15%, transparent), 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/collaboration-graph/collaboration-graph.component.ts b/webapp/src/app/modules/collaboration-graph/collaboration-graph.component.ts index a99a1b76..aa3a8553 100644 --- a/webapp/src/app/modules/collaboration-graph/collaboration-graph.component.ts +++ b/webapp/src/app/modules/collaboration-graph/collaboration-graph.component.ts @@ -1,8 +1,9 @@ -import { Component, computed, input, output } from '@angular/core'; +import { Component, computed, inject, input, output } from '@angular/core'; import { CollaborationGraph } from '../../api'; import { EChartsCoreOption } from 'echarts'; import { MatIconModule } from '@angular/material/icon'; import { NgxEchartsDirective } from 'ngx-echarts'; +import { ChartThemeService } from '../../shared/services/chart-theme.service'; import * as echarts from 'echarts/core'; import { @@ -36,9 +37,10 @@ export interface NodeClickEvent { }) export class CollaborationGraphComponent { collaborationGraph = input.required(); - handleNodeClick = output(); + private readonly chartTheme = inject(ChartThemeService); + readonly isEmptyGraph = computed(() => { const graph = this.collaborationGraph(); return ( @@ -67,10 +69,13 @@ export class CollaborationGraphComponent { options = computed(() => { const graph = this.collaborationGraph(); + const colors = this.chartTheme.colors(); if (!graph) { return {}; } + const textColor = colors.text; + const frequencies = this.occurenceFrequencies(); const minFrequency = Math.min(...Object.values(frequencies)); const maxFrequency = Math.max(...Object.values(frequencies)); @@ -129,10 +134,10 @@ export class CollaborationGraphComponent { })); const categories = [ - { name: 'author' }, - { name: 'collaborator' }, - { name: 'institution' }, - { name: 'work' }, + { name: 'author', itemStyle: { color: colors.blueHighlight } }, + { name: 'collaborator', itemStyle: { color: colors.success } }, + { name: 'institution', itemStyle: { color: colors.warning } }, + { name: 'work', itemStyle: { color: colors.primary } }, ]; return { @@ -142,6 +147,9 @@ export class CollaborationGraphComponent { orient: 'horizontal', formatter: (name: string) => this.categoryLabels[name] || name, itemGap: 20, + textStyle: { color: textColor }, + inactiveColor: colors.mutedTextColor, + inactiveBorderColor: colors.tooltipBorder, }, series: { type: 'graph', @@ -152,19 +160,42 @@ export class CollaborationGraphComponent { links: links, categories: categories, roam: true, - roamTrigger: 'global', // + 2 hours because of incomplete documentation https://github.com/apache/echarts/issues/17214 + roamTrigger: 'global', zoom: 0.1, force: { repulsion: 10000, friction: 0.9, gravity: 0.2, }, + label: { + show: true, + position: 'right', + color: textColor, + fontSize: 12, + }, emphasis: { focus: 'adjacency', + label: { + show: true, + color: textColor, + fontWeight: 'bold', + }, lineStyle: { width: 5, }, }, + blur: { + itemStyle: { + opacity: 0.15, + }, + label: { + show: false, + opacity: 0.15, + }, + lineStyle: { + opacity: 0.1, + }, + }, }, }; }); diff --git a/webapp/src/app/modules/compare-authors/author-research-profile/author-category-pie.component.ts b/webapp/src/app/modules/compare-authors/author-research-profile/author-category-pie.component.ts index a2a24b75..34dac5b6 100644 --- a/webapp/src/app/modules/compare-authors/author-research-profile/author-category-pie.component.ts +++ b/webapp/src/app/modules/compare-authors/author-research-profile/author-category-pie.component.ts @@ -1,7 +1,8 @@ -import { Component, computed, input } from '@angular/core'; +import { Component, computed, inject, input } from '@angular/core'; import { EChartsOption } from 'echarts'; import { NgxEchartsDirective } from 'ngx-echarts'; import { WorkPrimaryCategory } from '../../../api'; +import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { SUBFIELD_COLORS } from '../compare-authors-colors'; export interface AuthorCategoryLegendItem { @@ -69,6 +70,8 @@ export const AUTHOR_CATEGORY_LEGEND: readonly AuthorCategoryLegendItem[] = [ export class AuthorCategoryPieComponent { counts = input> | null>(null); + private readonly chartTheme = inject(ChartThemeService); + readonly total = computed(() => Object.values(this.counts() ?? {}).reduce( (sum, count) => sum + Math.max(0, count), @@ -79,14 +82,49 @@ export class AuthorCategoryPieComponent { readonly options = computed(() => { const counts = this.counts() ?? {}; const total = this.total(); - const textColor = this.cssColor('--sg-text', '#0f172a'); - const mutedColor = this.cssColor('--sg-text-muted', '#64748b'); + const colors = this.chartTheme.colors(); + const textColor = colors.text; + const mutedColor = colors.mutedTextColor; + const tooltipBg = colors.cardBg; + const tooltipBorder = colors.splitLine; + const palette = colors.subfieldColors; + + const categoryLegend: readonly AuthorCategoryLegendItem[] = [ + categoryLegendItem( + WorkPrimaryCategory.BasicResearch, + 'Grundlagenforschung', + palette[0], + ), + categoryLegendItem( + WorkPrimaryCategory.AppliedResearch, + 'Anwendungsbasierte Forschung', + palette[1], + ), + categoryLegendItem( + WorkPrimaryCategory.ExperimentalDevelopment, + 'Experimentelle Entwicklung', + palette[2], + ), + categoryLegendItem( + WorkPrimaryCategory.NonResearch, + 'Nicht-forschende Tätigkeit', + palette[3], + ), + categoryLegendItem( + WorkPrimaryCategory.NotClassified, + 'Nicht klassifiziert', + palette[4], + ), + ]; return { animation: false, tooltip: { trigger: 'item', formatter: '{b}: {c} Publikationen ({d} %)', + backgroundColor: tooltipBg, + borderColor: tooltipBorder, + textStyle: { color: textColor }, }, graphic: { type: 'text', @@ -133,24 +171,15 @@ export class AuthorCategoryPieComponent { scale: true, scaleSize: 6, }, - data: AUTHOR_CATEGORY_LEGEND.map((item) => ({ - name: item.label, - value: Math.max(0, counts[item.category] ?? 0), - itemStyle: { color: item.color }, - })).filter((item) => item.value > 0), + data: categoryLegend + .map((item) => ({ + name: item.label, + value: Math.max(0, counts[item.category] ?? 0), + itemStyle: { color: item.color }, + })) + .filter((item) => item.value > 0), }, ], }; }); - - private cssColor(variable: string, fallback: string): string { - if (typeof getComputedStyle !== 'function') { - return fallback; - } - return ( - getComputedStyle(document.documentElement) - .getPropertyValue(variable) - .trim() || fallback - ); - } } diff --git a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss index a87ba3da..d4f61b56 100644 --- a/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss +++ b/webapp/src/app/modules/compare-authors/author-research-profile/author-research-profile.component.scss @@ -5,7 +5,7 @@ .research-profile-card { border-color: var(--sg-border); border-radius: 16px; - box-shadow: 0 8px 24px rgb(15 23 42 / 4%); + box-shadow: var(--sg-shadow-sm); } .profile-header { @@ -126,19 +126,12 @@ section { } .legend-chip { - --mdc-chip-elevated-container-color: color-mix( - in srgb, - var(--legend-color) 10%, - var(--sg-surface) - ); - --mdc-chip-label-text-color: var(--legend-color); - --mdc-chip-outline-color: color-mix( - in srgb, - var(--legend-color) 28%, - transparent - ); + --mdc-chip-elevated-container-color: var(--sg-surface-soft); + --mdc-chip-label-text-color: var(--sg-text); + --mdc-chip-outline-color: var(--sg-border); - border: 1px solid color-mix(in srgb, var(--legend-color) 28%, transparent); + border: 1px solid var(--sg-border); + color: var(--sg-text); } .legend-color { diff --git a/webapp/src/app/modules/compare-authors/compare-authors.component.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/compare-authors/compare-authors.component.ts b/webapp/src/app/modules/compare-authors/compare-authors.component.ts index 36e5fda1..98fa4b6c 100644 --- a/webapp/src/app/modules/compare-authors/compare-authors.component.ts +++ b/webapp/src/app/modules/compare-authors/compare-authors.component.ts @@ -19,6 +19,7 @@ import { AuthorResearchProfileComponent, ResearchProfileAuthor, } from './author-research-profile/author-research-profile.component'; +import { ChartThemeService } from '../../shared/services/chart-theme.service'; import { AUTHOR_COLORS, OTHER_COLOR, @@ -73,7 +74,6 @@ interface GroupSegment { label: string; colorClass: string; decimals: boolean; - // render the value as-is, without the number pipe (e.g. years) plain: boolean; } @@ -122,6 +122,7 @@ interface SegmentDef { export class CompareAuthorsComponent implements OnInit { private readonly route = inject(ActivatedRoute); private readonly rankingService = inject(RankingService); + private readonly chartTheme = inject(ChartThemeService); readonly keywords = signal([]); readonly timespan = signal<{ from: number; to: number } | null>(null); @@ -143,6 +144,7 @@ export class CompareAuthorsComponent implements OnInit { readonly summary = computed(() => { const topicById = new Map(this.topic().map((a) => [a.author_id, a])); const staticById = new Map(this.staticStats().map((a) => [a.author_id, a])); + const authorPalette = this.chartTheme.colors().authorColors; return this.authorIds().map((id, index) => { const t = topicById.get(id); @@ -153,7 +155,7 @@ export class CompareAuthorsComponent implements OnInit { const authorSummary: AuthorSummary = { authorId: id, name, - color: AUTHOR_COLORS[index % AUTHOR_COLORS.length], + color: authorPalette[index % authorPalette.length], totalWorks: t ? t.works_total : null, corresponding: t ? t.corresponding_count : null, avgPercentile: t ? t.avg_percentile : null, @@ -469,7 +471,11 @@ export class CompareAuthorsComponent implements OnInit { return `${params[0]?.name ?? ''}
${lines.join('
')}`; }, }, - legend: { type: 'scroll', top: 0 }, + legend: { + type: 'scroll', + top: 0, + textStyle: { color: this.chartTheme.colors().text }, + }, grid: { left: 16, right: 24, top: 56, bottom: 8, containLabel: true }, xAxis: { type: 'value', @@ -506,7 +512,7 @@ export class CompareAuthorsComponent implements OnInit { return `${params[0]?.name ?? ''}
${lines.join('
')}`; }, }, - legend: { top: 0 }, + legend: { top: 0, textStyle: { color: this.chartTheme.colors().text } }, grid: { left: 16, right: 40, top: 32, bottom: 8, containLabel: true }, xAxis: { type: 'value', @@ -553,7 +559,7 @@ export class CompareAuthorsComponent implements OnInit { return { tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, - legend: { top: 0 }, + legend: { top: 0, textStyle: { color: this.chartTheme.colors().text } }, grid: { left: 16, right: 40, top: 32, bottom: 8, containLabel: true }, xAxis: { type: 'value' }, yAxis: { @@ -566,21 +572,21 @@ export class CompareAuthorsComponent implements OnInit { { name: 'Themen', type: 'bar', - itemStyle: { color: '#0891b2' }, + itemStyle: { color: this.chartTheme.colors().blueHighlight }, label: { show: true, position: 'right' }, data: profiles.map((p) => p.distinct_topics), }, { name: 'Subfields', type: 'bar', - itemStyle: { color: '#d97706' }, + itemStyle: { color: this.chartTheme.colors().warning }, label: { show: true, position: 'right' }, data: profiles.map((p) => p.distinct_subfields), }, { name: 'Fields', type: 'bar', - itemStyle: { color: '#16a34a' }, + itemStyle: { color: this.chartTheme.colors().success }, label: { show: true, position: 'right' }, data: profiles.map((p) => p.distinct_fields), }, diff --git a/webapp/src/app/modules/dashboard/dashboard.component.scss b/webapp/src/app/modules/dashboard/dashboard.component.scss index 9af762eb..034a1e76 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-blue-highlight); 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/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.ts b/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.ts index 50191ed8..7299e35c 100644 --- a/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.ts +++ b/webapp/src/app/modules/dashboard/topic-wordcloud-dialog/topic-wordcloud-dialog.component.ts @@ -57,16 +57,16 @@ export class TopicWordCloudDialogComponent { loadFailed = false; private readonly colors = [ - '#2563eb', - '#059669', - '#d97706', - '#dc2626', - '#7c3aed', - '#0284c7', - '#ea580c', - '#4f46e5', - '#0f766e', - '#be123c', + 'var(--sg-blue-highlight)', + 'var(--sg-success)', + 'var(--sg-warning)', + 'var(--sg-error)', + 'var(--sg-primary)', + 'var(--sg-blue-highlight)', + 'var(--sg-warning)', + 'var(--sg-primary-strong)', + 'var(--sg-success)', + 'var(--sg-error)', ]; constructor() { 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 d8ede950..6524e69f 100644 --- a/webapp/src/app/modules/institution-patents/institution-patents.component.html +++ b/webapp/src/app/modules/institution-patents/institution-patents.component.html @@ -215,7 +215,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 b6cde444..e52f8265 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; } } @@ -80,10 +80,11 @@ app-query-param-paginator { tr { cursor: pointer; + color: var(--sg-text); transition: background-color 0.15s ease; &:hover td { - background: rgba(16, 26, 61, 0.04); + background: var(--sg-surface-soft); } &.selected td { @@ -139,26 +140,26 @@ app-query-param-paginator { 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; @@ -176,15 +177,15 @@ app-query-param-paginator { 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); } } @@ -253,28 +254,28 @@ app-query-param-paginator { &--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); } } } @@ -340,10 +341,10 @@ app-query-param-paginator { 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; @@ -353,9 +354,9 @@ app-query-param-paginator { 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 { @@ -367,16 +368,123 @@ app-query-param-paginator { 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 var(--sg-border); + border-radius: var(--sg-radius-sm); + padding: 20px; + background: var(--sg-surface-muted); + + h3 { + margin: 0 0 4px 0; + font-size: 16px; + color: var(--sg-text); + line-height: 1.4; + } + + h4 { + margin: 16px 0 8px 0; + font-size: 14px; + color: var(--sg-text-muted); + font-weight: 600; + } + + p { + font-size: 13px; + color: var(--sg-text); + line-height: 1.6; + margin: 0; + } +} + +.back-btn { + display: inline-flex; + align-items: center; + gap: 0.4rem; + width: auto; + margin-bottom: 1rem; + padding: 0.5rem 0.85rem; + border: 1px solid var(--sg-border); + border-radius: 999px; + background: var(--sg-surface-soft); + color: var(--sg-blue-highlight); + font-size: 0.9rem; + font-weight: 600; + cursor: pointer; + transition: + background-color 0.15s ease, + border-color 0.15s ease, + color 0.15s ease, + box-shadow 0.15s ease; + + &:hover { + 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 var(--sg-blue-highlight); + outline-offset: 2px; + } +} + .detail-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sg-border); } +.patent-meta { + &--inline { + margin: 12px 0 20px; + } + + &__list { + margin: 0; + border: 1px solid var(--sg-border); + border-radius: 12px; + background: var(--sg-surface); + box-shadow: var(--sg-shadow-sm); + overflow: hidden; + } + + &__row { + display: grid; + grid-template-columns: minmax(130px, 38%) 1fr; + gap: 12px 16px; + align-items: center; + padding: 11px 16px; + border-top: 1px solid var(--sg-border); + + &:first-child { + border-top: 0; + } + + dt { + margin: 0; + font-size: 12px; + font-weight: 500; + color: var(--sg-text-muted); + line-height: 1.35; + } + + dd { + margin: 0; + font-size: 14px; + font-weight: 600; + color: var(--sg-text); + line-height: 1.35; + word-break: break-word; + } + } +} + .tag-list { display: flex; flex-wrap: wrap; @@ -394,10 +502,163 @@ app-query-param-paginator { .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: var(--sg-primary-soft); + border-color: var(--sg-border); + } + + &--ipc .classification-badge--system { + background: var(--sg-surface-muted); + color: var(--sg-blue-highlight); + } + + &--cpc .classification-card { + background: var(--sg-success-soft); + border-color: var(--sg-success); + } + + &--cpc .classification-badge--system { + background: var(--sg-success-soft); + color: var(--sg-success); + } +} + +.classification-cards { + display: flex; + flex-direction: column; + gap: 10px; +} + +.classification-card { + padding: 12px 14px; + border-radius: 10px; + border: 1px solid var(--sg-border); +} + +.classification-card__header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 12px; + flex-wrap: wrap; +} + +.classification-card__codes { + display: flex; + flex-wrap: wrap; + gap: 6px; +} + +.classification-card__badges { + display: flex; + flex-wrap: wrap; + gap: 6px; +} + +.classification-code { + font-size: 0.9rem; + font-weight: 700; + color: var(--sg-text); +} + +.classification-badge { + display: inline-flex; + align-items: center; + padding: 2px 8px; + border-radius: 999px; + font-size: 0.68rem; + font-weight: 700; + letter-spacing: 0.02em; + text-transform: uppercase; +} + +.classification-badge--level { + 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: var(--sg-text-muted); +} + +.classification-toggle { + margin-top: 6px; + padding: 0; + border: 0; + background: none; + color: var(--sg-blue-highlight); + font-size: 0.78rem; + cursor: pointer; + + &:hover { + text-decoration: underline; + } +} + +.classification-hierarchy { + margin: 10px 0 0; + padding-top: 10px; + border-top: 1px solid var(--sg-border); +} + +.classification-hierarchy__row { + display: grid; + grid-template-columns: 88px 1fr; + gap: 8px; + margin-bottom: 6px; + + dt { + margin: 0; + font-size: 0.72rem; + font-weight: 700; + color: var(--sg-text-muted); + text-transform: uppercase; + letter-spacing: 0.03em; + } + + dd { + margin: 0; + font-size: 0.8rem; + line-height: 1.45; + color: var(--sg-text); + } +} + +.pagination { + display: flex; + align-items: center; + justify-content: space-between; + gap: 8px; + margin-top: 12px; + + button { + padding: 4px 10px; + border: 1px solid var(--sg-border); + border-radius: 6px; + background: var(--sg-surface); + color: var(--sg-text); + cursor: pointer; + font-size: 12px; + + &:disabled { + opacity: 0.5; + cursor: default; + } + } + + span { + font-size: 12px; + 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-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.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; } 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.html b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html index 758b2d1c..4f16bd57 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.html +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html @@ -57,7 +57,10 @@ -