$ npm install mini.css
$ bower install mini.css
<link rel="stylesheet" href="https://gitcdn.link/repo/Chalarangelo/mini.css/master/dist/mini-default.min.css"> <link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/v2.2.0/dist/mini-default.min.css">
<h1>Heading 1<small>Subheading</small></h1> <h2>Heading 2<small>Subheading</small></h2> <h3>Heading 3<small>Subheading</small></h3> <h4>Heading 4<small>Subheading</small></h4> <h5>Heading 5<small>Subheading</small></h5> <h6>Heading 6<small>Subheading</small></h6>
This is a paragraph with some bold text and some italics text.
This is a link. This is some small text. Subscript SuperscriptInline code
Keyboard Input
This is some preformatted text.
This is some quoted text from another website or person.
<p>This is a paragraph with some <strong>bold text</strong> and some <em>italics text</em>.</p> <a href="#">This is a link.</a> <small>This is some small text.</small> <sub>Subscript</sub> <sup>Superscript</sup> <code>Inline code</code> <kbd>Keyboard Input</kbd> <hr> <pre>This is some preformatted text.</pre> <blockquote cite="www.quotation.source"> This is some quoted text from another website or person. </blockquote>
<ul> <li>Apple</li> <li>Orange</li> <li>Strawberry</li> </ul> <ol> <li>Wake up</li> <li>Eat breakfast</li> <li>Go to work</li> </ol>
Image elements () are responsive by default
<figure> <img src="https://placehold.it/800x600"> <figcaption>Image caption</figcaption> </figure>
<div class="container sample"> <div class="row"> <div class="col-sm-1"> 1 </div> <div class="col-sm-11"> 11 </div> </div> <div class="row"> <div class="col-sm-2"> 2 </div> <div class="col-sm-10"> 10 </div> </div> <div class="row"> <div class="col-sm-3"> 3 </div> <div class="col-sm-9"> 9 </div> </div> <div class="row"> <div class="col-sm-4"> 4 </div> <div class="col-sm-8"> 8 </div> </div> <div class="row"> <div class="col-sm-5"> 5 </div> <div class="col-sm-7"> 7 </div> </div> <div class="row"> <div class="col-sm-6"> 6 </div> <div class="col-sm-6"> 6 </div> </div> <div class="row"> <div class="col-sm-12"> 12 </div> <div class="row"> <div class="col-sm"> sm </div> <div class="col-sm"> sm </div> </div> </div> <div class="row"> <div class="col-md"> md </div> <div class="col-md"> md </div> <div class="col-md"> md </div> <div class="col-md"> md </div> </div> </div>
<div class="container"> <div class="row"> <div class="col-sm">sm</div> </div> <div class="row"> <div class="col-sm-12 col-md-3 col-lg-2">row1</div> <div class="col-sm-12 col-md-5 col-lg-7">row2</div> <div class="col-sm-12 col-md-4 col-lg-3">row3</div> </div> <div class="row"> <div class="col-sm">sm</div> </div> </div>
col-sm-6
col-sm-6
<div class="row cols-sm-6"> <div> <p>col-sm-6</p> </div> <div> <p>col-sm-6</p> </div> </div>
<div class="container"> <div class="row"> <div class="col-sm-10 col-sm-offset-1">offset-1</div> </div> <div class="row"> <div class="col-sm col-sm-offset-2">offset-2</div> </div> <div class="row"> <div class="col-sm-6 col-sm-offset-3">offset-3</div> </div> <div class="row"> <div class="col-sm-8 col-sm-offset-4">offset-4</div> <div class="row"> <div class="col-sm-5 col-sm-offset-1">offset-row-1</div> <div class="col-sm-5 col-sm-offset-1">offset-row-1</div> </div> </div> </div>
<div class="container sample"> <div class="row"> <div class="col-sm col-md-last col-lg-normal">md-Last, lg-Normal</div> <div class="col-sm-first col-md-normal">sm-First, md-normal</div> <div class="col-sm col-md-first col-lg-normal">md-First, lg-Normal</div> </div> </div>
Media object content...
<div class="row"> <div class="col-sm-2"> <img class="section media" src="https://placehold.it/800x600" alt="image"> </div> <div class="col-sm"> <h2>Media object heading</h2> <p>Media object content...</p> </div> </div>
<form> <fieldset> <legend>Simple form</legend> <div class="input-group fluid"> <label for="username">username</label> <input type="email" value="" id="username" placeholder="username"> </div> <div class="input-group fluid"> <label for="pwd">password</label> <input type="password" value="" id="pwd" placeholder="password"> </div> </fieldset> </form> <form> <fieldset> <legend>Responsive form</legend> <div class="row"> <div class="col-sm-12 col-md-10 col-md-offset-1"> <label for="username">username</label> <input type="email" value="" id="username" placeholder="username"> </div> </div> <div class="row"> <div class="col-sm-12 col-md-10 col-md-offset-1"> <label for="pwd">password</label> <input type="password" value="" id="pwd" placeholder="password"> </div> </div> </fieldset> </form>
<div class="input-group"> <input type="checkbox" id="check1" tabindex="0"> <label for="check1">Checkbox</label> </div> <div class="input-group"> <input type="radio" id="rad1" tabindex="0" name="radio-group-1"> <label for="rad1">Radio</label> </div>
<div class="input-group col-md-6"> <input type="checkbox" id="switch1"> <label for="switch1" class="switch">Checkbox switch</label> </div> <div class="input-group col-md-6"> <input type="radio" id="radswitch1" name="radio-group-1" checked="checked"> <label for="radswitch1" class="switch">Radio sw1</label> <br> <input type="radio" id="radswitch2" name="radio-group-1"> <label for="radswitch2" class="switch">Radio sw2</label> </div>
<button>Default button</button> <input type="button" class="primary" value="Primary button"> <input type="reset" class="secondary" value="Secondary button"> <input type="submit" class="tertiary" value="Tertiary button"> <button class="inverse">Inverse button</button> <button class="small">Small button</button> <button class="large">Large button</button> <button disabled>Disabled button</button> <a href="#" class="button">Link button</a> <a href="#" role="button">Link button</a> <label class="button">Label button</label> <label role="button">Label button</label> <div class="button-group"> <button>Button</button> <button class="primary">Button</button> <button>Button</button> <a>Button</a> </div> <div class="button-group"> <button>Button</button> <input type="reset" class="secondary" value="Secondary button"> <label class="button inverse">Label button</label> </div>
<input type="file" id="file-input"> <label for="file-input" class="button">Upload file...</label>
<header> <a href="#" class="logo">Logo</a> <button>Home</button> <a href="#" class="button">News</a> <span>|</span> <button>About</button> <a href="#" role="button">Contact</a> </header>
<nav> <a href="#">Home</a> <span>News</span> <a href="#" class="sublink-1">New Courses</a> <a href="#" class="sublink-1">Certifications</a> <span class="sublink-1">Events</span> <a href="#" class="sublink-2">Course Showcase - 12th, Dec</a> <a href="#" class="sublink-2">Staff AMA - 16th, Dec</a> <a href="#" class="sublink-1">Policy Update</a> <a href="#">About</a> <a href="#">Contact</a> </nav>
<header class="sticky"> <label for="drawer-checkbox" class="button drawer-toggle persistent"></label> <a href="#" role="button">Home</a> <a href="#" role="button">About</a> <a href="#" role="button">Contact</a> </header> <input type="checkbox" id="drawer-checkbox"> <nav class="drawer persistent"> <label for="drawer-checkbox" class="close"></label> <a href="#">Home</a> <a href="#">Home</a> <a href="#">Home</a> <a href="#">Home</a> <a href="#">Home</a> </nav>
<footer> <p>© 2001-2016 Web Corporation | <a href="#">About</a> | <a href="#">Terms of use</a></p> </footer>
Name | Surname | Alias |
---|---|---|
Chad | Wilberts | MrOne |
Adam | Smith | TheSmith |
Sophia | Canderson | Candee |
Name | Surname | Alias |
---|---|---|
Chad | Wilberts | MrOne |
Adam | Smith | TheSmith |
Sophia | Canderson | Candee |
<table> <caption>People</caption> <thead> <tr> <th>Name</th> <th>Surname</th> <th>Alias</th> </tr> </thead> <tbody> <tr> <td data-label="Name">Chad</td> <td data-label="Surname">Wilberts</td> <td data-label="Alias">MrOne</td> </tr> <tr> <td data-label="Name">Adam</td> <td data-label="Surname">Smith</td> <td data-label="Alias">TheSmith</td> </tr> <tr> <td data-label="Name">Sophia</td> <td data-label="Surname">Canderson</td> <td data-label="Alias">Candee</td> </tr> </tbody> </table>
Name | Surname | Alias |
---|---|---|
Chad | Wilberts | MrOne |
Adam | Smith | TheSmith |
Sophia | Canderson | Candee |
<table class="horizontal"> <caption>People</caption> <thead> <tr> <th>Name</th> <th>Surname</th> <th>Alias</th> </tr> </thead> <tbody> <tr> <td data-label="Name">Chad</td> <td data-label="Surname">Wilberts</td> <td data-label="Alias">MrOne</td> </tr> <tr> <td data-label="Name">Adam</td> <td data-label="Surname">Smith</td> <td data-label="Alias">TheSmith</td> </tr> <tr> <td data-label="Name">Sophia</td> <td data-label="Surname">Canderson</td> <td data-label="Alias">Candee</td> </tr> </tbody> </table>
Lawful | Neutral | Chaotic | |
---|---|---|---|
Good | Yoda | Luke Skywalker | Chewbacca |
Neutral | C-3PO | Boba Fett | Han Solo |
Bad | Darth Vader | Emperor Palpatine | Jabba the Hutt |
aaaaaaaa | aaaaaaaa |
---|---|
bbbbbbbbb | bbbbbbbbb |
<table class="preset"> <caption>Star Wars Character Alignment Table</caption> <tbody> <tr> <th></th> <th>Lawful</td> <th>Neutral</td> <th>Chaotic</td> </tr> <tr> <th>Good</th> <td>Yoda</td> <td>Luke Skywalker</td> <td>Chewbacca</td> </tr> <tr> <th>Neutral</th> <td>C-3PO</td> <td>Boba Fett</td> <td>Han Solo</td> </tr> <tr> <th>Bad</th> <td>Darth Vader</td> <td>Emperor Palpatine</td> <td>Jabba the Hutt</td> </tr> </tbody> </table> <table class="striped"> <caption>People</caption> <thead> <!-- ... --> </thead> <tbody> <!-- ... --> </tbody> </table>
Card content...
Card content...
<div class="row"> <div class="card"> <div class="section"> <h3>Card Title</h3> <p>Card content...</p> </div> </div> <div class="card"> <div class="section"> <h3>Card Title</h3> <p>Card content...</p> </div> </div> </div>
Content
<div class="row"> <div class="card"><div class="section"><h3>Card with image</h3></div><img class="section media" src="https://placehold.it/800x600" alt="image"><div class="section"><p>Content</p></div></div> <div class="card"><iframe class="section media" width="1280" height="720" src="https://www.youtube.com/embed/ScMzIvxBSi4"></iframe><div class="section"><h3>Card with video</h3></div></div> <div class="card"><div class="section"><h3>Normal section</h3></div><div class="section double-padded"><h3>Double-padded section</h3></div></div> <div class="card"><div class="section"><h3>Normal section</h3></div><div class="section dark"><h3>Dark section</h3></div><div class="section darker"><h3>Darker section</h3></div></div> </div>
Small cards are 240px
wide.
Large cards are 480px
wide.
Fluid cards scale their width based on their container. Always wrap them in a column.
<div class="row"> <div class="card small"><div class="section"><h3>Small Card</h3><p>Small cards are <code>240px</code> wide.</p></div></div> <div class="card large"><div class="section"><h3>Large Card</h3><p>Large cards are <code>480px</code> wide.</p></div></div> <div class="col-sm-12 col-md-12 col-lg"> <div class="card fluid" style="margin: 2px 10px 20px;"><div class="section"><h3>Fluid Card</h3><p>Fluid cards scale their width based on their container. Always wrap them in a column.</p></div></div> </div> </div>
Warning
Error
<div class="card warning"> <div class="section"> <p>Warning</p> </div> </div> <div class="card error"> <div class="section"> <p>Error</p> </div> </div>
This is the first tab's content.
This is the second tab's content.
This is the third tab's content.
<div class="tabs"> <input type="radio" name="tab-group" id="tab1" checked aria-hidden="true"> <label for="tab1" aria-hidden="true">Tab 1</label> <div> <h3>Tab 1</h3> <p>This is the first tab's content.</p> </div> <input type="radio" name="tab-group" id="tab2" aria-hidden="true"> <label for="tab2" aria-hidden="true">Tab 2</label> <div> <h3>Tab 2</h3> <p>This is the second tab's content.</p> </div> <input type="radio" name="tab-group" id="tab3" aria-hidden="true"> <label for="tab3" aria-hidden="true">Tab 3</label> <div> <h3>Tab 3</h3> <p>This is the third tab's content.</p> </div> </div>
This is the first accordion section's content.
This is the second accordion section's content.
This is the first collapse section's content.
This is the second collapse section's content.
<div class="tabs stacked"> <input type="radio" name="accordion" id="a1" checked aria-hidden="true"> <label for="a1" aria-hidden="true">Accordion section 1</label> <div> <h3>Section 1</h3> <p>This is the first accordion section's content.</p> </div> <input type="radio" name="accordion" id="a2"aria-hidden="true"> <label for="a2" aria-hidden="true">Accordion section 2</label> <div> <h3>Section 2</h3> <p>This is the second accordion section's content.</p> </div> </div> <div class="tabs stacked"> <input type="checkbox" id="c1" aria-hidden="true"> <label for="c1" aria-hidden="true">Collapse section 1</label> <div> <p>This is the first collapse section's content.</p> </div> <input type="checkbox" id="c2" aria-hidden="true"> <label for="c2" aria-hidden="true">Collapse section 2</label> <div> <p>This is the second collapse section's content.</p> </div> </div>
<mark>primary</mark> <mark class="secondary">secondary</mark> <mark class="tertiary">tertiary</mark> <mark class="inline-block">long highlight text...</mark> <mark class="tag">tag</mark>
<span class="toast">This is a normal toast message!</span> <span class="toast small">This is a large toast message!</span> <span class="toast large">This is a small toast message!</span>
<span class="tooltip" aria-label="This is a tooltip">Hover over this text to see a tooltip!</span> <span class="tooltip bottom" aria-label="This is a tooltip">Hover over this text to see a reverse tooltip!</span>
<progress value="0" max="1000"></progress> <progress value="450" max="1000"></progress> <progress value="1000" max="1000"></progress>
<progress class="secondary" value="600" max="1000"></progress> <progress class="tertiary" value="300" max="1000"></progress> <progress class="inline" value="150" max="1000"></progress>
<div class="spinner-donut"></div>
<div class="spinner-donut secondary"></div> <div class="spinner-donut tertiary"></div> <div class="spinner-donut large"></div>
<span class="hidden">Hidden text</span> <span class="visually-hidden">Screen-reader-only text</span>
<span class="bordered">Bordered</span> <span class="rounded">Rounded</span> <span class="circular">Circular</span> <span class="shadowed">Casts shadow</span>
<div class="responsive-padding">Responsive padding</div> <div class="responsive-margin">Responsive margin</div>
<span class="hidden-sm">Hidden in smaller screens</span> <span class="hidden-md">Hidden in medium-sized screens</span> <span class="hidden-lg">Hidden in larger screens</span> <span class="visually-hidden-sm">Visually hidden in smaller screens</span> <span class="visually-hidden-md">Visually hidden in medium-sized screens</span> <span class="visually-hidden-lg">Visually hidden in larger screens</span>
<ul class="breadcrumbs"> <li><a href="#">Root</a></li> <li><a href="#">Folder</a></li> <li>File</li> </ul>
<span class="close"></span>