Hi Jonathan,
There is no CSS for this built into framework at the moment. I think the approach I'd take to accomplish this would be pretty simple though, so here's a rundown:
- Make sure you wrap your entire site in a single div (.sitewrap or something). This includes the header/footer & any other "in-page" content.
- When the admin drawer is opened, use JavaScript to add a class to the .sitewrap div that adds a padding on the left equal to the width of the admin drawer (by default, the admin drawer is 250px wide).
- Ensure that your entire site is responsive using a flexbox or percentage grid, so that it still displays correctly when the drawer is open.
- Consider using css transitions to animate the padding:
.sitewrap { padding-left: 250px; transition: padding 300ms ease; }
If your site is phone-friendly, you'll probably need to make special considerations for that. Many mobile apps just have any side drawers kind of push the site out of the way when they open, and you could probably do that pretty easily with this method.
By the way, the HTML for the admin drawer is in [skin-name]/includes/administration-drawer.html
, the LESS (css) is in [skin-name]/less/administration-drawer.less
, and the JavaScript is in [skin-name]/js/administration.js
. Any adjustments you make should be made in those files.
Hope this helps!
-Isaac