Skip to content

Instantly share code, notes, and snippets.

@artemrogov
Forked from proweb/slick_fix.css
Created March 4, 2019 12:27
Show Gist options
  • Select an option

  • Save artemrogov/7701dcfaee28c81a71bd116037f083dc to your computer and use it in GitHub Desktop.

Select an option

Save artemrogov/7701dcfaee28c81a71bd116037f083dc to your computer and use it in GitHub Desktop.

Revisions

  1. @proweb proweb created this gist May 6, 2017.
    13 changes: 13 additions & 0 deletions slick_fix.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    /* Based on https://github.com/kenwheeler/slick/issues/187#issuecomment-59123524 */
    /* bootstrap hack: fix content width inside hidden tabs */
    .tab-content > .tab-pane,
    .pill-content > .pill-pane {
    display: block; /* undo display:none */
    height: 0; /* height:0 is also invisible */
    overflow: hidden; /* no-overflow */
    }
    .tab-content > .active,
    .pill-content > .active {
    height: auto; /* let the content decide it */
    }
    /* bootstrap hack end */