Skip to content

Commit 059dee8

Browse files
author
Nadeshiko Kagamihara
committed
Add CSS colour switching for map pins
1 parent e86d74e commit 059dee8

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/pages/index.module.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@
156156
}
157157

158158
/* https://docusaurus.io/docs/markdown-features/assets#github-style-themed-images */
159-
[data-theme='light'] .darkThemeOnly,
160-
[data-theme='dark'] .lightThemeOnly {
159+
[data-theme='light'] .showInDarkThemeOnly,
160+
[data-theme='dark'] .showInLightThemeOnly {
161161
display: none;
162+
}
163+
164+
[data-theme='dark'] .recolourWorldMapPinInDarkTheme [fill="#003164"] {
165+
fill: #e3e3e3;
162166
}

src/pages/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ const Contributors = (): JSX.Element => (
120120
</Translate>
121121
<br/>
122122
<div className={clsx(styles.universityContainer)}>
123-
<UniversitiesForDark className={clsx(styles.darkThemeOnly)} role="img" width="80%" height="auto" title="A world map showing where key Lingua Franca contributors reside." />
124-
<UniversitiesForLight className={clsx(styles.lightThemeOnly)} role="img" width="80%" height="auto" title="A world map showing where key Lingua Franca contributors reside." />
123+
<UniversitiesForDark className={clsx(styles.showInDarkThemeOnly)} role="img" width="80%" height="auto" title="A world map showing where key Lingua Franca contributors reside." />
124+
<UniversitiesForLight className={clsx(styles.showInLightThemeOnly)} role="img" width="80%" height="auto" title="A world map showing where key Lingua Franca contributors reside." />
125125
</div>
126126
<Translate>
127127
Shortly after its inception, researchers from Kiel University and TU Dresden joined the team, contributing diagram synthesis and layout technology, highly-efficient runtime implementations, and various compiler improvements. Since then, we have worked with real-time systems experts from TU Dallas, embedded systems specialists from NTNU, and networking and security researchers from Hanyang University and ASU.
@@ -137,7 +137,7 @@ const Contributors = (): JSX.Element => (
137137
</div>
138138
</>
139139
}
140-
col2={<WorldMap role="img" className={clsx(styles.topMarginIfCol6BecameVertical)} width="100%" height="auto" title="A world map showing where key Lingua Franca contributors reside." />}
140+
col2={<WorldMap role="img" className={clsx(styles.topMarginIfCol6BecameVertical, styles.recolourWorldMapPinInDarkTheme)} width="100%" height="auto" title="A world map showing where key Lingua Franca contributors reside." />}
141141
/>
142142
);
143143

0 commit comments

Comments
 (0)