Skip to content
David Van Der Beek edited this page Aug 13, 2014 · 3 revisions

If you add off-canvas panels like the ones in the ui_kit, you just need to make sure that any fixed-position elements have class="fixed" in order to make sure they remain positioned properly when the off-canvas panels are open.

The markup for off-canvas panels should look like this:

= link_to "Left", "#", data: { toggle: "off-canvas", side: "left"}, class: "btn btn-primary"
= link_to "Right", "#", data: { toggle: "off-canvas", side: "right"}, class: "btn btn-primary"

  .off-canvas.off-canvas-left
    TEST
  .off-canvas.off-canvas-right
    TEST
Clone this wiki locally