book_open Bookmaker for WebOrder
Change book Close bookmaker
Add to book Remove from book
application_side_expand
You can change the order/nesting of topics using drag and drop
application_side_contract

PatternSkinCssCookbook Recipe: Left Sidebar Toggle

The Sidebar is hidden for screens with width < 870px. This makes the main page content more readable on small devices, but blocks access to some important links, such as the Login link. This cookbook shows how to add a button that will toggle the sidebar when it is hidden on small screen.

This button is configured in any of SitePreferences, in WebPreferences (for a single web), in your WikiGuest topic, or on a single page.

This line loads the extra style definition:
   * Set USERSTYLEURL = %PUBURLPATH{topic="%SYSTEMWEB%.PatternSkinCssCookbookSidebarToggle" "SidebarToggle.css"}%

To activate the button in the sidebar, override the viewsidebar.pattern.tmpl using the supplied viewsidebar.sidetoggle.tmpl by adding it to the front of the SKIN setting.

Your current SKIN setting is damask,famfamfam,pattern Change it to
    * Set SKIN=sidetoggle,damask,famfamfam,pattern 

The formating and positioning is done in the css. When the sidebar is hidden, the button will appear in the lower left corner of the screen, appearing as the "hamburg" icon: ... .

Topic attachments
I Attachment Action Size Date Who Comment
SidebarToggle.csscss SidebarToggle.css manage 784 bytes 29 Nov 2016 - 02:36 ProjectContributor StyleSheet to toggle left Sidebar in the PatternSkin
This topic: System > Category > AdminDocumentationCategory > Skins > PatternSkin > PatternSkinCssCookbook > PatternSkinCssCookbookSidebarToggle
Topic revision: 02 Mar 2018, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback