@@ -104,12 +104,14 @@ <h2 class="content-subhead">Pure CSS</h2>
104
104
< h2 class ="content-subhead "> Pure CSS Components< a class ="content-link "> </ a > </ h2 >
105
105
< p >
106
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
107
+ are missing some useful functionality (unless you add in some JS). < em > Please note, this is
108
+ still a work in
108
109
progress. The usual cautions apply</ em > .
109
110
</ p >
110
111
< p >
111
112
Like Pure CSS, Pure.CSS Components is very small. It is only 2KB* (minified and zipped). Each
112
- component is also available as a module. So, if you only need < strong > modals</ strong > , and nothing else, you
113
+ component is also available as a module. So, if you only need < strong > modals</ strong > , and
114
+ nothing else, you
113
115
don't have to
114
116
include the entire package.
115
117
</ p >
@@ -457,33 +459,34 @@ <h2 class="content-subhead">Collapse</h2>
457
459
458
460
< h3 > Basic Collapse</ h3 >
459
461
460
- < label for ="collapse-toggle " class ="collapse-button pure-button " aria-label ="Toggle ">
461
- < span > Toggle</ span >
462
- </ label >
463
- < input type ="checkbox " id ="collapse-toggle " class ="collapse-toggle pcssc-invisible "/>
464
- < div class ="collapse-content pcssc-invisible ">
465
- Pooka pooka!
462
+ < div class ="pcssc-collapse ">
463
+ < label for ="collapse-toggle " class ="collapse-button pure-button " aria-label ="Toggle ">
464
+ < span > Toggle</ span >
465
+ </ label >
466
+ < input type ="checkbox " id ="collapse-toggle " class ="collapse-toggle pcssc-invisible "/>
467
+ < div class ="collapse-content pcssc-invisible ">
468
+ Pooka pooka!
469
+ </ div >
466
470
</ div >
467
471
468
472
469
- < div style ="background: #ffffff; margin-top: 50px; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em; "> < pre
470
- style ="margin: 0; line-height: 125% ">
471
- <label for=< span style ="color: #a31515 "> "collapse-toggle"</ span > class=< span style ="color: #a31515 "> "collapse-button pure-button"</ span > aria-label=< span
472
- style ="color: #a31515 "> "Toggle"</ span > >
473
- <span>Toggle</span>
474
- </label>
475
- <input type=< span style ="color: #a31515 "> "checkbox"</ span > id=< span style ="color: #a31515 "> "collapse-toggle"</ span > class=< span
476
- style ="color: #a31515 "> "collapse-toggle pcssc-invisible"</ span > />
477
- <div class=< span style ="color: #a31515 "> "collapse-content pcssc-invisible"</ span > >
478
- Pooka pooka!
473
+ < div style ="background: #ffffff; margin-top: 50px; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em; "> < pre style ="margin: 0; line-height: 125% ">
474
+ <div class=< span style ="color: #a31515 "> "pcssc-collapse"</ span > >
475
+ <label for=< span style ="color: #a31515 "> "collapse-toggle"</ span > class=< span style ="color: #a31515 "> "collapse-button pure-button"</ span > aria-label=< span style ="color: #a31515 "> "Toggle"</ span > >
476
+ <span>Toggle</span>
477
+ </label>
478
+ <input type=< span style ="color: #a31515 "> "checkbox"</ span > id=< span style ="color: #a31515 "> "collapse-toggle"</ span > class=< span style ="color: #a31515 "> "collapse-toggle pcssc-invisible"</ span > />
479
+ <div class=< span style ="color: #a31515 "> "collapse-content pcssc-invisible"</ span > >
480
+ Pooka pooka!
481
+ </div>
479
482
</div>
480
- </ pre >
481
- </ div >
483
+ </ pre > </ div >
484
+
482
485
483
486
484
487
< h3 > Toggling Button Label Collapse</ h3 >
485
488
486
- < div class ="collapse-toggle-button ">
489
+ < div class ="pcssc-collapse collapse-toggle-button ">
487
490
< input type ="checkbox " id ="collapse-toggle-button " class ="collapse-toggle pcssc-invisible "/>
488
491
< label for ="collapse-toggle-button " class ="collapse-button pure-button " aria-label ="Toggle ">
489
492
< span class ="collapse-button-label "> Open</ span >
@@ -496,7 +499,7 @@ <h3>Toggling Button Label Collapse</h3>
496
499
497
500
< div style ="background: #ffffff; margin-top: 50px;overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em; "> < pre
498
501
style ="margin: 0; line-height: 125% ">
499
- <div class=< span style ="color: #a31515 "> "collapse-toggle-button"</ span > >
502
+ <div class=< span style ="color: #a31515 "> "pcssc-collapse collapse-toggle-button"</ span > >
500
503
<input type=< span style ="color: #a31515 "> "checkbox"</ span > id=< span style ="color: #a31515 "> "collapse-toggle-button"</ span > class=< span
501
504
style ="color: #a31515 "> "collapse-toggle pcssc-invisible"</ span > />
502
505
<label for=< span style ="color: #a31515 "> "collapse-toggle-button"</ span > class=< span
@@ -551,12 +554,15 @@ <h2 class="content-subhead">Collapsing Menu</h2>
551
554
552
555
< p >
553
556
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' vertical < a href ="https://purecss.io/menus/ "> < strong > menu</ strong > </ a > . As a stand-alone module, the collapsing
557
+ collapsing menu builds off of the < a href ="#dropdown "> < strong > dropdown</ strong > </ a > component,
558
+ and
559
+ Pure CSS' vertical < a href ="https://purecss.io/menus/ "> < strong > menu</ strong > </ a > . As a
560
+ stand-alone module, the collapsing
556
561
menu requires both < strong > dropdown.css</ strong > and < strong > menu.css</ strong > .
557
562
</ p >
558
563
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% ">
564
+ < div style ="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em; "> < pre
565
+ style ="margin: 0; line-height: 125% ">
560
566
<div class=< span style ="color: #a31515 "> "pcssc-collapsing-menu pcssc-menu-left"</ span > >
561
567
<a class=< span style ="color: #a31515 "> "pure-menu-heading"</ span > href=< span style ="color: #a31515 "> "#top"</ span > >Pure
562
568
<div class=< span style ="color: #a31515 "> "small-caps"</ span > >components</div>
@@ -576,8 +582,8 @@ <h2 class="content-subhead">Collapsing Menu</h2>
576
582
</li>
577
583
</ul>
578
584
</div>
579
- </ pre > </ div >
580
-
585
+ </ pre >
586
+ </ div >
581
587
582
588
583
589
</ div >
0 commit comments