Skip to content

Commit

Permalink
style(font): use variable font SUSE
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 4, 2024
1 parent b0e1711 commit 83d0283
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/GZCTF/ClientApp/src/components/AppFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const AppFooter: FC = () => {
const isMobile = useIsMobile()

const copyright = (
<Text size="xs" ta="center" fw={500} c="dimmed" ff="monospace">
<Text size="sm" ta="center" fw={400} c="dimmed">
Copyright&nbsp;©&nbsp;2022-now&nbsp;
{isMobile && <br />}
<Anchor href="https://github.com/GZTimeWalker" c="dimmed" size="sm" fw={500} lh={1}>
<Anchor href="https://github.com/GZTimeWalker" c="dimmed" size="sm" fw={500}>
@GZTimeWalker
</Anchor>
,&nbsp;All&nbsp;Rights&nbsp;Reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.board {
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-gray-8));
justify-content: center;
height: calc(100vh - 3.75rem * var(--mantine-scale));
height: 100vh;
padding: var(--mantine-spacing-lg);
align-items: center;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
& thead tr th,
& tbody tr td {
text-align: center;
padding: 8px;
padding: 6px 4px;
white-space: nowrap;
font-size: 12px;
}
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:
"'IBM Plex Sans', -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, sans-serif",
'SUSE, -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, 'IBM Plex Sans', sans-serif",
"'JetBrains Mono', ui-monospace, SFMono-Regular, Monaco, Consolas, 'Courier New', monospace, sans-serif",
headings: {
fontFamily: "'IBM Plex Sans', sans-serif",
fontFamily: 'SUSE, sans-serif',
},
breakpoints: {
xs: '30em',
Expand Down
4 changes: 2 additions & 2 deletions src/GZCTF/ClientApp/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export default defineConfig(({ mode }) => {
eslintPlugin(), // only for development
webfontDownload(
[
'https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap',
'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;1,400&display=swap',
'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',
],
{ injectAsStyleTag: false, async: false }
),
Expand Down

0 comments on commit 83d0283

Please sign in to comment.