electerious / electerious/basicGrid

Larger size column offsets can't be zero when a smaller size offset is greater than zero

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
SCSS
Stars
57
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Columns with `small-offset-x` and `large-offset-0` or `medium-offset-0` don't seem to work. The zeroed out offsets (if set to greater than zero it functions as expected) just inherit the value of the `small-offset-x` for the larger breakpoints. This seems to be because of the way the `margin-left` value is calculated as a percentage.

~~Adding this as an override for those two classes specifically seems to fix the issue:~~ Never mind this seems to override the small offset at the small size. :(
```css
.large-offset-0, .medium-offset-0 {
margin-left: 0 !important;
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.