1777 lines
No EOL
146 KiB
HTML
1777 lines
No EOL
146 KiB
HTML
<!DOCTYPE html><html lang="en"><head>
|
|
<link href="https://fonts.googleapis.com/css?family=Inconsolata:400,700|Poppins:400,400i,500,700,700i&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">
|
|
<script src="./jszip.min.js"></script>
|
|
<script src="./FileSaver.min.js"></script>
|
|
<script src="./sass.js"></script>
|
|
</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> Github</span></a>
|
|
<a class="button col-sm col-md" href="docs">
|
|
<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>
|
|
<span> 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><a href="#flavor-tools" id="link-to-flavor-tools">Complementary tools</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 & 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 & accordions</a><a href="#progress-bars" id="link-to-progress-bars">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><a href="#generateFlavor" id="link-to-generateFlavor">Generate flavor</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><div class="section"><p><strong>mini.css</strong> comes with a few prebuild flavors out of the box, so you can get started without having to finetune every little aspect of your CSS framework:</p>
|
|
<ul>
|
|
<li>Default: <a href="flavorFiles/mini-default.scss" download>SCSS file</a> - <a href="flavorFiles/mini-default.css" download>CSS file</a> - <a href="flavorFiles/mini-default.min.css" download>CSS file (minified)</a></li>
|
|
<li>Dark: <a href="flavorFiles/mini-dark.scss" download>SCSS file</a> - <a href="flavorFiles/mini-dark.css" download>CSS file</a> - <a href="flavorFiles/mini-dark.min.css" download>CSS file (minified)</a></li>
|
|
<li>Nord: <a href="flavorFiles/mini-nord.scss" download>SCSS file</a> - <a href="flavorFiles/mini-nord.css" download>CSS file</a> - <a href="flavorFiles/mini-nord.min.css" download>CSS file (minified)</a></li>
|
|
</ul></div>
|
|
</div><br/><div id="flavor-tools" class="card fluid">
|
|
<h2 class="section double-padded">Complementary tools</h2><div class="section"><p>Building a custom flavor can be complex, even with the amount of streamlining we have provided. We have hand-picked the following tools to assist you in creating the perfect flavor for your needs:</p>
|
|
<ul>
|
|
<li><a href="https://coolors.co/" rel="noopener" target="_blank">Coolors - Color schemes generator</a></li>
|
|
<li><a href="https://uigradients.com/#PlayingwithReds" rel="noopener" target="_blank">uiGradients - Beautiful colored gradients</a></li>
|
|
<li><a href="https://www.cssmatic.com/box-shadow" rel="noopener" target="_blank">Box shadow generator</a></li>
|
|
<li><a href="https://www.webpagefx.com/web-design/hex-to-rgb/" rel="noopener" target="_blank">HEX to RGB converter</a></li>
|
|
<li><a href="http://www.colorzilla.com/gradient-editor/" rel="noopener" target="_blank">Gradient generator</a></li>
|
|
</ul></div>
|
|
</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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<p><small>Bottom position for subscript, relative to context</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="blockquoteQuotationSize">Blockquote quotation size (rem):</label>
|
|
<input type="number" id="blockquoteQuotationSize" style="width:calc(100% - 0.5rem);" value="3" min="0.001" step="0.001" autocomplete="off"/>
|
|
<p><small>Font size for the quotation of blockquotes, relative to root</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="blockquoteCiteSize">Blockquote cite size (rem):</label>
|
|
<input type="number" id="blockquoteCiteSize" style="width:calc(100% - 0.5rem);" value="0.75" min="0.001" step="0.001" autocomplete="off"/>
|
|
<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="secondaryBorderColorPreview" 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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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>
|
|
<input type="text" id="universalBoxShadow" style="width:calc(100% - 0.5rem);" value="none" autocomplete="off">
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<p><small>Number of horizontal column partitions for the grid system (default 12)</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" autocomplete="off"/>
|
|
<p><small>Width of normal cards, in pixels</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardSmallWidth">Card small width (px):</label>
|
|
<input type="number" id="cardSmallWidth" style="width:calc(100% - 0.5rem);" value="240" min="1" autocomplete="off"/>
|
|
<p><small>Width of small cards, in pixels</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardLargeWidth">Card large width (px):</label>
|
|
<input type="number" id="cardLargeWidth" style="width:calc(100% - 0.5rem);" value="480" min="1" autocomplete="off"/>
|
|
<p><small>Width of large 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" autocomplete="off"/>
|
|
<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>
|
|
<div class="input-group vertical">
|
|
<label for="cardWarningForeColor">Warning card foreground color:</label>
|
|
<input type="text" id="cardWarningForeColor" value="#111" autocomplete="off"/>
|
|
<span id="cardWarningForeColorPreview" 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 warning cards</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardWarningBackColor">Warning card background color:</label>
|
|
<input type="text" id="cardWarningBackColor" value="#ffca28" autocomplete="off"/>
|
|
<span id="cardWarningBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ffca28; 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 warning cards</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardWarningBorderColor">Warning card border color:</label>
|
|
<input type="text" id="cardWarningBorderColor" value="#e8b825" autocomplete="off"/>
|
|
<span id="cardWarningBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#e8b825; 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 warning cards</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardErrorForeColor">Error card foreground color:</label>
|
|
<input type="text" id="cardErrorForeColor" value="#f8f8f8" autocomplete="off"/>
|
|
<span id="cardErrorForeColorPreview" 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>Foreground color for error cards</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardErrorBackColor">Error card background color:</label>
|
|
<input type="text" id="cardErrorBackColor" value="#b71c1c" autocomplete="off"/>
|
|
<span id="cardErrorBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#b71c1c; 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 error cards</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardErrorBorderColor">Error card border color:</label>
|
|
<input type="text" id="cardErrorBorderColor" value="#a71a1a" autocomplete="off"/>
|
|
<span id="cardErrorBorderColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#a71a1a; 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 error cards</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardDarkSectionForeColor">Card dark section foreground color:</label>
|
|
<input type="text" id="cardDarkSectionForeColor" value="#111" autocomplete="off"/>
|
|
<span id="cardDarkSectionForeColorPreview" 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 card dark sections</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="cardDarkSectionBackColor">Card dark section background color:</label>
|
|
<input type="text" id="cardDarkSectionBackColor" value="#e0e0e0" autocomplete="off"/>
|
|
<span id="cardDarkSectionBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#e0e0e0; 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 card dark sections</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="inputControlEnabled">Module enabled? (recommended)</label>
|
|
<input type="checkbox" checked autocomplete="off" id="inputControlEnabled"/>
|
|
</div>
|
|
<fieldset>
|
|
<legend id="forms-and-input">Forms & 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="buttonPrimaryForeColor">Button primary variant foreground color:</label>
|
|
<input type="text" id="buttonPrimaryForeColor" value="#f8f8f8" autocomplete="off"/>
|
|
<span id="buttonPrimaryForeColorPreview" 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>Foreground color for primary button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonPrimaryBackColor">Button primary variant background color:</label>
|
|
<input type="text" id="buttonPrimaryBackColor" value="#1976d2" autocomplete="off"/>
|
|
<span id="buttonPrimaryBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#1976d2; 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 primary button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonPrimaryHoverBackColor">Button primary variant background color (hover):</label>
|
|
<input type="text" id="buttonPrimaryHoverBackColor" value="#1565c0" autocomplete="off"/>
|
|
<span id="buttonPrimaryHoverBackColorPreview" 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>Background color for primary button variant on hover</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonSecondaryForeColor">Button secondary variant foreground color:</label>
|
|
<input type="text" id="buttonSecondaryForeColor" value="#f8f8f8" autocomplete="off"/>
|
|
<span id="buttonSecondaryForeColorPreview" 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>Foreground color for secondary button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonSecondaryBackColor">Button secondary variant background color:</label>
|
|
<input type="text" id="buttonSecondaryBackColor" value="#d32f2f" autocomplete="off"/>
|
|
<span id="buttonSecondaryBackColorPreview" 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>Background color for secondary button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonSecondaryHoverBackColor">Button secondary variant background color (hover):</label>
|
|
<input type="text" id="buttonSecondaryHoverBackColor" value="#c62828" autocomplete="off"/>
|
|
<span id="buttonHoverSecondaryBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#c62828; 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 secondary button variant on hover</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonTertiaryForeColor">Button tertiary variant foreground color:</label>
|
|
<input type="text" id="buttonTertiaryForeColor" value="#f8f8f8" autocomplete="off"/>
|
|
<span id="buttonTertiaryForeColorPreview" 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>Foreground color for tertiary button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonTertiaryBackColor">Button tertiary variant background color:</label>
|
|
<input type="text" id="buttonTertiaryBackColor" value="#308732" autocomplete="off"/>
|
|
<span id="buttonTertiaryBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#308732; 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 tertiary button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonTertiaryHoverBackColor">Button tertiary variant background color (hover):</label>
|
|
<input type="text" id="buttonTertiaryHoverBackColor" value="#277529" autocomplete="off"/>
|
|
<span id="buttonTertiaryHoverBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#277529; 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 tertiary button variant on hover</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonInverseForeColor">Button inverse variant foreground color:</label>
|
|
<input type="text" id="buttonInverseForeColor" value="#f8f8f8" autocomplete="off"/>
|
|
<span id="buttonInverseForeColorPreview" 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>Foreground color for inverse button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonInverseBackColor">Button inverse variant background color:</label>
|
|
<input type="text" id="buttonInverseBackColor" value="#212121" autocomplete="off"/>
|
|
<span id="buttonInverseBackColorPreview" 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>Background color for inverse button variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="buttonInverseHoverBackColor">Button inverse variant background color (hover):</label>
|
|
<input type="text" id="buttonInverseHoverBackColor" value="#111" autocomplete="off"/>
|
|
<span id="buttonInverseHoverBackColorPreview" 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>Background color for inverse button variant 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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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" autocomplete="off"/>
|
|
<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="600" min="1" autocomplete="off"/>
|
|
<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>Contextual module</h3>
|
|
<p>The <strong>Contextual</strong> module contains styling rules for text highlighting, toasts, tooltips, modal dialogs, spoilers and accordions. 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="contextual">
|
|
<div class="input-group">
|
|
<label for="contextualEnabled">Module enabled?</label>
|
|
<input type="checkbox" autocomplete="off" checked id="contextualEnabled"/>
|
|
</div>
|
|
<fieldset>
|
|
<legend id="text-highlighting">Text highlighting</legend>
|
|
<div class="input-group vertical">
|
|
<label for="markForeColor">Highlight foreground color:</label>
|
|
<input type="text" id="markForeColor" value="#fafafa" autocomplete="off"/>
|
|
<span id="markForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#fafafa; 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 highlighted text elements</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="markBackColor">Highlight background color:</label>
|
|
<input type="text" id="markBackColor" value="#0277bd" autocomplete="off"/>
|
|
<span id="markBackColorPreview" 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>Background color for highlighted text elements</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="markFontSize">Highlight font size (em):</label>
|
|
<input type="number" id="markFontSize" style="width:calc(100% - 0.5rem);" value="0.95" step="0.001" autocomplete="off"/>
|
|
<p><small>Font size for highlighted text elements, relative to context</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="markLineHeight">Highlight line height:</label>
|
|
<input type="number" id="markLineHeight" style="width:calc(100% - 0.5rem);" value="1" step="0.001" autocomplete="off"/>
|
|
<p><small>Line height for highlighted text elements</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="markSecondaryBackColor">Secondary highlight background color:</label>
|
|
<input type="text" id="markSecondaryBackColor" value="#d32f2f" autocomplete="off"/>
|
|
<span id="markSecondaryBackColorPreview" 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>Background color for highlighted text element secondary variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="markTertiaryBackColor">Tertiary highlight background color:</label>
|
|
<input type="text" id="markTertiaryBackColor" value="#308732" autocomplete="off"/>
|
|
<span id="markTertiaryBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#308732; 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 highlighted text element tertiary variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="markTagBorderRadius">Highlight tag variant border radius (em):</label>
|
|
<input type="number" id="markTagBorderRadius" style="width:calc(100% - 0.5rem);" value="1" step="0.001" autocomplete="off"/>
|
|
<p><small>Border radius for highlighted text element tag variant, relative to context</small></p>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend id="toasts">Toasts</legend>
|
|
<div class="input-group vertical">
|
|
<label for="toastForeColor">Toast foreground color:</label>
|
|
<input type="text" id="toastForeColor" value="#fafafa" autocomplete="off"/>
|
|
<span id="toastForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#fafafa; 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 toasts</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="toastBackColor">Toast background color:</label>
|
|
<input type="text" id="toastBackColor" value="#424242" autocomplete="off"/>
|
|
<span id="toastBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#424242; 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 toasts</small></p>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend id="tooltips">Tooltips</legend>
|
|
<div class="input-group vertical">
|
|
<label for="tooltipForeColor">Tooltip foreground color:</label>
|
|
<input type="text" id="tooltipForeColor" value="#fafafa" autocomplete="off"/>
|
|
<span id="tooltipForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#fafafa; 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 tooltips</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="tooltipBackColor">Tooltip background color:</label>
|
|
<input type="text" id="tooltipBackColor" value="#212121" autocomplete="off"/>
|
|
<span id="tooltipBackColorPreview" 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>Background color for tooltips</small></p>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend id="modals">Modal dialogs</legend>
|
|
<div class="input-group vertical">
|
|
<label for="modalOverlayColor">Modal overlay color:</label>
|
|
<input type="text" id="modalOverlayColor" value="rgba(0,0,0,0.45)" autocomplete="off"/>
|
|
<span id="modalOverlayColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:rgba(0,0,0,0.45); 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>Overal color for modal dialogs</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="modalCloseColor">Modal close color:</label>
|
|
<input type="text" id="modalCloseColor" value="#444" autocomplete="off"/>
|
|
<span id="modalCloseColorPreview" 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 modal dialogs</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="modalCloseHoverBackColor">Modal close background color (hover):</label>
|
|
<input type="text" id="modalCloseHoverBackColor" value="#f0f0f0" autocomplete="off"/>
|
|
<span id="modalCloseHoverBackColorPreview" 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 modal dialogs' close (on hover)</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="modalCloseSize">Modal close size (rem):</label>
|
|
<input type="number" id="modalCloseSize" style="width:calc(100% - 0.5rem);" value="1.75" min="0.001" step="0.001"/>
|
|
<p><small>Modal dialog close size, relative to root</small></p>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend id="collapse">Spoilers & accordions</legend>
|
|
<div class="input-group vertical">
|
|
<label for="collapseLabelHeight">Collapse label height (rem):</label>
|
|
<input type="number" id="collapseLabelHeight" style="width:calc(100% - 0.5rem);" value="1.5" min="0.001" step="0.001" autocomplete="off"/>
|
|
<p><small>Label height for spoilers & accordions, relative to root</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseContentMaxHeight">Collapse content max height (px):</label>
|
|
<input type="number" id="collapseContentMaxHeight" style="width:calc(100% - 0.5rem);" value="400" min="1" autocomplete="off"/>
|
|
<p><small>Maximum height for content in spoilers & accordions, in pixels</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseContentBackColor">Collapse content background color:</label>
|
|
<input type="text" id="collapseContentBackColor" value="#fafafa" autocomplete="off"/>
|
|
<span id="collapseContentBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#fafafa; 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 content in spoilers & accordions</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseBorderColor">Collapse border color:</label>
|
|
<input type="text" id="collapseBorderColor" value="#ddd" autocomplete="off"/>
|
|
<span id="collapseBorderColorPreview" 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 spoilers & accordions</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseLabelForeColor">Collapse label foreground color:</label>
|
|
<input type="text" id="collapseLabelForeColor" value="#212121" autocomplete="off"/>
|
|
<span id="collapseLabelForeColorPreview" 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 labels in spoilers & accordions</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseLabelBackColor">Collapse label background color:</label>
|
|
<input type="text" id="collapseLabelBackColor" value="#e8e8e8" autocomplete="off"/>
|
|
<span id="collapseLabelBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#e8e8e8; 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 labels in spoilers & accordions</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseLabelHoverBackColor">Collapse label background color (hover):</label>
|
|
<input type="text" id="collapseLabelHoverBackColor" value="#f0f0f0" autocomplete="off"/>
|
|
<span id="collapseLabelHoverBackColorPreview" 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 labels in spoilers & accordions (on hover)</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseSelectedLabelBackColor">Collapse selected label background color:</label>
|
|
<input type="text" id="collapseSelectedLabelBackColor" value="#ececec" autocomplete="off"/>
|
|
<span id="collapseSelectedLabelBackColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#ececec; 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 selected labels in spoilers & accordions</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="collapseSelectedLabelBorderColor">Collapse selected label border color:</label>
|
|
<input type="text" id="collapseSelectedLabelBorderColor" value="#0277bd" autocomplete="off"/>
|
|
<span id="collapseSelectedLabelBorderColorPreview" 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>Border color for selected labels in spoilers & accordions</small></p>
|
|
</div>
|
|
</fieldset>
|
|
</form>
|
|
<h3>Progress module</h3>
|
|
<p>The <strong>Progress</strong> module contains styling rules for progress bars and donut spinners. 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="progress">
|
|
<div class="input-group">
|
|
<label for="progressEnabled">Module enabled?</label>
|
|
<input type="checkbox" autocomplete="off" checked id="progressEnabled"/>
|
|
</div>
|
|
<fieldset>
|
|
<legend id="progress-bars">Progress bars</legend>
|
|
<div class="input-group vertical">
|
|
<label for="progressHeight">Progress bar height (rem):</label>
|
|
<input type="number" id="progressHeight" style="width:calc(100% - 0.5rem);" value="0.75" min="0.001" step="0.001" autocomplete="off"/>
|
|
<p><small>Height of progress bars, relative to root</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="progressForeColor">Progress bar foreground color:</label>
|
|
<input type="text" id="progressForeColor" value="#555" autocomplete="off"/>
|
|
<span id="progressForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#555; 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 progress bars</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="progressBackColor">Progress bar background color:</label>
|
|
<input type="text" id="progressBackColor" value="#ddd" autocomplete="off"/>
|
|
<span id="progressBackColorPreview" 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>Background color for progress bars</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="progressPrimaryForeColor">Progress bar primary variant foreground color:</label>
|
|
<input type="text" id="progressPrimaryForeColor" value="#1976d2" autocomplete="off"/>
|
|
<span id="progressPrimaryForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#1976d2; 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 progress bar primary variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="progressSecondaryForeColor">Progress bar secondary variant foreground color:</label>
|
|
<input type="text" id="progressSecondaryForeColor" value="#d32f2f" autocomplete="off"/>
|
|
<span id="progressSecondaryForeColorPreview" 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>Foreground color for progress bar secondary variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="progressTertiaryForeColor">Progress bar tertiary variant foreground color:</label>
|
|
<input type="text" id="progressTertiaryForeColor" value="#308732" autocomplete="off"/>
|
|
<span id="progressTertiaryForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#308732; 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 progress bar tertiary variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="progressMaxValue">Progress bar maximum value:</label>
|
|
<input type="number" id="progressMaxValue" style="width:calc(100% - 0.5rem);" value="1000" min="2" autocomplete="off"/>
|
|
<p><small>Maximum value for progress bars</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="progressInlineWidth">Progress bar inline width (%):</label>
|
|
<input type="number" id="progressInlineWidth" style="width:calc(100% - 0.5rem);" value="60" min="0.01" step="0.001" autocomplete="off"/>
|
|
<p><small>Width for inline progress bars, in percentage</small></p>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend id="donut-spinner">Donut spinners</legend>
|
|
<div class="input-group vertical">
|
|
<label for="spinnerDonutSize">Donut spinner size (rem):</label>
|
|
<input type="number" id="spinnerDonutSize" style="width:calc(100% - 0.5rem);" value="1.25" min="0.001" step="0.001" autocomplete="off"/>
|
|
<p><small>Size of donut spinners, relative to root</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="spinnerDonutBorderThickness">Donut spinner thickness (rem):</label>
|
|
<input type="number" id="spinnerDonutBorderThickness" style="width:calc(100% - 0.5rem);" value="0.25" min="0.001" step="0.001" autocomplete="off"/>
|
|
<p><small>Thickness of donut spinners, relative to root</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="spinnerDonutForeColor">Donut spinner foreground color:</label>
|
|
<input type="text" id="spinnerDonutForeColor" value="#555" autocomplete="off"/>
|
|
<span id="spinnerDonutForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#555; 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 donut spinners</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="spinnerDonutBackColor">Donut spinner background color:</label>
|
|
<input type="text" id="spinnerDonutBackColor" value="#ddd" autocomplete="off"/>
|
|
<span id="spinnerDonutBackColorPreview" 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>Background color for donut spinners</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="spinnerDonutPrimaryForeColor">Donut spinner primary variant foreground color:</label>
|
|
<input type="text" id="spinnerDonutPrimaryForeColor" value="#1976d2" autocomplete="off"/>
|
|
<span id="spinnerDonutPrimaryForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#1976d2; 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 donut spinner primary variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="spinnerDonutSecondaryForeColor">Donut spinner secondary variant foreground color:</label>
|
|
<input type="text" id="spinnerDonutSecondaryForeColor" value="#d32f2f" autocomplete="off"/>
|
|
<span id="spinnerDonutSecondaryForeColorPreview" 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>Foreground color for donut spinner secondary variant</small></p>
|
|
</div>
|
|
<div class="input-group vertical">
|
|
<label for="spinnerDonutTertiaryForeColor">Donut spinner tertiary variant foreground color:</label>
|
|
<input type="text" id="spinnerDonutTertiaryForeColor" value="#308732" autocomplete="off"/>
|
|
<span id="spinnerDonutTertiaryForeColorPreview" class="circular bordered" style="width: 24px; height: 24px; background:#308732; 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 donut spinner tertiary variant</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>
|
|
<h3>Get your flavor</h3>
|
|
<p>Click the button below to get your customized flavor! You will have to be a little patient, as flavor generation can take up to a few minutes. You will be prompted to download a zip file as soon as it's done!</p>
|
|
<button id="generateFlavor" class="primary">Generate flavor</button> <span id="generatorStatus"></span>
|
|
</div>
|
|
<script>
|
|
window.onload = function(){
|
|
previewPairs.forEach(function(v){
|
|
autoPreview(document.getElementById(v[0]), v[1]);
|
|
});
|
|
autoUpdatePairs.forEach(function(v){
|
|
autoUpdate(document.getElementById(v[0]), document.getElementById(v[1]));
|
|
});
|
|
controlDisablerPairs.forEach(function(v){
|
|
changeFormControls(v[0], v[1]);
|
|
});
|
|
document.getElementById('generateFlavor').addEventListener('click', function(e){
|
|
generateFlavor();
|
|
});
|
|
}
|
|
var previewPairs = [
|
|
['foreColor','foreColorPreview'],
|
|
['backColor','backColorPreview'],
|
|
['borderColor','borderColorPreview'],
|
|
['secondaryBackColor','secondaryBackColorPreview'],
|
|
['secondaryForeColor','secondaryForeColorPreview'],
|
|
['secondaryBorderColor','secondaryBorderColorPreview'],
|
|
['blockquoteSidebarColor','blockquoteSidebarColorPreview'],
|
|
['preSidebarColor','preSidebarColorPreview'],
|
|
['aLinkColor','aLinkColorPreview'],
|
|
['aVisitedColor','aVisitedColorPreview'],
|
|
['cardForeColor','cardForeColorPreview'],
|
|
['cardBackColor','cardBackColorPreview'],
|
|
['cardBorderColor','cardBorderColorPreview'],
|
|
['cardWarningBackColor', 'cardWarningBackColorPreview'],
|
|
['cardWarningForeColor', 'cardWarningForeColorPreview'],
|
|
['cardWarningBorderColor', 'cardWarningBorderColorPreview'],
|
|
['cardErrorBackColor', 'cardErrorBackColorPreview'],
|
|
['cardErrorForeColor', 'cardErrorForeColorPreview'],
|
|
['cardErrorBorderColor', 'cardErrorBorderColorPreview'],
|
|
['cardDarkSectionBackColor', 'cardDarkSectionBackColorPreview'],
|
|
['cardDarkSectionForeColor', 'cardDarkSectionForeColorPreview'],
|
|
['formForeColor','formForeColorPreview'],
|
|
['formBackColor','formBackColorPreview'],
|
|
['formBorderColor','formBorderColorPreview'],
|
|
['inputForeColor','inputForeColorPreview'],
|
|
['inputBackColor','inputBackColorPreview'],
|
|
['inputBorderColor','inputBorderColorPreview'],
|
|
['inputFocusColor','inputFocusColorPreview'],
|
|
['inputInvalidColor','inputInvalidColorPreview'],
|
|
['buttonForeColor','buttonForeColorPreview'],
|
|
['buttonBackColor','buttonBackColorPreview'],
|
|
['buttonBorderColor','buttonBorderColorPreview'],
|
|
['buttonHoverBackColor','buttonHoverBackColorPreview'],
|
|
['buttonHoverBorderColor','buttonHoverBorderColorPreview'],
|
|
['buttonPrimaryForeColor','buttonPrimaryForeColorPreview'],
|
|
['buttonPrimaryBackColor','buttonPrimaryBackColorPreview'],
|
|
['buttonPrimaryHoverBackColor','buttonPrimaryHoverBackColorPreview'],
|
|
['buttonSecondaryForeColor','buttonSecondaryForeColorPreview'],
|
|
['buttonSecondaryBackColor','buttonSecondaryBackColorPreview'],
|
|
['buttonSecondaryHoverBackColor','buttonSecondaryHoverBackColorPreview'],
|
|
['buttonTertiaryForeColor','buttonTertiaryForeColorPreview'],
|
|
['buttonTertiaryBackColor','buttonTertiaryBackColorPreview'],
|
|
['buttonTertiaryHoverBackColor','buttonTertiaryHoverBackColorPreview'],
|
|
['buttonInverseForeColor','buttonInverseForeColorPreview'],
|
|
['buttonInverseBackColor','buttonInverseBackColorPreview'],
|
|
['buttonInverseHoverBackColor','buttonInverseHoverBackColorPreview'],
|
|
['buttonGroupBorderColor','buttonGroupBorderColorPreview'],
|
|
['headerForeColor','headerForeColorPreview'],
|
|
['headerBackColor','headerBackColorPreview'],
|
|
['headerBorderColor','headerBorderColorPreview'],
|
|
['headerHoverBackColor','headerHoverBackColorPreview'],
|
|
['navForeColor','navForeColorPreview'],
|
|
['navBackColor','navBackColorPreview'],
|
|
['navHoverBackColor','navHoverBackColorPreview'],
|
|
['navBorderColor','navBorderColorPreview'],
|
|
['navLinkColor','navLinkColorPreview'],
|
|
['footerForeColor','footerForeColorPreview'],
|
|
['footerBackColor','footerBackColorPreview'],
|
|
['footerBorderColor','footerBorderColorPreview'],
|
|
['footerLinkColor','footerLinkColorPreview'],
|
|
['drawerBackColor','drawerBackColorPreview'],
|
|
['drawerHoverBackColor','drawerHoverBackColorPreview'],
|
|
['drawerCloseColor','drawerCloseColorPreview'],
|
|
['tableBorderColor','tableBorderColorPreview'],
|
|
['tableBorderSeparatorColor','tableBorderSeparatorColorPreview'],
|
|
['thForeColor','thForeColorPreview'],
|
|
['thBackColor','thBackColorPreview'],
|
|
['tdForeColor','tdForeColorPreview'],
|
|
['tdBackColor','tdBackColorPreview'],
|
|
['tdAltBackColor','tdAltBackColorPreview'],
|
|
['tdHoverBackColor','tdHoverBackColorPreview'],
|
|
['markForeColor','markForeColorPreview'],
|
|
['markBackColor','markBackColorPreview'],
|
|
['markSecondaryBackColor','markSecondaryBackColorPreview'],
|
|
['markTertiaryBackColor','markTertiaryBackColorPreview'],
|
|
['toastForeColor','toastForeColorPreview'],
|
|
['toastBackColor','toastBackColorPreview'],
|
|
['tooltipForeColor','tooltipForeColorPreview'],
|
|
['tooltipBackColor','tooltipBackColorPreview'],
|
|
['modalOverlayColor','modalOverlayColorPreview'],
|
|
['modalCloseColor','modalCloseColorPreview'],
|
|
['modalCloseHoverBackColor','modalCloseHoverBackColorPreview'],
|
|
['collapseContentBackColor','collapseContentBackColorPreview'],
|
|
['collapseLabelForeColor','collapseLabelForeColorPreview'],
|
|
['collapseLabelBackColor','collapseLabelBackColorPreview'],
|
|
['collapseLabelHoverBackColor','collapseLabelHoverBackColorPreview'],
|
|
['collapseSelectedLabelBackColor','collapseSelectedLabelBackColorPreview'],
|
|
['collapseBorderColor','collapseBorderColorPreview'],
|
|
['collapseSelectedLabelBorderColor','collapseSelectedLabelBorderColorPreview'],
|
|
['progressForeColor','progressForeColorPreview'],
|
|
['progressBackColor','progressBackColorPreview'],
|
|
['progressPrimaryForeColor','progressPrimaryForeColorPreview'],
|
|
['progressSecondaryForeColor','progressSecondaryForeColorPreview'],
|
|
['progressTertiaryForeColor','progressTertiaryForeColorPreview'],
|
|
['spinnerDonutForeColor','spinnerDonutForeColorPreview'],
|
|
['spinnerDonutBackColor','spinnerDonutBackColorPreview'],
|
|
['spinnerDonutPrimaryForeColor','spinnerDonutPrimaryForeColorPreview'],
|
|
['spinnerDonutSecondaryForeColor','spinnerDonutSecondaryForeColorPreview'],
|
|
['spinnerDonutTertiaryForeColor','spinnerDonutTertiaryForeColorPreview'],
|
|
['genericBorderColor','genericBorderColorPreview'],
|
|
['genericBoxShadowColor','genericBoxShadowColorPreview']
|
|
];
|
|
var autoUpdatePairs = [
|
|
['cardForeColor', 'foreColor'],
|
|
['cardBackColor', 'backColor'],
|
|
['cardBorderColor', 'secondaryBorderColor'],
|
|
['formBackColor', 'secondaryBackColor'],
|
|
['formForeColor', 'foreColor'],
|
|
['formBorderColor', 'secondaryBorderColor'],
|
|
['inputBackColor', 'backColor'],
|
|
['inputForeColor', 'foreColor'],
|
|
['inputBorderColor', 'secondaryBorderColor'],
|
|
['headerBackColor', 'backColor'],
|
|
['headerForeColor', 'secondaryForeColor'],
|
|
['headerHoverBackColor', 'secondaryBackColor'],
|
|
['headerBorderColor', 'secondaryBorderColor'],
|
|
['navBackColor', 'backColor'],
|
|
['navForeColor', 'secondaryForeColor'],
|
|
['navHoverBackColor', 'secondaryBackColor'],
|
|
['navBorderColor', 'secondaryBorderColor'],
|
|
['navLinkColor', 'aLinkColor'],
|
|
['footerBackColor', 'backColor'],
|
|
['footerForeColor', 'secondaryForeColor'],
|
|
['footerBorderColor', 'secondaryBorderColor'],
|
|
['footerLinkColor', 'aLinkColor'],
|
|
['drawerBackColor', 'backColor'],
|
|
['drawerHoverBackColor', 'secondaryBackColor'],
|
|
['drawerBorderColor', 'secondaryBorderColor'],
|
|
['drawerCloseColor', 'secondaryForeColor'],
|
|
['tableBorderColor', 'borderColor'],
|
|
['thForeColor', 'foreColor'],
|
|
['tdBackColor', 'backColor'],
|
|
['tdForeColor', 'foreColor'],
|
|
['modalCloseColor', 'secondaryForeColor'],
|
|
['modalCloseHoverBackColor', 'secondaryBackColor'],
|
|
['collapseLabelHoverBackColor', 'secondaryBackColor'],
|
|
['collapseBorderColor', 'secondaryBorderColor'],
|
|
['collapseSelectedLabelBorderColor', 'aLinkColor'],
|
|
['progressBackColor', 'secondaryBorderColor'],
|
|
['spinnerDonutBackColor', 'progressBackColor'],
|
|
['spinnerDonutForeColor', 'progressForeColor']
|
|
];
|
|
var controlDisablerPairs = [
|
|
['layoutEnabled', 'layout'],
|
|
['inputControlEnabled','inputControl'],
|
|
['navigationEnabled', 'navigation'],
|
|
['tableEnabled', 'table'],
|
|
['contextualEnabled', 'contextual'],
|
|
['progressEnabled', 'progress'],
|
|
['iconsEnabled', 'icons'],
|
|
['utilityEnabled', 'utility']
|
|
];
|
|
function changeFormControls(element, form){
|
|
document.getElementById(element).addEventListener('input', function(e){
|
|
if(e.target.checked)
|
|
Array.prototype.slice.call(document.querySelectorAll('#'+form+' :not(#'+element+')')).forEach(v => v.disabled = false);
|
|
else
|
|
Array.prototype.slice.call(document.querySelectorAll('#'+form+' :not(#'+element+')')).forEach(v => v.disabled = true);
|
|
});
|
|
}
|
|
function updateColorPreview(element, value) { document.getElementById(element).style.background = value }
|
|
function autoPreview(element, previewElement){
|
|
element.addEventListener('input', function(e){ updateColorPreview(previewElement, e.target.value)});
|
|
element.addEventListener('change', function(e){ updateColorPreview(previewElement, e.target.value)});
|
|
}
|
|
function autoUpdate(element, fromElement){
|
|
element.setAttribute('autoupdate','true');
|
|
element.addEventListener('input', function(e){ e.target.setAttribute('autoupdate','false')});
|
|
fromElement.addEventListener('input', function(e){
|
|
if(element.getAttribute('autoupdate') === 'true'){
|
|
element.value = e.target.value;
|
|
element.dispatchEvent(new Event('change'));
|
|
}
|
|
})
|
|
}
|
|
function getFlavorData(){
|
|
return {
|
|
core : {
|
|
baseRootFontSize: document.getElementById('baseRootFontSize').value,
|
|
baseLineHeight: document.getElementById('baseLineHeight').value,
|
|
foreColor: document.getElementById('foreColor').value,
|
|
backColor: document.getElementById('backColor').value,
|
|
secondaryForeColor: document.getElementById('secondaryForeColor').value,
|
|
secondaryBackColor: document.getElementById('secondaryBackColor').value,
|
|
borderColor: document.getElementById('borderColor').value,
|
|
secondaryBorderColor: document.getElementById('secondaryBorderColor').value,
|
|
universalMargin: document.getElementById('universalMargin').value,
|
|
universalPadding: document.getElementById('universalPadding').value,
|
|
universalBorderRadius: document.getElementById('universalBorderRadius').value,
|
|
universalBoxShadow: document.getElementById('universalBoxShadow').value,
|
|
headingLineHeight: document.getElementById('headingLineHeight').value,
|
|
headingRatio: document.getElementById('headingRatio').value,
|
|
headingFontWeight: document.getElementById('headingFontWeight').value,
|
|
subheadingFontSize: document.getElementById('subheadingFontSize').value,
|
|
subheadingTopMargin: document.getElementById('subheadingTopMargin').value,
|
|
smallFontSize: document.getElementById('smallFontSize').value,
|
|
boldFontWeight: document.getElementById('boldFontWeight').value,
|
|
horizontalRuleLineHeight: document.getElementById('horizontalRuleLineHeight').value,
|
|
blockquoteSidebarColor: document.getElementById('blockquoteSidebarColor').value,
|
|
blockquoteQuotationSize: document.getElementById('blockquoteQuotationSize').value,
|
|
blockquoteCiteSize: document.getElementById('blockquoteCiteSize').value,
|
|
codeFontSize: document.getElementById('codeFontSize').value,
|
|
preSidebarColor: document.getElementById('preSidebarColor').value,
|
|
supTop: document.getElementById('supTop').value,
|
|
subBottom: document.getElementById('subBottom').value,
|
|
aLinkColor: document.getElementById('aLinkColor').value,
|
|
aVisitedColor: document.getElementById('aVisitedColor').value,
|
|
mobileBreakpoint: document.getElementById('mobileBreakpoint').value,
|
|
largeScreenBreakpoint: document.getElementById('largeScreenBreakpoint').value
|
|
},
|
|
layout : {
|
|
enabled: document.getElementById('layoutEnabled').checked,
|
|
gridColumnCount: document.getElementById('gridColumnCount').value,
|
|
cardNormalWidth: document.getElementById('cardNormalWidth').value,
|
|
cardSectionMediaHeight: document.getElementById('cardSectionMediaHeight').value,
|
|
cardBackColor: document.getElementById('cardBackColor').value,
|
|
cardForeColor: document.getElementById('cardForeColor').value,
|
|
cardBorderColor: document.getElementById('cardBorderColor').value,
|
|
cardSmallWidth: document.getElementById('cardSmallWidth').value,
|
|
cardLargeWidth: document.getElementById('cardLargeWidth').value,
|
|
cardWarningBackColor: document.getElementById('cardWarningBackColor').value,
|
|
cardWarningForeColor: document.getElementById('cardWarningForeColor').value,
|
|
cardWarningBorderColor: document.getElementById('cardWarningBorderColor').value,
|
|
cardErrorBackColor: document.getElementById('cardErrorBackColor').value,
|
|
cardErrorForeColor: document.getElementById('cardErrorForeColor').value,
|
|
cardErrorBorderColor: document.getElementById('cardErrorBorderColor').value,
|
|
cardDarkSectionBackColor: document.getElementById('cardDarkSectionBackColor').value,
|
|
cardDarkSectionForeColor: document.getElementById('cardDarkSectionForeColor').value
|
|
},
|
|
inputControl : {
|
|
enabled: document.getElementById('inputControlEnabled').checked,
|
|
formBackColor: document.getElementById('formBackColor').value,
|
|
formForeColor: document.getElementById('formForeColor').value,
|
|
formBorderColor: document.getElementById('formBorderColor').value,
|
|
inputBackColor: document.getElementById('inputBackColor').value,
|
|
inputForeColor: document.getElementById('inputForeColor').value,
|
|
inputBorderColor: document.getElementById('inputBorderColor').value,
|
|
inputFocusColor: document.getElementById('inputFocusColor').value,
|
|
inputInvalidColor: document.getElementById('inputInvalidColor').value,
|
|
buttonBackColor: document.getElementById('buttonBackColor').value,
|
|
buttonForeColor: document.getElementById('buttonForeColor').value,
|
|
buttonHoverBackColor: document.getElementById('buttonHoverBackColor').value,
|
|
buttonBorderColor: document.getElementById('buttonBorderColor').value,
|
|
buttonHoverBorderColor: document.getElementById('buttonHoverBorderColor').value,
|
|
buttonGroupBorderColor: document.getElementById('buttonGroupBorderColor').value,
|
|
buttonPrimaryForeColor: document.getElementById('buttonPrimaryForeColor').value,
|
|
buttonPrimaryBackColor: document.getElementById('buttonPrimaryBackColor').value,
|
|
buttonPrimaryHoverBackColor: document.getElementById('buttonPrimaryHoverBackColor').value,
|
|
buttonSecondaryForeColor: document.getElementById('buttonSecondaryForeColor').value,
|
|
buttonSecondaryBackColor: document.getElementById('buttonSecondaryBackColor').value,
|
|
buttonSecondaryHoverBackColor: document.getElementById('buttonSecondaryHoverBackColor').value,
|
|
buttonTertiaryForeColor: document.getElementById('buttonTertiaryForeColor').value,
|
|
buttonTertiaryBackColor: document.getElementById('buttonTertiaryBackColor').value,
|
|
buttonTertiaryHoverBackColor: document.getElementById('buttonTertiaryHoverBackColor').value,
|
|
buttonInverseForeColor: document.getElementById('buttonInverseForeColor').value,
|
|
buttonInverseBackColor: document.getElementById('buttonInverseBackColor').value,
|
|
buttonInverseHoverBackColor: document.getElementById('buttonInverseHoverBackColor').value
|
|
},
|
|
navigation : {
|
|
enabled: document.getElementById('navigationEnabled').checked,
|
|
headerHeight: document.getElementById('headerHeight').value,
|
|
headerBackColor: document.getElementById('headerBackColor').value,
|
|
headerHoverBackColor: document.getElementById('headerHoverBackColor').value,
|
|
headerForeColor: document.getElementById('headerForeColor').value,
|
|
headerBorderColor: document.getElementById('headerBorderColor').value,
|
|
navBackColor: document.getElementById('navBackColor').value,
|
|
navHoverBackColor: document.getElementById('navHoverBackColor').value,
|
|
navForeColor: document.getElementById('navForeColor').value,
|
|
navBorderColor: document.getElementById('navBorderColor').value,
|
|
navLinkColor: document.getElementById('navLinkColor').value,
|
|
footerForeColor: document.getElementById('footerForeColor').value,
|
|
footerBackColor: document.getElementById('footerBackColor').value,
|
|
footerBorderColor: document.getElementById('footerBorderColor').value,
|
|
footerLinkColor: document.getElementById('footerLinkColor').value,
|
|
drawerBackColor: document.getElementById('drawerBackColor').value,
|
|
drawerBorderColor: document.getElementById('drawerBorderColor').value,
|
|
drawerHoverBackColor: document.getElementById('drawerHoverBackColor').value,
|
|
drawerCloseColor: document.getElementById('drawerCloseColor').value,
|
|
headerLogoFontSize: document.getElementById('headerLogoFontSize').value,
|
|
navSublinkDepth: document.getElementById('navSublinkDepth').value,
|
|
footerFontSize: document.getElementById('footerFontSize').value,
|
|
drawerToggleFontSize: document.getElementById('drawerToggleFontSize').value,
|
|
drawerWidth: document.getElementById('drawerWidth').value,
|
|
drawerCloseSize: document.getElementById('drawerCloseSize').value
|
|
},
|
|
table : {
|
|
enabled: document.getElementById('tableEnabled').checked,
|
|
maxHeight: document.getElementById('maxHeight').value,
|
|
captionFontSize: document.getElementById('captionFontSize').value,
|
|
mobileCardLabel: document.getElementById('mobileCardLabel').value,
|
|
mobileLabelFontWeight: document.getElementById('mobileLabelFontWeight').value,
|
|
tableBorderColor: document.getElementById('tableBorderColor').value,
|
|
tableBorderSeparatorColor: document.getElementById('tableBorderSeparatorColor').value,
|
|
thBackColor: document.getElementById('thBackColor').value,
|
|
thForeColor: document.getElementById('thForeColor').value,
|
|
tdBackColor: document.getElementById('tdBackColor').value,
|
|
tdForeColor: document.getElementById('tdForeColor').value,
|
|
tdAltBackColor: document.getElementById('tdAltBackColor').value,
|
|
tdHoverBackColor: document.getElementById('tdHoverBackColor').value
|
|
},
|
|
contextual : {
|
|
enabled: document.getElementById('contextualEnabled').checked,
|
|
markBackColor: document.getElementById('markBackColor').value,
|
|
markForeColor: document.getElementById('markForeColor').value,
|
|
markFontSize: document.getElementById('markFontSize').value,
|
|
markLineHeight: document.getElementById('markLineHeight').value,
|
|
markSecondaryBackColor: document.getElementById('markSecondaryBackColor').value,
|
|
markTertiaryBackColor: document.getElementById('markTertiaryBackColor').value,
|
|
markTagBorderRadius: document.getElementById('markTagBorderRadius').value,
|
|
toastBackColor: document.getElementById('toastBackColor').value,
|
|
toastForeColor: document.getElementById('toastForeColor').value,
|
|
tooltipBackColor: document.getElementById('tooltipBackColor').value,
|
|
tooltipForeColor: document.getElementById('tooltipForeColor').value,
|
|
modalOverlayColor: document.getElementById('modalOverlayColor').value,
|
|
modalCloseColor: document.getElementById('modalCloseColor').value,
|
|
modalCloseHoverBackColor: document.getElementById('modalCloseHoverBackColor').value,
|
|
modalCloseSize: document.getElementById('modalCloseSize').value,
|
|
collapseLabelHeight: document.getElementById('collapseLabelHeight').value,
|
|
collapseContentMaxHeight: document.getElementById('collapseContentMaxHeight').value,
|
|
collapseContentBackColor: document.getElementById('collapseContentBackColor').value,
|
|
collapseLabelBackColor: document.getElementById('collapseLabelBackColor').value,
|
|
collapseLabelForeColor: document.getElementById('collapseLabelForeColor').value,
|
|
collapseLabelHoverBackColor: document.getElementById('collapseLabelHoverBackColor').value,
|
|
collapseSelectedLabelBackColor: document.getElementById('collapseSelectedLabelBackColor').value,
|
|
collapseBorderColor: document.getElementById('collapseBorderColor').value,
|
|
collapseSelectedLabelBorderColor: document.getElementById('collapseSelectedLabelBorderColor').value
|
|
},
|
|
progress : {
|
|
enabled: document.getElementById('progressEnabled').checked,
|
|
progressBackColor: document.getElementById('progressBackColor').value,
|
|
progressForeColor: document.getElementById('progressForeColor').value,
|
|
progressPrimaryForeColor: document.getElementById('progressPrimaryForeColor').value,
|
|
progressSecondaryForeColor: document.getElementById('progressSecondaryForeColor').value,
|
|
progressTertiaryForeColor: document.getElementById('progressTertiaryForeColor').value,
|
|
progressHeight: document.getElementById('progressHeight').value,
|
|
progressMaxValue: document.getElementById('progressMaxValue').value,
|
|
progressInlineWidth: document.getElementById('progressInlineWidth').value,
|
|
spinnerDonutSize: document.getElementById('spinnerDonutSize').value,
|
|
spinnerDonutBorderThickness: document.getElementById('spinnerDonutBorderThickness').value,
|
|
spinnerDonutBackColor: document.getElementById('spinnerDonutBackColor').value,
|
|
spinnerDonutForeColor: document.getElementById('spinnerDonutForeColor').value,
|
|
spinnerDonutPrimaryForeColor: document.getElementById('spinnerDonutPrimaryForeColor').value,
|
|
spinnerDonutSecondaryForeColor: document.getElementById('spinnerDonutSecondaryForeColor').value,
|
|
spinnerDonutTertiaryForeColor: document.getElementById('spinnerDonutTertiaryForeColor').value
|
|
},
|
|
icon : {
|
|
enabled: document.getElementById('iconsEnabled').checked
|
|
},
|
|
utility : {
|
|
enabled: document.getElementById('utilityEnabled').checked,
|
|
genericBoxShadowColor: document.getElementById('genericBoxShadowColor').value,
|
|
genericBorderColor: document.getElementById('genericBorderColor').value
|
|
}
|
|
};
|
|
}
|
|
function generateFlavor(){
|
|
var flavorData = getFlavorData();
|
|
var flavorFile = '';
|
|
flavorFile +='// This is a flavor file. Duplicate it and edit it to create your own flavor. Read instructions carefully.\n';
|
|
flavorFile +='// Single-line comments, starting with \'//\' will not be included in your final CSS file. Multiline comments,\n';
|
|
flavorFile +='// structured like the flavor description below, will be included in your final CSS file.\n';
|
|
flavorFile +='/*\n';
|
|
flavorFile +=' Flavor name: Custom (mini-custom)\n';
|
|
flavorFile +=' Generated online - https://minicss.org/flavors\n';
|
|
flavorFile +=' mini.css version: v3.0.0\n';
|
|
flavorFile +='*/\n';
|
|
flavorFile +='$base-root-font-size: '+flavorData.core.baseRootFontSize+'px; // Root font sizing for all elements (`px` only)\n';
|
|
flavorFile +='$base-line-height: '+flavorData.core.baseLineHeight+'; // Line height for most elements\n';
|
|
flavorFile +='$fore-color: '+flavorData.core.foreColor+'; // Text & foreground color\n';
|
|
flavorFile +='$secondary-fore-color: '+flavorData.core.secondaryForeColor+'; // Secondary text & foreground color\n';
|
|
flavorFile +='$back-color: '+flavorData.core.backColor+'; // Background color\n';
|
|
flavorFile +='$secondary-back-color: '+flavorData.core.secondaryBackColor+'; // Secondary background color\n';
|
|
flavorFile +='$blockquote-color: '+flavorData.core.blockquoteSidebarColor+'; // <blockquote> sidebar and quotation color\n';
|
|
flavorFile +='$pre-color: '+flavorData.core.preSidebarColor+'; // <pre> sidebar color\n';
|
|
flavorFile +='$border-color: '+flavorData.core.borderColor+'; // Border color\n';
|
|
flavorFile +='$secondary-border-color: '+flavorData.core.secondaryBorderColor+'; // Secondary border color\n';
|
|
flavorFile +='$heading-line-height: '+flavorData.core.headingLineHeight+'; // Line height for headings\n';
|
|
flavorFile +='$heading-ratio: '+flavorData.core.headingRatio+'; // Ratio for headings (strictly unitless)\n';
|
|
flavorFile +='$subheading-font-size:'+flavorData.core.subheadingFontSize+'em; // Font sizing for <small> elements in headings\n';
|
|
flavorFile +='$subheading-top-margin: '+flavorData.core.subheadingTopMargin+'rem; // Top margin of <small> elements in headings\n';
|
|
flavorFile +='$heading-font-weight: '+flavorData.core.headingFontWeight+'; // Font weight for headings\n';
|
|
flavorFile +='$horizontal-rule-line-height: '+flavorData.core.horizontalRuleLineHeight+'em; // <hr> line height\n';
|
|
flavorFile +='$universal-margin: '+flavorData.core.universalMargin+'rem; // Universal margin for the most elements\n';
|
|
flavorFile +='$universal-padding: '+flavorData.core.universalPadding+'rem; // Universal padding for the most elements\n';
|
|
flavorFile +='$universal-border-radius: '+flavorData.core.universalBorderRadius+'rem; // Universal border-radius for most elements\n';
|
|
flavorFile +='$universal-box-shadow: '+flavorData.core.universalBoxShadow+'; // Universal box-shadow for most elements\n';
|
|
flavorFile +='$small-element-font-size: '+flavorData.core.smallFontSize+'em; // Font size for <small>, <sub>, <sup>\n';
|
|
flavorFile +='$small-font-size: '+flavorData.core.smallFontSize+'em; // Font sizing for <small> elements\n';
|
|
flavorFile +='$blockquote-quotation-size: 3rem; // Font size for the quotation of <blockquote>\n';
|
|
flavorFile +='$blockquote-cite-size: 0.75em; // Font size for the [cite] of <blockquote>\n';
|
|
flavorFile +='$code-font-size: '+flavorData.core.codeFontSize+'em; // Font size for <code>, <kbd>\n';
|
|
flavorFile +='$sup-top: '+flavorData.core.supTop+'em; // <sup> top\n';
|
|
flavorFile +='$sub-bottom: '+flavorData.core.subBottom+'em; // <sub> bottom\n';
|
|
flavorFile +='$a-link-color: '+flavorData.core.aLinkColor+'; // Color for <a>:link\n';
|
|
flavorFile +='$a-visited-color: '+flavorData.core.aVisitedColor+'; // Color for <a>:visited\n';
|
|
flavorFile +='$bold-font-weight: '+flavorData.core.boldFontWeight+'; // Font weight for <b> and <strong>\n';
|
|
flavorFile +='$mobile-breakpoint: '+flavorData.core.mobileBreakpoint+'px; // Breakpoint between small and medium screens (px)\n';
|
|
flavorFile +='$large-screen-breakpoint: '+flavorData.core.largeScreenBreakpoint+'px; // Breakpoint between medium and large screens (px)\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/core\';\n';
|
|
flavorFile +='\n';
|
|
if(flavorData.layout.enabled){
|
|
flavorFile +='$grid-column-count: '+flavorData.layout.gridColumnCount+'; // Number of columns in the grid (integer value only).\n';
|
|
flavorFile +='$grid-medium-breakpoint: $mobile-breakpoint; // Medium screen breakpoint for grid.\n';
|
|
flavorFile +='$grid-large-breakpoint: $large-screen-breakpoint; // Large screen breakpoint for grid.\n';
|
|
flavorFile +='$card-normal-width: '+flavorData.layout.cardNormalWidth+'px; // Width for normal cards.\n';
|
|
flavorFile +='$card-section-media-height: '+flavorData.layout.cardSectionMediaHeight+'px; // Height for cards\' media sections.\n';
|
|
flavorFile +='$card-fore-color: '+flavorData.layout.cardForeColor+'; // Text color for the cards.\n';
|
|
flavorFile +='$card-back-color: '+flavorData.layout.cardBackColor+'; // Background color for the cards.\n';
|
|
flavorFile +='$card-border-color: '+flavorData.layout.cardBorderColor+'; // Border color for the cards.\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/layout\';\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='/*\n';
|
|
flavorFile +=' Custom elements for card elements.\n';
|
|
flavorFile +='*/\n';
|
|
flavorFile +='$card-small-name: \'small\'; // Class name for small cards.\n';
|
|
flavorFile +='$card-small-width: '+flavorData.layout.cardSmallWidth+'px; // Width for small cards.\n';
|
|
flavorFile +='@include make-card-alt-size ($card-small-name, $card-small-width);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$card-large-name: \'large\'; // Class name for large cards.\n';
|
|
flavorFile +='$card-large-width: '+flavorData.layout.cardLargeWidth+'px; // Width for large cards.\n';
|
|
flavorFile +='@include make-card-alt-size ($card-large-name, $card-large-width);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$card-fluid-name: \'fluid\'; // Class name for fluid cards.\n';
|
|
flavorFile +='$card-fluid-width: 100%; // Width for fluid cards.\n';
|
|
flavorFile +='@include make-card-alt-size ($card-fluid-name, $card-fluid-width);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$card-warning-name: \'warning\'; // Class name for card warnging color variant.\n';
|
|
flavorFile +='$card-warning-back-color: '+flavorData.layout.cardWarningBackColor+'; // Background color for card warnging color variant.\n';
|
|
flavorFile +='$card-warning-fore-color: '+flavorData.layout.cardWarningForeColor+'; // Text color for card warnging color variant.\n';
|
|
flavorFile +='$card-warning-border-color: '+flavorData.layout.cardWarningBorderColor+'; // Border style for card warnging color variant.\n';
|
|
flavorFile +='@include make-card-alt-color ($card-warning-name, $card-warning-back-color, $card-warning-fore-color, $card-warning-border-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$card-error-name: \'error\'; // Class name for card error color variant.\n';
|
|
flavorFile +='$card-error-back-color: '+flavorData.layout.cardErrorBackColor+'; // Background color for card error color variant.\n';
|
|
flavorFile +='$card-error-fore-color: '+flavorData.layout.cardErrorForeColor+'; // Text color for card error color variant.\n';
|
|
flavorFile +='$card-error-border-color: '+flavorData.layout.cardErrorBorderColor+'; // Border style for card error color variant.\n';
|
|
flavorFile +='@include make-card-alt-color ($card-error-name, $card-error-back-color, $card-error-fore-color, $card-error-border-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$card-section-dark-name: \'dark\'; // Class name for card dark section variant.\n';
|
|
flavorFile +='$card-section-dark-back-color: '+flavorData.layout.cardDarkSectionBackColor+'; // Background color for card dark section variant.\n';
|
|
flavorFile +='$card-section-dark-fore-color: '+flavorData.layout.cardDarkSectionForeColor+'; // Text color for card dark section variant.\n';
|
|
flavorFile +='@include make-card-section-alt-color ($card-section-dark-name, $card-section-dark-back-color, $card-section-dark-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$card-section-double-padded-name: \'double-padded\'; // Class name for card double-padded section variant.\n';
|
|
flavorFile +='$card-section-double-padded-padding: calc(1.5 * var(#{$universal-padding-var})); // Padding for card sectiondouble-padded section variant.\n';
|
|
flavorFile +='@include make-card-section-alt-style ($card-section-double-padded-name, $card-section-double-padded-padding);\n';
|
|
flavorFile +='\n';
|
|
}
|
|
if(flavorData.inputControl.enabled){
|
|
flavorFile +='$input-group-mobile-breakpoint: $mobile-breakpoint - 1px; // Breakpoint for fluid input group mobile view.\n';
|
|
flavorFile +='$form-back-color: '+flavorData.inputControl.formBackColor+'; // Background color for forms.\n';
|
|
flavorFile +='$form-fore-color: '+flavorData.inputControl.formForeColor+'; // Text color for forms.\n';
|
|
flavorFile +='$form-border-color: '+flavorData.inputControl.formBorderColor+'; // Border color for forms.\n';
|
|
flavorFile +='$input-back-color: '+flavorData.inputControl.inputBackColor+'; // Background color for input elements.\n';
|
|
flavorFile +='$input-fore-color: '+flavorData.inputControl.inputForeColor+'; // Text color for input elements.\n';
|
|
flavorFile +='$input-border-color: '+flavorData.inputControl.inputBorderColor+'; // Border color for input elements.\n';
|
|
flavorFile +='$input-focus-color: '+flavorData.inputControl.inputFocusColor+'; // Border color for focused input elements.\n';
|
|
flavorFile +='$input-invalid-color: '+flavorData.inputControl.inputInvalidColor+'; // Border color for invalid input elements.\n';
|
|
flavorFile +='$button-back-color: '+flavorData.inputControl.buttonBackColor+'; // Background color for buttons.\n';
|
|
flavorFile +='$button-hover-back-color: '+flavorData.inputControl.buttonHoverBackColor+'; // Background color for buttons (hover).\n';
|
|
flavorFile +='$button-fore-color: '+flavorData.inputControl.buttonForeColor+'; // Text color for buttons.\n';
|
|
flavorFile +='$button-border-color: '+flavorData.inputControl.buttonBorderColor+'; // Border color for buttons.\n';
|
|
flavorFile +='$button-hover-border-color: '+flavorData.inputControl.buttonHoverBorderColor+'; // Border color for buttons (hover).\n';
|
|
flavorFile +='$button-group-border-color: '+flavorData.inputControl.buttonGroupBorderColor+'; // Border color for button groups.\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/input_control\';\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='/*\n';
|
|
flavorFile +=' Custom elements for forms and input elements.\n';
|
|
flavorFile +='*/\n';
|
|
flavorFile +='$button-primary-name: \'primary\'; // Class name for primary button color variant.\n';
|
|
flavorFile +='$button-primary-back-color: '+flavorData.inputControl.buttonPrimaryBackColor+';// Background color for primary button color variant.\n';
|
|
flavorFile +='$button-primary-hover-back-color: '+flavorData.inputControl.buttonPrimaryHoverBackColor+';// Background color for primary button color variant (hover).\n';
|
|
flavorFile +='$button-primary-fore-color: '+flavorData.inputControl.buttonPrimaryForeColor+';// Text color for primary button color variant.\n';
|
|
flavorFile +='@include make-button-alt-color ($button-primary-name, $button-primary-back-color, $button-primary-hover-back-color, $button-primary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$button-secondary-name: \'secondary\'; // Class name for secondary button color variant.\n';
|
|
flavorFile +='$button-secondary-back-color: '+flavorData.inputControl.buttonSecondaryBackColor+';// Background color for secondary button color variant.\n';
|
|
flavorFile +='$button-secondary-hover-back-color: '+flavorData.inputControl.buttonSecondaryHoverBackColor+';// Background color for secondary button color variant (hover).\n';
|
|
flavorFile +='$button-secondary-fore-color: '+flavorData.inputControl.buttonSecondaryForeColor+';// Text color for secondary button color variant.\n';
|
|
flavorFile +='@include make-button-alt-color ($button-secondary-name, $button-secondary-back-color, $button-secondary-hover-back-color, $button-secondary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$button-tertiary-name: \'tertiary\'; // Class name for tertiary button color variant.\n';
|
|
flavorFile +='$button-tertiary-back-color: '+flavorData.inputControl.buttonTertiaryBackColor+';// Background color for tertiary button color variant.\n';
|
|
flavorFile +='$button-tertiary-hover-back-color: '+flavorData.inputControl.buttonTertiaryHoverBackColor+';// Background color for tertiary button color variant (hover).\n';
|
|
flavorFile +='$button-tertiary-fore-color: '+flavorData.inputControl.buttonTertiaryForeColor+';// Text color for tertiary button color variant.\n';
|
|
flavorFile +='@include make-button-alt-color ($button-tertiary-name, $button-tertiary-back-color, $button-tertiary-hover-back-color, $button-tertiary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$button-inverse-name: \'inverse\'; // Class name for inverse button color variant.\n';
|
|
flavorFile +='$button-inverse-back-color: '+flavorData.inputControl.buttonInverseBackColor+';// Background color for inverse button color variant.\n';
|
|
flavorFile +='$button-inverse-hover-back-color: '+flavorData.inputControl.buttonInverseHoverBackColor+';// Background color for inverse button color variant (hover).\n';
|
|
flavorFile +='$button-inverse-fore-color: '+flavorData.inputControl.buttonInverseForeColor+';// Text color for inverse button color variant.\n';
|
|
flavorFile +='@include make-button-alt-color ($button-inverse-name, $button-inverse-back-color, $button-inverse-hover-back-color, $button-inverse-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$button-small-name: \'small\'; // Class name, padding and margin for small button size variant.\n';
|
|
flavorFile +='$button-small-padding: calc(0.5 * var(#{$universal-padding-var})) calc(0.75 * var(#{$universal-padding-var}));\n';
|
|
flavorFile +='$button-small-margin: var(#{$universal-margin-var});\n';
|
|
flavorFile +='@include make-button-alt-size ($button-small-name, $button-small-padding, $button-small-margin);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$button-large-name: \'large\'; // Class name, padding and margin for large button size variant.\n';
|
|
flavorFile +='$button-large-padding: calc(1.5 * var(#{$universal-padding-var})) calc(2 * var(#{$universal-padding-var}));\n';
|
|
flavorFile +='$button-large-margin: var(#{$universal-margin-var});\n';
|
|
flavorFile +='@include make-button-alt-size ($button-large-name, $button-large-padding, $button-large-margin);\n';
|
|
flavorFile +='\n';
|
|
}
|
|
if(flavorData.navigation.enabled){
|
|
flavorFile +='$header-height: '+flavorData.navigation.headerHeight+'rem; // Height of the header element.\n';
|
|
flavorFile +='$header-back-color: '+flavorData.navigation.headerBackColor+'; // Background color for the header element.\n';
|
|
flavorFile +='$header-hover-back-color: '+flavorData.navigation.headerHoverBackColor+'; // Background color for the header element (hover).\n';
|
|
flavorFile +='$header-fore-color: '+flavorData.navigation.headerForeColor+'; // Text color for the header element.\n';
|
|
flavorFile +='$header-border-color: '+flavorData.navigation.headerBorderColor+'; // Border color for the header element.\n';
|
|
flavorFile +='$nav-back-color: '+flavorData.navigation.navBackColor+'; // Background color for the nav element.\n';
|
|
flavorFile +='$nav-hover-back-color: '+flavorData.navigation.navHoverBackColor+'; // Background color for the nav element (hover).\n';
|
|
flavorFile +='$nav-fore-color: '+flavorData.navigation.navForeColor+'; // Text color for the nav element.\n';
|
|
flavorFile +='$nav-border-color: '+flavorData.navigation.navBorderColor+'; // Border color for the nav element.\n';
|
|
flavorFile +='$nav-link-color: '+flavorData.navigation.navLinkColor+'; // Color for link in the nav element.\n';
|
|
flavorFile +='$footer-fore-color: '+flavorData.navigation.footerForeColor+'; // Text color for the footer element.\n';
|
|
flavorFile +='$footer-back-color: '+flavorData.navigation.footerBackColor+'; // Background color for footer nav element.\n';
|
|
flavorFile +='$footer-border-color: '+flavorData.navigation.footerBorderColor+'; // Border color for the footer element.\n';
|
|
flavorFile +='$footer-link-color: '+flavorData.navigation.footerLinkColor+'; // Color for link in the footer element.\n';
|
|
flavorFile +='$drawer-back-color: '+flavorData.navigation.drawerBackColor+'; // Background color for the drawer component.\n';
|
|
flavorFile +='$drawer-border-color: '+flavorData.navigation.drawerBorderColor+'; // Border color for the drawer component.\n';
|
|
flavorFile +='$drawer-hover-back-color: '+flavorData.navigation.drawerHoverBackColor+'; // Background color for the drawer component\'s close (hover).\n';
|
|
flavorFile +='$drawer-close-color: '+flavorData.navigation.drawerCloseColor+'; // Color of the close element for the drawer component.\n';
|
|
flavorFile +='$header-logo-font-size: '+flavorData.navigation.headerLogoFontSize+'rem; // Font size for the header logo element.\n';
|
|
flavorFile +='$nav-sublink-depth: '+flavorData.navigation.navSublinkDepth+'; // Amount of subcategory classes to add.\n';
|
|
flavorFile +='$footer-font-size: '+flavorData.navigation.footerFontSize+'rem; // Font size for text in footer element.\n';
|
|
flavorFile +='$drawer-toggle-font-size: '+flavorData.navigation.drawerToggleFontSize+'em; // Font size for the drawer component\'s toggle. (prefer em units)\n';
|
|
flavorFile +='$drawer-width: '+flavorData.navigation.drawerWidth+'px; // Width of the drawer component.\n';
|
|
flavorFile +='$drawer-close-size: '+flavorData.navigation.drawerCloseSize+'rem; // Size of the close element for the drawer component.\n';
|
|
flavorFile +='$drawer-mobile-breakpoint: $mobile-breakpoint; // Mobile breakpoint for the drawer component.\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/navigation\';\n';
|
|
flavorFile +='\n';
|
|
}
|
|
if(flavorData.table.enabled){
|
|
flavorFile +='$table-mobile-breakpoint: $mobile-breakpoint; // Breakpoint for <table> mobile view.\n';
|
|
flavorFile +='$table-max-height: '+flavorData.table.maxHeight+'px; // Maximum height of <table> elements (non-horizontal).\n';
|
|
flavorFile +='$table-caption-font-size: '+flavorData.table.captionFontSize+'rem; // Font size for <caption> elements.\n';
|
|
flavorFile +='$table-mobile-card-label: \''+flavorData.table.mobileCardLabel+'\'; // Attribute used to replace column headers in mobile view.\n';
|
|
flavorFile +='$table-mobile-label-font-weight: '+flavorData.table.mobileLabelFontWeight+'; // Font weight for column header labels in mobile view.\n';
|
|
flavorFile +='$table-border-color: '+flavorData.table.tableBorderColor+'; // Border color for <table> elements.\n';
|
|
flavorFile +='$table-border-separator-color: '+flavorData.table.tableBorderSeparatorColor+'; // Border color for the border between <thead> and <tbody>.\n';
|
|
flavorFile +='$table-th-back-color: '+flavorData.table.thBackColor+'; // Background color for <th> elements.\n';
|
|
flavorFile +='$table-th-fore-color: '+flavorData.table.thForeColor+'; // Text color for <th> elements.\n';
|
|
flavorFile +='$table-td-back-color: '+flavorData.table.tdBackColor+'; // Background color for <td> elements.\n';
|
|
flavorFile +='$table-td-fore-color: '+flavorData.table.tdForeColor+'; // Text color for <td> elements.\n';
|
|
flavorFile +='$table-td-alt-back-color: '+flavorData.table.tdAltBackColor+'; // Alternative background color for <td> elements in striped tables.\n';
|
|
flavorFile +='$table-td-hover-back-color: '+flavorData.table.tdHoverBackColor+'; // Hover background color for <td> elements in hoverable tables.\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/table\';\n';
|
|
flavorFile +='\n';
|
|
}
|
|
if(flavorData.contextual.enabled){
|
|
flavorFile +='$mark-back-color: '+flavorData.contextual.markBackColor+'; // Background color for <mark>\n';
|
|
flavorFile +='$mark-fore-color: '+flavorData.contextual.markForeColor+'; // Text color for <mark>\n';
|
|
flavorFile +='$mark-font-size: '+flavorData.contextual.markFontSize+'em; // Font size for <mark>\n';
|
|
flavorFile +='$mark-line-height: '+flavorData.contextual.markLineHeight+'em; // Line height for <mark>\n';
|
|
flavorFile +='$toast-back-color: '+flavorData.contextual.toastBackColor+'; // Background color for toast component\n';
|
|
flavorFile +='$toast-fore-color: '+flavorData.contextual.toastForeColor+'; // Text color for toast component\n';
|
|
flavorFile +='$tooltip-back-color: '+flavorData.contextual.tooltipBackColor+'; // Background color for tooltip component\n';
|
|
flavorFile +='$tooltip-fore-color: '+flavorData.contextual.tooltipForeColor+'; // Text color for tooltip component\n';
|
|
flavorFile +='$modal-overlay-color: '+flavorData.contextual.modalOverlayColor+'; // Overlay color for modal dialog component\n';
|
|
flavorFile +='$modal-close-color: '+flavorData.contextual.modalCloseColor+'; // Text color for the close button of the modal dialog component\n';
|
|
flavorFile +='$modal-close-hover-back-color: '+flavorData.contextual.modalCloseHoverBackColor+'; // Background color for the close button of the modal dialog component (on hover/focus)\n';
|
|
flavorFile +='$modal-close-size: '+flavorData.contextual.modalCloseSize+'rem; // Font size for the close button of the modal dialog component\n';
|
|
flavorFile +='$collapse-label-height: '+flavorData.contextual.collapseLabelHeight+'rem; // Height for the labels in the collapse component\n';
|
|
flavorFile +='$collapse-content-max-height: '+flavorData.contextual.collapseContentMaxHeight+'px; // Max height for the content panes in the collapse component\n';
|
|
flavorFile +='$collapse-label-back-color: '+flavorData.contextual.collapseLabelBackColor+'; // Background color for labels in the collapse component\n';
|
|
flavorFile +='$collapse-label-fore-color: '+flavorData.contextual.collapseLabelForeColor+'; // Text color for labels in the collapse component\n';
|
|
flavorFile +='$collapse-label-hover-back-color: '+flavorData.contextual.collapseLabelHoverBackColor+'; // Background color for labels in the collapse component (hover)\n';
|
|
flavorFile +='$collapse-selected-label-back-color: '+flavorData.contextual.collapseSelectedLabelBackColor+'; // Background color for selected labels in the collapse component\n';
|
|
flavorFile +='$collapse-border-color: '+flavorData.contextual.collapseBorderColor+'; // Border color for collapse component\n';
|
|
flavorFile +='$collapse-selected-label-border-color: '+flavorData.contextual.collapseSelectedLabelBorderColor+'; // Border color for collapse component\'s selected labels\n';
|
|
flavorFile +='$collapse-content-back-color: '+flavorData.contextual.collapseContentBackColor+'; // Background color for collapse component\'s content panes\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/contextual\';\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='/*\n';
|
|
flavorFile +=' Custom elements for contextual background elements, toasts and tooltips.\n';
|
|
flavorFile +='*/\n';
|
|
flavorFile +='$mark-secondary-name: \'secondary\'; // Class name for secondary <mark> color variant.\n';
|
|
flavorFile +='$mark-secondary-back-color: '+flavorData.contextual.markSecondaryBackColor+'; // Background color for secondary <mark> color variant.\n';
|
|
flavorFile +='@include make-mark-alt-color ($mark-secondary-name, $mark-secondary-back-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$mark-tertiary-name: \'tertiary\'; // Class name for tertiary <mark> color variant.\n';
|
|
flavorFile +='$mark-tertiary-back-color: '+flavorData.contextual.markTertiaryBackColor+'; // Background color for tertiary <mark> color variant.\n';
|
|
flavorFile +='@include make-mark-alt-color ($mark-tertiary-name, $mark-tertiary-back-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$mark-tag-name: \'tag\'; // Class name, padding and border radius for tag <mark> size variant.\n';
|
|
flavorFile +='$mark-tag-padding: calc(var(#{$universal-padding-var})/2) var(#{$universal-padding-var});\n';
|
|
flavorFile +='$mark-tag-border-radius: '+flavorData.contextual.markTagBorderRadius+'em; \n';
|
|
flavorFile +='@include make-mark-alt-size ($mark-tag-name, $mark-tag-padding, $mark-tag-border-radius);\n';
|
|
flavorFile +='\n';
|
|
}
|
|
if(flavorData.progress.enabled){
|
|
flavorFile +='$progress-back-color: '+flavorData.progress.progressBackColor+'; // Background color of <progress>.\n';
|
|
flavorFile +='$progress-fore-color: '+flavorData.progress.progressForeColor+'; // Foreground color of <progress>.\n';
|
|
flavorFile +='$progress-height: '+flavorData.progress.progressHeight+'rem; // Height of <progress>.\n';
|
|
flavorFile +='$progress-max-value: '+flavorData.progress.progressMaxValue+'; // Arithmetic max value of <progress> - use integer values.\n';
|
|
flavorFile +='$progress-inline-width: '+flavorData.progress.progressInlineWidth+'%; // Width of inline <progress> elements.\n';
|
|
flavorFile +='$spinner-donut-size: '+flavorData.progress.spinnerDonutSize+'rem; // Size of the spinner donuts\n';
|
|
flavorFile +='$spinner-donut-border-thickness: '+flavorData.progress.spinnerDonutBorderThickness+'rem; // Border thickness for spinner donuts\n';
|
|
flavorFile +='$spinner-donut-back-color: '+flavorData.progress.spinnerDonutBackColor+'; // Background color for spinner donuts\n';
|
|
flavorFile +='$spinner-donut-fore-color: '+flavorData.progress.spinnerDonutForeColor+'; // Foreground color for spinner donuts\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/progress\';\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='/*\n';
|
|
flavorFile +=' Custom elements for progress bars and spinners.\n';
|
|
flavorFile +='*/\n';
|
|
flavorFile +='$progress-primary-name: \'primary\'; // Class name for primary <progress> color variant.\n';
|
|
flavorFile +='$progress-primary-fore-color: '+flavorData.progress.progressPrimaryForeColor+'; // Foreground color for primary <progress> color variant.\n';
|
|
flavorFile +='@include make-progress-alt-color ($progress-primary-name, $progress-primary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$progress-secondary-name: \'secondary\'; // Class name for secondary <progress> color variant.\n';
|
|
flavorFile +='$progress-secondary-fore-color: '+flavorData.progress.progressSecondaryForeColor+'; // Foreground color for secondary <progress> color variant.\n';
|
|
flavorFile +='@include make-progress-alt-color ($progress-secondary-name, $progress-secondary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$progress-tertiary-name: \'tertiary\'; // Class name for tertiary <progress> color variant.\n';
|
|
flavorFile +='$progress-tertiary-fore-color: '+flavorData.progress.progressTertiaryForeColor+'; // Foreground color for tertiary <progress> color variant.\n';
|
|
flavorFile +='@include make-progress-alt-color ($progress-tertiary-name, $progress-tertiary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$spinner-donut-primary-name: \'primary\'; // Class name for primary spinner donut color variant.\n';
|
|
flavorFile +='$spinner-donut-primary-fore-color: '+flavorData.progress.spinnerDonutPrimaryForeColor+'; // Foreground color for primary spinner donut color variant.\n';
|
|
flavorFile +='@include make-spinner-donut-alt-color ($spinner-donut-primary-name, $spinner-donut-primary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$spinner-donut-secondary-name: \'secondary\'; // Class name for secondary spinner donut color variant.\n';
|
|
flavorFile +='$spinner-donut-secondary-fore-color: '+flavorData.progress.spinnerDonutSecondaryForeColor+'; // Foreground color for secondary spinner donut color variant.\n';
|
|
flavorFile +='@include make-spinner-donut-alt-color ($spinner-donut-secondary-name, $spinner-donut-secondary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='$spinner-donut-tertiary-name: \'tertiary\'; // Class name for tertiary spinner donut color variant.\n';
|
|
flavorFile +='$spinner-donut-tertiary-fore-color: '+flavorData.progress.spinnerDonutTertiaryForeColor+'; // Foreground color for tertiary spinner donut color variant.\n';
|
|
flavorFile +='@include make-spinner-donut-alt-color ($spinner-donut-tertiary-name, $spinner-donut-tertiary-fore-color);\n';
|
|
flavorFile +='\n';
|
|
}
|
|
if(flavorData.icon.enabled){
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/icon\';\n';
|
|
flavorFile +='\n';
|
|
}
|
|
if(flavorData.utility.enabled){
|
|
flavorFile +='$box-shadow-generic: 0 4*$__1px 4*$__1px 0 '+flavorData.utility.genericBoxShadowColor+', 0 2*$__1px 2*$__1px -2*$__1px '+flavorData.utility.genericBoxShadowColor+';\n';
|
|
flavorFile +='$border-generic-color: '+flavorData.utility.genericBorderColor+'; // Border color for bordered elements.\n';
|
|
flavorFile +='\n';
|
|
flavorFile +='@import \'../mini/utility\';\n';
|
|
flavorFile +='\n';
|
|
}
|
|
|
|
var base = './';
|
|
var directory = '../';
|
|
var files = [
|
|
'mini/_core.scss',
|
|
'mini/_layout.scss',
|
|
'mini/_layout_mixins.scss',
|
|
'mini/_input_control.scss',
|
|
'mini/_input_control_mixins.scss',
|
|
'mini/_navigation.scss',
|
|
'mini/_table.scss',
|
|
'mini/_contextual.scss',
|
|
'mini/_contextual_mixins.scss',
|
|
'mini/_progress.scss',
|
|
'mini/_progress_mixins.scss',
|
|
'mini/_icon.scss',
|
|
'mini/_utility.scss',
|
|
];
|
|
document.getElementById('generatorStatus').innerHTML = 'Configuring the generator...';
|
|
var sass = new Sass();
|
|
sass.options({style: Sass.style.expanded, precision: -1, comments: false, indent: ' ', linefeed: '\n'});
|
|
console.log(sass);
|
|
document.getElementById('generatorStatus').innerHTML = 'Loading SCSS files...';
|
|
sass.preloadFiles(base, directory, files, function filesPreloaded() {
|
|
document.getElementById('generatorStatus').innerHTML = 'Generating flavor file...';
|
|
sass.writeFile('flavors/flavor.scss', flavorFile, function filesWritten(r1){
|
|
document.getElementById('generatorStatus').innerHTML = 'Compiling flavor file...';
|
|
sass.compileFile('flavors/flavor.scss', function expandedCompiled(r2){
|
|
let expandedCSS = r2.text;
|
|
sass.compileFile('flavors/flavor.scss', {style: Sass.style.compressed}, function compressedCompiled(r3){
|
|
let compressedCSS = r3.text;
|
|
document.getElementById('generatorStatus').innerHTML = 'Preparing zip file...';
|
|
sass.readFile([
|
|
'../mini/_core.scss',
|
|
'../mini/_layout.scss',
|
|
'../mini/_layout_mixins.scss',
|
|
'../mini/_input_control.scss',
|
|
'../mini/_input_control_mixins.scss',
|
|
'../mini/_navigation.scss',
|
|
'../mini/_table.scss',
|
|
'../mini/_contextual.scss',
|
|
'../mini/_contextual_mixins.scss',
|
|
'../mini/_progress.scss',
|
|
'../mini/_progress_mixins.scss',
|
|
'../mini/_icon.scss',
|
|
'../mini/_utility.scss'
|
|
], function filesRead(r4){
|
|
document.getElementById('generatorStatus').innerHTML = 'Almost done...';
|
|
var zip = new JSZip();
|
|
var flavorsFolder = zip.folder('flavors');
|
|
var miniFolder = zip.folder('mini');
|
|
zip.file('mini-custom.css', expandedCSS);
|
|
zip.file('mini-custom.min.css', compressedCSS);
|
|
flavorsFolder.file('mini-custom.scss', flavorFile);
|
|
miniFolder.file('_core.scss', r4['../mini/_core.scss']);
|
|
miniFolder.file('_layout.scss', r4['../mini/_layout.scss']);
|
|
miniFolder.file('_layout_mixins.scss', r4['../mini/_layout_mixins.scss']);
|
|
miniFolder.file('_input_control.scss', r4['../mini/_input_control.scss']);
|
|
miniFolder.file('_input_control_mixins.scss', r4['../mini/_input_control_mixins.scss']);
|
|
miniFolder.file('_navigation.scss', r4['../mini/_navigation.scss']);
|
|
miniFolder.file('_table.scss', r4['../mini/_table.scss']);
|
|
miniFolder.file('_contextual.scss', r4['../mini/_contextual.scss']);
|
|
miniFolder.file('_contextual_mixins.scss', r4['../mini/_contextual_mixins.scss']);
|
|
miniFolder.file('_progress.scss', r4['../mini/_progress.scss']);
|
|
miniFolder.file('_progress_mixins.scss', r4['../mini/_progress_mixins.scss']);
|
|
miniFolder.file('_icon.scss', r4['../mini/_icon.scss']);
|
|
miniFolder.file('_utility.scss', r4['../mini/_utility.scss']);
|
|
zip.generateAsync({type:"blob"}).then(function(content) {
|
|
document.getElementById('generatorStatus').innerHTML = 'Done!';
|
|
saveAs(content, "mini-custom.zip");
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
</script>
|
|
</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>. Flavor generation powered by <a href="http://sass.js.org/" target="_blank">Sass.js</a> and <a href="https://stuk.github.io/jszip/" target="_blank">JSZip</a>.</p></footer></main>
|
|
</div></div>
|
|
</body></html> |