-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Add responsive display:block/inline/inline-block utility classes #18410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you give some examples of where this would be useful? |
I think it would be useful for arranging elements when a grid or floats don't fit. For example buttons that appear below each other on phones, but next to each other on higher screens:
Instead of buttons, this could be checkboxes, images or anything else. |
Do you find any solution, Iam interesting as well. |
@lancomega You can use the following SCSS with v4 to make the classes available: .block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
.block-#{$breakpoint} { display: block; }
.inline-#{$breakpoint} { display: inline; }
.inline-block-#{$breakpoint} { display: inline-block; }
}
} |
Not interested in adding these on top of our already included responsive utilities, thanks though! |
tssk tssk annoying |
It would be great to have some utility classes for each breakpoint:
The text was updated successfully, but these errors were encountered: