diff --git a/src/lib/browser/components/Arrow.svelte b/src/lib/browser/components/Arrow.svelte index b34a9dc..5bc855e 100644 --- a/src/lib/browser/components/Arrow.svelte +++ b/src/lib/browser/components/Arrow.svelte @@ -1,6 +1,5 @@ - - - + diff --git a/src/lib/browser/components/Footer.svelte b/src/lib/browser/components/Footer.svelte index 553f531..f87350e 100644 --- a/src/lib/browser/components/Footer.svelte +++ b/src/lib/browser/components/Footer.svelte @@ -60,7 +60,7 @@
+
{#if fcp}
- +
@@ -76,4 +82,10 @@ @include image-container($unit-triple); } } + + @media print { + .no-print { + display: none; + } + } diff --git a/src/lib/browser/ui/Button.svelte b/src/lib/browser/ui/Button.svelte index 12d87ac..5ece6a3 100644 --- a/src/lib/browser/ui/Button.svelte +++ b/src/lib/browser/ui/Button.svelte @@ -21,6 +21,10 @@ export let icon = ''; + export let iconOutline = false; + + export let iconSize: 'sm' | 'md' | 'lg' | 'xl' = 'sm'; + export let hint: string | undefined = undefined; export let disabled = false; @@ -29,17 +33,24 @@ export let external = false; - export let control = true; + export let printVisible = true; {#if href} - + @@ -50,18 +61,23 @@ class:d="{isDark}" class:secondary class:inline - class:no-print="{!control}" + class:no-print="{!printVisible}" on:click="{onClick}" title="{hint}" {disabled} - aria-hidden="{control ? undefined : 'true'}" - tabindex="{control ? undefined : -1}" > - + {#if $$slots.default} + + {/if} {#if icon} - + {/if} {/if} @@ -92,8 +108,7 @@ &.secondary { border: 0; - padding-block: 0; - padding-inline: $unit-half; + padding: $unit-quarter $unit-half; } &.inline { border: 0; @@ -109,10 +124,18 @@ &.l { @include button-style($l-primary, $l-accent); + + .outline { + @include draw-image-black(); + } } &.d { @include button-style($d-primary, $d-accent); + + .outline { + @include draw-image-white(); + } } &__text { @@ -121,9 +144,26 @@ } &__icon { - height: $unit; object-fit: contain; - width: $unit; + vertical-align: middle; + @include smooth-change(filter, transform); + + &.xl { + height: $unit-triple; + width: $unit-triple; + } + &.lg { + height: $unit-double; + width: $unit-double; + } + &.md { + height: $unit-plus; + width: $unit-plus; + } + &.sm { + height: $unit; + width: $unit; + } } } diff --git a/src/lib/browser/ui/Link.svelte b/src/lib/browser/ui/Link.svelte index dcc8fb3..3911ab4 100644 --- a/src/lib/browser/ui/Link.svelte +++ b/src/lib/browser/ui/Link.svelte @@ -12,7 +12,7 @@ export let raw = false; - export let control = true; + export let printVisible = true; const dispatch = createEventDispatcher(); @@ -35,8 +35,6 @@ class:l="{!isDark}" class:d="{isDark}" on:click="{onClick}" - aria-hidden="{control ? undefined : 'true'}" - tabindex="{control ? undefined : -1}" href="{url}" title="{hint}" target="_blank" @@ -51,7 +49,7 @@ class:l="{!isDark}" class:d="{isDark}" class:inline - class:no-print="{!control}" + class:no-print="{!printVisible}" on:click="{onClick}" href="{url}" title="{hint}"