Skip to content

Commit 83d0283

Browse files
committed
style(font): use variable font SUSE
1 parent b0e1711 commit 83d0283

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

src/GZCTF/ClientApp/src/components/AppFooter.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const AppFooter: FC = () => {
1414
const isMobile = useIsMobile()
1515

1616
const copyright = (
17-
<Text size="xs" ta="center" fw={500} c="dimmed" ff="monospace">
17+
<Text size="sm" ta="center" fw={400} c="dimmed">
1818
Copyright&nbsp;©&nbsp;2022-now&nbsp;
1919
{isMobile && <br />}
20-
<Anchor href="https://github.com/GZTimeWalker" c="dimmed" size="sm" fw={500} lh={1}>
20+
<Anchor href="https://github.com/GZTimeWalker" c="dimmed" size="sm" fw={500}>
2121
@GZTimeWalker
2222
</Anchor>
2323
,&nbsp;All&nbsp;Rights&nbsp;Reserved.

src/GZCTF/ClientApp/src/styles/components/Placeholder.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.board {
2-
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-8));
32
justify-content: center;
4-
height: calc(100vh - 3.75rem * var(--mantine-scale));
3+
height: 100vh;
54
padding: var(--mantine-spacing-lg);
65
align-items: center;
76
}

src/GZCTF/ClientApp/src/styles/components/ScoreboardTable.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
& thead tr th,
77
& tbody tr td {
88
text-align: center;
9-
padding: 8px;
9+
padding: 6px 4px;
1010
white-space: nowrap;
1111
font-size: 12px;
1212
}

src/GZCTF/ClientApp/src/utils/ThemeOverride.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ const CustomTheme: MantineThemeOverride = {
8383
},
8484
primaryColor: 'brand',
8585
fontFamily:
86-
"'IBM Plex Sans', -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, sans-serif",
86+
'SUSE, -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, sans-serif',
8787
fontFamilyMonospace:
88-
"'JetBrains Mono', ui-monospace, SFMono-Regular, Monaco, Consolas, 'Courier New', monospace, 'IBM Plex Sans', sans-serif",
88+
"'JetBrains Mono', ui-monospace, SFMono-Regular, Monaco, Consolas, 'Courier New', monospace, sans-serif",
8989
headings: {
90-
fontFamily: "'IBM Plex Sans', sans-serif",
90+
fontFamily: 'SUSE, sans-serif',
9191
},
9292
breakpoints: {
9393
xs: '30em',

src/GZCTF/ClientApp/vite.config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export default defineConfig(({ mode }) => {
5050
eslintPlugin(), // only for development
5151
webfontDownload(
5252
[
53-
'https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap',
54-
'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;1,400&display=swap',
53+
'https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap',
54+
'https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap',
5555
],
5656
{ injectAsStyleTag: false, async: false }
5757
),

0 commit comments

Comments
 (0)