Skip to content
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

visible-sm visible-lg #12015

Closed
Seva1986 opened this issue Dec 26, 2013 · 23 comments · Fixed by #12025
Closed

visible-sm visible-lg #12015

Seva1986 opened this issue Dec 26, 2013 · 23 comments · Fixed by #12025

Comments

@Seva1986
Copy link

https://dl.dropboxusercontent.com/u/37682778/error/index.html

@cvrebert
Copy link
Collaborator

Please state what the problem is.

@zlatanvasovic
Copy link
Contributor

Problem is .visible-sm mixed with .visible-lg: it doesn't work. :(

The hell, @mdo said in #11302 that .visible-* and .hidden-* classes should be mixinable, but this is pretty painful. I must revert part of #11302.

@cvrebert
Copy link
Collaborator

Methinks this deserves some unit tests.

@zlatanvasovic
Copy link
Contributor

Hm, CSS unit tests? Idk anything about them. xD

@mdo
Copy link
Member

mdo commented Dec 26, 2013

@zdroid They have to be mixin-able because they have been to date. Breaking that would break backward compatibility. Versioning sucks at times, but it can be useful as well. Feel your pain though.

@zlatanvasovic
Copy link
Contributor

The problem:
.visible-smdisplay: none
.visible-sm on small devices — display: block — override because of the
visible-lg !important :(
.visible-lgdisplay: none
.visible-g on large devices — display: block — displays on large, but
not on small ones!

2013/12/27 Mark Otto notifications@github.com

@zdroid https://github.com/ZDroid They have to be mixin-able because
they have been to date. Breaking that would break backward compatibility.
Versioning sucks at times, but it can be useful as well. Feel your pain
though.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12015#issuecomment-31239926
.

Zlatan Vasović - ZDroid

@carasmo
Copy link

carasmo commented Dec 29, 2013

@carasmo
Copy link

carasmo commented Dec 29, 2013

Correction: I'm using the fork only: https://github.com/ZDroid/bootstrap/commit/a21fb0bf6e47dd2b7e1fe208046391c611bc8143 -- I was importing my own theme using this fork. Works great!

@zlatanvasovic
Copy link
Contributor

My first version worked well, but @mdo asked me to make utilities
mixinable, and problem came.

2013/12/29 carasmo notifications@github.com

Correction: I'm using the fork only: ZDroid@a21fb0bhttps://github.com/ZDroid/bootstrap/commit/a21fb0bf6e47dd2b7e1fe208046391c611bc8143-- I was importing my own theme using this fork. Works great!


Reply to this email directly or view it on GitHubhttps://github.com//issues/12015#issuecomment-31310169
.

Zlatan Vasović - ZDroid

@carasmo
Copy link

carasmo commented Dec 29, 2013

You know, using them as mixins would never occur to me. I'm not changing your original : ZDroid@a21fb0b.

@mdo
Copy link
Member

mdo commented Jan 1, 2014

Rethinking this, we don't document that these classes are mixin-able. I'm fine with whatever solution we come up with that makes the most sense.

@zlatanvasovic
Copy link
Contributor

@mdo My solution looks fine so far. :)

@oliholz
Copy link

oliholz commented Jan 31, 2014

Even the test cases on http://getbootstrap.com/css/#responsive-utilities-tests dosn't work currently with the 3.1.0 release.

@zlatanvasovic
Copy link
Contributor

Sorry, my pull request isn't merged so far, so you can't have right
combinations. :D

You can look at
https://github.com/ZDroid/bootstrap/tree/clean-visibility-mess for more
details.

2014-01-31 oliholz notifications@github.com:

Even the test cases on
http://getbootstrap.com/css/#responsive-utilities-tests dosn't work
currently with the 3.1.0 release.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12015#issuecomment-33792081
.

Zlatan Vasović - ZDroid

@mediastuttgart
Copy link

today updated a project from 3.0 to 3.1 - and yes, all combinations of visible-sm visible-md & co are broken. waiting for this to be fixed.

@zlatanvasovic
Copy link
Contributor

Did you read my comment above?

2014-02-03 Michael Alexander Freund notifications@github.com:

today updated a project from 3.0 to 3.1 - and yes, all combinations of visible-sm
visible-md & co are broken. waiting for this to be fixed.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12015#issuecomment-33993472
.

Zlatan Vasović - ZDroid

@glebm
Copy link
Member

glebm commented Feb 3, 2014

For reference, another test fiddle from twbs/bootstrap-sass#517 http://jsfiddle.net/SqQLS/

@lesterchan
Copy link

I hope this gets fixed in 3.1.1 #12492

@mediastuttgart
Copy link

@zdroid yep, waiting for something to happen :)

@zlatanvasovic
Copy link
Contributor

Ok.

2014-02-04 Michael Alexander Freund notifications@github.com:

@zdroid https://github.com/ZDroid yep, waiting for something to happen
:)


Reply to this email directly or view it on GitHubhttps://github.com//issues/12015#issuecomment-34034651
.

Zlatan Vasović - ZDroid

@mdo
Copy link
Member

mdo commented Feb 4, 2014

@zdroid You have no open pull request to address this—your other PR was merged two months ago in #11302.

@mdo mdo closed this as completed in 45e65ee Feb 5, 2014
@mdo
Copy link
Member

mdo commented Feb 5, 2014

Doh, found it. My bad <3.

@zlatanvasovic
Copy link
Contributor

xD

2014-02-05 Mark Otto notifications@github.com:

Doh, found it. My bad <3.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12015#issuecomment-34132153
.

Zlatan Vasović - ZDroid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants