aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/MDX/Gallery/Gallery.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-26 15:16:59 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-26 15:16:59 +0100
commit5c3ea8b577e934237a5d03c477361763b167f57b (patch)
tree02921d693f9a70bbeae3b911c8c54b296bacf2b4 /src/components/MDX/Gallery/Gallery.module.scss
parentc18f2f8a9d189343db9740945196af46c903d2d9 (diff)
chore: add a Gallery component for MDX rendering
Diffstat (limited to 'src/components/MDX/Gallery/Gallery.module.scss')
-rw-r--r--src/components/MDX/Gallery/Gallery.module.scss32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/components/MDX/Gallery/Gallery.module.scss b/src/components/MDX/Gallery/Gallery.module.scss
new file mode 100644
index 0000000..2654b59
--- /dev/null
+++ b/src/components/MDX/Gallery/Gallery.module.scss
@@ -0,0 +1,32 @@
+@use "@styles/abstracts/mixins" as mix;
+@use "@styles/abstracts/placeholders";
+
+.wrapper {
+ @extend %reset-list;
+
+ display: grid;
+ grid-template-columns: minmax(0, 1fr);
+ gap: var(--spacing-sm);
+ max-width: 100%;
+ margin: var(--spacing-sm) 0;
+
+ @for $i from 0 to 6 {
+ &--#{$i}-columns {
+ @include mix.media("screen") {
+ @include mix.dimensions("xs") {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+
+ @include mix.dimensions("sm") {
+ grid-template-columns: repeat(#{$i}, minmax(0, 1fr));
+ }
+ }
+ }
+ }
+}
+
+.item {
+ > figure {
+ margin: 0;
+ }
+}