Skip to content

Commit

Permalink
Fixed issue with offset and grid with no gap
Browse files Browse the repository at this point in the history
- Fixed an issue where the .offset utility classes don't work if the grid has no gap
  • Loading branch information
sebastiano-guerriero committed Mar 17, 2020
1 parent 2c70abd commit 6f56441
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions main/assets/css/base/_grid-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,20 @@ $grid-columns: 12 !default;

.grid {
--gap: 0px;
--offset: var(--gap);
display: flex;
flex-wrap: wrap;

> * {
flex-basis: 100%;
max-width: 100%;
}

@supports (--css: variables) {
> *[class*="offset-"] {
margin-left: var(--offset);
}
}
}

[class*="gap-xxxxs"], [class*="gap-xxxs"], [class*="gap-xxs"], [class*="gap-xs"], [class*="gap-sm"], [class*="gap-md"], [class*="gap-lg"], [class*="gap-xl"], [class*="gap-xxl"], [class*="gap-xxxl"], [class*="gap-xxxxl"], [class*="grid-gap-"], [class*="flex-gap-"] {
Expand Down
2 changes: 1 addition & 1 deletion main/assets/css/style-fallback.css

Large diffs are not rendered by default.

Loading

0 comments on commit 6f56441

Please sign in to comment.