Modules page updated, modules page for Nite Owl created, NiteOwl flavor built
This commit is contained in:
parent
2e43bfe76f
commit
c793cb9652
5 changed files with 3080 additions and 4 deletions
844
docs/modules-niteowl.html
Normal file
844
docs/modules-niteowl.html
Normal file
|
@ -0,0 +1,844 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>mini.css - A minimal Sass-y responsive mobile-first style-agnostic CSS framework</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="mini.css - A minimal Sass-y responsive mobile-first style-agnostic CSS framework">
|
||||
<meta name="keywords" content="mini, mini.css, CSS, responsive, framework, mobile first, style agnostic, Sass">
|
||||
<meta name="author" content="Angelos Chalaris (chalarangelo)">
|
||||
<link rel="icon" type="image/png" href="favicon.png">
|
||||
<!-- For local testing only -->
|
||||
<!-- <link rel="stylesheet" href="../flavors/mini-niteowl.min.css"> -->
|
||||
<!-- Old link -->
|
||||
<!-- <link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/6b3db97a893cf4e7ec1b9f5aa40fc5957b1b94fc/flavors/mini-default.min.css"> -->
|
||||
<!-- Correct link -->
|
||||
<link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/master/flavors/mini-niteowl.min.css">
|
||||
<style>
|
||||
.panelcode{ border-top-left-radius:0; border-top-right-radius:0; margin-bottom:0; }
|
||||
pre{ overflow: auto; }
|
||||
input[type="checkbox"].stateful{display: none;}
|
||||
input[type="checkbox"].stateful+label{display:block;}
|
||||
input[type="checkbox"].stateful+label+label{display:none;}
|
||||
input[type="checkbox"]:checked.stateful+label{display:none;}
|
||||
input[type="checkbox"]:checked.stateful+label+label{display:block;}
|
||||
.btn-grp .btn{margin-left:-5px;}
|
||||
.footer{background-color:#243447; color:#f5f5f5;}
|
||||
.footer a, .footer a:hover, .footer a:visited, .footer a:visited:hover, .footer a:active, .footer a:visited:active{color: #fff;}
|
||||
.footer a:hover{text-decoration: underline;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<input type="checkbox" class="modal" id="modal1"><div><label for="modal1" autocomplete="off"></label><div><label for="modal1"><span class="close"></span></label><h3>Modal dialog</h3><hr><p>This is a modal dialog.</p></div></div>
|
||||
<input type="checkbox" id="nav-toggle" autocomplete="off" class="hidden">
|
||||
<div class="nav fixed">
|
||||
<a href="https://chalarangelo.github.io/mini.css"><span class="logo"> <img src="favicon.png" style="height: 34px; width: auto; display: inline-block; vertical-align: middle;"> mini.css </span></a>
|
||||
<ul>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/#why-mini-css" class="link">Introduction</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/#modules" class="link">Module overview</a></li>
|
||||
<li><label class="link dropdown" for="menu-drop1">Module demos</label></li>
|
||||
</ul>
|
||||
<input type="checkbox" id="menu-drop1" class="dropdown" autocomplete="off"><div>
|
||||
<ul>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#base" class="link">Base</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#grid" class="link">Responsive Grid</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#nav" class="link">Navigation</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#dropdown" class="link">Dropdowns</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#tab" class="link">Tabs</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#table" class="link">Tables</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#form" class="link">Forms</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#button" class="link">Buttons</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#label" class="link">Labels</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#modal" class="link">Modals</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#collapse" class="link">Collapse</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#progress" class="link">Progress Bars</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#carousel" class="link">Carousel</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#utility" class="link">Utilities & Helper Classes</a></li>
|
||||
<li><a href="https://chalarangelo.github.io/mini.css/modules-niteowl#utility-extra" class="link">Utilities & Experimental Classes</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<label for="nav-toggle"></label>
|
||||
<br>
|
||||
<div class="grid-container">
|
||||
<div class="row">
|
||||
<div class="col xs-no md-1"></div>
|
||||
<div class="col xs-12 md-10">
|
||||
<h1>mini.css<small> a minimal Sass-y responsive mobile-first style-agnostic CSS framework</small></h1>
|
||||
<p>Below you can see each module in action, along with certain suggestions on how to add functionality to the various components. Bear in mind that this demo is for the <strong>NiteOwl</strong> flavor. Naming conventions may vary between flavors, however the structure and functionality of the modules should be the same. Please refer to specific flavors for those differences. The <strong><a href="https://chalarangelo.github.io/mini.css/modules">Default</a></strong> flavor uses the same naming conventions for the module components, so you won't have any trouble. If you are migrating from Bootstrap and want to use the <strong>Bootstrap</strong> flavor, most naming conventions are based on the original naming conventions of Bootstrap 3.3.7.</p>
|
||||
<p><strong>To use the Default flavor, add the following code inside your HTML page's <code><head></code> tag:</strong></p>
|
||||
<pre style="overflow: auto;"><link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/master/flavors/mini-niteowl.min.css"></pre><br>
|
||||
|
||||
<h2 id="base">Base</h2>
|
||||
<p>The Base module contains customized typography rules, colors and most of the functionality provided in <a href="https://necolas.github.io/normalize.css/">normalize.css</a>. Below we showcase some of the most important typography styles.</p>
|
||||
|
||||
<h3>Fonts, sizes and colors</h3>
|
||||
<p>The NiteOwl flavor uses the <strong>Helvetica</strong> font family and a font-size of <strong>1em</strong> with a line-height of <strong>1.5</strong>. Colors used are <strong>#151f29</strong> for the background and <strong#f5f5f5</strong> for the text. Most of the things in this module are subjective to one's preferences and should be changed according to your liking. Heading, <code><sub></code>, <code><sup></code> and <code><small></code> elements use multipliers, so changing the base font-size should affect those too. Apart from that, colors and styles for links can easily be changed, as well as a lot of other parameters. Images are responsive by default, so they will shrink to fit smaller viewports without any additional work. Below we highlight some important things, like heading and code styling, but you can see most of the typography rules in action in these pages.</p>
|
||||
|
||||
<h3>Headings</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
<h1>Heading 1 <small>small text</small></h1>
|
||||
<h2>Heading 2 <small>small text</small></h2>
|
||||
<h3>Heading 3 <small>small text</small></h3>
|
||||
<h4>Heading 4 <small>small text</small></h4>
|
||||
<h5>Heading 5 <small>small text</small></h5>
|
||||
<h6>Heading 6 <small>small text</small></h6>
|
||||
<pre class="panelcode"><h1>Heading 1 <small>small text</small></h1>
|
||||
<h2>Heading 2 <small>small text</small></h2>
|
||||
<h3>Heading 3 <small>small text</small></h3>
|
||||
<h4>Heading 4 <small>small text</small></h4>
|
||||
<h5>Heading 5 <small>small text</small></h5>
|
||||
<h6>Heading 6 <small>small text</small></h6></pre>
|
||||
</div>
|
||||
|
||||
<h3>Code, <code><pre></code> and <code><kbd></code> elements</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
<p>Inline code looks like <code>this</code>. User input looks like <kbd>this</kbd>. Finally, code blocks look like...</p>
|
||||
<pre style="margin-left: 10px; margin-right: 10px;">this! This is a code block!</pre>
|
||||
<br><pre class="panelcode"><code>Inline code</code>
|
||||
<kbd>User input</kbd>
|
||||
<pre>Code block</pre></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="grid">Responsive grid</h2>
|
||||
<p>The grid system provided can be fully customized to use as many columns as you wish and have custom breakpoints for different device sizes. The default grid uses 12 columns (as shown below). Customized classes are also defined to hide certain columns in certain viewport sizes. This can be specifically used to customize column offseting on different devices.</p>
|
||||
|
||||
<h3>Grid structure</h3>
|
||||
<p>The basic grid structure is as follows:</p>
|
||||
<ul>
|
||||
<li>The outer wrapper of the grid system uses the <code>.grid-container</code> class.</li>
|
||||
<li>Inside this wrapper, rows can be defined using the <code>.row</code> class.</li>
|
||||
<li>Inside the rows, columns can be defined using the <code>.col</code> class.</li>
|
||||
<li>Column width can be specified for different devices using the respective class prefixes (<code>.xs-</code>, <code>.sm-</code>, <code>.md-</code>, <code>.lg-</code>) followed by the width (in columns) of the specific column.</li>
|
||||
<li>Columns can be hidden in certain viewports, using the <code>-no</code> suffix for the specific screen size.</li>
|
||||
</ul>
|
||||
|
||||
<h3>12-column grid example</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
<div class="grid-container">
|
||||
<div class="row">
|
||||
<div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div>
|
||||
<div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div>
|
||||
<div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div>
|
||||
<div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div><div class="col xs-1 bordered">1/12</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-2 bordered">1/6</div><div class="col xs-2 bordered">1/6</div><div class="col xs-2 bordered">1/6</div>
|
||||
<div class="col xs-2 bordered">1/6</div><div class="col xs-2 bordered">1/6</div><div class="col xs-2 bordered">1/6</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-3 bordered">1/4</div><div class="col xs-3 bordered">1/4</div><div class="col xs-3 bordered">1/4</div>
|
||||
<div class="col xs-3 bordered">1/4</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-4 bordered">1/3</div><div class="col xs-4 bordered">1/3</div><div class="col xs-4 bordered">1/3</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-6 bordered">1/2</div><div class="col xs-6 bordered">1/2</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-12 bordered">1/1</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre class="panelcode"><div class="grid-container">
|
||||
<div class="row">
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
<div class="col xs-1">1/12</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-2">1/6</div>
|
||||
<div class="col xs-2">1/6</div>
|
||||
<div class="col xs-2">1/6</div>
|
||||
<div class="col xs-2">1/6</div>
|
||||
<div class="col xs-2">1/6</div>
|
||||
<div class="col xs-2">1/6</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-3">1/4</div>
|
||||
<div class="col xs-3">1/4</div>
|
||||
<div class="col xs-3">1/4</div>
|
||||
<div class="col xs-3">1/4</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-4">1/3</div>
|
||||
<div class="col xs-4">1/3</div>
|
||||
<div class="col xs-4">1/3</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-6">1/2</div>
|
||||
<div class="col xs-6">1/2</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col xs-12">1/1</div>
|
||||
</div>
|
||||
</div></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="nav">Navigation</h2>
|
||||
<p>The navigation system provided contains custom classes for the navigation bar, logo and links. Navigation bars can be horizontal or vertical, fixed or otherwise. Navigation bars are responsive by default, so fixed navigation bars will properly shrink down to a button on smaller screens and, when the menu is opened, it will be displayed on top of the page's content.</p>
|
||||
|
||||
<h3>Navigation structure</h3>
|
||||
<p>The structure of the navigation system is as follows:</p>
|
||||
<ul>
|
||||
<li>You should wrap your navigation system in a <code><div></code> with the <code>.nav</code> class.</li>
|
||||
<li>If you want your navigation bar to be vertical (horizontal is the default), use the <code>.vertical</code> class.</li>
|
||||
<li>If you want your navigation bar to be fixed, use the <code>.fixed</code> class.</li>
|
||||
<li>Use an element with the <code>.logo</code> class for your website's logo.</li>
|
||||
<li>For the navigation links, use an unordered list (<code><ul></code>) and <strong>inside</strong> each <code><li></code> element, add another element with the <code>.link</code> class to stylize the element as a navigation link.</li>
|
||||
<li>Responsiveness can be added for fixed navigation bars by adding a hidden <code><input type="checkbox"></code> right before the navigation bar and a label linking to that specific checkbox right after the navigation bar.</li>
|
||||
<li>Use <code>autocomplete="off"</code> to make your menu not open by default in mobile devices.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Horizontal navigation bar</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4><br>
|
||||
<div class="nav" style="margin-left: 10px; margin-right: 10px;">
|
||||
<span class="logo">Logo</span>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 1</a></li>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
</ul>
|
||||
</div><br>
|
||||
<pre class="panelcode"><div class="nav">
|
||||
<span class="logo">Logo</span>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 1</a></li>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
</ul>
|
||||
</div></pre>
|
||||
</div>
|
||||
|
||||
<h3>Vertical navigation bar</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4><br>
|
||||
<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>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
</ul>
|
||||
</div><br>
|
||||
<pre class="panelcode"><div class="nav vertical">
|
||||
<span class="logo">Logo</span>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 1</a></li>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
</ul>
|
||||
</div></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="dropdown">Dropdowns</h2>
|
||||
<p>The dropdown module is an extra module that allows you to add dropdown components to your navigation bars. These components can be customized and work well on mobile devices. <strong>Using too many dropdowns or nesting dropdowns is yet undocumented and might cause unexpected behavior.</strong></p>
|
||||
|
||||
<h3>Dropdown structure</h3>
|
||||
<p>The basic structure of dropdowns is as follows</p>
|
||||
<ul>
|
||||
<li>To add a dropdown component, add the <code>.dropdown</code> class to one of your link elements inside the navigation bar.</li>
|
||||
<li>Add an <code><input type="checkbox"></code> with the <code>.dropdown</code> class and right after it a <code><div></code> element that contains an unordered list with list elements that contains navigation links, exactly like you would make a normal navigation menu.</li>
|
||||
<li>For multiple dropdowns, you should use <code><input type="radio"></code> elements.</li>
|
||||
<li>On mobile devices, there might be issues with the dropdown not closing after a link is clicked (mainly when it links to the same page). This can be easily dealt with using javascript (by making all the links inside the dropdown's <code><div></code> element uncheck the navigation bar's checkbox) or using <code><label></code> elements creatively inside the links.</li>
|
||||
<li>Use <code>autocomplete="off"</code> to make your dropdown not open by default in mobile devices.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Horizontal navigation dropdown example</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4><br>
|
||||
<div class="nav">
|
||||
<span class="logo">Logo</span>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 1</a></li>
|
||||
<li><label class="link dropdown" for="dropdown1">Dropdown</label></li>
|
||||
</ul>
|
||||
<input type="checkbox" id="dropdown1" class="dropdown" autocomplete="off">
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
<li><a href="#" class="link">Link 3</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><br>
|
||||
<pre class="panelcode"><div class="nav">
|
||||
<span class="logo">Logo</span>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 1</a></li>
|
||||
<li><label class="link dropdown" for="dropdown1">Dropdown</label></li>
|
||||
</ul>
|
||||
<input type="checkbox" id="dropdown1" class="dropdown" autocomplete="off">
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
<li><a href="#" class="link">Link 3</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div></pre>
|
||||
</div>
|
||||
|
||||
<h3>Vertical navigation dropdown example</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4><br>
|
||||
<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>
|
||||
<li><label class="link dropdown" for="dropdown2">Dropdown</label></li>
|
||||
</ul>
|
||||
<input type="checkbox" id="dropdown2" class="dropdown" autocomplete="off">
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
<li><a href="#" class="link">Link 3</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><br>
|
||||
<pre class="panelcode"><div class="nav vertical">
|
||||
<span class="logo">Logo</span>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 1</a></li>
|
||||
<li><label class="link dropdown" for="dropdown1">Dropdown</label></li>
|
||||
</ul>
|
||||
<input type="checkbox" id="dropdown1" class="dropdown" autocomplete="off">
|
||||
<div>
|
||||
<ul>
|
||||
<li><a href="#" class="link">Link 2</a></li>
|
||||
<li><a href="#" class="link">Link 3</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</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><br>
|
||||
|
||||
<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><br>
|
||||
|
||||
<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>
|
||||
|
||||
<h2 id="button">Buttons</h2>
|
||||
<p>Use the <code>.btn</code> class on <code><button></code>, <code><a></code>, <code><label></code> or similar elements to give them a unique style. Color variants are provided (<code>.red</code>, <code>.green</code> and <code>.blue</code>), as well as size variants (<code>.sm</code> and <code>.lg</code>).</p>
|
||||
|
||||
<h3>Button styles and variants</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<button class="btn">Default button</button>
|
||||
<button class="btn red">Red button</button>
|
||||
<button class="btn green">Green button</button>
|
||||
<button class="btn blue">Blue button</button>
|
||||
<button class="btn sm">Small button</button>
|
||||
<button class="btn lg">Large button</button><br><br>
|
||||
<pre class="panelcode"><button class="btn">Default button</button>
|
||||
<button class="btn red">Red button</button>
|
||||
<button class="btn green">Green button</button>
|
||||
<button class="btn blue">Blue button</button>
|
||||
<button class="btn sm">Small button</button>
|
||||
<button class="btn lg">Large button</button></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="label">Labels & Badges</h2>
|
||||
<p>Use the <code>.lbl</code> or <code>.bdg</code> class on any elements to style them like labels or badges. Color variants are provided (<code>.red</code>, <code>.green</code> and <code>.blue</code>) for both of these styles.</p>
|
||||
|
||||
<h3>Labels and badge styles</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<span class="lbl">Label</span>
|
||||
<span class="lbl red">Red label</span>
|
||||
<span class="lbl green">Green label</span>
|
||||
<span class="lbl blue">Blue label</span>
|
||||
<span class="bdg">12</span>
|
||||
<span class="bdg red">3</span>
|
||||
<span class="bdg green">45</span>
|
||||
<span class="bdg blue">6</span><br><br>
|
||||
<pre class="panelcode"><span class="lbl">Label</span>
|
||||
<span class="lbl red">Red label</span>
|
||||
<span class="lbl green">Green label</span>
|
||||
<span class="lbl blue">Blue label</span>
|
||||
|
||||
<span class="bdg">12</span>
|
||||
<span class="bdg red">3</span>
|
||||
<span class="bdg green">45</span>
|
||||
<span class="bdg blue">6</span></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="modal">Modals</h2>
|
||||
<p>Modal dialogs can be easily added and customized to the user's liking and offer support for the close button utility. <strong>Showing more than one modal dialog at once might have unexpected results and is not encouraged.</strong></p>
|
||||
|
||||
<h3>Modal dialog structure</h3>
|
||||
<p>The basic structure of a modal dialog is as follows:</p>
|
||||
<ul>
|
||||
<li>Use the <code>.modal</code> class on an <code><input type="checkbox"></code>. <strong>Place this checkbox along with any other elements specified below at the very start of your <code><body></code>.</strong></li>
|
||||
<li>Add a <code><div></code> right after the checkbox. Inside it add a second <code><div></code> with your modal dialog's contents, as well as a <code><label></code> for the checkbox <strong>without any content inside it.</strong> This label will act as the overlay behind the modal. If you do not want clicking the background to close the modal dialog, add the label without linking it to the checkbox.</li>
|
||||
<li>If you have enabled close button support, you can add a <code><span class="close"></code> inside a label for the checkbox in the innermost <code><div></code> to add a close button to the top right corner of your modal dialog.</li>
|
||||
<li>Finally, add a label linking to the modal dialog's checkbox anywhere in your page. You can also toggle the modal using Javascript, by setting the checkbox's state to <code>checked</code>.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Modal dialog example</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<label for="modal1" class="btn red">Open modal</label><br><br>
|
||||
<pre class="panelcode"><input type="checkbox" class="modal" id="modal1">
|
||||
<div>
|
||||
<label for="modal1" autocomplete="off"></label>
|
||||
<div>
|
||||
<label for="modal1">
|
||||
<span class="close"></span>
|
||||
</label>
|
||||
<h3>Modal dialog</h3>
|
||||
<hr>
|
||||
<p>This is a modal dialog.</p>
|
||||
</div>
|
||||
</div>
|
||||
...
|
||||
<label for="modal1" class="btn red">Open modal</label></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="collapse">Collapse</h2>
|
||||
<p>The collapse module adds two components with similar functionality. </p>
|
||||
<ul>
|
||||
<li>Single collapse components can be created by adding the <code>.clps</code> class on an <code><input type="checkbox"></code> element, followed by a <code><div></code> with the content to be hidden/shown based on the collapse's state.</li>
|
||||
<li>Similarly, accordion collapse components can be created by adding the <code>.acrd</code> class to as many <code><input type="radio"></code> elements as you want. You should add a <code><label></code> linking to each radio immediately after it, followed by a <code><div></code> with the content to be hidden/shown based on the accordion's state. </li>
|
||||
<li>You can use the single collapse component's styling for a set of radio buttons or the accordion's styling for a single checkbox if you would like to use a different styling for your collapse components without adding new CSS definitions.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Single collapse style</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<label for="collapse1" class="btn blue">Toggle collapse</label><br>
|
||||
<input type="checkbox" class="clps" id="collapse1" autocomplete="off"><div class="well" style="margin-left: 10px; margin-right: 10px;">This text will be shown or hidden based on the above button.</div><br>
|
||||
<pre class="panelcode"><label for="collapse1" class="btn blue">Toggle collapse</label>
|
||||
<input type="checkbox" class="clps" id="collapse1">
|
||||
<div>This text will be shown or hidden based on the above button.</div></pre>
|
||||
</div>
|
||||
|
||||
<h3>Accordion style</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4>
|
||||
<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>
|
||||
<div>This is the second collapse of the accordion.</div>
|
||||
<input type="radio" class="acrd" id="acrd3" autocomplete="off" name="accordion"><label for="acrd3">Third option</label>
|
||||
<div>This is the final collapse of the accordion.</div>
|
||||
</div>
|
||||
<pre class="panelcode"><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>
|
||||
<div>This is the second collapse of the accordion.</div>
|
||||
<input type="radio" class="acrd" id="acrd3" autocomplete="off" name="accordion">
|
||||
<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>
|
||||
|
||||
<h2 id="carousel">Carousel</h2>
|
||||
<p>The carousel module allows you to create manually-controlled image slideshows for your pages. <strong>Nested carousels might cause unexpected behavior, please refrain from using them.</strong></p>
|
||||
|
||||
<h3>Carousel structure</h3>
|
||||
<p>The base structure for the carousel component is as follows:</p>
|
||||
<ul>
|
||||
<li>Specify a carousel wrapper, using the <code>.carousel</code> class on a <code><div></code> element.</li>
|
||||
<li>Inside the wrapper, add the an <code><input type="radio"></code>, followed immediately by a <code><div></code> element. Inside the latter, add an <code><img></code> element, followed by a <code><div></code> element which will act as the image's description. Finally, right after closing the first <code><div></code> element, add a <code><label></code> linked to the radio button for the image.</li>
|
||||
<li>Repeat the process as many times as you want to add more images. <strong>Remember that you cannot skip the description <code><div></code> element, even if it is empty, as it is required for the component to work properly.</strong></li>
|
||||
<li>Add the <code>checked</code> attribute to the first radio button of your carousel (or the one corresponding to the image you want to be displayed by default) to make the carousel work properly.</li>
|
||||
</ul>
|
||||
<p><strong>Auto-scrolling is not enabled by default in this carousel component.</strong> If you want the carousel to scroll automatically, you can check each of the radio buttons automatically using Javascript on set intervals. Using a similar technique you can pause the automatic scrolling when the user's cursor is inside the carousel.</p>
|
||||
|
||||
<h3>Carousel example</h3>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<div class="carousel">
|
||||
<input type="radio" name="carousel-control" id="crs1" checked>
|
||||
<div>
|
||||
<img src="favicon.png">
|
||||
<div>
|
||||
<h3>First image</h3>
|
||||
<p>This is a sample image description.</p>
|
||||
</div>
|
||||
</div>
|
||||
<label for="crs1"></label>
|
||||
<input type="radio" name="carousel-control" id="crs2">
|
||||
<div>
|
||||
<img src="favicon.png" style="transform: scale(1,-1);">
|
||||
<div>
|
||||
<h3>Second image</h3>
|
||||
<p>This is another sample image description.</p>
|
||||
</div>
|
||||
</div>
|
||||
<label for="crs2"></label>
|
||||
<input type="radio" name="carousel-control" id="crs3">
|
||||
<div>
|
||||
<img src="favicon.png" style="transform: scale(-1,-1);">
|
||||
<div>
|
||||
<h3>Third image</h3>
|
||||
<p>This is yet another image description.</p>
|
||||
</div>
|
||||
</div>
|
||||
<label for="crs3"></label>
|
||||
</div>
|
||||
<br>
|
||||
<pre class="panelcode"><div class="carousel">
|
||||
<input type="radio" name="carousel-control" id="crs1" checked>
|
||||
<div>
|
||||
<img src="favicon.png">
|
||||
<div>
|
||||
<h3>First image</h3>
|
||||
<p>This is a sample image description.</p>
|
||||
</div>
|
||||
</div>
|
||||
<label for="crs1"></label>
|
||||
<input type="radio" name="carousel-control" id="crs2">
|
||||
<div>
|
||||
<img src="favicon.png" style="transform: scale(1,-1);">
|
||||
<div>
|
||||
<h3>Second image</h3>
|
||||
<p>This is another sample image description.</p>
|
||||
</div>
|
||||
</div>
|
||||
<label for="crs2"></label>
|
||||
<input type="radio" name="carousel-control" id="crs3">
|
||||
<div>
|
||||
<img src="favicon.png" style="transform: scale(-1,-1);">
|
||||
<div>
|
||||
<h3>Third image</h3>
|
||||
<p>This is yet another image description.</p>
|
||||
</div>
|
||||
</div>
|
||||
<label for="crs3"></label>
|
||||
</div></pre>
|
||||
</div><br>
|
||||
|
||||
<h2 id="utility">Utilities & Helper classes</h2>
|
||||
<p>The core utilities module contains a set of useful utilities and helper classes to make common tasks easier when developing new pages.</p>
|
||||
|
||||
<h3>Generic borders</h3>
|
||||
<p>By using the <code>opacity</code> CSS property in a creative way, along with <code>border-radius</code>es, we have created utility classes that will create generic borders for virtually any element you want. Simply add the <code>.bordered</code> class to create a generic border around an element. You can also use the <code>.rounded</code> and <code>.circle</code> classes (with or without the border style) to create reounded or circular corners for different elements accordingly.</p>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<span>Button with generic border:</span> <button class="btn blue bordered">Button</button><br>
|
||||
<span>Image with generic border and rounded corners:</span> <img class="bordered rounded" src="favicon.png" style="height: 100px; width: auto; display:inline-block;vertical-align: middle;"><br>
|
||||
<span>Image with circular corners:</span> <img class="circle" src="favicon.png" style="height: 100px; width: auto; display:inline-block;vertical-align: middle;"><br>
|
||||
<pre class="panelcode"><button class="btn blue bordered">Button</button>
|
||||
<img class="bordered rounded" src="favicon.png">
|
||||
<img class="circle" src="favicon.png"></pre>
|
||||
</div>
|
||||
|
||||
|
||||
<h3>Contextual colors and backgrounds</h3>
|
||||
<p>You can easily add contextual text or background color to certain textual elements by simply using one of the contextual prefixes (<code>.txt-</code> and <code>.bg-</code> respectively) and a color suffix (<code>red</code>, <code>green</code> or <code>blue</code>).</p>
|
||||
<div class="panel" ><h4 class="head">Example</h4>
|
||||
<p>Here is some text with contextual colors: <span class="txt-red">red</span>, <span class="txt-green">green</span> & <span class="txt-blue">blue</span>.<br>
|
||||
And here is some text with contextual backgrounds: <span class="bg-red">red</span>, <span class="bg-green">green</span> & <span class="bg-blue">blue</span>.</p>
|
||||
<pre class="panelcode"><span class="txt-red">red text</span>
|
||||
<span class="txt-green">green text</span>
|
||||
<span class="txt-blue">blue text</span>
|
||||
|
||||
<span class="bg-red">red background</span>
|
||||
<span class="bg-green">green background</span>
|
||||
<span class="bg-blue">blue background</span></pre>
|
||||
</div>
|
||||
|
||||
<h3>Image thumbnails</h3>
|
||||
<p>Image thumbnails can be used to stylize images by adding a custom border around them by simply using the <code>.thumb</code> class.</p>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<img class="thumb" src="favicon.png" style="height: 100px; width: auto; display:inline-block;"><br><br>
|
||||
<pre class="panelcode"><img class="thumb" src="favicon.png"></pre>
|
||||
</div>
|
||||
|
||||
<h3>Utility symbols</h3>
|
||||
<p>You can easily add carets and close symbols by using the <code>.caret</code> and <code>.close</code> classes respectively.</p>
|
||||
<div class="panel" ><h4 class="head">Example</h4>
|
||||
<span class="caret" style="padding:0;"></span>
|
||||
<span class="close"></span><br>
|
||||
<pre class="panelcode"><span class="caret"></span>
|
||||
<span class="close"></span></pre>
|
||||
</div>
|
||||
|
||||
<h3>Helper classes</h3>
|
||||
<p>Apart from the above utilities, there are some extra classes provided to help streamline the development process. Some of these classes use the <code class="txt-red">!important</code> property to override other styles, so be careful when using them. The provided helper classes are as follows:</p>
|
||||
<ul>
|
||||
<li>Quick floats can be created using the <code>.drg-left</code> and <code>.drg-right</code> classes.</li>
|
||||
<li>Center content blocks can be created using the <code>.ct-block</code> class.</li>
|
||||
<li>Utilize the popular <a href="http://nicolasgallagher.com/micro-clearfix-hack/">micro clearfix hack</a> using the <code>.cf</code> class.</li>
|
||||
<li>Use the <code>.hidden</code> class to hide any content you wish.</li>
|
||||
</ul>
|
||||
|
||||
<h2 id="utility-extra">Utilities & Experimental classes</h2>
|
||||
<p>The extra utilities module contains some more useful utilities, as well as some more experimental and unstable utility classes, that some people might find of use. <strong>Any components marked as experimental might be unstable and behave unexpectedly, use at your own risk!</strong></p>
|
||||
|
||||
<h3>Breadcrumbs</h3>
|
||||
<p>Create breadcrumbs to indicate the navigational hierarchy of a page's location, using the <code>.brdcrmb</code> class on a list element.</p>
|
||||
<div class="panel" ><h4 class="head">Example</h4>
|
||||
<ol class="brdcrmb">
|
||||
<li><a href="#">Core</a></li>
|
||||
<li><a href="#">Modules</a></li>
|
||||
<li>Utility</li>
|
||||
</ol>
|
||||
<pre class="panelcode"><ol class="brdcrmb">
|
||||
<li><a href="#">Core</a></li>
|
||||
<li><a href="#">Modules</a></li>
|
||||
<li>Utility</li>
|
||||
</ol></pre>
|
||||
</div>
|
||||
|
||||
<h3>Containers</h3>
|
||||
<p>There are multiple types of generic containers provided:</p>
|
||||
<ul>
|
||||
<li>Wells can be created using the <code>.well</code> class and are the simplest type of generic container.</li>
|
||||
<li>Alerts are similar to wells, but are contextualized can be toggled on or off (manually or using scripts). Use the <code>.alert-</code> prefix on an <code><input type="checkbox"></code> along with a color suffix (<code>red</code>, <code>green</code> or <code>blue</code>) and a <code><div></code> element to create an alert. Adding a <code><span class="close"></li> element inside a label pointing to the alert's checkbox will allow user to dismiss the alert.</code>
|
||||
<li>Panels are similar to wells, but looks like application windows. You can create a panel using the <code>.panel</code> class and you can specify a title element for your panel using the <code>.head</code> class on the very first element of your panel.</li>
|
||||
</ul>
|
||||
<div class="panel" ><h4 class="head">Example</h4><br>
|
||||
<strong>Well:</strong><br><br>
|
||||
<div class="well" style="margin-left: 10px; margin-right: 10px;">This is a well.</div><br>
|
||||
<strong>Alerts:</strong><br><br>
|
||||
<input type="checkbox" id="alert1" class="alert-red" checked><div style="margin-left: 10px; margin-right: 10px;">This is a red alert without a close button.</div><br>
|
||||
<input type="checkbox" id="alert2" class="alert-green" checked><div style="margin-left: 10px; margin-right: 10px;">This is a green alert with a <a href="#">link</a> but no close button either.</div><br>
|
||||
<input type="checkbox" id="alert3" class="alert-blue" checked autocomplete="off"><div style="margin-left: 10px; margin-right: 10px;">This is a blue alert with a close button. <label for="alert3"><span class="close"></span></label></div><br>
|
||||
<strong>Panel:</strong><br><br>
|
||||
<div class="panel" style="margin-left: 10px; margin-right: 10px; padding:0"><h3 class="head">Panel head</h3>
|
||||
<p>This is a panel.</p>
|
||||
</div><br>
|
||||
<pre class="panelcode"><div class="well">This is a well.</div>
|
||||
|
||||
<input type="checkbox" id="alert1" class="alert-red" checked>
|
||||
<div>This is a red alert without a close button.</div>
|
||||
<input type="checkbox" id="alert2" class="alert-green" checked>
|
||||
<div>This is a green alert with a <a href="#">link</a> but no close button either.</div>
|
||||
<input type="checkbox" id="alert3" class="alert-blue" checked>
|
||||
<div>This is a blue alert with a close button. <label for="alert3"><span class="close"></span></label></div>
|
||||
|
||||
<div class="panel">
|
||||
<h3 class="head">Panel head</h3>
|
||||
<p>This is a panel.</p>
|
||||
</div></pre>
|
||||
</div>
|
||||
|
||||
<h3>Popovers</h3>
|
||||
<p>You can show a small overlay of content when the user clicks on specific elements using the <code>.popover-</code> prefix on an <code><input type="checkbox"></code> along with the <code>top</code> or <code>bottom</code> suffix. Add a <code><label></code> right after the checkbox linked to it and inside it add another element with the popover's class you are using. When you click the label, the popover will appear above or below the label. Click on the label again or the popover text itself to hide it.</p>
|
||||
<div class="panel" style="margin-left: 10px; margin-right: 10px; padding:0"><h4 class="head">Example</h4><br>
|
||||
<input type="checkbox" id="popover1" class="popover-top" autocomplete="off"><label for="popover1" class="btn green">Open top popover<span class="popover-top">This is the popover text.</span></label>
|
||||
|
||||
<input type="checkbox" id="popover2" class="popover-bottom" autocomplete="off"><label for="popover2" class="btn red">Open bottom popover<span class="popover-bottom">This is the popover text.</span></label><br><br>
|
||||
<pre class="panelcode"><input type="checkbox" id="popover1" class="popover-top" autocomplete="off">
|
||||
<label for="popover1" class="btn green">Open top popover
|
||||
<span class="popover-top">This is the popover text.</span>
|
||||
</label>
|
||||
|
||||
<input type="checkbox" id="popover2" class="popover-bottom" autocomplete="off">
|
||||
<label for="popover2" class="btn red">Open bottom popover
|
||||
<span class="popover-bottom">This is the popover text.</span>
|
||||
</label></pre>
|
||||
</div>
|
||||
|
||||
<h3>Experimental components</h3>
|
||||
<p>There are two experimental components provided, stateful buttons and button groups:
|
||||
<ul><li>To create a stateful button apply the <code>.stateful</code> class to an <code><input type="checkbox"></code>, followed by two labels (the first is for the inactive state and the second one for the active state).<strong>This component is not enabled by default as it is unstable, you can enable it manually.</strong></li>
|
||||
<li>To create a button group, use the <code>.btn-grp</code> class to wrap a set of <code>.btn</code> elements.<strong>This component is considered stable enough, so it is enabled by default, you can disable it manually.</strong></li></ul>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
<input type="checkbox" id="stateful1" class="stateful" autocomplete="off"><label for="stateful1" class="btn blue" style="margin-left: 10px; margin-right: 10px;width:200px;">Click to load</label><label class="btn blue" style="margin-left: 10px; margin-right: 10px;width:200px;">Loading...</label>
|
||||
<div class="btn-grp">
|
||||
<button class="btn">1</button>
|
||||
<button class="btn">2</button>
|
||||
<button class="btn">3</button>
|
||||
<button class="btn">4</button>
|
||||
</div>
|
||||
<pre class="panelcode"><input type="checkbox" id="stateful1" class="stateful" autocomplete="off">
|
||||
<label for="stateful1" class="btn blue">Click to load</label>
|
||||
<label class="btn blue">Loading...</label>
|
||||
|
||||
<div class="btn-grp">
|
||||
<button class="btn">1</button>
|
||||
<button class="btn">2</button>
|
||||
<button class="btn">3</button>
|
||||
<button class="btn">4</button>
|
||||
</div></pre>
|
||||
</div><br>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row footer">
|
||||
<div class="col xs-no md-1"></div>
|
||||
<div class="col xs-12 md-10 footer">
|
||||
<p style="padding-top: 10px;"><strong>mini.css</strong> was designed and built by <a href="https://github.com/Chalarangelo">@Chalarangelo</a>. It is licensed under the <a href="https://github.com/Chalarangelo/mini.css/blob/master/LICENSE">MIT License</a>. You can view the project's source code on <a href="https://github.com/Chalarangelo/mini.css">Github</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -65,13 +65,15 @@
|
|||
<div class="col xs-no md-1"></div>
|
||||
<div class="col xs-12 md-10">
|
||||
<h1>mini.css<small> a minimal Sass-y responsive mobile-first style-agnostic CSS framework</small></h1>
|
||||
<p>Below you can see each module in action, along with certain suggestions on how to add functionality to the various components. Bear in mind that this demo is for the <strong>Default</strong> flavor. Naming conventions may vary between flavors, however the structure and functionality of the modules should be the same. Please refer to specific flavors for those differences. The <strong>NiteOwl</strong> flavor uses the same naming conventions for the module components, so you won't have any trouble. If you are migrating from Bootstrap and want to use the <strong>Bootstrap</strong> flavor, most naming conventions are based on the original naming conventions of Bootstrap 3.3.7.</p><br>
|
||||
<p>Below you can see each module in action, along with certain suggestions on how to add functionality to the various components. Bear in mind that this demo is for the <strong>Default</strong> flavor. Naming conventions may vary between flavors, however the structure and functionality of the modules should be the same. Please refer to specific flavors for those differences. The <strong><a href="https://chalarangelo.github.io/mini.css/modules-niteowl">NiteOwl</a></strong> flavor uses the same naming conventions for the module components, so you won't have any trouble. If you are migrating from Bootstrap and want to use the <strong>Bootstrap</strong> flavor, most naming conventions are based on the original naming conventions of Bootstrap 3.3.7.</p>
|
||||
<p><strong>To use the Default flavor, add the following code inside your HTML page's <code><head></code> tag:</strong></p>
|
||||
<pre style="overflow: auto;"><link rel="stylesheet" href="https://cdn.rawgit.com/Chalarangelo/mini.css/master/flavors/mini-default.min.css"></pre><br>
|
||||
|
||||
<h2 id="base">Base</h2>
|
||||
<p>The Base module contains customized typography rules, colors and most of the functionality provided in <a href="https://necolas.github.io/normalize.css/">normalize.css</a>. Below we showcase some of the most important typography styles.</p>
|
||||
|
||||
<h3>Fonts, sizes and colors</h3>
|
||||
<p>The default flavor uses the <strong>Helvetica</strong> font family and a font-size of <strong>1em</strong> with a line-height of <strong>1.5</strong>. Colors used are <strong>#f5f5f5</strong> for the background and <strong>#222</strong> for the text. Most of the things in this module are subjective to one's preferences and should be changed according to your liking. Heading, <code><sub></code>, <code><sup></code> and <code><small></code> elements use multipliers, so changing the base font-size should affect those too. Apart from that, colors and styles for links can easily be changed, as well as a lot of other parameters. Images are responsive by default, so they will shrink to fit smaller viewports without any additional work. Below we highlight some important things, like heading and code styling, but you can see most of the typograhpy rules in action in these pages.</p>
|
||||
<p>The default flavor uses the <strong>Helvetica</strong> font family and a font-size of <strong>1em</strong> with a line-height of <strong>1.5</strong>. Colors used are <strong>#f5f5f5</strong> for the background and <strong>#222</strong> for the text. Most of the things in this module are subjective to one's preferences and should be changed according to your liking. Heading, <code><sub></code>, <code><sup></code> and <code><small></code> elements use multipliers, so changing the base font-size should affect those too. Apart from that, colors and styles for links can easily be changed, as well as a lot of other parameters. Images are responsive by default, so they will shrink to fit smaller viewports without any additional work. Below we highlight some important things, like heading and code styling, but you can see most of the typography rules in action in these pages.</p>
|
||||
|
||||
<h3>Headings</h3>
|
||||
<div class="panel"><h4 class="head">Example</h4>
|
||||
|
@ -516,7 +518,7 @@
|
|||
<li>Use the <code>.modal</code> class on an <code><input type="checkbox"></code>. <strong>Place this checkbox along with any other elements specified below at the very start of your <code><body></code>.</strong></li>
|
||||
<li>Add a <code><div></code> right after the checkbox. Inside it add a second <code><div></code> with your modal dialog's contents, as well as a <code><label></code> for the checkbox <strong>without any content inside it.</strong> This label will act as the overlay behind the modal. If you do not want clicking the background to close the modal dialog, add the label without linking it to the checkbox.</li>
|
||||
<li>If you have enabled close button support, you can add a <code><span class="close"></code> inside a label for the checkbox in the innermost <code><div></code> to add a close button to the top right corner of your modal dialog.</li>
|
||||
<li>Finally, add a label lining to the modal dialog's checkbox anywhere in your page. You can also toggle the modal using Javascript, by setting the checkbox's state to <code>checked</code>.</li>
|
||||
<li>Finally, add a label linking to the modal dialog's checkbox anywhere in your page. You can also toggle the modal using Javascript, by setting the checkbox's state to <code>checked</code>.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Modal dialog example</h3>
|
||||
|
@ -543,7 +545,7 @@
|
|||
<ul>
|
||||
<li>Single collapse components can be created by adding the <code>.clps</code> class on an <code><input type="checkbox"></code> element, followed by a <code><div></code> with the content to be hidden/shown based on the collapse's state.</li>
|
||||
<li>Similarly, accordion collapse components can be created by adding the <code>.acrd</code> class to as many <code><input type="radio"></code> elements as you want. You should add a <code><label></code> linking to each radio immediately after it, followed by a <code><div></code> with the content to be hidden/shown based on the accordion's state. </li>
|
||||
<li>You can the single collapse component's styling for a set of radio buttons or the accordion's styling for a single checkbox if you would like to use a different styling for your collapse components without adding new CSS definitions.</li>
|
||||
<li>You can use the single collapse component's styling for a set of radio buttons or the accordion's styling for a single checkbox if you would like to use a different styling for your collapse components without adding new CSS definitions.</li>
|
||||
</ul>
|
||||
|
||||
<h3>Single collapse style</h3>
|
||||
|
|
1809
flavors/mini-niteowl.css
Normal file
1809
flavors/mini-niteowl.css
Normal file
File diff suppressed because it is too large
Load diff
1
flavors/mini-niteowl.min.css
vendored
Normal file
1
flavors/mini-niteowl.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
420
flavors/mini-niteowl.scss
Normal file
420
flavors/mini-niteowl.scss
Normal file
|
@ -0,0 +1,420 @@
|
|||
//====================================================================
|
||||
// This is the file you should edit to make the flavor you want.
|
||||
// Please read the instructions carefully.
|
||||
//====================================================================
|
||||
// !! IMPORTANT !!
|
||||
// Please copy this file or rename it, if you want to keep the default
|
||||
// flavor definitions file.
|
||||
//====================================================================
|
||||
// Update the comment below to include it in your flavor, providing the information
|
||||
// you want along with your customized flavor. You can also delete it if you don't
|
||||
// want it in your final CSS file.
|
||||
/*
|
||||
Flavor name: NiteOwl (mini-niteowl)
|
||||
Author: Angelos Chalaris (chalarangelo@gmail.com)
|
||||
mini.css version: v1.0 (September, 2016)
|
||||
*/
|
||||
//====================================================================
|
||||
//
|
||||
// CORE COMPONENTS (located in `mini`):
|
||||
//
|
||||
//====================================================================
|
||||
// Variable definitions for the Base module (_base.scss)
|
||||
//====================================================================
|
||||
// Basic rules for body
|
||||
$body-margin: 0; // Margin for body
|
||||
$body-bg-color: #151f29; // Body background color
|
||||
$body-color: #f5f5f5; // Body text color
|
||||
// Basic typography rules
|
||||
$base-fonts: "\"Helvetica Neue\", Helvetica, sans-serif"; // Font-family
|
||||
$base-font-size: 1em; // Font-size
|
||||
$base-line-height: 1.5; // Line-height
|
||||
// Rules for headers (multipliers apply on top of the basic typography rules)
|
||||
$h1-multiplier: 2; // Header 1 font-sze multiplier
|
||||
$h2-multiplier: 1.5; // Header 2 font-sze multiplier
|
||||
$h3-multiplier: 1.15; // Header 3 font-sze multiplier
|
||||
$h4-multiplier: 1; // Header 4 font-sze multiplier
|
||||
$h5-multiplier: 0.8; // Header 5 font-sze multiplier
|
||||
$h6-multiplier: 0.7; // Header 6 font-sze multiplier
|
||||
$header-line-height-multiplier: 0.8; // Multiplier for line height of headers
|
||||
$header-margin: 0.7em 0; // Margin for headers
|
||||
$header-font-weight: 500; // Font weight for headers
|
||||
// Rules for small elements inside headers
|
||||
$header-small-color: darken($body-color, 25%); // Header small text color
|
||||
$header-small-font-weight: 200; // Header small font weight
|
||||
// Rules for horizontal rules
|
||||
$hr-line-height-multiplier: 0.8; // Multiplier for line height of horizontal rule
|
||||
$hr-margin: 0.7em 0; // Margin for horizontal rule
|
||||
$hr-border-style: 1px solid #304251; // Color and style of horizontal rule
|
||||
// Common content typography rules (paragraphs, lists etc.)
|
||||
$p-margin: 0 0 0.6em; // Margin for paragraph and pre elements
|
||||
$small-font-size: 75%; // Font size for small, sub and sup elements
|
||||
$sub-bottom: -0.25em; // Sub bottom
|
||||
$sup-top: -0.5em; // Sup top
|
||||
$list-margin-top: 0; // Top margin for lists
|
||||
$list-margin-bottom: 0.6em; // Bottom margin for lists
|
||||
$mark-bg-color: #e44b23; // Mark background color
|
||||
$mark-color: $body-color; // Mark text color
|
||||
// Code, preformatted and keyboard rules
|
||||
$code-fonts: monospace, monospace; // Font-family for code, pre, kbd, samp elements
|
||||
$code-padding: 2px 4px; // Padding for code and pre elements
|
||||
$code-bg-color: darken($body-bg-color, 10%); // Code and pre background color
|
||||
$code-border-radius: 4px; // Border radius for code, pre and kbd elements
|
||||
$kbd-bg-color: $body-color; // Kbd background color
|
||||
$kbd-color: lighten($body-bg-color, 3.5%); // Kbd text color
|
||||
// Hyperlink rules
|
||||
$a-color: #6493cd; // Hyperlink text color
|
||||
$a-hover-color: lighten($a-color, 10%); // Hyperlink hover text color
|
||||
$a-visited-color: darken($a-color, 10%); // Hyperlink visited text color
|
||||
$a-visited-hover-color: $a-color; // Hyperlink visited hover text color
|
||||
// Button, input and form rules
|
||||
$button-fonts: $base-fonts; // Font-family for buttons and inputs
|
||||
$button-font-size: 100%; // Font size for buttons and inputs
|
||||
$button-line-height-multiplier: 0.8; // Multiplier for line height of buttons and inputs
|
||||
$button-margin: 0; // Margin for buttons and inputs
|
||||
$fieldset-border: 1px solid #304251; // Border style for fieldset
|
||||
$fieldset-border-radius: 4px; // Border radius for fieldset
|
||||
$fieldset-margin: 0 2px; // Margin for fieldset
|
||||
$fieldset-padding: 0.35em 0.65em 0.75em; // Padding for fieldset
|
||||
// Enable base (_base.scss) and use the variables defined above.
|
||||
@import '../scss/mini/base';
|
||||
//====================================================================
|
||||
// Variable definitions for the Button module (_button.scss)
|
||||
//====================================================================
|
||||
// Colors and styles (you can remove things you don't need or define more
|
||||
// colors if you need them).
|
||||
$btn-default-color: #f5f5f5; // Default text color for buttons
|
||||
$btn-alt-color: #f5f5f5; // Alternative text color for buttons
|
||||
$btn-default-bg-color: #454545; // Default background color for buttons
|
||||
$btn-b-bg-color: #364952; // Color for button style 1
|
||||
$btn-g-bg-color: #409f45; // Color for button style 2
|
||||
$btn-r-bg-color: #e72a2a; // Color for button style 3
|
||||
// Button class names (you can remove things you don't need or define more
|
||||
// classes if you need them).
|
||||
$btn-class-name: btn; // Name for the base button class
|
||||
$btn-style1-name: 'blue'; // Name for button style 1 class
|
||||
$btn-style2-name: 'green'; // Name for button style 2 class
|
||||
$btn-style3-name: 'red'; // Name for button style 3 class
|
||||
$btn-size1-name: lg; // Name for the button size 1 class
|
||||
$btn-size2-name: sm; // Name for the button size 2 class
|
||||
// Enable buttons (_button.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini/button';
|
||||
// Use button mixins to create buttons with given specs. For more information
|
||||
// refer to the _button.scss file to check the definitions.
|
||||
@include make-btn($btn-class-name, 0, 4px, 2px 0, 6px 12px, $btn-default-color, $btn-default-bg-color, lighten, 7.5%, pointer, not-allowed, .65);
|
||||
@include make-btn-style($btn-class-name, $btn-style1-name, $btn-alt-color, $btn-b-bg-color);
|
||||
@include make-btn-style($btn-class-name, $btn-style2-name, $btn-alt-color, $btn-g-bg-color, darken, 5%);
|
||||
@include make-btn-style($btn-class-name, $btn-style3-name, $btn-alt-color, $btn-r-bg-color, darken);
|
||||
@include make-btn-size($btn-class-name, $btn-size1-name, 9px 15px, 135%);
|
||||
@include make-btn-size($btn-class-name, $btn-size2-name, 4px 8px, 80%);
|
||||
//====================================================================
|
||||
// Variable definitions for the Grid module (_grid.scss)
|
||||
//====================================================================
|
||||
// Class names for the grid system
|
||||
$grid-container-name: grid-container; // Name for the grid container class
|
||||
$grid-row-name: row; // Name for the grid's row class
|
||||
$grid-column-name: col; // Name for the grid's column class
|
||||
$grid-extra-small-device-name: xs; // Name for extra small devices
|
||||
$grid-small-device-name: sm; // Name for small devices
|
||||
$grid-medium-device-name: md; // Name for medium devices
|
||||
$grid-large-device-name: lg; // Name for large devices
|
||||
$grid-no-show-name: no; // Name for hidden grid elements class
|
||||
// Grid breakpoints for different screens
|
||||
$grid-small-breakpoint: 768px; // Breakpoint for extra small to small devices
|
||||
$grid-medium-breakpoint: 1024px; // Breakpoint for small to medium devices
|
||||
$grid-large-breakpoint: 1280px; // Breakpoint for medium to large devices
|
||||
// Enable grid(s) (_grid.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini/grid';
|
||||
// Use grid mixin to create grid with given specs. For more information
|
||||
// refer to the grid.scss file to check the definitions.
|
||||
@include make-grid($grid-container-name, 0, $grid-row-name, $grid-column-name, 12, 12px, $grid-extra-small-device-name, $grid-small-device-name, $grid-medium-device-name, $grid-large-device-name, $grid-no-show-name, $grid-small-breakpoint, $grid-medium-breakpoint, $grid-large-breakpoint);
|
||||
//====================================================================
|
||||
// Variable definitions for the Form module (_form.scss)
|
||||
//====================================================================
|
||||
// Class names for the forms and components
|
||||
$form-class-name: frm; // Name for the form class
|
||||
$form-control-group-name: ctrl-group; // Name for the form's control group class
|
||||
// Colors for form components
|
||||
$form-focus-color: #f1e05a; // Color for focused form element outline
|
||||
$form-invalid-color: #e44b23; // Color for invalid form element outline
|
||||
// Enable forms (_form.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini/form';
|
||||
// Use form mixin to create form with given specs. For more information
|
||||
// refer to the _form.scss file to check the definitions.
|
||||
@include make-frm($form-class-name, 1px solid #304251, 4px, 0.2em, 0.3em, $form-focus-color, $form-invalid-color, not-allowed, .65, darken($body-bg-color,10%), darken($body-bg-color,25%), 1.9em, 0.5em 0 0 0.2em, $form-control-group-name, 0 0 0.3em 0, inline, aligned,15em);
|
||||
//====================================================================
|
||||
// Variable definitions for the Table module (_table.scss)
|
||||
//====================================================================
|
||||
// Class names for the tables
|
||||
$table-class-name: tbl; // Name for the table class
|
||||
$table-horizontal-name: hor; // Name for the horizontal style tables
|
||||
$table-bordered-name: bor; // Name for the bordered style tables
|
||||
// Colors for the tables
|
||||
$table-head-bg-color: lighten($body-bg-color,22%); // Table header background color
|
||||
$table-head-color: $body-color; // Table header text color
|
||||
$table-body-bg-color: lighten($body-bg-color,5%); // Table body bakground color
|
||||
$table-body-alt-bg-color: lighten($body-bg-color,10%); // Table body alternative background color
|
||||
$table-body-color: darken($body-color,8%); // Table body text color
|
||||
// Enable tables (_table.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini/table';
|
||||
// Use table mixin to create table with given specs. For more information
|
||||
// refer to the _table.scss file to check the definitions.
|
||||
@include make-tbl($table-class-name, 1px solid #304251, 0, 0.5em, $table-head-bg-color, $table-head-color, $table-body-bg-color,$table-body-alt-bg-color, $table-body-color, $table-horizontal-name, $table-bordered-name);
|
||||
//====================================================================
|
||||
// Variable definitions for the Navigation module (_nav.scss)
|
||||
//====================================================================
|
||||
// Class names for the navigation elements
|
||||
$navigation-class-name: nav; // Name for the navigation bar class
|
||||
$navigation-vertical-name: vertical; // Name for the vertical navigation class
|
||||
$navigation-fixed-name: fixed; // Name for the fixed navigation class
|
||||
$navigation-logo-name: logo; // Name for the navigation logo class
|
||||
$navigation-link-name: link; // Name for the navigation link class
|
||||
// Colors and breakpoint for the navigation
|
||||
$navigation-bg-color: #243447; // Background color for the navigation bar
|
||||
$navigation-color: $body-color; // Color for the navigation text
|
||||
$navigation-fixed-collapse-breakpoint: 768px; // Breakpoint for fixed naviation collapse
|
||||
// Enable navigation (_nav.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini/nav';
|
||||
// Use nav mixin to create nav with default specs. For more information
|
||||
// refer to the _nav.scss file to check the definitions.
|
||||
@include make-nav($navigation-class-name, $navigation-vertical-name, $navigation-fixed-name, $navigation-logo-name, 135%, $navigation-link-name, 8px, $navigation-color, $navigation-bg-color, darken, 7.5%, not-allowed, .65, left, 12, 2, $navigation-fixed-collapse-breakpoint, top-right, 10px, 1.75em);
|
||||
//====================================================================
|
||||
// Variable definitions for the Utilities and Helper Classes module (_utility.scss)
|
||||
//====================================================================
|
||||
// Class names for the utility and helper classes (you can remove things you
|
||||
// don't need or define more if you need them).
|
||||
$thumbnail-class-name: thumb; // Name for the thumbnail class
|
||||
$bordered-class-name: bordered; // Name for the bordered class
|
||||
$bordered-radial-name: rounded; // Name for the rounded border class
|
||||
$bordered-radial2-name: circle; // Name for the alternative rounded border class
|
||||
$colored-text1-name: txt-blue; // Name for the colored text style 1 class
|
||||
$colored-text2-name: txt-green; // Name for the colored text style 2 class
|
||||
$colored-text3-name: txt-red; // Name for the colored text style 3 class
|
||||
$colored-bg-text1-name: bg-blue; // Name for the colored background text style 1 class
|
||||
$colored-bg-text2-name: bg-green; // Name for the colored background text style 2 class
|
||||
$colored-bg-text3-name: bg-red; // Name for the colored background text style 3 class
|
||||
$drag-left-name: drg-left; // Name for the drag-left class
|
||||
$drag-right-name: drg-right; // Name for the drag-right class
|
||||
$center-block-name: ct-block; // Name for the center block class
|
||||
$caret-class-name: caret; // Name for the caret class
|
||||
$close-class-name: close; // Name for the close class
|
||||
$clearfix-class-name: cf; // Name for the clearfix class
|
||||
$hidden-class-name: hidden; // Name for the hidden class
|
||||
// Colors for the utility and helper classes (you can remove things you
|
||||
// don't need or define more colors if you need them).
|
||||
$bordered-radial-radius: 4px; // Border radius of rounded borders
|
||||
$bordered-radial2-radius: 50%; // Border radius of the alternative rounded borders
|
||||
$colored-text1-color: $btn-b-bg-color; // Text color for the colored text style 1 class
|
||||
$colored-text2-color: $btn-g-bg-color; // Text color for the colored text style 2 class
|
||||
$colored-text3-color: $btn-r-bg-color; // Text color for the colored text style 3 class
|
||||
$colored-bg-text1-bg-color: $btn-b-bg-color; // Background color for the colored text style 1 class
|
||||
$colored-bg-text2-bg-color: $btn-g-bg-color; // Background color for the colored text style 2 class
|
||||
$colored-bg-text3-bg-color: $btn-r-bg-color; // Background color for the colored text style 3 class
|
||||
// Enable utilities (_utility.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini/utility';
|
||||
// Use utility mixins to create utility classes with given specs. For more information
|
||||
// refer to the _utility.scss file to check the definitions.
|
||||
@include make-thumb($thumbnail-class-name, 0.25em, 1px solid #304251, 4px);
|
||||
@include make-border-generic($bordered-class-name);
|
||||
@include make-border-radial-style($bordered-radial-name, $bordered-radial-radius);
|
||||
@include make-border-radial-style($bordered-radial2-name, $bordered-radial2-radius);
|
||||
@include make-colored-text($colored-text1-name, $colored-text1-color);
|
||||
@include make-colored-text($colored-text2-name, $colored-text2-color);
|
||||
@include make-colored-text($colored-text3-name, $colored-text3-color);
|
||||
@include make-colored-bg-text($colored-bg-text1-name, $colored-bg-text1-bg-color);
|
||||
@include make-colored-bg-text($colored-bg-text2-name, $colored-bg-text2-bg-color);
|
||||
@include make-colored-bg-text($colored-bg-text3-name, $colored-bg-text3-bg-color);
|
||||
@include make-caret-down($caret-class-name, 0.35em, #aaa);
|
||||
@include make-close($close-class-name, #aaa, pointer, 1.3em, 700, #777);
|
||||
@include make-drags($drag-left-name, $drag-right-name);
|
||||
@include make-center-block($center-block-name);
|
||||
@include make-clearfix($clearfix-class-name);
|
||||
@include make-hidden($hidden-class-name);
|
||||
//====================================================================
|
||||
//
|
||||
// EXTRA COMPONENTS (located in `mini-extra`):
|
||||
//
|
||||
//====================================================================
|
||||
// Variable definitions for the Label module (_label.scss)
|
||||
//====================================================================
|
||||
// Colors and styles (you can remove things you don't need or define more
|
||||
// colors if you need them).
|
||||
$lbl-default-color: $btn-alt-color; // Default text color for labels/badges
|
||||
$lbl-default-bg-color: lighten($btn-default-bg-color,5%); // Default background color for labels/badges
|
||||
$lbl-b-bg-color: $btn-b-bg-color; // Color for labels/badges style 1
|
||||
$lbl-g-bg-color: $btn-g-bg-color; // Color for labels/badges style 2
|
||||
$lbl-r-bg-color: $btn-r-bg-color; // Color for labels/badges style 3
|
||||
// Label class names (you can remove things you don't need or define more
|
||||
// classes if you need them).
|
||||
$lbl-class-name: lbl; // Name for the base labels class
|
||||
$lbl-style1-name: 'blue'; // Name for labels/badges style 1 class
|
||||
$lbl-style2-name: 'green'; // Name for labels/badges style 2 class
|
||||
$lbl-style3-name: 'red'; // Name for labels/badges style 3 class
|
||||
$badge-class-name: bdg; // Name for the base badges class
|
||||
// Enable labels (_label.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/label';
|
||||
// Use label mixins to create labels with given specs. For more information
|
||||
// refer to the _label.scss file to check the definitions.
|
||||
@include make-lbl($lbl-class-name, $lbl-default-bg-color, $lbl-default-color, 4px, 6px 10px, hide);
|
||||
@include make-lbl-style($lbl-class-name, $lbl-style1-name, $lbl-default-color, $lbl-b-bg-color);
|
||||
@include make-lbl-style($lbl-class-name, $lbl-style2-name, $lbl-default-color, $lbl-g-bg-color);
|
||||
@include make-lbl-style($lbl-class-name, $lbl-style3-name, $lbl-default-color, $lbl-r-bg-color);
|
||||
@include make-lbl($badge-class-name, $lbl-default-bg-color, $lbl-default-color, 8px, 3px 8px, hide);
|
||||
@include make-lbl-style($badge-class-name, $lbl-style1-name, $lbl-default-color, $lbl-b-bg-color);
|
||||
@include make-lbl-style($badge-class-name, $lbl-style2-name, $lbl-default-color, $lbl-g-bg-color);
|
||||
@include make-lbl-style($badge-class-name, $lbl-style3-name, $lbl-default-color, $lbl-r-bg-color);
|
||||
//====================================================================
|
||||
// Variable definitions for the Tab module (_tab.scss)
|
||||
//====================================================================
|
||||
// Tab class names.
|
||||
$tabs-class-name: tabs; // Name for the tab system container class
|
||||
// Colors and styles (you can remove things you don't need or define more
|
||||
// colors if you need them).
|
||||
$tabs-border-color: #304251; // Border color for the tabs system
|
||||
$tabs-content-bg-color: lighten($body-bg-color,5%); // Background for the active tab's content
|
||||
$tabs-color: $a-color; // Color for the text in the tab labels
|
||||
$tabs-bg-color: $body-bg-color; // Background color for the tab labels
|
||||
$tabs-active-color: $body-color; // Color for the text in the active tab's label
|
||||
$tabs-active-bg-color: $tabs-content-bg-color; // Background color for the active tab's label
|
||||
$tabs-active-stripe-style: 3px solid $a-color; // Style for the active tab label's stripe
|
||||
// Enable tabs (_tab.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/tab';
|
||||
// Use tabs mixin to create tab system with given specs. For more information
|
||||
// refer to the _tab.scss file to check the definitions.
|
||||
@include make-tabs($tabs-class-name, 250px, 3px, 40px, 8px 14px, $tabs-color, $tabs-bg-color, $tabs-active-color, $tabs-active-bg-color, $tabs-border-color, 4px 4px 0 0, $tabs-active-stripe-style, 'darken', 10%, $tabs-content-bg-color, 20px);
|
||||
//====================================================================
|
||||
// Variable definitions for the Modal module (_modal.scss)
|
||||
//====================================================================
|
||||
// Modal class names.
|
||||
$modal-class-name: modal; // Name for the modal class
|
||||
// Colors and styles (you can remove things you don't need or define more
|
||||
// colors if you need them).
|
||||
$modal-bg-color: $body-bg-color; // Background color for the modal
|
||||
$modal-color: $body-color; // Color for the text in the modal
|
||||
$modal-border: 1px solid #304251; // Border style for the modal
|
||||
// Enable modal (_modal.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/modal';
|
||||
// Use modal mixin to create modal with given specs. For more information
|
||||
// refer to the _modal.scss file to check the definitions.
|
||||
@include make-modal($modal-class-name, $modal-color, $modal-bg-color, 'enabled', 'enabled', $modal-border, 4px, 18px, 8.5%, 45%);
|
||||
@include make-modal-close-support($modal-class-name, $close-class-name, 20px);
|
||||
//====================================================================
|
||||
// Variable definitions for the Dropdown module (_dropdown.scss)
|
||||
//====================================================================
|
||||
// Dropdown class names.
|
||||
$dropdown-class-name: dropdown; // Name for the modal class
|
||||
// Enable dropdown (_dropdown.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/dropdown';
|
||||
// Use dropdown mixin to create dropdown with given specs. For more information
|
||||
// refer to the _dropdown.scss file to check the definitions.
|
||||
@include make-dropdown($navigation-class-name, $navigation-link-name,$dropdown-class-name, 20px, 0.8em);
|
||||
//====================================================================
|
||||
// Variable definitions for the Collapse module (_collapse.scss)
|
||||
//====================================================================
|
||||
// Collapse and accordion class names.
|
||||
$collapse-class-name: clps; // Name for the collapse class
|
||||
$accordion-class-name: acrd; // Name for the accordion class
|
||||
// Collapse colors and styles (you can remove things you don't need or
|
||||
// define more colors if you need them).
|
||||
$collapse-border: 1px solid #304251; // Border style for the collapse
|
||||
$collapse-color: $body-color; // Color for the text in the collapse
|
||||
$collapse-bg-color: lighten($body-bg-color,10%); // Background color for the collapse
|
||||
// Accordion colors and styles (you can remove things you don't need or
|
||||
// define more colors if you need them).
|
||||
$accordion-border: $collapse-border; // Border style for the accordion
|
||||
$accordion-color: $collapse-color; // Color for the text in the accordion
|
||||
$accordion-bg-color: $body-bg-color; // Background color for the accordion
|
||||
$accordion-label-color: $collapse-color; // Color for the text in the accordion's label
|
||||
$accordion-label-bg-color: $collapse-bg-color; // Background color for the accordion's label
|
||||
// Enable collapse (_collapse.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/collapse';
|
||||
// Use collapse and accordion mixins to create components wit the given specs.
|
||||
// For more information refer to the _collapse.scss file to check the definitions.
|
||||
@include make-collapse($collapse-class-name, $collapse-border, 4px, 10px, 5px, $collapse-color, $collapse-bg-color);
|
||||
@include make-accordion($accordion-class-name, $accordion-border, 4px, 10px, 5px, $accordion-color, $accordion-bg-color, $accordion-label-color, $accordion-label-bg-color, 8px, 'darken', 7.5%);
|
||||
//====================================================================
|
||||
// Variable definitions for the Progress module (_progress.scss)
|
||||
//====================================================================
|
||||
// Progress and progress variants class names.
|
||||
$progress-class-name: prg; // Name for the progress class
|
||||
$progress-bar-style1-name: 'green'; // Name for the progress bar style 1 class
|
||||
$progress-bar-style2-name: 'red'; // Name for the progress bar style 2 class
|
||||
// Progress and p progress variants colors (you can remove things you
|
||||
// don't need or define more colors if you need them).
|
||||
$progress-bg-color: #d7d7d7; // Background color for the progress bar container
|
||||
$progress-bar-color: $btn-alt-color; // Color for the text of the progress bar
|
||||
$progress-bar-style1-color: $btn-alt-color; // Color for the text of the style 1 progress bar
|
||||
$progress-bar-style2-color: $btn-alt-color; // Color for the text of the style 2 progress bar
|
||||
$progress-bar-bg-color: $btn-b-bg-color; // Background color for the progress bar
|
||||
$progress-bar-style1-bg-color: $btn-g-bg-color; // Background color for the style 1 progress bar
|
||||
$progress-bar-style2-bg-color: $btn-r-bg-color; // Background color for the style 2 progress bar
|
||||
// Enable progress (_progress.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/progress';
|
||||
// Use progress mixins to create progress bars with given specs. For more
|
||||
// information refer to the _progress.scss file to check the definitions.
|
||||
@include make-progress($progress-class-name, 20px, 4px, $progress-bg-color, 0.8em, $progress-bar-color, $progress-bar-bg-color);
|
||||
@include make-progress-bar-variant($progress-class-name, $progress-bar-style1-name, $progress-bar-style1-color, $progress-bar-style1-bg-color);
|
||||
@include make-progress-bar-variant($progress-class-name, $progress-bar-style2-name, $progress-bar-style2-color, $progress-bar-style2-bg-color);
|
||||
//====================================================================
|
||||
// Variable definitions for the Carousel module (_carousel.scss)
|
||||
//====================================================================
|
||||
// Carousel class names.
|
||||
$carousel-class-name: carousel; // Name for the carousel class
|
||||
// Carousel colors and styles.
|
||||
$carousel-border: 1px solid #304251; // Border style for the carousel
|
||||
$carousel-content-bg-color: lighten($body-bg-color,80%); // Background color for the carousel
|
||||
$carousel-description-color: $body-color; // Color for the text in the carousel's description
|
||||
$carousel-description-bg-color: $body-bg-color; // Background color for the carousel's description
|
||||
$carousel-control-color: $body-color; // Color for the carousel's control elements
|
||||
// Enable carousel (_carousel.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/carousel';
|
||||
// Use carousel mixin to create carousel with given specs. For more
|
||||
// information refer to the _carousel.scss file to check the definitions.
|
||||
@include make-carousel($carousel-class-name, 80%, 500px, $carousel-border, 4px, $carousel-content-bg-color, 10px, $carousel-description-color, $carousel-description-bg-color, 340px, 160px, 450px, 1.8em, $carousel-control-color);
|
||||
//====================================================================
|
||||
// Variable definitions for the Utility module (_utility.scss)
|
||||
//====================================================================
|
||||
// Utility class names.
|
||||
$breadcrumbs-class-name: brdcrmb; // Name for the breadcrumbs class
|
||||
$well-class-name: well; // Name for the well class
|
||||
$alert-style1-class: alert-blue; // Name for the style 1 alert
|
||||
$alert-style2-class: alert-green; // Name for the style 2 alert
|
||||
$alert-style3-class: alert-red; // Name for the style 3 alert
|
||||
$panel-class-name: panel; // Name for the panel class
|
||||
$panel-header-name: head; // Name for the panel's header class
|
||||
$button-states-class-name: stateful; // Name for the stateful button class
|
||||
$button-group-class-name: btn-grp; // Name for the button group class
|
||||
$popover-above-name: popover-top; // Name for the popover above class
|
||||
$popover-below-name: popover-bottom; // Name for the popover below class
|
||||
// Utility color variables and styles (you can remove things you
|
||||
// don't need or define more colors if you need them).
|
||||
$well-color: $body-color; // Text color for the well
|
||||
$well-bg-color: lighten($body-bg-color,10%); // Background color for the well
|
||||
$panel-color: $body-color; // Text color for the panel
|
||||
$panel-bg-color: $body-bg-color; // Background color for the panel
|
||||
$panel-header-color: $body-color; // Text color for the panel's header
|
||||
$panel-header-bg-color: lighten($body-bg-color,10%); // Background color for the panel's header
|
||||
$popover-color: $body-bg-color; // Text color for the popover
|
||||
$popover-bg-color: $body-color; // Background color for the popover
|
||||
// Enable utilities (_utility.scss). (Use individual mixins below to use.)
|
||||
@import '../scss/mini-extra/utility';
|
||||
// Use utilities mixins to create utilities with given specs. For more
|
||||
// information refer to the _utility.scss file to check the definitions.
|
||||
@include make-breadcrumbs($breadcrumbs-class-name);
|
||||
@include make-generic-container($well-class-name, $well-color, $well-bg-color, 1px solid #304251, 4px, 20px);
|
||||
@include make-alert($alert-style1-class, darken($btn-b-bg-color,20%), lighten($btn-b-bg-color, 10%) , 1px solid darken($btn-b-bg-color, 10%), 4px, 20px, close);
|
||||
@include make-alert($alert-style2-class, darken($btn-g-bg-color,20%), lighten($btn-g-bg-color, 10%) , 1px solid darken($btn-g-bg-color, 10%), 4px, 20px, close);
|
||||
@include make-alert($alert-style3-class, darken($btn-r-bg-color,20%), lighten($btn-r-bg-color, 10%) , 1px solid darken($btn-r-bg-color, 10%), 4px, 20px, close);
|
||||
@include make-panel(panel, $panel-color, $panel-bg-color, 1px solid #304251, 4px, 10px, $panel-header-name, $panel-header-color, $panel-header-bg-color, 10px);
|
||||
@include make-popover($popover-above-name, top, 5px, 45px, $popover-color, $popover-bg-color, 7px 10px);
|
||||
@include make-popover($popover-below-name, bottom, 4px, 45px, $popover-color, $popover-bg-color, 7px 10px);
|
||||
// Use experimental utilities mixins to create utilities with given
|
||||
// specs. Please exercise caution when using these mixins.
|
||||
//@include make-button-states($button-states-class-name); // This mixin is unstable and buggy, we suggest you disable it.
|
||||
// The folowing mixin is considered stable, you can disable it if you need to.
|
||||
@include make-btn-group($button-group-class-name, $btn-class-name, 1px solid #304251, 4px);
|
||||
@include make-btn-group(btn-grp, $btn-class-name+'.'+$btn-style1-name, 1px solid darken($btn-b-bg-color, 10%), 4px);
|
||||
@include make-btn-group(btn-grp, $btn-class-name+'.'+$btn-style2-name, 1px solid darken($btn-g-bg-color, 10%), 4px);
|
||||
@include make-btn-group(btn-grp, $btn-class-name+'.'+$btn-style3-name, 1px solid 1px solid darken($btn-r-bg-color, 10%), 4px);
|
||||
//====================================================================
|
||||
//====================================================================
|
Loading…
Reference in a new issue