mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-04-22 05:11:55 +02:00
Tabs, tables and forms demos
This commit is contained in:
parent
5c08c57014
commit
54fd3d467d
@ -266,7 +266,7 @@
|
||||
|
||||
<h3>Vertical navigation dropdown example</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4><br>
|
||||
<div class="nav vertical">
|
||||
<div class="nav vertical" style="margin-left: 10px; margin-right: 10px;">
|
||||
<span class="logo">Logo</span>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 1</a></li>
|
||||
@ -296,6 +296,161 @@
|
||||
</div></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="tab">Tabs</h2>
|
||||
<p>The tabbed navigation module allows you to easily create tabbed navigation systems, that are fully customizable to fit your needs. <strong>Nested tabs are not supported and might cause unexpected behavior.</strong></p>
|
||||
|
||||
<h3>Tabbed navigation structure</h3>
|
||||
<p>The structure of the tabbed navigation system is as follows:</p>
|
||||
<ul>
|
||||
<li>Use the <code>.tabs</code> class to specify the container for the tabbed navigation system.</li>
|
||||
<li>For each tab use an <code><input type="radio"></code>, immediately followed by a <code><div></code> element.</li>
|
||||
<li>This last element should contain a <code><label></code> linking to the radio button of the tab and another <code><div></code> that will contain the tab's contents.</li>
|
||||
<li>Specify the tab that will be open by default using the <code>checked</code> property on one of the radio buttons.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h3>Tabbed navigation example <sup>*</sup></h3>
|
||||
<div class="tabs">
|
||||
<input type="radio" name="tabs-radio" id="tab1" checked>
|
||||
<div>
|
||||
<label for="tab1">Tab 1</label>
|
||||
<div>Tab 1 content...</div>
|
||||
</div>
|
||||
<input type="radio" name="tabs-radio" id="tab2">
|
||||
<div>
|
||||
<label for="tab2">Tab 2</label>
|
||||
<div>Tab 2 content...</div>
|
||||
</div>
|
||||
<input type="radio" name="tabs-radio" id="tab3">
|
||||
<div>
|
||||
<label for="tab3">Tab 3</label>
|
||||
<div>Tab 3 content...</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="panelcode"><div class="tabs">
|
||||
<input type="radio" name="tabs-radio" id="tab1" checked>
|
||||
<div>
|
||||
<label for="tab1">Tab 1</label>
|
||||
<div>Tab 1 content...</div>
|
||||
</div>
|
||||
<input type="radio" name="tabs-radio" id="tab2">
|
||||
<div>
|
||||
<label for="tab2">Tab 2</label>
|
||||
<div>Tab 2 content...</div>
|
||||
</div>
|
||||
<input type="radio" name="tabs-radio" id="tab3">
|
||||
<div>
|
||||
<label for="tab3">Tab 3</label>
|
||||
<div>Tab 3 content...</div>
|
||||
</div>
|
||||
</div></pre><br>
|
||||
<p>(*):Due to a minor incompatibility between panels and tabs, the above example is not shown like most of the others. Our most experienced teams of developers and designers are on this.</p>
|
||||
|
||||
<h2 id="table">Tables</h2>
|
||||
<p>Tables can be easily stylized to look more modern, using stripes and selective borders (vertical only by default). Classes for horizontal only borders(<code>.hor</code>) and full borders(<code>.bor</code>) are also provided. Use the <code>.tbl</code> class in your <code><table></code> elements to easily apply your styling.</p>
|
||||
|
||||
<h3>Default table example</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4><br>
|
||||
<table class="tbl" style="margin-left: 10px; margin-right: 10px;">
|
||||
<thead>
|
||||
<th>Column 1</th> <th>Column 2</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><br>
|
||||
<pre class="panelcode"><table class="tbl">
|
||||
<thead>
|
||||
<th>Column 1</th> <th>Column 2</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Name</td> <td>Value</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></pre>
|
||||
</div>
|
||||
|
||||
<h2 id="form">Forms</h2>
|
||||
<p>Form customization and styling is easy using the <code>.frm</code> class in any <code><form></code> element. Inputs inside the form will be automatically styled and they will use complementary highlights for certain events (<code>:focus</code>, <code>disabled</code>, <code>:invalid</code> etc.). You can use the <code>.aligned</code> and <code>.inline</code> classes to create aligned and inline forms respectively. Aligned forms should be used in combination with the <code>.ctrl-group</code> class to group together labels with their respective inputs.</p>
|
||||
|
||||
<h3>Vertical form</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
<form class="frm" autocomplete="off">
|
||||
<label for="email1">Email</label>
|
||||
<input type="email" id="email1">
|
||||
<label for="password1">Password</label>
|
||||
<input type="password" id="password1">
|
||||
</form>
|
||||
<pre class="panelcode"><form class="frm">
|
||||
<label for="email1">Email</label>
|
||||
<input type="email" id="email1">
|
||||
<label for="password1">Password</label>
|
||||
<input type="password" id="password1">
|
||||
</form></pre>
|
||||
</div>
|
||||
|
||||
<h3>Inline form</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
<form class="frm inline" autocomplete="off">
|
||||
<label for="email2">Email</label>
|
||||
<input type="email" id="email2">
|
||||
<label for="password2">Password</label>
|
||||
<input type="password" id="password2">
|
||||
</form>
|
||||
<pre class="panelcode"><form class="frm inline">
|
||||
<label for="email1">Email</label>
|
||||
<input type="email" id="email1">
|
||||
<label for="password1">Password</label>
|
||||
<input type="password" id="password1">
|
||||
</form></pre>
|
||||
</div>
|
||||
|
||||
<h3>Aligned form</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
<form class="frm aligned" autocomplete="off">
|
||||
<div class="ctrl-group">
|
||||
<label for="email3">Email</label>
|
||||
<input type="email" id="email3">
|
||||
</div>
|
||||
<div class="ctrl-group">
|
||||
<label for="password3">Password</label>
|
||||
<input type="password" id="password3">
|
||||
</div>
|
||||
</form>
|
||||
<pre class="panelcode"><form class="frm aligned">
|
||||
<div class="ctrl-group">
|
||||
<label for="email1">Email</label>
|
||||
<input type="email" id="email1">
|
||||
</div>
|
||||
<div class="ctrl-group">
|
||||
<label for="password1">Password</label>
|
||||
<input type="password" id="password1">
|
||||
</div>
|
||||
</form></pre>
|
||||
</div><br>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -73,7 +73,6 @@
|
||||
&:checked + div > label{
|
||||
color: $tabs-active-label-color;
|
||||
background: $tabs-active-label-bg-color;
|
||||
// border: 1px solid #ccc;
|
||||
border-top: $tabs-active-label-stripe;
|
||||
border-bottom: 1px solid $tabs-content-bg-color;
|
||||
& + div{
|
||||
|
Loading…
x
Reference in New Issue
Block a user