mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 13:17:45 +02:00
web: use conditionals instead of special classes where it makes sense
This commit is contained in:
@ -39,9 +39,11 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="cobalt-notch-sticker" aria-hidden="true" class={state}>
|
||||
<CobaltSticker />
|
||||
</div>
|
||||
{#if state !== "hidden"}
|
||||
<div id="cobalt-notch-sticker" aria-hidden="true" class={state}>
|
||||
<CobaltSticker />
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
#cobalt-notch-sticker {
|
||||
@ -54,10 +56,6 @@
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#cobalt-notch-sticker.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#cobalt-notch-sticker.island {
|
||||
padding-top: 15px;
|
||||
}
|
||||
|
Reference in New Issue
Block a user