diff --git a/src/components/styled/stack.css b/src/components/styled/stack.css new file mode 100644 index 00000000000..3c754a95f02 --- /dev/null +++ b/src/components/styled/stack.css @@ -0,0 +1,15 @@ +.stack{ + @apply place-items-center items-end; + &>*{ + @apply w-full; + } + &>*{ + @apply opacity-60; + } + &>*:nth-child(2){ + @apply opacity-80; + } + &>*:nth-child(1){ + @apply opacity-100; + } +} \ No newline at end of file diff --git a/src/components/unstyled/stack.css b/src/components/unstyled/stack.css new file mode 100644 index 00000000000..4ee60e7f907 --- /dev/null +++ b/src/components/unstyled/stack.css @@ -0,0 +1,18 @@ +.stack{ + @apply inline-grid; + &>*{ + @apply col-start-1 row-start-1; + } + &>*{ + transform: translateY(1rem)scale(.90); + z-index: 1; + } + &>*:nth-child(2){ + transform: translateY(.5rem)scale(.95); + z-index: 2; + } + &>*:nth-child(1){ + transform: translateY(0)scale(1); + z-index: 3; + } +} \ No newline at end of file diff --git a/src/docs/pages/components/stack.vue b/src/docs/pages/components/stack.vue new file mode 100644 index 00000000000..9a7c01e8d3e --- /dev/null +++ b/src/docs/pages/components/stack.vue @@ -0,0 +1,98 @@ + + + +