cobalt/web/src/components/sidebar/CobaltLogo.svelte
wukko 96be9ffbc3
web/sidebar: redo padding on mobile & desktop
- accommodate space for scaling animation
- replace static padding with variable in calculations
- no more weird padding on mobile
2024-07-12 20:22:12 +06:00

28 lines
563 B
Svelte

<script>
import IconCobalt from '$lib/icons/Cobalt.svelte';
</script>
<div id="cobalt-logo">
<IconCobalt />
</div>
<style>
#cobalt-logo {
display: flex;
justify-content: center;
align-items: center;
padding: calc(var(--padding) * 2);
/* accommodate space for scaling animation */
padding-bottom: calc(
var(--padding) * 2 - var(--sidebar-inner-padding)
);
}
@media screen and (max-width: 535px) {
#cobalt-logo {
display: none;
}
}
</style>