Skip to content

Commit

Permalink
refactor: increase table font size
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io committed Oct 19, 2024
1 parent 1a5f45c commit f6d8f09
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions preview/blocks/footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<Container>
<div class="wrapper">
<div>
<Typography size="s">Released under the MIT License</Typography>
<Typography size="s">Copyright © 2024 Azat S.</Typography>
<Typography size="m">Released under the MIT License</Typography>
<Typography size="m">Copyright © 2024 Azat S.</Typography>
</div>
<a href="https://github.com/azat-io/todoctor" target="_blank">
<Typography size="s">Source code on GitHub</Typography>
<Typography size="m">Source code on GitHub</Typography>
</a>
</div>
</Container>
Expand Down
2 changes: 1 addition & 1 deletion preview/blocks/header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<style>
.header {
padding-block: var(--space-xl) var(--space-xs);
padding-block: var(--space-m) var(--space-xs);
margin-block-end: var(--space-xl);
}
Expand Down
10 changes: 6 additions & 4 deletions preview/elements/table-code.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@

<style>
.code {
margin: 0;
font-size: var(--font-size-2xs);
display: block;
margin: calc(var(--space-2xs) + 2px) 0;
font-family: Courier, monospace;
font-size: var(--font-size-m);
color: var(--color-content-brand);
text-decoration: underline;
cursor: help;
Expand All @@ -26,7 +28,7 @@
--tooltip-font-family: var(--font-family-base);
--tooltip-color: var(--color-content-primary);
--tooltip-border-radius: var(--border-radius);
--tooltip-font-size: var(--font-size-xs);
--tooltip-line-height: 1.35rem;
--tooltip-font-size: var(--font-size-m);
--tooltip-line-height: 1.75rem;
}
</style>
2 changes: 1 addition & 1 deletion preview/elements/table-comment.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let formattedValue = value.replace(new RegExp(kind, 'i'), '<i>$&</i>')
</script>

<Typography size="s">
<Typography size="m">
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html formattedValue}
</Typography>
4 changes: 2 additions & 2 deletions preview/elements/table-date.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
</script>

<div class="date">
<Typography size="s">
<Typography size="m">
{`${relativeValue} ago`}
</Typography>
<Typography color="secondary" size="xs">
<Typography color="secondary" size="s">
{formattedValue}
</Typography>
</div>
Expand Down
2 changes: 1 addition & 1 deletion preview/elements/table-path.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
</script>

<a href={`${currentPath}/${value}`}>
<Typography size="s">{`${value}:${line}`}</Typography>
<Typography size="m">{`${value}:${line}`}</Typography>
</a>
4 changes: 2 additions & 2 deletions preview/elements/table-user.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<div class="user">
<Avatar data={`${email}__${author}`} />
<div class="info">
<Typography size="s" noWrap>{author}</Typography>
<Typography size="m" noWrap>{author}</Typography>
<a href="mailto:{email}">
<Typography size="xs" color="inherit" noWrap>{email}</Typography>
<Typography size="s" color="inherit" noWrap>{email}</Typography>
</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion preview/elements/table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
.th {
padding: var(--space-s) var(--space-2xs);
font: var(--font-s);
font: var(--font-m);
font-weight: 700;
text-align: start;
background: var(--color-background-secondary);
Expand Down

0 comments on commit f6d8f09

Please sign in to comment.