picturepan2 / spectre

Spectre.css - A Lightweight, Responsive and Modern CSS Framework
https://picturepan2.github.io/spectre/
MIT License
11.33k stars 811 forks source link

add off canvas push support ? #371

Open crapthings opened 6 years ago

picturepan2 commented 6 years ago

@crapthings By adding a new class?

xeoncross commented 5 years ago

If this is a request for adding a class (via JavaScript) to toggle the off-canvas element, then I'm all for that. Angular/Vue/React already do this well.

laurentpayot commented 5 years ago

@Xeoncross isnt the active class doing that already?

"push" support means pushing the page content to the right when opening the sidebar, but maybe I'm wrong…

xeoncross commented 5 years ago

@laurentpayot you are right. Here is a simple example of pure react + spectre.css off-canvas using the "active" class