You've already forked AstralRinth
forked from didirus/AstralRinth
* refactor: migrate to common eslint+prettier configs * fix: prettier frontend * feat: config changes * fix: lint issues * fix: lint * fix: type imports * fix: cyclical import issue * fix: lockfile * fix: missing dep * fix: switch to tabs * fix: continue switch to tabs * fix: rustfmt parity * fix: moderation lint issue * fix: lint issues * fix: ui intl * fix: lint issues * Revert "fix: rustfmt parity" This reverts commit cb99d2376c321d813d4b7fc7e2a213bb30a54711. * feat: revert last rs
34 lines
558 B
Vue
34 lines
558 B
Vue
<template>
|
|
<div class="double-icon">
|
|
<slot name="primary" />
|
|
<div class="secondary">
|
|
<slot name="secondary" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<style lang="scss" scoped>
|
|
.double-icon {
|
|
position: relative;
|
|
height: fit-content;
|
|
line-height: 0;
|
|
|
|
.secondary {
|
|
position: absolute;
|
|
bottom: -4px;
|
|
right: -4px;
|
|
background-color: var(--color-bg);
|
|
padding: var(--spacing-card-xs);
|
|
border-radius: 50%;
|
|
aspect-ratio: 1 / 1;
|
|
width: fit-content;
|
|
height: fit-content;
|
|
line-height: 0;
|
|
|
|
svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
}
|
|
}
|
|
</style>
|