]> BookStack Code Mirror - bookstack/blobdiff - resources/sass/_spacing.scss
Perms: Fixed some issues made when adding transactions
[bookstack] / resources / sass / _spacing.scss
index 69ed5a2d3c0174517ba02ed44d491ad098782d3d..6b5e2f837d933f08e112cf826fe5c1f9b902ba96 100644 (file)
@@ -1,14 +1,16 @@
+@use "vars";
+
 // Here we generate spacing utility classes for our sizes for all box sides and axis.
 // These will output to classes like .px-m (Padding on x-axis, medium size) or .mr-l (Margin right, large size)
 
 @mixin spacing($prop, $propLetter) {
-  @each $sizeLetter, $size in $spacing {
+  @each $sizeLetter, $size in vars.$spacing {
     .#{$propLetter}-#{$sizeLetter} {
       #{$prop}: $size !important;
     }
     .#{$propLetter}x-#{$sizeLetter} {
-      #{$prop}-left: $size !important;
-      #{$prop}-right: $size !important;
+      #{$prop}-inline-start: $size !important;
+      #{$prop}-inline-end: $size !important;
     }
     .#{$propLetter}y-#{$sizeLetter} {
       #{$prop}-top: $size !important;
       #{$prop}-top: $size !important;
     }
     .#{$propLetter}r-#{$sizeLetter} {
-      #{$prop}-right: $size !important;
+      #{$prop}-inline-end: $size !important;
     }
     .#{$propLetter}b-#{$sizeLetter} {
       #{$prop}-bottom: $size !important;
     }
     .#{$propLetter}l-#{$sizeLetter} {
-      #{$prop}-left: $size !important;
+      #{$prop}-inline-start: $size !important;
     }
   }
 }
-@include spacing('margin', 'm')
-@include spacing('padding', 'p')
\ No newline at end of file
+@include spacing('margin', 'm');
+@include spacing('padding', 'p');
+
+@each $sizeLetter, $size in vars.$spacing {
+  .gap-#{$sizeLetter} {
+    gap: $size !important;
+  }
+  .gap-x-#{$sizeLetter} {
+    column-gap: $size !important;
+  }
+  .gap-y-#{$sizeLetter} {
+    row-gap: $size !important;
+  }
+}