Files
aranroig.com/aranroig/app/components/Container.vue
BinarySandia04 7f9412b30b
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 2m5s
Final first web
2026-03-12 01:25:29 +01:00

63 lines
993 B
Vue

<template>
<div class="card">
<span class="corner tl"></span>
<span class="corner tr"></span>
<span class="corner bl"></span>
<span class="corner br"></span>
<slot />
</div>
</template>
<style lang="scss" scoped>
$separation: 2px;
.card{
position: relative;
background: var(--color-background-fore);
padding: 8px 24px;
color: white;
border: 1px solid var(--color-border-color);
}
.corner{
position: absolute;
width: 22px;
height: 22px;
border-color: #cfcfcf;
}
/* Top Left */
.tl{
top: -$separation;
left: -$separation;
border-top:2px solid;
border-left:2px solid;
}
/* Top Right */
.tr{
top: -$separation;
right: -$separation;
border-top:2px solid;
border-right:2px solid;
}
/* Bottom Left */
.bl{
bottom: -$separation;
left: -$separation;
border-bottom:2px solid;
border-left:2px solid;
}
/* Bottom Right */
.br{
bottom: -$separation;
right: -$separation;
border-bottom:2px solid;
border-right:2px solid;
}
</style>