Skip to content

Commit 79cbd6a

Browse files
author
Joe Crick
committed
(master): Incremental: Update introduction text. Add left-collapsing menu.
1 parent 08426ce commit 79cbd6a

File tree

1 file changed

+44
-5
lines changed

1 file changed

+44
-5
lines changed

index.html

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
<li class="pure-menu-item">
4444
<a href="#dropdown" class="pure-menu-link">Dropdown</a>
4545
</li>
46+
<li class="pure-menu-item">
47+
<a href="#menu" class="pure-menu-link">Menu</a>
48+
</li>
4649
<li class="pure-menu-item">
4750
<a href="#modal" class="pure-menu-link">Modal</a>
4851
</li>
@@ -83,8 +86,7 @@ <h2 class="content-subhead">Pure CSS</h2>
8386

8487
<p>
8588
<a href="https://purecss.io/">Pure CSS</a> is a great set of small, responsive CSS modules. As
86-
their docs say, it is tiny.
87-
The entire set of modules is only 3.8KB* (minified and gzipped).
89+
their docs say, it is tiny. The entire set of modules is only 3.8KB* (minified and gzipped).
8890
</p>
8991
<p>
9092
Pure CSS is responsive out of the box.
@@ -101,9 +103,9 @@ <h2 class="content-subhead">Pure CSS</h2>
101103
</p>
102104
<h2 class="content-subhead">Pure CSS Components<a class="content-link"></a></h2>
103105
<p>
104-
Pure CSS doesn't have any components, so I wrote some. My goal is to get parity with
105-
Bootstrap's menu of components. Please note, this is still a work in
106-
progress. The usual cautions apply.
106+
Pure CSS doesn't have many components, so I wrote some. And some of the components they have
107+
are missing some useful functionality (unless you add in some JS). <em>Please note, this is still a work in
108+
progress. The usual cautions apply</em>.
107109
</p>
108110
<p>
109111
Like Pure CSS, Pure.CSS Components is very small. It is only 2KB* (minified and zipped). Each
@@ -541,6 +543,43 @@ <h2 class="content-subhead">Dropdown</h2>
541543
</div>
542544

543545

546+
</div>
547+
548+
<div class="content menu-content">
549+
<a name="menu"></a>
550+
<h2 class="content-subhead">Collapsing Menu</h2>
551+
552+
<p>
553+
The menu on the left side of this page is an example of a left-side collapsing menu. The
554+
collapsing menu builds off of the <a href="#dropdown"><strong>dropdown</strong></a> component, and
555+
Pure CSS' <strong>menu</strong> . As a stand-alone module, the collapsing
556+
menu requires both <strong>dropdown.css</strong> and <strong>menu.css</strong> .
557+
</p>
558+
559+
<div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;"><pre style="margin: 0; line-height: 125%">
560+
&lt;div class=<span style="color: #a31515">&quot;pcssc-collapsing-menu pcssc-menu-left&quot;</span>&gt;
561+
&lt;a class=<span style="color: #a31515">&quot;pure-menu-heading&quot;</span> href=<span style="color: #a31515">&quot;#top&quot;</span>&gt;Pure
562+
&lt;div class=<span style="color: #a31515">&quot;small-caps&quot;</span>&gt;components&lt;/div&gt;
563+
&lt;/a&gt;
564+
&lt;div tabindex=<span style="color: #a31515">&quot;0&quot;</span> class=<span style="color: #a31515">&quot;menu-link dropdown&quot;</span>&gt;
565+
&lt;span&gt;&lt;/span&gt;
566+
&lt;/div&gt;
567+
&lt;ul class=<span style="color: #a31515">&quot;dropdown-content pure-menu-list pure-menu&quot;</span>&gt;
568+
&lt;li class=<span style="color: #a31515">&quot;pure-menu-item&quot;</span>&gt;
569+
&lt;a href=<span style="color: #a31515">&quot;#installation&quot;</span> class=<span style="color: #a31515">&quot;pure-menu-link&quot;</span>&gt;Installation&lt;/a&gt;
570+
&lt;/li&gt;
571+
&lt;li class=<span style="color: #a31515">&quot;pure-menu-item menu-item-divided&quot;</span>&gt;
572+
&lt;a href=<span style="color: #a31515">&quot;#accordion&quot;</span> class=<span style="color: #a31515">&quot;pure-menu-link&quot;</span>&gt;Accordion&lt;/a&gt;
573+
&lt;/li&gt;
574+
&lt;li class=<span style="color: #a31515">&quot;pure-menu-item&quot;</span>&gt;
575+
&lt;a href=<span style="color: #a31515">&quot;#alert&quot;</span> class=<span style="color: #a31515">&quot;pure-menu-link&quot;</span>&gt;Alert&lt;/a&gt;
576+
&lt;/li&gt;
577+
&lt;/ul&gt;
578+
&lt;/div&gt;
579+
</pre></div>
580+
581+
582+
544583
</div>
545584

546585
<div class="content modal-content">

0 commit comments

Comments
 (0)