-
-
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
make visible/hidden classes mixable #9821
Conversation
@eratzlaff - I noticed that you are using some older LESS variables for the media queries. I believe that is what if falling in your build. Here are the new variables if you want to tweak your code.
@mdo amd @eratzlaff - I just want to mention that @eratzlaff method does work well, but it does introduce a chunk more class relationships, which in turn hike up the CSS a bit. I know that @mdo is being a bit frugal on CSS size, so just wanted to mention. The solution proposed by @turchenkoalex in pull #9692, is leaner and I am setting sometime aside later this week to do some tests, but this does the trick as well. |
@masterbee fix variable name. |
We won't rush into this on the eve of v3, though I appreciate the rapid response <3. Let's see what other solutions are because the chaining will also be an issue with performance for larger scale projects and pages. Let's let this bake, build some additional docs to showcase the combination of classes, and really test this out. |
@masterbee @turchenkoalex And yes, we definitely need these to be fully mixin-able, whatever the solution we end up with. |
#9692 (comment) on this comment I put my test @mdo |
I don't believe v2 even supported this, so I'm not inclined to add it in a rush. It doesn't need to absolutely be in there for the initial launch. This is something we can improve upon :). |
v2 don't need this because you only have 3 grid size, now the are 4. |
Maybe it not necessary to have mixable classes for all visible/hidden classes in v3. I think that main case for use of this feature is setting visible/hidden for mobile(xs, sm) and non mobile devices (md, lg). What is your @mdo, @eratzlaff opinion about this? |
Alright, screw it. Let's see what we can do. Where are your tests for this @eratzlaff? |
Test on comment #9692 (comment) |
You'll need to do better than those I'm afraid—it's super difficult to see each one change. Can you setup something like the test cases under http://getbootstrap.com/css/#responsive-utilities? |
@eratzlaff Combination of 3 classes it is a inverse of class. Such as show-xs-sm-md it hidden-lg. |
@turchenkoalex I know, Its only to complete the test on all possible combination. |
Merged! Had to fix your examples, but no problem there. Also updated the display, subnav links, and more. Thanks for pushing on this so quickly :). |
@eratzlaff, @mdo thanks a lot. It very helpfull feature! |
:) you're welcome 👍 |
<3<3<3 |
Nice! |
Change on responsive-utilities for hidden and visible to be mixable
example:
class="visible-xs visible-sm"
test on mixins
example: