Skip to content

Commit 6538224

Browse files
final touches to use standard font sizes and colors matching the common traffic light emojis
1 parent 6fd6e2c commit 6538224

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

arewesafetycriticalyet.org/src/components/StandardsOverview/styles.module.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
gap: 1.5rem;
1414
justify-content: center;
1515
margin-bottom: 2rem;
16+
color: var(--ifm-color-emphasis-700);
1617
}
1718

1819
.legendItem {
1920
display: flex;
2021
align-items: center;
2122
gap: 0.4rem;
22-
font-size: 0.85rem;
23-
color: var(--ifm-color-emphasis-700);
2423
}
2524

2625
.dot {
@@ -88,16 +87,13 @@
8887
.verdict {
8988
font-weight: 600;
9089
margin-bottom: 0.5rem;
91-
font-size: 0.95rem;
9290
}
9391

9492
.description {
95-
font-size: 0.9rem;
9693
color: var(--ifm-color-emphasis-700);
9794
flex: 1;
9895
}
9996

10097
.detailsLink {
10198
margin-top: 0.75rem;
102-
font-size: 0.9rem;
10399
}

arewesafetycriticalyet.org/src/css/custom.css

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
--ifm-code-font-size: 95%;
1717
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1818

19-
--rating-green: #2e7d32;
20-
--rating-yellow: #f57f17;
21-
--rating-red: #c62828;
22-
--rating-grey: #757575;
19+
/* Match the emoji colors: 🟢 🟡 🔴 ⚪ */
20+
--rating-green: #4caf50;
21+
--rating-yellow: #fdd835;
22+
--rating-red: #f44336;
23+
--rating-grey: #bdbdbd;
2324
}
2425

2526
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -32,9 +33,4 @@
3233
--ifm-color-primary-lighter: #abcafe;
3334
--ifm-color-primary-lightest: #e2edff;
3435
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
35-
36-
--rating-green: #66bb6a;
37-
--rating-yellow: #ffca28;
38-
--rating-red: #ef5350;
39-
--rating-grey: #9e9e9e;
4036
}

0 commit comments

Comments
 (0)