feat: use currentStroke for icons

This commit is contained in:
EETagent 2022-12-05 14:54:50 +01:00
parent 7cb6739ab8
commit f238679398
5 changed files with 10 additions and 9 deletions

View file

@ -12,9 +12,9 @@
<style> <style>
path { path {
@apply fill-sspsBlue; @apply fill-current;
} }
path:nth-child(2) { path:nth-child(2) {
@apply stroke-sspsBlue; @apply stroke-current;
} }
</style> </style>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -10,10 +10,10 @@
<style> <style>
svg { svg {
@apply stroke-sspsBlue fill-sspsBlue; @apply stroke-current fill-current;
} }
g, g,
path { path {
@apply fill-sspsBlue stroke-sspsBlue; @apply fill-current stroke-current;
} }
</style> </style>

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -10,6 +10,6 @@
<style> <style>
path { path {
@apply fill-sspsBlue stroke-sspsBlue; @apply fill-current stroke-current;
} }
</style> </style>

Before

Width:  |  Height:  |  Size: 524 B

After

Width:  |  Height:  |  Size: 522 B

View file

@ -20,4 +20,7 @@
</TextField> </TextField>
<style> <style>
div {
@apply text-sspsBlue;
}
</style> </style>

View file

@ -3,10 +3,8 @@
import { apiFillDetails } from '$lib/@api/candidate'; import { apiFillDetails } from '$lib/@api/candidate';
import Submit from '$lib/components/button/Submit.svelte'; import Submit from '$lib/components/button/Submit.svelte';
import Email from '$lib/components/icons/Email.svelte';
import Home from '$lib/components/icons/Home.svelte'; import Home from '$lib/components/icons/Home.svelte';
import SchoolBadge from '$lib/components/icons/SchoolBadge.svelte'; import SchoolBadge from '$lib/components/icons/SchoolBadge.svelte';
import Telephone from '$lib/components/icons/Telephone.svelte';
import SplitLayout from '$lib/components/layout/SplitLayout.svelte'; import SplitLayout from '$lib/components/layout/SplitLayout.svelte';
import SelectField from '$lib/components/SelectField.svelte'; import SelectField from '$lib/components/SelectField.svelte';
import EmailField from '$lib/components/textfield/EmailField.svelte'; import EmailField from '$lib/components/textfield/EmailField.svelte';
@ -187,7 +185,7 @@
placeholder="Místo narození" placeholder="Místo narození"
icon icon
> >
<div slot="icon" class="flex items-center justify-center"> <div slot="icon" class="flex items-center justify-center text-sspsBlue">
<Home /> <Home />
</div> </div>
</TextField> </TextField>
@ -285,7 +283,7 @@
</span> </span>
</div> </div>
{/if} {/if}
<div class="mt-8 w-full"> <div class="mt-8 w-full">
<Submit <Submit
on:click={async (e) => { on:click={async (e) => {