announcement cleanup

This commit is contained in:
2024-08-14 19:50:02 +03:00
parent 726f610bb1
commit 054769158b

View File

@@ -1,9 +1,3 @@
<!--
announcement.svelte
used to display a short announcement at the top of the site
-->
<script>
import { slide } from 'svelte/transition';
export let message;
@@ -16,6 +10,7 @@
{#if visible}
<div transition:slide bind:this={noderef} class="announcement prevent-select" style="background-color: {color};">
{#if link}
<a href={link}>{message}</a>
{:else}
@@ -31,22 +26,27 @@
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
height: 36px;
font-size: 18px;
color: white;
}
.close-button {
height: 25px;
width: 25px;
cursor: pointer;
background-color: white;
object-fit: contain;
-webkit-mask-image: url('$lib/images/icons/ui/cross.svg');
mask-image: url('$lib/images/icons/ui/cross.svg');
mask-repeat: no-repeat;
mask-size: contain;
height: 25px;
width: 25px;
}
a, a:visited, a:hover, a:active {