Skip to content

Commit

Permalink
[DURACOM-177] gap-* classes
Browse files Browse the repository at this point in the history
  • Loading branch information
davide-negretti committed Jul 12, 2023
1 parent db6edbf commit 5ab10d1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/styles/_global-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,26 @@ ul.dso-edit-menu-dropdown > li .nav-item.nav-link {
.table td {
vertical-align: middle;
}

/* Flexbox gap utility classes */

.gap-0 { gap: 0; }
.gap-1 { gap: calc(#{$spacer} * .25); }
.gap-2 { gap: calc(#{$spacer} * .5); }
.gap-3 { gap: #{$spacer}; }
.gap-4 { gap: calc(#{$spacer} * 1.5); }
.gap-5 { gap: calc(#{$spacer} * 3); }

.gapx-0 { row-gap: 0; }
.gapx-1 { row-gap: calc(#{$spacer} * .25); }
.gapx-2 { row-gap: calc(#{$spacer} * .5); }
.gapx-3 { row-gap: #{$spacer}; }
.gapx-4 { row-gap: calc(#{$spacer} * 1.5); }
.gapx-5 { row-gap: calc(#{$spacer} * 3); }

.gapy-0 { column-gap: 0; }
.gapy-1 { column-gap: calc(#{$spacer} * .25); }
.gapy-2 { column-gap: calc(#{$spacer} * .5); }
.gapy-3 { column-gap: #{$spacer}; }
.gapy-4 { column-gap: calc(#{$spacer} * 1.5); }
.gapy-5 { column-gap: calc(#{$spacer} * 3); }

0 comments on commit 5ab10d1

Please sign in to comment.