Skip to content

Commit

Permalink
style(font): fix missing weight for IBM Plex Sans
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 4, 2024
1 parent 83d0283 commit 5b23a7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/src/components/ChallengePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const ChallengePanel: FC = () => {
{game?.writeupRequired && (
<>
<Button
px="sm"
px="xs"
leftSection={<Icon path={mdiFileUploadOutline} size={1} />}
onClick={() => setWriteupSubmitOpened(true)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@
}

& a {
font-weight: 300;
text-decoration: underline;
transition: all 0.2s ease-in-out;
}
Expand Down
6 changes: 3 additions & 3 deletions src/GZCTF/ClientApp/src/utils/ThemeOverride.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ const CustomTheme: MantineThemeOverride = {
},
primaryColor: 'brand',
fontFamily:
'SUSE, -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, sans-serif',
'IBM Plex Sans, -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, sans-serif',
fontFamilyMonospace:
"'JetBrains Mono', ui-monospace, SFMono-Regular, Monaco, Consolas, 'Courier New', monospace, sans-serif",
'JetBrains Mono, ui-monospace, SFMono-Regular, Monaco, Consolas, Courier New, monospace, sans-serif',
headings: {
fontFamily: 'SUSE, sans-serif',
fontFamily: 'IBM Plex Sans, sans-serif',
},
breakpoints: {
xs: '30em',
Expand Down
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default defineConfig(({ mode }) => {
webfontDownload(
[
'https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap',
'https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap',
'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,700&display=swap'
],
{ injectAsStyleTag: false, async: false }
),
Expand Down

0 comments on commit 5b23a7f

Please sign in to comment.