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

Add span to .responsive-visibility and .responsive-invisibility mixins #12414

Closed
maktouch opened this issue Jan 28, 2014 · 1 comment
Closed

Comments

@maktouch
Copy link

By doing that, I can make button labels disappear in small screen and shown correctly in big screen.

Example:

<button class="btn btn-primary"> <i class="icon icon-refresh"></i> <span class="hidden-xs"> Refresh </span> </button>

Code to modify:

.responsive-visibility() {
  display: block !important;
  table&  { display: table; }
  tr&     { display: table-row !important; }
  th&,
  td&     { display: table-cell !important; }
  span&   { display: inline !important; }
}

.responsive-invisibility() {
    &,
  tr&,
  th&,
  td&,
  span& { display: none !important; }
}

I've been using it for the last month - seems to work :).

@juthilo
Copy link
Collaborator

juthilo commented Jan 28, 2014

Duplicate of #12204, which features a more complete solution for all inline elements.

@juthilo juthilo closed this as completed Jan 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants