mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-04-20 20:31:51 +02:00
Progress bar demos
This commit is contained in:
parent
b6aebad6a7
commit
dc39b0e80a
@ -548,7 +548,7 @@
|
||||
|
||||
<h3>Accordion style</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4>
|
||||
<div style="margin-left: 10px; margin-right: 10px;">
|
||||
<div style="margin-left: 10px; margin-right: 10px;">
|
||||
<input type="radio" class="acrd" id="acrd1" autocomplete="off" name="accordion"><label for="acrd1">First option</label>
|
||||
<div>This is the first collapse of the accordion.</div>
|
||||
<input type="radio" class="acrd" id="acrd2" autocomplete="off" name="accordion"><label for="acrd2">Second option</label>
|
||||
@ -566,7 +566,37 @@
|
||||
<label for="acrd3">Third option</label>
|
||||
<div>This is the final collapse of the accordion.</div></pre>
|
||||
</div><br>
|
||||
|
||||
|
||||
<h2 id="progress">Progress bars</h2>
|
||||
<p>The progress bar module is very easy to use and extend. Simply create a <code><div></code> with the <code>.prg</code> class and inside it add a <code><span></code> element with the desired <code>style="width:XX%"</code> and you have a progress bar. Add text inside the <code><span></code> element if you want. You can use the <code>.green</code> or <code>.red</code> variants for the <code><span></code> element if you want to use different colors. Finally, you can always stack multiple progress bars, by simply adding more <code><span></code> elements, just make sure their widths add up to 100% or less.</p>
|
||||
|
||||
<h3>Default progress bar style</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<div class="prg" style="margin-left: 10px; margin-right: 10px; padding:0;"><span style="width:60%;">60%</span></div><br>
|
||||
<pre class="panelcode"><div class="prg"><span style="width:60%;">60%</span></div></pre>
|
||||
</div>
|
||||
|
||||
<h3>Progress bar variant styles</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<div class="prg" style="margin-left: 10px; margin-right: 10px; padding:0;"><span class="green" style="width:40%;"></span></div><br>
|
||||
<div class="prg" style="margin-left: 10px; margin-right: 10px; padding:0;"><span class="red" style="width:70%;"></span></div><br>
|
||||
<pre class="panelcode"><div class="prg"><span class="green" style="width:40%;"></span></div>
|
||||
<div class="prg"><span class="red" style="width:70%;"></span></div></pre>
|
||||
</div>
|
||||
|
||||
<h3>Stacked progress bars</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<div class="prg" style="margin-left: 10px; margin-right: 10px; padding:0;">
|
||||
<span class="red" style="width:30%;"></span>
|
||||
<span class="green" style="width:20%;"></span>
|
||||
<span style="width:40%;"></span>
|
||||
</div><br>
|
||||
<pre class="panelcode"><div class="prg">
|
||||
<span class="red" style="width:30%;"></span>
|
||||
<span class="green" style="width:20%;"></span>
|
||||
<span style="width:40%;"></span>
|
||||
</div></pre>
|
||||
</div><br>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user