vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Feature Request] Make style class of 'gap'

Open hslee2008 opened this issue 2 years ago • 1 comments

Problem to solve

When using row, column, flex, grid, we need the attribute gap. This does not exist in vuetify and can help a lot of people with this class.

Proposed solution

gap- or g- with numbers after it to set the gap.

hslee2008 avatar Jun 13 '22 20:06 hslee2008

That would save a lot of time

TutorFx avatar Sep 06 '22 15:09 TutorFx

That could be really helpfull!

MaximumRGB avatar Dec 21 '22 18:12 MaximumRGB

that would be helpful

karwan01 avatar Jun 08 '23 08:06 karwan01

Quick SCSS implementation:

@for $i from 0 through 16 {
  .row-gap-#{$i}, .gap-#{$i} {
    row-gap: $i * 4px;
  }
  .col-gap-#{$i}, .gap-#{$i} {
    column-gap: $i * 4px;
  }
}

MetRonnie avatar Jun 30 '23 12:06 MetRonnie

Quick SCSS implementation:

@for $i from 0 through 16 {
  .row-gap-#{$i}, .gap-#{$i} {
    row-gap: $i * 4px;
  }
  .col-gap-#{$i}, .gap-#{$i} {
    column-gap: $i * 4px;
  }
}
$breakpoints: (
  'xs': 360px,
  // etc
);

@for $i from 1 through 10 {
  .g-#{$i} {
    gap: $i * 4px;
  }
}

@each $breakpoint, $value in $breakpoints {
  @media (min-width: $value) {
    @for $i from 1 through 10 {
      .g-#{$breakpoint}-#{$i} {
        gap: $i * 4px;
      }
    }
  }
}

may be that will be useful

taisto-seppanen avatar Jul 17 '23 11:07 taisto-seppanen

Which version of vuetify is this in?

TheInvoker avatar Nov 04 '23 18:11 TheInvoker