Skip to content

Commit c3fb908

Browse files
committed
Adding general properties for text in dark theme. (custome-theme.scss online 106). (Line-63; updating link colors to determine by browser visited state for dark theme. (Line-159; moving app-matrix to respective componenet.css and fix for visited. Fix on styles.css for dark theme on About Us.
1 parent a7d8cc1 commit c3fb908

File tree

5 files changed

+37
-19
lines changed

5 files changed

+37
-19
lines changed

src/app/component/circular-heatmap/circular-heatmap.component.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@
7878
grid-column: 2/3;
7979
grid-row: 1/4;
8080
display: grid;
81-
justify-content: top;
81+
justify-content: center;
82+
align-items: start;
8283
margin-left: auto;
8384
}
8485
.team-filter {
@@ -161,6 +162,6 @@ button.filter-toggle {
161162

162163
.overlay-details {
163164
width: 100%;
164-
}
165+
}
165166

166167
}

src/app/component/matrix/matrix.component.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,20 @@
6161
.tags-activity {
6262
font-weight: 800;
6363
font-style: italic;
64-
color: rgb(0, 113, 151);
6564
font-size: 12px;
6665
}
66+
/*tag activity - light */
67+
:host-context(body.light-theme) .tags-activity,
68+
:host-context(body.light-theme) .tags-activity span {
69+
color: rgb(0, 113, 151);
70+
}
71+
72+
/*tag activity - dark */
73+
:host-context(body.dark-theme) .tags-activity,
74+
:host-context(body.dark-theme) .tags-activity span {
75+
color: #397af4;
76+
}
77+
6778
.reset-button {
6879
background-color: #66bb6a;
6980
display: block;

src/app/component/teams/teams.component.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ h3 {
3333
height: 100px;
3434
background-color: #66bb6a;
3535
border-radius: 10px;
36+
color: white;
3637
margin-right: 20px;
3738
display: flex; /* Use flex layout */
3839
justify-content: center; /* Center horizontally */

src/custom-theme.scss

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
$light-theme: (
77
background: white,
88
text: black,
9-
link: blue
9+
link: blue,
1010
);
1111

1212
$custom-dark-theme: (
1313
background: #2c2c2c,
1414
text: #e0e0e0,
15-
link: #bb86fc
15+
link: #bb86fc,
1616
);
1717

1818
$custom-typography: mat.define-typography-level(
@@ -60,6 +60,9 @@ $DSOMM-dark-theme: mat.define-dark-theme((
6060
a {
6161
color: map-get($theme, link);
6262
}
63+
a:visited {
64+
color: map-get($theme, visited-link);
65+
}
6366
}
6467

6568
// ----------------------------------------------
@@ -100,15 +103,18 @@ body.dark-theme {
100103

101104

102105
}
103-
106+
// General properties
107+
p, li, tr {
108+
color: #e0e0e0;
109+
}
104110

105111
// Common containers
106112
mat-card,
107113
.mat-dialog-container,
108114
.mat-expansion-panel,
109115
.mat-accordion,
110116
.overlay-wrapper {
111-
background-color: #2c2c2c !important;
117+
background-color: #2c2c2c;
112118
color: #e0e0e0;
113119
}
114120

@@ -120,24 +126,24 @@ body.dark-theme {
120126

121127
// Modal override
122128
.overlay-modal {
123-
background-color: #2c2c2c !important;
129+
background-color: #2c2c2c;
124130
color: #e0e0e0;
125131
border-radius: 6px;
126132

127133
mat-card {
128-
background-color: transparent !important;
134+
background-color: transparent;
129135
}
130136

131137
h1, h2, h3, h4, h5, h6 {
132-
color: #e0e0e0 !important;
138+
color: #e0e0e0;
133139
}
134140
}
135141

136142

137143
// Circular heatmap (radar chart)
138144
.circular-heat text,
139145
.labels.segment text {
140-
fill: #ffffff !important;
146+
fill: #ffffff;
141147
}
142148

143149

@@ -156,14 +162,6 @@ body.dark-theme {
156162
--heatmap-cursor-selected:var(--heatmap-cursor);
157163
--heatmap-cursor-hover: transparent;
158164

159-
app-matrix a:visited {
160-
color: #d4baf4;
161-
}
162-
163-
app-matrix .tags-activity,
164-
app-matrix .tags-activity span {
165-
color: #397af4;
166-
}
167165

168166
.mat-chip.mat-standard-chip {
169167
color: #ababab;

src/styles.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; }
88
padding: 0.3em;
99
}
1010

11+
.dark-theme .userday table :is(td, th) {
12+
border-color: #e0e0e0;
13+
}
14+
.dark-theme .userday tr:nth-child(even) {
15+
background-color: #365d36;
16+
}
17+
1118
.userday tr:nth-child(even) {
1219
background-color: #66bb6a;
1320
}

0 commit comments

Comments
 (0)