nickrigby / silc-offcanvas

Lightweight offcanvas/modal component for silc framework
https://silc.io
MIT License
0 stars 1 forks source link

Document how to "always have offcanvas" #1

Open drogers98 opened 6 years ago

drogers98 commented 6 years ago

Looks like this is set up for "off canvas items" to become visible at a certain breakpoint. But what if it should "always be off canvas"?

I see this in css: @if strip-unit($silc-offcanvas--options--becomes-visible) > 0 {

Does that mean that we would need to set $silc-offcanvas--options--becomes-visible to 0, and it would "always be offcanvas"?

drogers98 commented 6 years ago

OK, also see how the "becomes visible" could be super useful for something like menus, if we ant to have "one menu" and just put off canvas for something like mobile. But, I believe that this var runs for ALL offcanvas items, including modals, correct? Would it be better to maybe put a data attribute on each, whether to "show at breakpoint set in config" or not?