mini.css/docs/v3/flavors.html

707 lines
63 KiB
HTML
Raw Normal View History

2018-05-01 10:03:23 +00:00
<!DOCTYPE html><html lang="en"><head>
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700|Poppins:400,400i,500,700,700i&amp;subset=latin-ext" rel="stylesheet">
<link rel="stylesheet" href="./style.min.css">
<title>mini.css - Flavors</title>
<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="mini.css is a tiny CSS framework designed to build quick, modern and responsive websites.">
<meta name="keywords" content="mini, mini.css, CSS, framework, minimal, responsive, style-agnostic, front-end, frontend, Sass, toolkit">
<meta name="author" content="Angelos Chalaris (chalarangelo)">
<meta property="og:title" content="mini.css - Minimal, responsive, style-agnostic CSS framework">
<meta property="og:description" content="mini.css is a tiny CSS framework designed to build quick, modern and responsive websites."/>
<meta property="og:type" content="website"/><meta property="og:image" content="page_thumb.png">
<meta property="og:url" content="https://chalarangelo.github.io/mini.css/"><link rel="icon" type="image/png" href="favicon.png">
</head><body><div id="root"><header class="row">
<span class="logo col-sm-3 col-md">mini.css</span>
<a class="button col-sm col-md" href="https://github.com/Chalarangelo/mini.css" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="height: 20px; vertical-align: text-top;"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
<span>&nbsp;Github</span></a>
<a class="button col-sm col-md" href="#">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="height: 20px; vertical-align: text-top;"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>
2018-05-01 10:03:23 +00:00
<span>&nbsp;Docs</span></a>
<label for="doc-drawer-checkbox" class="button drawer-toggle col-sm"></label>
</header>
<div class="row" id="doc-wrapper">
<input id="doc-drawer-checkbox" class="drawer" value="on" type="checkbox">
<nav class="col-md-4 col-lg-3" id="nav-drawer"><h3>Menu</h3><label for="doc-drawer-checkbox" class="button drawer-close"></label><a href="#prebuilt-flavors" id="link-to-prebuilt-flavors">Prebuilt flavors</a><hr style="padding:0;"/><a href="#textual-content" id="link-to-textual-content">Textual content</a><a href="#color-palette" id="link-to-color-palette">Color palette</a><a href="#universal-styles" id="link-to-universal-styles">Universal styles</a><a href="#grid" id="link-to-grid">Grid</a><a href="#cards" id="link-to-cards">Cards</a><a href="#forms-and-input" id="link-to-forms-and-input">Forms &amp; input</a><a href="#buttons" id="link-to-buttons">Buttons</a><a href="#header" id="link-to-header">Header</a><a href="#navbar" id="link-to-navbar">Navigation bar</a><a href="#footer" id="link-to-footer">Footer</a><a href="#menu-drawer" id="link-to-menu-drawer">Menu drawer</a><a href="#tables" id="link-to-tables">Tables</a><a href="#text-highlighting" id="link-to-text-highlighting">Text highlighting</a><a href="#toasts" id="link-to-toasts">Toasts</a><a href="#tooltips" id="link-to-tooltips">Tooltips</a><a href="#modals" id="link-to-modals">Modal dialogs</a><a href="#collapse" id="link-to-collapse">Spoilers &amp accordions</a><a href="#progress" id="link-to-progress">Progress bars</a><a href="#donut-spinner" id="link-to-donut-spinner">Donut spinners</a><a href="#icons" id="link-to-icons">Icons</a><a href="#utility" id="link-to-utility">Utilities</a></nav>
<main class="col-sm-12 col-md-8 col-lg-9" id="doc-content"><div id="prebuilt-flavors" class="card fluid">
<h2 class="section double-padded">Prebuilt flavors</h2><p>We have some prebuilt flavors:</p><ul><li>Default</li><li>Dark</li></ul>
2018-05-01 10:03:23 +00:00
</div><br/><div id="build-your-own-flavor" class="card fluid">
<h2 class="section double-padded">Build your own flavor</h2><div class="section">
<h3>Core module</h3>
<p>The <strong>Core</strong> module contains styling rules for common textual elements, headings, quotations and code, as well as rules for universal styling and color palettes. This module is always enabled, as many other modules and components depend on it.</p>
<form id="core">
<fieldset>
<legend id="textual-content">Textual content</legend>
<div class="input-group vertical">
<label for="baseRootFontSize">Base root font size (px):</label>
<input type="number" id="baseRootFontSize" style="width:calc(100% - 0.5rem);" value="16" min="1"/>
<p><small>Base font size for all text elements, in pixels</small></p>
</div>
<div class="input-group vertical">
<label for="baseLineHeight">Base line height:</label>
<input type="number" id="baseLineHeight" style="width:calc(100% - 0.5rem);" value="1.5" min="0.01" step="0.001"/>
<p><small>Base line height for all text elements (unitless)</small></p>
</div>
<div class="input-group vertical">
<label for="boldFontWeight">Heading font weight:</label>
<input type="number" id="boldFontWeight" style="width:calc(100% - 0.5rem);" value="700" min="100" step="100" max="900"/>
<p><small>Font weight for headings (400 is normal, 700 is bold)</small></p>
</div>
<div class="input-group vertical">
<label for="headingRatio">Heading ratio:</label>
<input type="number" id="headingRatio" style="width:calc(100% - 0.5rem);" value="1.19" min="0.001" step="0.001"/>
<p><small>Ratio for headings</small></p>
</div>
<div class="input-group vertical">
<label for="headingLineHeight">Heading line height:</label>
<input type="number" id="headingLineHeight" style="width:calc(100% - 0.5rem);" value="1.2" min="0.001" step="0.001"/>
<p><small>Line height for headings</small></p>
</div>
<div class="input-group vertical">
<label for="headingFontWeight">Heading font weight:</label>
<input type="number" id="headingFontWeight" style="width:calc(100% - 0.5rem);" value="500" min="100" step="100" max="900"/>
<p><small>Font weight for headings (400 is normal, 700 is bold)</small></p>
</div>
<div class="input-group vertical">
<label for="subheadingFontSize">Subheading font size (em):</label>
<input type="number" id="subheadingFontSize" style="width:calc(100% - 0.5rem);" value="0.75" min="0.001" step="0.001"/>
<p><small>Font size for subheadings, relative to context</small></p>
</div>
<div class="input-group vertical">
<label for="subheadingTopMargin">Subheading top margin (rem):</label>
<input type="number" id="subheadingTopMargin" style="width:calc(100% - 0.5rem);" value="-0.25" step="0.001"/>
<p><small>Top margin for subheadings, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="smallFontSize">Small text font size (em):</label>
<input type="number" id="smallFontSize" style="width:calc(100% - 0.5rem);" value="0.75" min="0.001" step="0.001"/>
<p><small>Font size for small text, relative to context</small></p>
</div>
<div class="input-group vertical">
<label for="horizontalRuleLineHeight">Horizontal rule line height:</label>
<input type="number" id="horizontalRuleLineHeight" style="width:calc(100% - 0.5rem);" value="1.25" min="0.001" step="0.001"/>
<p><small>Line height for headings</small></p>
</div>
<div class="input-group vertical">
<label for="codeFontSize">Code font size (em):</label>
<input type="number" id="codeFontSize" style="width:calc(100% - 0.5rem);" value="0.85" min="0.001" step="0.001"/>
<p><small>Font size for code elements, relative to context</small></p>
</div>
<div class="input-group vertical">
<label for="supTop">Superscript top position (em):</label>
<input type="number" id="supTop" style="width:calc(100% - 0.5rem);" value="-0.5" step="0.001"/>
<p><small>Top position for superscript, relative to context</small></p>
</div>
<div class="input-group vertical">
<label for="subBottom">Subscript bottom position (em):</label>
<input type="number" id="subBottom" style="width:calc(100% - 0.5rem);" value="0.25" step="0.001"/>
<p><small>Bottom position for subscript, relative to context</small></p>
</div>
<div class="input-group vertical">
<label for="blockquoteQuotationSize">Code font size (rem):</label>
<input type="number" id="blockquoteQuotationSize" style="width:calc(100% - 0.5rem);" value="3" min="0.001" step="0.001"/>
<p><small>Font size for the quotation of blockquotes, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="blockquoteCiteSize">Code font size (rem):</label>
<input type="number" id="blockquoteCiteSize" style="width:calc(100% - 0.5rem);" value="0.75" min="0.001" step="0.001"/>
<p><small>Font size for the citation of blockquotes, relative to root</small></p>
</div>
</fieldset>
<fieldset>
<legend id="color-palette">Color palette</legend>
<div class="input-group vertical">
<label for="foreColor">Foreground color:</label>
<input type="text" id="foreColor" value="#111" autocomplete="off"/>
<span id="foreColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#111; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for most textual elements</small></p>
</div>
<div class="input-group vertical">
<label for="backColor">Background color:</label>
<input type="text" id="backColor" value="#f8f8f8" autocomplete="off"/>
<span id="backColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for document body</small></p>
</div>
<div class="input-group vertical">
<label for="borderColor">Border color:</label>
<input type="text" id="borderColor" value="#aaa" autocomplete="off"/>
<span id="borderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#aaa; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for most elements</small></p>
</div>
<div class="input-group vertical">
<label for="secondaryForeColor">Secondary foreground color:</label>
<input type="text" id="secondaryForeColor" value="#444" autocomplete="off"/>
<span id="secondaryForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#444; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Secondary foreground color for certain textual elements</small></p>
</div>
<div class="input-group vertical">
<label for="secondaryBackColor">Secondary background color:</label>
<input type="text" id="secondaryBackColor" value="#f0f0f0" autocomplete="off"/>
<span id="secondaryBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f0f0f0; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Secondary background color for certain elements</small></p>
</div>
<div class="input-group vertical">
<label for="secondaryBorderColor">Secondary border color:</label>
<input type="text" id="secondaryBorderColor" value="#ddd" autocomplete="off"/>
<span id="backColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Secondary border color for certain elements</small></p>
</div>
<div class="input-group vertical">
<label for="blockquoteSidebarColor">Blockquote sidebar color:</label>
<input type="text" id="blockquoteSidebarColor" value="#f57c00" autocomplete="off"/>
<span id="blockquoteSidebarColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f57c00; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Sidebar color for blockquote elements</small></p>
</div>
<div class="input-group vertical">
<label for="preSidebarColor">Preformatted text sidebar color:</label>
<input type="text" id="preSidebarColor" value="#1565c0" autocomplete="off"/>
<span id="preSidebarColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#1565c0; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Sidebar color for preformatted text elements</small></p>
</div>
<div class="input-group vertical">
<label for="aLinkColor">Link color:</label>
<input type="text" id="aLinkColor" value="#0277bd" autocomplete="off"/>
<span id="aLinkColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#0277bd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Text color for hyperlink elements</small></p>
</div>
<div class="input-group vertical">
<label for="aVisitedColor">Visited link color:</label>
<input type="text" id="aVisitedColor" value="#01579b" autocomplete="off"/>
<span id="aVisitedColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#01579b; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Text color for visited hyperlink elements</small></p>
</div>
</fieldset>
<fieldset>
<legend id="universal-styles">Universal styles</legend>
<div class="input-group vertical">
<label for="universalPadding">Universal padding (rem):</label>
<input type="number" id="universalPadding" style="width:calc(100% - 0.5rem);" value="0.5" min="0.001" step="0.001"/>
<p><small>Universal padding for most elements, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="universalMargin">Universal margin (rem):</label>
<input type="number" id="universalMargin" style="width:calc(100% - 0.5rem);" value="0.5" step="0.001"/>
<p><small>Universal margin for most elements, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="universalBorderRadius">Universal border radius (rem):</label>
<input type="number" id="universalBorderRadius" style="width:calc(100% - 0.5rem);" value="0.125" min="0.001" step="0.001"/>
<p><small>Universal border radius for most elements, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="universalBoxShadow">Universal box shadow:</label>
<select id="universalBoxShadow" style="width:calc(100% - 0.5rem);"> <option selected value="0">Disabled</option> <option value="1">Enabled</option> </select>
<p><small>Universal box shadow for most elements</small></p>
</div>
<div class="input-group vertical">
<label for="mobileBreakpoint">Mobile breakpoint (px):</label>
<input type="number" id="mobileBreakpoint" style="width:calc(100% - 0.5rem);" value="768" min="1"/>
<p><small>Breakpoint between mobile screen and desktops, in pixels</small></p>
</div>
<div class="input-group vertical">
<label for="largeScreenBreakpoint">Large screen breakpoint (px):</label>
<input type="number" id="largeScreenBreakpoint" style="width:calc(100% - 0.5rem);" value="1280" min="1"/>
<p><small>Breakpoint between desktops and large screens, in pixels</small></p>
</div>
</fieldset>
</form>
<h3>Layout module</h3>
<p>The <strong>Layout</strong> module contains rules and functionality for the grid and card systems. This module is not always enabled, but it's highly recommended that you enable it, as many other components depend on its functionality to work properly.</p>
<form id="layout">
<div class="input-group">
<label for="layoutEnabled">Module enabled? (recommended)</label>
<input type="checkbox" checked autocomplete="off" id="layoutEnabled"/>
</div>
<fieldset>
<legend id="grid">Grid</legend>
<div class="input-group vertical">
<label for="gridColumnCount">Grid column count:</label>
<input type="number" id="gridColumnCount" style="width:calc(100% - 0.5rem);" value="12" min="1"/>
<p><small>Number of horizontal column partitions for the grid system (default 12)</small></p>
</div>
<div class="input-group vertical">
<label for="gridMediumBreakpoint">Grid medium screen breakpoint (px):</label>
<input type="number" id="gridMediumBreakpoint" style="width:calc(100% - 0.5rem);" value="768" min="1"/>
<p><small>Breakpoint between small and medium screens, in pixels</small></p>
</div>
</fieldset>
<fieldset>
<legend id="cards">Cards</legend>
<div class="input-group vertical">
<label for="cardNormalWidth">Card normal width (px):</label>
<input type="number" id="cardNormalWidth" style="width:calc(100% - 0.5rem);" value="320" min="1"/>
<p><small>Width of normal cards, in pixels</small></p>
</div>
<div class="input-group vertical">
<label for="cardSectionMediaHeight">Card media section height (px):</label>
<input type="number" id="cardSectionMediaHeight" style="width:calc(100% - 0.5rem);" value="200" min="1"/>
<p><small>Height of card media sections, in pixels</small></p>
</div>
<div class="input-group vertical">
<label for="cardForeColor">Card foreground color:</label>
<input type="text" id="cardForeColor" value="#111" autocomplete="off"/>
<span id="cardForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#111; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for cards</small></p>
</div>
<div class="input-group vertical">
<label for="cardBackColor">Card background color:</label>
<input type="text" id="cardBackColor" value="#f8f8f8" autocomplete="off"/>
<span id="cardBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for cards</small></p>
</div>
<div class="input-group vertical">
<label for="cardBorderColor">Card border color:</label>
<input type="text" id="cardBorderColor" value="#ddd" autocomplete="off"/>
<span id="cardBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for cards</small></p>
</div>
</fieldset>
</form>
<h3>Input control module</h3>
<p>The <strong>Input control</strong> module contains styling rules for forms, input elements and buttons. This module is not always enabled, but it's highly recommended that you enable it, as some other components depend on its functionality to work properly.</p>
<form id="inputControl">
<div class="input-group">
<label for="layoutEnabled">Module enabled? (recommended)</label>
<input type="checkbox" checked autocomplete="off" id="layoutEnabled"/>
</div>
<fieldset>
<legend id="forms-and-input">Forms &amp; input</legend>
<div class="input-group vertical">
<label for="formForeColor">Form foreground color:</label>
<input type="text" id="formForeColor" value="#111" autocomplete="off"/>
<span id="formForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#111; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for forms</small></p>
</div>
<div class="input-group vertical">
<label for="formBackColor">Form background color:</label>
<input type="text" id="formBackColor" value="#f0f0f0" autocomplete="off"/>
<span id="formBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f0f0f0; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for forms</small></p>
</div>
<div class="input-group vertical">
<label for="formBorderColor">Form border color:</label>
<input type="text" id="formBorderColor" value="#ddd" autocomplete="off"/>
<span id="formBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for forms</small></p>
</div>
<div class="input-group vertical">
<label for="inputForeColor">Input foreground color:</label>
<input type="text" id="inputForeColor" value="#111" autocomplete="off"/>
<span id="inputForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#111; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for input elements</small></p>
</div>
<div class="input-group vertical">
<label for="inputBackColor">Input background color:</label>
<input type="text" id="inputBackColor" value="#f8f8f8" autocomplete="off"/>
<span id="inputBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for input elements</small></p>
</div>
<div class="input-group vertical">
<label for="inputBorderColor">Input border color:</label>
<input type="text" id="inputBorderColor" value="#ddd" autocomplete="off"/>
<span id="inputBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for input elements</small></p>
</div>
<div class="input-group vertical">
<label for="inputFocusColor">Input border color (focused):</label>
<input type="text" id="inputFocusColor" value="#0288d1" autocomplete="off"/>
<span id="inputFocusColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#0288d1; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for focused input elements</small></p>
</div>
<div class="input-group vertical">
<label for="inputInvalidColor">Input border color (invalid):</label>
<input type="text" id="inputInvalidColor" value="#d32f2f" autocomplete="off"/>
<span id="inputInvalidColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#d32f2f; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for invalid input elements</small></p>
</div>
</fieldset>
<fieldset>
<legend id="buttons">Buttons</legend>
<div class="input-group vertical">
<label for="buttonForeColor">Button foreground color:</label>
<input type="text" id="buttonForeColor" value="#212121" autocomplete="off"/>
<span id="buttonForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#212121; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for buttons</small></p>
</div>
<div class="input-group vertical">
<label for="buttonBackColor">Button background color:</label>
<input type="text" id="buttonBackColor" value="#e2e2e2" autocomplete="off"/>
<span id="buttonBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#e2e2e2; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for buttons</small></p>
</div>
<div class="input-group vertical">
<label for="buttonBorderColor">Button border color:</label>
<input type="text" id="buttonBorderColor" value="transparent" autocomplete="off"/>
<span id="buttonBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:transparent; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for buttons</small></p>
</div>
<div class="input-group vertical">
<label for="buttonHoverBackColor">Button background color (hover):</label>
<input type="text" id="buttonHoverBackColor" value="#dcdcdc" autocomplete="off"/>
<span id="buttonHoverBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#dcdcdc; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for buttons on hover</small></p>
</div>
<div class="input-group vertical">
<label for="buttonHoverBorderColor">Button border color (hover):</label>
<input type="text" id="buttonHoverBorderColor" value="transparent" autocomplete="off"/>
<span id="buttonHoverBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:transparent; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for buttons on hover</small></p>
</div>
<div class="input-group vertical">
<label for="buttonGroupBorderColor">Button group border color:</label>
<input type="text" id="buttonGroupBorderColor" value="rgba(124,124,124,0.54)" autocomplete="off"/>
<span id="buttonGroupBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:rgba(124,124,124,0.54); display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for buttons</small></p>
</div>
</fieldset>
</form>
<h3>Navigation module</h3>
<p>The <strong>Navigation</strong> module contains styling rules for headers, footers, navigation bars and menu drawers. This module is not always enabled, but it's recommended that you enable it, as it contains functionality that is useful for most designs and layouts.</p>
<form id="navigation">
<div class="input-group">
<label for="navigationEnabled">Module enabled? (recommended)</label>
<input type="checkbox" autocomplete="off" checked id="navigationEnabled"/>
</div>
<fieldset>
<legend id="header">Header</legend>
<div class="input-group vertical">
<label for="headerheight">Header height (rem):</label>
<input type="number" id="headerheight" style="width:calc(100% - 0.5rem);" value="3.1875" min="0.0001" step="0.0001"/>
<p><small>Height for header elements, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="headerLogoFontSize">Header logo font size (rem):</label>
<input type="number" id="headerLogoFontSize" style="width:calc(100% - 0.5rem);" value="1.75" min="0.001" step="0.001"/>
<p><small>Font size of header elements, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="headerForeColor">Header foreground color:</label>
<input type="text" id="headerForeColor" value="#444" autocomplete="off"/>
<span id="headerForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#444; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for header elements</small></p>
</div>
<div class="input-group vertical">
<label for="headerBackColor">Header background color:</label>
<input type="text" id="headerBackColor" value="#f8f8f8" autocomplete="off"/>
<span id="headerBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for header elements</small></p>
</div>
<div class="input-group vertical">
<label for="headerBorderColor">Header border color:</label>
<input type="text" id="headerBorderColor" value="#ddd" autocomplete="off"/>
<span id="headerBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for header elements</small></p>
</div>
<div class="input-group vertical">
<label for="headerHoverBackColor">Header background color (hover):</label>
<input type="text" id="headerHoverBackColor" value="#f0f0f0" autocomplete="off"/>
<span id="headerHoverBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f0f0f0; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for header elements on hover</small></p>
</div>
</fieldset>
<fieldset>
<legend id="navbar">Navigation bar</legend>
<div class="input-group vertical">
<label for="navSublinkDepth">Depth of navigation bar:</label>
<input type="number" id="navSublinkDepth" style="width:calc(100% - 0.5rem);" value="2" min="1"/>
<p><small>Maximum number of navigation bar levels</small></p>
</div>
<div class="input-group vertical">
<label for="navForeColor">Navigation bar foreground color:</label>
<input type="text" id="navForeColor" value="#444" autocomplete="off"/>
<span id="navForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#444; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for navigation bars</small></p>
</div>
<div class="input-group vertical">
<label for="navBackColor">Navigation bar background color:</label>
<input type="text" id="navBackColor" value="#f8f8f8" autocomplete="off"/>
<span id="navBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for navigation bars</small></p>
</div>
<div class="input-group vertical">
<label for="navBorderColor">Navigation bar border color:</label>
<input type="text" id="navBorderColor" value="#ddd" autocomplete="off"/>
<span id="navBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for navigation bars</small></p>
</div>
<div class="input-group vertical">
<label for="navHoverBackColor">Navigation bar background color (hover):</label>
<input type="text" id="navHoverBackColor" value="#f0f0f0" autocomplete="off"/>
<span id="navHoverBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f0f0f0; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for navigation bars on hover</small></p>
</div>
<div class="input-group vertical">
<label for="navLinkColor">Navigation bar link color:</label>
<input type="text" id="navLinkColor" value="#0277bd" autocomplete="off"/>
<span id="navLinkColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#0277bd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for navigation bar links</small></p>
</div>
</fieldset>
<fieldset>
<legend id="footer">Footer</legend>
<div class="input-group vertical">
<label for="footerFontSize">Footer font size (rem):</label>
<input type="number" id="footerFontSize" style="width:calc(100% - 0.5rem);" value="0.875" min="0.001" step="0.001"/>
<p><small>Font size for footers, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="footerForeColor">Footer foreground color:</label>
<input type="text" id="footerForeColor" value="#444" autocomplete="off"/>
<span id="footerForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#444; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for footers</small></p>
</div>
<div class="input-group vertical">
<label for="footerBackColor">Footer background color:</label>
<input type="text" id="footerBackColor" value="#f8f8f8" autocomplete="off"/>
<span id="footerBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for footers</small></p>
</div>
<div class="input-group vertical">
<label for="footerBorderColor">Footer border color:</label>
<input type="text" id="footerBorderColor" value="#ddd" autocomplete="off"/>
<span id="footerBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for footers</small></p>
</div>
<div class="input-group vertical">
<label for="footerLinkColor">Footer link color:</label>
<input type="text" id="footerLinkColor" value="#0277bd" autocomplete="off"/>
<span id="footerLinkColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#0277bd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for footer links</small></p>
</div>
</fieldset>
<fieldset>
<legend id="menu-drawer">Menu Drawer</legend>
<div class="input-group vertical">
<label for="drawerWidth">Menu drawer width (px):</label>
<input type="number" id="drawerWidth" style="width:calc(100% - 0.5rem);" value="320" min="1"/>
<p><small>Width of menu drawers, in pixels</small></p>
</div>
<div class="input-group vertical">
<label for="drawerToggleFontSize">Menu drawer toggle font size (em):</label>
<input type="number" id="drawerToggleFontSize" style="width:calc(100% - 0.5rem);" value="1.5" min="0.001" step="0.001"/>
<p><small>Font size for menu drawer toggle control, relative to context</small></p>
</div>
<div class="input-group vertical">
<label for="drawerCloseSize">Menu drawer close size (rem):</label>
<input type="number" id="drawerCloseSize" style="width:calc(100% - 0.5rem);" value="2" min="0.001" step="0.001"/>
<p><small>Font size for menu drawer close, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="drawerBackColor">Menu drawer background color:</label>
<input type="text" id="drawerBackColor" value="#f8f8f8" autocomplete="off"/>
<span id="drawerBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for menu drawers</small></p>
</div>
<div class="input-group vertical">
<label for="drawerBorderColor">Menu drawer border color:</label>
<input type="text" id="drawerBorderColor" value="#ddd" autocomplete="off"/>
<span id="drawerBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ddd; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for menu drawers</small></p>
</div>
<div class="input-group vertical">
<label for="drawerHoverBackColor">Menu drawer background color (hover):</label>
<input type="text" id="drawerHoverBackColor" value="#f0f0f0" autocomplete="off"/>
<span id="drawerHoverBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f0f0f0; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for menu drawers on hover</small></p>
</div>
<div class="input-group vertical">
<label for="drawerCloseColor">Menu drawer close color:</label>
<input type="text" id="drawerCloseColor" value="#444" autocomplete="off"/>
<span id="drawerCloseColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#444; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Close color for menu drawers</small></p>
</div>
</fieldset>
</form>
<h3>Table module</h3>
<p>The <strong>Table</strong> module contains styling rules for tables. This module is not always enabled and it's recommended to enable it only if you're planning to use tables for displaying data.</p>
<form id="table">
<div class="input-group">
<label for="tableEnabled">Module enabled?</label>
<input type="checkbox" autocomplete="off" checked id="tableEnabled"/>
</div>
<fieldset>
<legend id="tables">Tables</legend>
<div class="input-group vertical">
<label for="maxHeight">Table max height (px):</label>
<input type="number" id="maxHeight" style="width:calc(100% - 0.5rem);" value="400" min="1"/>
<p><small>Table max height, in pixels</small></p>
</div>
<div class="input-group vertical">
<label for="captionFontSize">Caption font size (rem):</label>
<input type="number" id="captionFontSize" style="width:calc(100% - 0.5rem);" value="1.5" min="0.001" step="0.001"/>
<p><small>Font size of table captions, relative to root</small></p>
</div>
<div class="input-group vertical">
<label for="mobileCardLabel">Mobile card label:</label>
<input type="text" id="mobileCardLabel" style="width:calc(100% - 0.5rem);" value="data-label"/>
<p><small>Attribute name for tables' mobile card labels</small></p>
</div>
<div class="input-group vertical">
<label for="mobileLabelFontWeight">Mobile card label font weight:</label>
<input type="number" id="mobileLabelFontWeight" style="width:calc(100% - 0.5rem);" value="16" min="1"/>
<p><small>Font weight for tables' mobile card labels (400 is normal, 700 is bold)</small></p>
</div>
<div class="input-group vertical">
<label for="tableBorderColor">Table border color:</label>
<input type="text" id="tableBorderColor" value="#aaa" autocomplete="off"/>
<span id="tableBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#aaa; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for tables</small></p>
</div>
<div class="input-group vertical">
<label for="tableBorderSeparatorColor">Table separtor border color:</label>
<input type="text" id="tableBorderSeparatorColor" value="#666" autocomplete="off"/>
<span id="tableBorderSeparatorColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#666; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Separator border color for tables</small></p>
</div>
<div class="input-group vertical">
<label for="thForeColor">Table heading foreground color:</label>
<input type="text" id="thForeColor" value="#111" autocomplete="off"/>
<span id="thForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#111; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for table headings</small></p>
</div>
<div class="input-group vertical">
<label for="thBackColor">Table heading background color:</label>
<input type="text" id="thBackColor" value="#e6e6e6" autocomplete="off"/>
<span id="thBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#e6e6e6; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for table headings</small></p>
</div>
<div class="input-group vertical">
<label for="tdForeColor">Table data foreground color:</label>
<input type="text" id="tdForeColor" value="#111" autocomplete="off"/>
<span id="tdForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#111; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Foreground color for table data</small></p>
</div>
<div class="input-group vertical">
<label for="tdBackColor">Table data background color:</label>
<input type="text" id="tdBackColor" value="#f8f8f8" autocomplete="off"/>
<span id="tdBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#f8f8f8; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for table data</small></p>
</div>
<div class="input-group vertical">
<label for="tdAltBackColor">Table data alternative background color:</label>
<input type="text" id="tdAltBackColor" value="#eee" autocomplete="off"/>
<span id="tdAltBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#eee; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Alternative background color for table data</small></p>
</div>
<div class="input-group vertical">
<label for="tdHoverBackColor">Table data background color (hover):</label>
<input type="text" id="tdHoverBackColor" value="#90caf9" autocomplete="off"/>
<span id="tdHoverBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#90caf9; display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Background color for table data on hover</small></p>
</div>
</fieldset>
</form>
<h3>Icons module</h3>
<p>The <strong>Icons</strong> module contains styling rules for icons. This module is not always enabled and it's recommended to enable it only if you're planning to use the icon set provided.</p>
<form id="icons">
<div class="input-group">
<label for="iconsEnabled">Module enabled?</label>
<input type="checkbox" autocomplete="off" id="iconsEnabled"/>
</div>
</form>
<h3>Utility module</h3>
<p>The <strong>Utility</strong> module contains styling rules for utility classes. This module is not always enabled, but it's recommended to enable it as it contains some features that can be useful in most designs.</p>
<form id="utility">
<div class="input-group">
<label for="utilityEnabled">Module enabled? (recommended)</label>
<input type="checkbox" autocomplete="off" checked id="utilityEnabled"/>
</div>
<fieldset>
<legend id="utility">Utilities</legend>
<div class="input-group vertical">
<label for="genericBorderColor">Generic border color:</label>
<input type="text" id="genericBorderColor" value="rgba(0,0,0,0.3)" autocomplete="off"/>
<span id="genericBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:rgba(0,0,0,0.3); display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Border color for the generic border utility class</small></p>
</div>
<div class="input-group vertical">
<label for="genericBoxShadowColor">Generic box shadow color:</label>
<input type="text" id="genericBoxShadowColor" value="rgba(0,0,0,0.125)" autocomplete="off"/>
<span id="genericBoxShadowColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:rgba(0,0,0,0.125); display: inline-block; vertical-align:middle; position: relative; top: -2.25rem; right: calc(-100% + 2.5rem); box-sizing: border-box"></span>
<p style="margin-top: -1rem"><small>Box shadow color for the generic box shadow utility class</small></p>
</div>
</fieldset>
</form>
</div>
<script>
window.onload = function(){
document.getElementById('foreColor').addEventListener('input', function(e){ updateColorPreview('foreColorPreview', e.target.value) });
document.getElementById('backColor').addEventListener('input', function(e){ updateColorPreview('backColorPreview', e.target.value) });
document.getElementById('borderColor').addEventListener('input', function(e){ updateColorPreview('borderColorPreview', e.target.value) });
document.getElementById('secondaryBackColor').addEventListener('input', function(e){ updateColorPreview('secondaryBackColorPreview', e.target.value) });
document.getElementById('secondaryForeColor').addEventListener('input', function(e){ updateColorPreview('secondaryForeColorPreview', e.target.value) });
document.getElementById('secondaryBorderColor').addEventListener('input', function(e){ updateColorPreview('secondaryBorderColorPreview', e.target.value) });
document.getElementById('blockquoteSidebarColor').addEventListener('input', function(e){ updateColorPreview('blockquoteSidebarColorPreview', e.target.value) });
document.getElementById('preSidebarColor').addEventListener('input', function(e){ updateColorPreview('preSidebarColorPreview', e.target.value) });
document.getElementById('aLinkColor').addEventListener('input', function(e){ updateColorPreview('aLinkColorPreview', e.target.value) });
document.getElementById('aVisitedColor').addEventListener('input', function(e){ updateColorPreview('aVisitedColorPreview', e.target.value) });
document.getElementById('cardForeColor').addEventListener('input', function(e){ updateColorPreview('cardForeColorPreview', e.target.value) });
document.getElementById('cardBackColor').addEventListener('input', function(e){ updateColorPreview('cardBackColorPreview', e.target.value) });
document.getElementById('cardBorderColor').addEventListener('input', function(e){ updateColorPreview('cardBorderColorPreview', e.target.value) });
document.getElementById('formForeColor').addEventListener('input', function(e){ updateColorPreview('formForeColorPreview', e.target.value) });
document.getElementById('formBackColor').addEventListener('input', function(e){ updateColorPreview('formBackColorPreview', e.target.value) });
document.getElementById('formBorderColor').addEventListener('input', function(e){ updateColorPreview('formBorderColorPreview', e.target.value) });
document.getElementById('inputForeColor').addEventListener('input', function(e){ updateColorPreview('inputForeColorPreview', e.target.value) });
document.getElementById('inputBackColor').addEventListener('input', function(e){ updateColorPreview('inputBackColorPreview', e.target.value) });
document.getElementById('inputBorderColor').addEventListener('input', function(e){ updateColorPreview('inputBorderColorPreview', e.target.value) });
document.getElementById('inputFocusColor').addEventListener('input', function(e){ updateColorPreview('inputFocusColorPreview', e.target.value) });
document.getElementById('inputInvalidColor').addEventListener('input', function(e){ updateColorPreview('inputInvalidColorPreview', e.target.value) });
document.getElementById('buttonForeColor').addEventListener('input', function(e){ updateColorPreview('buttonForeColorPreview', e.target.value) });
document.getElementById('buttonBackColor').addEventListener('input', function(e){ updateColorPreview('buttonBackColorPreview', e.target.value) });
document.getElementById('buttonBorderColor').addEventListener('input', function(e){ updateColorPreview('buttonBorderColorPreview', e.target.value) });
document.getElementById('buttonHoverBackColor').addEventListener('input', function(e){ updateColorPreview('buttonHoverBackColorPreview', e.target.value) });
document.getElementById('buttonHoverBorderColor').addEventListener('input', function(e){ updateColorPreview('buttonHoverBorderColorPreview', e.target.value) });
document.getElementById('buttonGroupBorderColor').addEventListener('input', function(e){ updateColorPreview('buttonGroupBorderColorPreview', e.target.value) });
document.getElementById('headerForeColor').addEventListener('input', function(e){ updateColorPreview('headerForeColorPreview', e.target.value) });
document.getElementById('headerBackColor').addEventListener('input', function(e){ updateColorPreview('headerBackColorPreview', e.target.value) });
document.getElementById('headerBorderColor').addEventListener('input', function(e){ updateColorPreview('headerBorderColorPreview', e.target.value) });
document.getElementById('headerHoverBackColor').addEventListener('input', function(e){ updateColorPreview('headerHoverBackColorPreview', e.target.value) });
document.getElementById('navForeColor').addEventListener('input', function(e){ updateColorPreview('navForeColorPreview', e.target.value) });
document.getElementById('navBackColor').addEventListener('input', function(e){ updateColorPreview('navBackColorPreview', e.target.value) });
document.getElementById('navHoverBackColor').addEventListener('input', function(e){ updateColorPreview('navHoverBackColorPreview', e.target.value) });
document.getElementById('navBorderColor').addEventListener('input', function(e){ updateColorPreview('navBorderColorPreview', e.target.value) });
document.getElementById('navLinkColor').addEventListener('input', function(e){ updateColorPreview('navLinkColorPreview', e.target.value) });
document.getElementById('footerForeColor').addEventListener('input', function(e){ updateColorPreview('footerForeColorPreview', e.target.value) });
document.getElementById('footerBackColor').addEventListener('input', function(e){ updateColorPreview('footerBackColorPreview', e.target.value) });
document.getElementById('footerBorderColor').addEventListener('input', function(e){ updateColorPreview('footerBorderColorPreview', e.target.value) });
document.getElementById('footerLinkColor').addEventListener('input', function(e){ updateColorPreview('footerLinkColorPreview', e.target.value) });
document.getElementById('drawerForeColor').addEventListener('input', function(e){ updateColorPreview('drawerForeColorPreview', e.target.value) });
document.getElementById('drawerBackColor').addEventListener('input', function(e){ updateColorPreview('drawerBackColorPreview', e.target.value) });
document.getElementById('drawerHoverBackColor').addEventListener('input', function(e){ updateColorPreview('drawerHoverBackColorPreview', e.target.value) });
document.getElementById('drawerCloseColor').addEventListener('input', function(e){ updateColorPreview('drawerCloseColorPreview', e.target.value) });
document.getElementById('tableBorderColor').addEventListener('input', function(e){ updateColorPreview('tableBorderColorPreview', e.target.value) });
document.getElementById('tableBorderSeparatorColor').addEventListener('input', function(e){ updateColorPreview('tableBorderSeparatorColorPreview', e.target.value) });
document.getElementById('thForeColor').addEventListener('input', function(e){ updateColorPreview('thForeColorPreview', e.target.value) });
document.getElementById('thBackColor').addEventListener('input', function(e){ updateColorPreview('thBackColorPreview', e.target.value) });
document.getElementById('tdForeColor').addEventListener('input', function(e){ updateColorPreview('tdForeColorPreview', e.target.value) });
document.getElementById('tdBackColor').addEventListener('input', function(e){ updateColorPreview('tdBackColorPreview', e.target.value) });
document.getElementById('tdAltBackColor').addEventListener('input', function(e){ updateColorPreview('tdAltBackColorPreview', e.target.value) });
document.getElementById('tdHoverBackColor').addEventListener('input', function(e){ updateColorPreview('tdHoverBackColorPreview', e.target.value) });
document.getElementById('markForeColor').addEventListener('input', function(e){ updateColorPreview('markForeColorPreview', e.target.value) });
document.getElementById('markBackColor').addEventListener('input', function(e){ updateColorPreview('markBackColorPreview', e.target.value) });
document.getElementById('toastForeColor').addEventListener('input', function(e){ updateColorPreview('toastForeColorPreview', e.target.value) });
document.getElementById('toastBackColor').addEventListener('input', function(e){ updateColorPreview('toastBackColorPreview', e.target.value) });
document.getElementById('tooltipForeColor').addEventListener('input', function(e){ updateColorPreview('tooltipForeColorPreview', e.target.value) });
document.getElementById('tooltipBackColor').addEventListener('input', function(e){ updateColorPreview('tooltipBackColorPreview', e.target.value) });
document.getElementById('modalOverlayColor').addEventListener('input', function(e){ updateColorPreview('modalOverlayColorPreview', e.target.value) });
document.getElementById('modalCloseColor').addEventListener('input', function(e){ updateColorPreview('modalClosekColorPreview', e.target.value) });
document.getElementById('modalHoverBackColor').addEventListener('input', function(e){ updateColorPreview('modalHoverBackColorPreview', e.target.value) });
document.getElementById('collapseContentBackColor').addEventListener('input', function(e){ updateColorPreview('collapseContentBackColorPreview', e.target.value) });
document.getElementById('collapseLabelForeColor').addEventListener('input', function(e){ updateColorPreview('collapseLabelForeColorPreview', e.target.value) });
document.getElementById('collapseLabelBackColor').addEventListener('input', function(e){ updateColorPreview('collapseLabelBackColorPreview', e.target.value) });
document.getElementById('collapseLabelHoverBackColor').addEventListener('input', function(e){ updateColorPreview('collapseLabelHoverBackColorPreview', e.target.value) });
document.getElementById('collapseSelectedLabelBackColor').addEventListener('input', function(e){ updateColorPreview('collapseSelectedLabelBackColorPreview', e.target.value) });
document.getElementById('collapseBorderColor').addEventListener('input', function(e){ updateColorPreview('collapseBorderColorPreview', e.target.value) });
document.getElementById('collapseSelectedLabelBorderColor').addEventListener('input', function(e){ updateColorPreview('collapseSelectedLabelBorderColorPreview', e.target.value) });
document.getElementById('progressForeColor').addEventListener('input', function(e){ updateColorPreview('progressForeColorPreview', e.target.value) });
document.getElementById('progressBackColor').addEventListener('input', function(e){ updateColorPreview('progressBackColorPreview', e.target.value) });
document.getElementById('spinnerDonutForeColor').addEventListener('input', function(e){ updateColorPreview('spinnerDonutForeColorPreview', e.target.value) });
document.getElementById('spinnerDonutBackColor').addEventListener('input', function(e){ updateColorPreview('spinnerDonutBackColorPreview', e.target.value) });
document.getElementById('genericBorderColor').addEventListener('input', function(e){ updateColorPreview('genericBorderColorPreview', e.target.value) });
document.getElementById('genericBoxShadowColor').addEventListener('input', function(e){ updateColorPreview('genericBoxShadowColorPreview', e.target.value) });
}
function updateColorPreview(element, value) { document.getElementById(element).style.background = value }
</script>
2018-05-01 10:03:23 +00:00
</div><footer><p><strong>mini.css</strong> was designed and built by <a href="https://github.com/Chalarangelo" target="_blank">@Chalarangelo</a>. Source code licensed under the <a href="https://github.com/Chalarangelo/mini.css/blob/master/LICENSE">MIT License</a>.</p><p>Icons provided by <a href="https://feathericons.com/" target="_blank">Feather</a>.</p></footer></main>
</div></div>
</body></html>