Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code snippet blocks and add highlights to <code> in docs page #92

Merged
merged 7 commits into from
Jan 5, 2024
Merged

Add code snippet blocks and add highlights to <code> in docs page #92

merged 7 commits into from
Jan 5, 2024

Conversation

hubertmalkowski
Copy link
Contributor

I've added snippets like mentioned in #81. I've also created highlights around <code> tag to make it more readable. Feel free to change color tokens if needed.

Comment on lines 141 to 143
.number > :global(svg) {
color: rgb(var(--m3-scheme-on-primary-container));
color: inherit;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can drop this declaration entirely

<Button on:click={copyToClipboard} type="text" iconType="full">
<Icon icon={iconCopy} />
</Button>
<svelte:component this={Snackbar} bind:show={snackbar} />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just use <Snackbar bind:show={snackbar} />

Comment on lines 37 to 39
padding-inline-start: 1rem;
box-sizing: border-box;
padding-block: 1rem;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't like how the paddings are all over the place, i would just use a padding: a b c d shorthand here

import Icon from "$lib/misc/_icon.svelte";
import ButtonLink from "$lib/buttons/ButtonLink.svelte";
import Snippet from "./Snippet.svelte";
import { base } from "$app/paths";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

irrelevant formatting change

@KTibow KTibow merged commit 9591484 into KTibow:main Jan 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants