-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
responsive .hidden-* classes change from display block to inline-block #8869
Comments
Related: #8963 |
We won't be changing the utilities to inline-block—I think that's the less common use case. These things are tricky because we won't be adding support for every element possible—that's just not maintainable or practical. |
@mdo You don't have to add support for all possible tags (like you did with tables). What you can do is add |
Reopening to consider @dantistus' feature request. |
Commenting from my merged duplicate #9322 regarding the conflict of display: block !important; with inline-lists: @mdo I full appreciate that it is impractical to support and maintain inline-block variations for every tag, however:
etc. |
@geekcubed We're currently considering @dantistus' request, which seems much more workable. Did you read his proposal? |
@cvrebert I did see the proposal yes - but felt it was worth chipping something different into the mix. As I see it, there are four options on the table:
Just my 0.2$ really. |
For v3, we won't be adding anything to address this. If you have specific thoughts on an inline or inline-block solution, let's address those in a separate issue or, preferably a PR, for potential inclusion in v3.1. |
Closing out and tracking in #9397 as part of 3.1. Just no time to add this now. |
Man if I want to hide an element from SM and XS screens, I cannot. If I declare class="hidden-sm hidden-xs" it simple show in one and hide in another. |
Thank u man! |
Why is .hidden-xs {
display: block !important;
} |
Hope this issue would have been solved. It's common to show only icon on mobile devise while showing descriptive text on tablet and above. |
+1 Very often you need to hide/show an inline element based on media queries. |
@miksh7 If you had read through the issue, you'd know that the outcome was that we're going to add such classes. |
+1 |
+1 |
1 similar comment
+1 |
No further endorsements are necessary.This is planned to be fixed in v3.2 via #12204 or similar. |
* master: Replace some images on the Carousel example with some base64 encoded 1x1 gifs ugh grunt moar grunt mo copy http://www.youtube.com/watch?v=AJWtLf4-WWs grunt Copy change fix grammar in comment in forms.less Fixes #12759 Fixes #12738 replace .visible-{size} with .visible-{size}-{display} ; fixes #8869 Conflicts: dist/css/bootstrap-theme.css.map dist/css/bootstrap.css.map docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap.css.map less/mixins.less
* master: Replace some images on the Carousel example with some base64 encoded 1x1 gifs ugh grunt moar grunt mo copy http://www.youtube.com/watch?v=AJWtLf4-WWs grunt Copy change fix grammar in comment in forms.less Fixes twbs#12759 Fixes twbs#12738 replace .visible-{size} with .visible-{size}-{display} ; fixes twbs#8869 Conflicts: dist/css/bootstrap-theme.css.map dist/css/bootstrap.css.map docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap.css.map less/mixins.less
related to issues #8500 , #7808 , #4929 ; using
.hidden-sm
to hide span within.nav > li > a
. Because class isdisplay: block
above -sm then text wraps to new line. Would you consider.hidden-*
classes to bedisplay: inline-block
instead ?Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
The text was updated successfully, but these errors were encountered: