-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
hidden-xs forces display: block; #9733
Comments
Ah, just went back and noticed this "Responsive utilities are currently only available for block-level toggling, meaning display: none; or display: block;. Use with inline and table elements is currently not supported." |
In fact, you can actually use the responsive utilities on table elements now, just not inline elements (see mixins.less#L508-510). Support for toggling inline elements is planned, not guaranteed for Bootstrap 3.1 (#9397). |
I would like to ay, that I would appreciate it if support for toggling inline elements makes its way into Bootstrap. :-) |
+1 Use case: A button that has text and icon on a large screen just needs icon in mobile view |
That is custom CSS i use for it. a span.hidden-xs {display:inline !important;}
@media (max-width: 768px) {
a span.hidden-xs {display:none !important;}
} |
+1 Another use-case: A label within a header that gives extra information if there's enough screen real estate. EDIT: My bad, thanks for the link. |
This issue is dead. See #8869. |
I'm trying to use display: inline-block until it needs to be hidden, but it seems that's not possible right now unless I fight the !important. I took out all the display: block(s) and it hid the div. I guess you're doing the reverse of what I would have assumed. You're just hiding all, and forcing it to show on certain widths. That doesn't make sense to me...Can you think of a fix, justify your reasoning, and let me know what you're doing for the future on this. Thank you.
The text was updated successfully, but these errors were encountered: