Improve icon display

This commit is contained in:
Alexis Sellier
2021-07-21 16:02:21 +02:00
parent 0fe8db6fc0
commit 07d2cf48eb
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ a.address {
}
input[type="text"], button {
line-height: 1.5em;
line-height: 1.6;
}
input[type="text"] {
outline: none;
+5 -1
View File
@@ -2,6 +2,7 @@
export let name: string;
export let width: number | null = null;
export let height: number | null = null;
export let inline: boolean = false;
const icons = [
{
@@ -22,10 +23,13 @@
svg {
fill: currentColor;
}
svg.inline {
height: 1.6rem;
}
</style>
{#if svg}
<svg role="img" class={$$props.class}
<svg role="img" class={$$props.class} class:inline
width={width || "1rem"}
height={height || "1rem"}
viewBox="0 0 {svg.size} {svg.size}">
+2 -3
View File
@@ -86,7 +86,6 @@
height: 64px;
}
.links {
height: 1.5rem;
display: flex;
align-items: center;
justify-content: left;
@@ -149,12 +148,12 @@
{/if}
{#if profile.twitter}
<a class="url" href="https://twitter.com/{profile.twitter}">
<Icon name="twitter" />
<Icon name="twitter" inline />
</a>
{/if}
{#if profile.github}
<a class="url" href="https://github.com/{profile.github}">
<Icon name="github" />
<Icon name="github" inline />
</a>
{/if}
</div>
+2 -2
View File
@@ -74,12 +74,12 @@
{/if}
{#if profile.twitter}
<a class="url" href="https://twitter.com/{profile.twitter}">
<Icon name="twitter" />
<Icon name="twitter" inline />
</a>
{/if}
{#if profile.github}
<a class="url" href="https://github.com/{profile.github}">
<Icon name="github" />
<Icon name="github" inline />
</a>
{/if}
</div>