UNPKG

causeway-standard-theme

Version:

53 lines (50 loc) 1.61 kB
<div> <a id="social-sidebars"></a> <header class="content-header"> <h1 class="title"> Social Sidebars </h1> </header> <p> The social sidebars comprise of 2 surrounds, one for the left sidebar: </p> <pre> <code> &lt;section class=&quot;sidebar sidebar-right sidebar-overlay&quot;&gt; &lt;!-- The sidebar content goes here --&gt; &lt;/section&gt; </code> </pre> <p> And one for the right sidebar: </p> <pre> <code> &lt;section class=&quot;sidebar sidebar-right sidebar-overlay&quot;&gt; &lt;!-- The sidebar content goes here --&gt; &lt;/section&gt; </code> </pre> <p> These are optional and can be included in any order. If they are included, they should follow on from the page footer but before any javascript. </p> <p> The sidebars are aware of whether they contain any content (i.e. if any text or html tags appear inside the section) and will only pop out if they have something to display. They can also be displayed manually using a sidebar toggle: </p> <pre> <code> &lt;a class=&quot;sidebar-trigger&quot; data-toggle=&quot;sidebar-left&quot;&gt;Toggle Left Sidebar&lt;/a&gt; </code> </pre> <p> Will <a class="sidebar-trigger" data-toggle="sidebar-left">toggle the left sidebar</a> and:. </p> <pre> <code> &lt;a class=&quot;sidebar-trigger&quot; data-toggle=&quot;sidebar-right&quot;&gt;Toggle Right Sidebar&lt;/a&gt; </code> </pre> <p> Will <a class="sidebar-trigger" data-toggle="sidebar-right">toggle the right sidebar</a> </p> </div>