From 126ad3ee8f43bd06903fa0f360e83328392d6b27 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 25 Jan 2021 16:28:49 -0300 Subject: [PATCH] contenedores cuadrados --- _sass/helpers.scss | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_sass/helpers.scss b/_sass/helpers.scss index dad1aae..5642b56 100644 --- a/_sass/helpers.scss +++ b/_sass/helpers.scss @@ -14,6 +14,19 @@ &::-webkit-scrollbar { display: none; } } +// Mismo alto que ancho +.square { + @extend .position-relative; + padding-bottom: 100%; + + & > * { + @extend .position-absolute; + @extend .top-0; + @extend .left-0; + @extend .h-100; + } +} + // Eventos del cursor @each $event in (none, auto) { .pointer-event-#{$event} {