diff --git a/src/app/component/activity-description/activity-description.component.css b/src/app/component/activity-description/activity-description.component.css index 20a4ed39..a0d963da 100644 --- a/src/app/component/activity-description/activity-description.component.css +++ b/src/app/component/activity-description/activity-description.component.css @@ -36,16 +36,19 @@ margin-bottom: 10px; color: var(--text-tertiary); } + .activity-subheader .level { min-width: fit-content; } + .activity-subheader .uuid { text-align: end; } + .activity-subheader .uuid-label { - font-size: 12px; - margin-right: 0.1em; - } + font-size: 12px; + margin-right: 0.1em; +} .close-button { flex-shrink: 0; @@ -150,11 +153,36 @@ mat-panel-title b { } /* Level-based coloring for difficulty */ -.level-1 { background-color: #e8f5e8; color: #2e7d32; } /* Light green */ -.level-2 { background-color: #e0f2e7; color: #388e3c; } /* Medium green */ -.level-3 { background-color: #fff8e1; color: #f57c00; } /* Light orange */ -.level-4 { background-color: #fff3e0; color: #ef6c00; } /* Medium orange */ -.level-5 { background-color: #ffebee; color: #c62828; } /* Light red */ +.level-1 { + background-color: #e8f5e8; + color: #2e7d32; +} + +/* Light green */ +.level-2 { + background-color: #e0f2e7; + color: #388e3c; +} + +/* Medium green */ +.level-3 { + background-color: #fff8e1; + color: #f57c00; +} + +/* Light orange */ +.level-4 { + background-color: #fff3e0; + color: #ef6c00; +} + +/* Medium orange */ +.level-5 { + background-color: #ffebee; + color: #c62828; +} + +/* Light red */ /* Usefulness Section Styling */ .usefulness-section { @@ -180,9 +208,10 @@ mat-panel-title b { } mat-icon.mat-icon { - width: fit-content; - height: fit-content; + width: fit-content; + height: fit-content; } + .usefulness-stars { display: flex; align-items: center; @@ -322,16 +351,16 @@ mat-icon.mat-icon { grid-template-columns: repeat(2, 1fr); gap: 15px; } - + .references-summary { /* flex-wrap: wrap; */ gap: 10px; } - + .ref-section { flex: 0 1 48%; } - + } @media (max-width: 350px) { @@ -339,18 +368,18 @@ mat-icon.mat-icon { grid-template-columns: 1fr; gap: 10px; } - + .references-summary { flex-direction: column; gap: 8px; } - + .ref-section { flex: 1; flex-direction: row; gap: 8px; } - + .ref-section strong { min-width: 80px; flex-shrink: 0; @@ -436,12 +465,47 @@ mat-icon.mat-icon { transition: background-color 0.2s, transform 0.1s; } + + +/* 1. Light Mode (Default) */ +.level, +.uuid { + color: rgb(64, 64, 64) !important; +} + +/* 2. Dark Mode (When .dark-theme is active on body) */ +:host-context(body.dark-theme) .level, +:host-context(body.dark-theme) .uuid { + color: rgb(224, 224, 224) !important; +} + + /* Dark Mode Support */ @media (prefers-color-scheme: dark) { + /* Level badges in dark mode - maintain readability */ - .level-1 { background-color: #2e7d32; color: #e8f5e8; } - .level-2 { background-color: #388e3c; color: #e0f2e7; } - .level-3 { background-color: #f57c00; color: #fff8e1; } - .level-4 { background-color: #ef6c00; color: #fff3e0; } - .level-5 { background-color: #c62828; color: #ffebee; } + .level-1 { + background-color: #2e7d32; + color: #e8f5e8; + } + + .level-2 { + background-color: #388e3c; + color: #e0f2e7; + } + + .level-3 { + background-color: #f57c00; + color: #fff8e1; + } + + .level-4 { + background-color: #ef6c00; + color: #fff3e0; + } + + .level-5 { + background-color: #c62828; + color: #ffebee; + } } \ No newline at end of file diff --git a/src/app/component/activity-description/activity-description.component.html b/src/app/component/activity-description/activity-description.component.html index 28fcc422..4123a7cd 100644 --- a/src/app/component/activity-description/activity-description.component.html +++ b/src/app/component/activity-description/activity-description.component.html @@ -9,11 +9,7 @@

{{ currentActivity.name }}

- @@ -68,8 +64,7 @@

-
@@ -88,13 +83,10 @@

Usefulness

- - {{ star <= (currentActivity.usefulness || 0) ? 'star' : 'star_border' }} - - {{ this.UsefulnessLabel }} + {{ star <= (currentActivity.usefulness || 0) ? 'star' : 'star_border' }} + {{ this.UsefulnessLabel }}
@@ -106,30 +98,21 @@

Usefulness

school - {{ this.KnowledgeLabel }} + }}">{{ this.KnowledgeLabel }} schedule - {{ this.TimeLabel }} + }}">{{ this.TimeLabel }} people - {{ this.ResourceLabel }} + }}">{{ this.ResourceLabel }}
@@ -138,30 +121,22 @@

Usefulness

school Knowledge: - {{ this.KnowledgeLabel }} + }}">{{ this.KnowledgeLabel }}
schedule Time: - {{ this.TimeLabel }} + {{ this.TimeLabel + }}
people Resources: - {{ this.ResourceLabel }} + }}">{{ this.ResourceLabel }}
@@ -173,50 +148,33 @@

Usefulness

SAMM 2: - - {{ samm }}, + + {{ samm }}, - ISO 2017: - - {{ iso }}, + + {{ iso }}, - ISO 2022: - - {{ iso22 }}, + + {{ iso22 }}, - OpenCRE: - - - View OpenCRE + + + View OpenCRE - @@ -229,7 +187,7 @@

Usefulness

{{ samm - }} + }} -
@@ -237,52 +195,35 @@

Usefulness

{{ ISOVersion }}
- {{ iso }} - - + {{ iso + }} + -
{{ ISO22Version }}
- {{ iso22 }} - - + {{ iso22 + }} + -
{{ openCREVersion }}
- open_in_new View CRE - - + -
- In other frameworks and standards the '{{ currentActivity?.name }}' activity is part of - sections above. + In other frameworks and standards the '{{ currentActivity?.name }}' activity is part of + sections above. - + Tools
- {{ currentActivity.implementation?.length || 0 }} tools + {{ currentActivity.implementation?.length || 0 }} tools
@@ -342,10 +278,8 @@

{{ progressTitle }}: - {{ teamName }}, + {{ teamName + }}, @@ -358,9 +292,7 @@

{{ progressTitle }}
- + {{ teamName }}
@@ -372,11 +304,9 @@

-
+
{{ tag }}
-
+
\ No newline at end of file diff --git a/src/app/component/teams-groups-editor/selectable-list.component.css b/src/app/component/teams-groups-editor/selectable-list.component.css index 9d90d91d..c7256a0a 100644 --- a/src/app/component/teams-groups-editor/selectable-list.component.css +++ b/src/app/component/teams-groups-editor/selectable-list.component.css @@ -45,3 +45,33 @@ font-size: 0.8em; color: #666;; } + + + + +:host-context(body.dark-theme) .selectable-list li { + color: #e0e0e0; + transition: all 0.2s ease; +} + +:host-context(body.dark-theme) .selectable-list li:hover { + background-color: rgba(255, 255, 255, 0.05); +} + +:host-context(body.dark-theme) .selectable-list li.selected { + background-color: #25ca2dd8 !important; + color: #ffffff !important; +} + +:host-context(body.dark-theme) .selectable-list li.highlighted { + background-color: #34aa3acd !important; + color: #ffffff !important; +} + +:host-context(body.dark-theme) .selectable-list li:not(.selected):not(.highlighted) { + opacity: 0.9; +} + +:host-context(body.dark-theme) mat-icon { + color: #ffffff; +} \ No newline at end of file diff --git a/src/app/pages/circular-heatmap/circular-heatmap.component.css b/src/app/pages/circular-heatmap/circular-heatmap.component.css index b31aac0b..a941e454 100644 --- a/src/app/pages/circular-heatmap/circular-heatmap.component.css +++ b/src/app/pages/circular-heatmap/circular-heatmap.component.css @@ -98,6 +98,49 @@ flex-direction: column; } + + + +/* + +/* Dark theme styling for filters */ +:host-context(body.dark-theme) .team-filter ::ng-deep mat-chip { + background-color: #3d3d3d !important; + color: #e0e0e0 !important; + border: 1px solid #555; + transition: all 0.2s ease-in-out; +} + +:host-context(body.dark-theme) .team-filter ::ng-deep mat-chip:hover { + background-color: #4a4a4a !important; + border-color: #777; + cursor: pointer; +} + +:host-context(body.dark-theme) .team-filter ::ng-deep mat-chip.mat-chip-selected { + background-color: #66bb6a !important; + color: #121212 !important; + border-color: #66bb6a; +} + +:host-context(body.dark-theme) .team-filter ::ng-deep mat-chip.mat-chip-selected:hover { + background-color: #81c784 !important; +} + +:host-context(body.dark-theme) .team-filter ::ng-deep .mat-form-field-label { + color: #b0b0b0 !important; +} + +:host-context(body.dark-theme) .team-filter ::ng-deep .mat-form-field-underline { + background-color: #555 !important; +} + */ + + + + + + .team-filter.hidden { height: 0; visibility: collapse; diff --git a/src/app/pages/matrix/matrix.component.css b/src/app/pages/matrix/matrix.component.css index cc1c8d09..ca2f5e31 100644 --- a/src/app/pages/matrix/matrix.component.css +++ b/src/app/pages/matrix/matrix.component.css @@ -37,10 +37,12 @@ margin-bottom: 1em; position: relative; } + .mat-cell-activity a.activity-title { text-decoration: unset; margin: 0; } + .mat-cell-activity a::after { content: ""; position: absolute; @@ -49,6 +51,7 @@ width: 100%; height: 100%; } + .mat-cell-activity a.activity-title:link { color: inherit; } @@ -57,8 +60,9 @@ display: flex; align-items: center; gap: 8px; - + } + .mat-cell .dim-icon mat-icon { font-size: 45px; width: 45px; @@ -75,6 +79,7 @@ font-style: italic; font-size: 12px; } + /*tag activity - light */ :host-context(body.light-theme) .tags-activity, :host-context(body.light-theme) .tags-activity span { @@ -127,3 +132,34 @@ color: rgba(0, 0, 0, 0.54); padding: 24px; } + + + +/* Dark theme styling for Activity and Dimension Filters */ +:host-context(body.dark-theme) .activity-chip-list ::ng-deep mat-chip { + background-color: #3d3d3d !important; + color: #e0e0e0 !important; +} + +:host-context(body.dark-theme) .activity-chip-list ::ng-deep mat-chip:hover { + background-color: #4a4a4a !important; + +} + +:host-context(body.dark-theme) .activity-chip-list ::ng-deep mat-chip.mat-chip-selected { + background-color: #66bb6a !important; + color: #121212 !important; + border-color: #66bb6a; +} + +:host-context(body.dark-theme) .activity-chip-list ::ng-deep mat-chip.mat-chip-selected:hover { + background-color: #81c784 !important; +} + +:host-context(body.dark-theme) .activity-chip-list ::ng-deep .mat-form-field-label { + color: #b0b0b0 !important; +} + +:host-context(body.dark-theme) .activity-chip-list ::ng-deep .mat-form-field-underline { + background-color: #555 !important; +} \ No newline at end of file