Fix: fix styling of translate button in titles

This commit is contained in:
Pieter Vander Vennet 2023-05-24 00:28:28 +02:00
parent 1a7289f516
commit 0a8164c378
4 changed files with 29 additions and 9 deletions

View file

@ -21,7 +21,7 @@
</a> </a>
{:else if $linkToWeblate} {:else if $linkToWeblate}
<a href={LinkToWeblate.hrefToWeblate($language, context)} class="weblate-link hidden-on-mobile mx-1" target="_blank"> <a href={LinkToWeblate.hrefToWeblate($language, context)} class="weblate-link hidden-on-mobile mx-1" target="_blank">
<img src="./assets/svg/translate.svg" class="w-3 h-3 rounded-full font-gray" /> <img src="./assets/svg/translate.svg" class="w-3 h-3 rounded-full font-gray inline-block" />
</a> </a>
{/if} {/if}
{/if} {/if}

View file

@ -56,10 +56,6 @@
{/if} {/if}
<style> <style>
.title-icons {
}
:global(.title-icons a) { :global(.title-icons a) {
display: block !important; display: block !important;
} }

View file

@ -461,9 +461,20 @@ select:hover {
display: none; display: none;
} }
.no-weblate weblate { .weblate-link {
display: none; width: fit-content;
flex-shrink: 0;
margin: 0;
padding: 0.25rem;
border: unset;
border-radius: 5rem;
backdrop-filter: var(--low-interaction-background);
} }
.no-weblate .weblate-link {
display: none !important;
}
.link-underline a { .link-underline a {
text-decoration: underline 1px var(--foreground-color); text-decoration: underline 1px var(--foreground-color);
} }

View file

@ -2281,8 +2281,21 @@ select:hover {
display: none; display: none;
} }
.no-weblate weblate { .weblate-link {
display: none; width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
flex-shrink: 0;
margin: 0;
padding: 0.25rem;
border: unset;
border-radius: 5rem;
-webkit-backdrop-filter: var(--low-interaction-background);
backdrop-filter: var(--low-interaction-background);
}
.no-weblate .weblate-link {
display: none !important;
} }
.link-underline a { .link-underline a {