Skip to content

Commit 1dc01df

Browse files
fix(client): repair selection and highlight style (freeCodeCamp#40879)
1 parent 6c020f7 commit 1dc01df

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

client/src/components/layouts/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ p {
9393
}
9494

9595
::selection {
96-
background-color: rgba(var(--highlight-color), 0.3);
96+
background-color: var(--selection-color);
9797
}
9898

9999
@media (max-width: 500px) {
@@ -522,7 +522,7 @@ pre {
522522
.has-success.checkbox label,
523523
.has-success.radio-inline label,
524524
.has-success.checkbox-inline label {
525-
color: rgb(var(--highlight-color));
525+
color: var(--highlight-color);
526526
}
527527

528528
.has-error .help-block,

client/src/components/layouts/variables.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
--yellow-light: #ffc300;
1616
--yellow-dark: #4d3800;
1717
--blue-light: rgb(153, 201, 255);
18+
--blue-light-translucent: rgb(153, 201, 255, 0.3);
1819
--blue-dark: rgb(0, 46, 173);
20+
--blue-dark-translucent: rgb(0, 46, 173, 0.3);
1921
--green-light: #acd157;
2022
--blue-mid: #198eee;
2123
--purple-mid: darkviolet;
@@ -39,6 +41,7 @@
3941
--primary-background: var(--gray-90);
4042
--highlight-color: var(--blue-light);
4143
--highlight-background: var(--blue-dark);
44+
--selection-color: var(--blue-light-translucent);
4245
--success-color: var(--green-light);
4346
--success-background: var(--green-dark);
4447
--danger-color: var(--red-light);
@@ -58,6 +61,7 @@
5861
--primary-background: var(--gray-00);
5962
--highlight-color: var(--blue-dark);
6063
--highlight-background: var(--blue-light);
64+
--selection-color: var(--blue-dark-translucent);
6165
--success-color: var(--green-dark);
6266
--success-background: var(--green-light);
6367
--danger-color: var(--red-dark);

client/src/templates/Challenges/classic/classic.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
.monaco-menu .action-label {
6-
color: rgb(var(--highlight-color));
6+
color: var(--highlight-color);
77
letter-spacing: 0.02em;
88
}
99

client/src/templates/Challenges/components/challenge-description.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@
1616
#instructions ol {
1717
font-family: 'Lato', sans-serif;
1818
}
19-
20-
#description ::selection {
21-
background-color: rgba(var(--highlight-color), 0.3);
22-
}

0 commit comments

Comments
 (0)