<divclass="section"><p>You can get started using <strong>mini.css</strong> in one of many ways. It is published on <strong>npm</strong> and <strong>yarn</strong>, so you can easily download it, using your preferred package manager:</p>
<br/><p>Alternatively, you can use either <strong>rawgit</strong> or <strong>cdnjs</strong> to import <strong>mini.css</strong> into your HTML page's <code><head></code> tag:</p>
<br/><p>After adding <strong>mini.css</strong> to your project, remember to also add the following line inside your HTML page's <code><head></code> tag to utilize the viewport meta tag:</p>
<br/><p><strong>mini.css</strong> is crafted with long-term support in mind, so expect it to be compatible with all modern browsers, as well as their future versions. However, most legacy and proxy browsers, such as Internet Explorer, Opera Mini, IE Mobile and UC Browser are not officially supported, meaning certain features may not be displayed properly or behave exactly as expected.</p><br/>
<divclass="section"><p><strong>mini.css</strong> utilizes the ruleset of <ahref="http://necolas.github.io/normalize.css/"target="_blank">Normalize.css</a> v7.0.0 to reliably deal with inconsistencies between browsers, while applying some tasteful defaults on top, such as using <ahref="https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/"target="_blank">native font stack</a> to figure out the best font for each device, setting the background and foreground colors, as well as the size of the text to <code>16px</code> and its line height to <code>1.5</code>.</p>
<p>All of the most common HTML5 elements, such as paragraphs, links, bold, small and slanted text, have been styled by default using clean, modern typography to make your pages look cool and stand out from the rest of the internet.</p></div>
<divclass="section"><h3>Example</h3><pclass="doc">This is a paragraph with some sample text. Did you know that the latest version of <strongclass="doc">mini.css</strong> is codenamed <emclass="doc">Gluon</em>? Well, now you do!</p><hrclass="doc"/><p><smallclass="doc">Remember that <strongclass="doc">mini.css</strong> is totally free, no fine print involved!</small></p></div>
<divclass="section double-padded prefiller-example"><h3>Sample code</h3><pre><spanclass="code-line"><spanclass="highlight-a"><p></span>This is a paragraph. with some <spanclass="highlight-a"><strong></span>bold text<spanclass="highlight-a"></strong></span> and some <spanclass="highlight-a"><em></span>italics text<spanclass="highlight-a"></em></span>.<spanclass="highlight-a"></p></span></span>
<spanclass="code-line"><spanclass="highlight-a"><a</span><spanclass="highlight-b">href</span>=<spanclass="highlight-c">"#"</span><spanclass="highlight-a">></span>This is a link.<spanclass="highlight-a"></a></span></span>
<spanclass="code-line"><spanclass="highlight-a"><small></span>This is some small text.<spanclass="highlight-a"></small></span></span>
<divclass="section double-padded"><h3>Best practices</h3><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-c">/* Do not do this (use Sass instead) */</span></span>
<spanclass="code-line">}</span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid altering the base font size of <code>16px</code> directly in your CSS code, as it can cause problems with the display of certain elements.</p></div></div></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color can be changed globally by changing the value of the <code>--fore-color</code> variable.</li><li>Background color can be changed globally by changing the value of the <code>--back-color</code> variable.</li><li>Border color can be changed globally by changing the value of the <code>--border-color</code> variable. This affects the color of <code><hr></code> elements.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>You can change the color of links by changing the values of the <code>--a-link-color</code> and <code>--a-visited-color</code> variables.</li></ul></div>
<divclass="section"><p>All of the HTML5 heading elements are styled, using a customizable ratio and simple rules, providing a clean base for your web app's titles. Apart from the headings themselves, customized rules are provided for displaying subheadings or explanatory text below your web app's headings.</p></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color can be changed globally by changing the value of the <code>--fore-color</code> variable. This will affect the color of the headings' main text.</li><li>Secondary text color can be changed globally by changing the value of the <code>--secondary-fore-color</code> variable. This will affect the color of subheadings.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>You can change the ratio of headings' size by chaning the value of the <code>--heading-ratio</code> variable. Bear in mind that the value of this variable must be unitless to work properly.</li></ul></div>
<divclass="section"><p>Image elements are responsive by default, automatically scaling down as necessary to display properly on smaller devices. Images retain their original aspect ratio and they will never scale above their original size.</p>
<divclass="section double-padded"><h3>Notes</h3><ul><li>While not mandatory, it is considered a good practice to always add a <code>alt</code> attribute to image elements on your web apps.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>You can change the text color of <code><figcaption></code> elements by changing the value of the <code>--secondary-fore-color</code> variable.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li></ul></div>
<divclass="section"><p>List elements, both unordered and ordered, are minimally styled to match with the rest of the framework's aesthetics. Their margins and padding are reset to properly align with the rest of the common HTML5 elements, providing a stable foundation for all of your web app's lists.</p></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color can be changed globally by changing the value of the <code>--fore-color</code> variable.</li><li>Background color can be changed globally by changing the value of the <code>--back-color</code> variable.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li></ul></div>
<divclass="section"><p>Code blocks and quotation elements are styled using custom rules that help make them stand out from the rest of the text, while inline code and keyboard input tags are minimally styled, aiming not to break the flow of regular text.</p></div>
<divclass="section"><h3>Example</h3><pclass="doc">This is some text with some inline <codeclass="doc">source code</code> and some keyboard <kbdclass="doc">input</kbd>.</p>
<preclass="doc">function sum(num1, num2){
return num1 + num2;
}</pre>
<blockquotecite="www.quotation.source"class="doc">This is some text quoted from elsewhere.</blockquote></div>
<divclass="section double-padded prefiller-example"><h3>Sample code</h3><pre><spanclass="code-line"><spanclass="highlight-a"><p></span>This is some text with some inline <spanclass="highlight-a"><code></span>source code<spanclass="highlight-a"></code></span> and some keyboard <spanclass="highlight-a"><kbd></span>input<spanclass="highlight-a"></kbd></span>.<spanclass="highlight-a"></p></span></span>
<spanclass="code-line"><spanclass="highlight-a"><blockquote</span><spanclass="highlight-b">cite</span>=<spanclass="highlight-c">"www.quotation.source"</span><spanclass="highlight-a">></span>This is some text quoted from elsewhere.<spanclass="highlight-a"></blockquote></span></span></pre></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>The <code>cite</code> attribute of <code><blockquote></code> elements is not mandatory and can be omitted. The element's sizing will be automatically adjusted according to the presence of the <code>cite</code> attribute.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color can be changed globally by changing the value of the <code>--fore-color</code> variable. This will affect the text color of <code><code></code> and <code><pre></code> elements and background color of <code><kbd></code> elements.</li><li>Background color can be changed globally by changing the value of the <code>--back-color</code> variable. This will affect the background color of <code><blockquote></code> elements and text color of <code><kbd></code>.</li><li>You can change the background color of <code><code></code> and <code><pre></code> elements by changing the value of the <code>--secondary-back-color</code> variable.</li><li>You can change the text color of <code><blockquote></code> elements by changing the value of the <code>--secondary-fore-color</code> variable.</li><li>You can change the border color of <code><pre></code> and <code><blockquote></code> elements by changing the value of the <code>--secondary-border-color</code> variable.</li><li>You can change the border color of the left border of <code><pre></code> elements by changing the value of the <code>--pre-color</code> variable.</li><li>You can change the border color of the left border of <code><blockquote></code> elements by changing the value of the <code>--blockquote-color</code> variable.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
<divclass="section"><p>The grid system of <strong>mini.css</strong> utilizes the <ahref="https://css-tricks.com/snippets/css/a-guide-to-flexbox/"target="_blank">Flexbox layout</a> to provide you with a simple, modern, responsive layout system for your web apps. Like most modern CSS frameworks' grid systems, it is composed of three main components - containers, rows and columns:</p>
<ul><li>The container (<code>.container</code>) is the outermost layer of the grid system and serves as a fluid wrapper, which can be used as the basis for your layout.</li>
<li>Inside the container, you can add one or more rows (<code>.row</code>), which will in turn house the columns.</li>
<li>Columns (<code>col-*-*</code>) are placed inside rows and they can be customized to display differently on different screen sizes, make use of fluid layouts, use offsets or change ordering.</li></ul></div>
<p>You can use the grid system to create a responsive <ahref="https://www.stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code/"target="_blank">media object</a> in one of many ways. Below is a simple example of a two-column media object with an image and some text:
<h4>Screen sizes and width</h4><p>Each column class is defined by specifying a screen size (small - <code>sm</code>, medium - <code>md</code> or large - <code>lg</code>) and a column width (a value between <code>1</code> and <code>12</code> or you can omit it for a fluid column), separated by dashes (e.g. <code>.col-sm-6</code> for a 6-wide column on a small screen). Using these you can apply different layouts for different screen sizes, by altering the width of columns, using multiple classes. Note that column widths are applied recursively, meaning that if you do not specify a width for a specific screen size the column will use the width applied for the previous largest screen size.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem">
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre><br/><h4>Predefined layouts</h4><p>Rows can be modified to apply predefined layouts to the columns inside them, effectively reducing the amount of work required for simple layouts. To create a predefined layout, you can add a class to a row (<code>.cols-*-*</code>), specifying a screen size and width for the columns inside it (or omitting the width for fluid columns), similarly to the way columns are defined (e.g. <code>.row.cols-sm-6</code> will cause all elements inside the row to be 6-wide on a small screen). Columns inside a predefined layout do not require any further classes to display and, much like normal column layouts, their widths are applied recursively.</p><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row cols-sm-6"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"><p></span>This paragraph is inside a 6-wide column.<spanclass="highlight-a"></p></span></span>
<spanclass="code-line"><spanclass="highlight-a"><p></span>This paragraph is inside a 6-wide column.<spanclass="highlight-a"></p></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre><br/><h4>Column offsets</h4><p>Columns can be moved to the right, by applying offset classes (<code>.col-*-offset-*</code>), defining a screen size and an offset (a value between <code>0</code> and <code>11</code>, e.g. <code>.col-sm-offset-3</code> will move a column 25% to the right on a small screen). Like all other column modifiers, offsets are applied recursively.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem">
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre><br/><h4>Column reordering</h4><p>Columns can be reordered on different screen sizes, by applying a reordering class (<code>.col-*-*</code>), defining a screen size and the order (first, normal or last, e.g. <code>.col-sm-last</code> will move a column to the end of its row on a small screen). Like all other column modifiers, reordering is applied recursively.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem">
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> A column can contain a container or a row inside it, or even be a row at the same time. In the latter case, it will act as a column for its parent row and as a row for its children.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> You can mix fluid columns with fixed, if you like. Fluid columns will adapt to the size of the container left for them. You can also use columns whose total width exceeds <code>12</code> (100%). The remaining content will flow below the rest, allowing you to specify multiple blocks of content inside the same row if you need to.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> You can change the layout of your content for different displays, laying out your content vertically on smaller screens or horizontally on larger screens. If your columns exceed a total width of <code>12</code> (100%) on some displays, they will wrap accordingly.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> You do not need to specify a column's width or reapply offset and reordering modifiers if they are the same as the previous screen size.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row cols-sm-12 cols-md-6"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> You can add multiple predefined layout classes for different screen sizes, allowing you to build responsive predefined layouts.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> To remove a previously applied offset from a column (i.e. one applied from the layout from a smaller screen size) or to make sure no offsets are active on a column, you can set its offset to <code>0</code> for a specific screen size. Similarly, to remove previously applied reordering modifiers from a column, you can set its order to <code>normal</code>.</p></div></div><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"col-sm"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid placing a column directly inside another column. Always use a row to wrap columns, instead.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"container"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"><p></span>Do not do this.<spanclass="highlight-a"></p></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid mixing rows and columns with normal content that is not wrapped on the respective level of the grid layout.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row cols-md"</span><spanclass="highlight-a">></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Never omit the class that specifies a column's width for the small screen size. You can omit all other classes and modifiers, except for this. This also applies to predefined layouts.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row cols-sm-6"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid combining normal column width modifiers with predefined layouts, as the predefined layout will most likely override the width modifier of the column.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li><strong>mini.css</strong> uses a mobile-first approach in its grid system, so you do not have to rewrite the same layout for all three screen sizes. Leaving a column's size, offset or order unspecified for a screen size will use the style applied for the previous largest screen size recursively. This also applies to predefined layouts.</li><li>The specific breakpoints for small, medium and large screen sizes are as follows:
<ul>
<li>small: less than <code>768px</code> wide</li>
<li>medium: more than or equal to <code>768px</code> wide and less than <code>1280px</code> wide</li>
</ul></li><li>In many cases, you can omit the container and just use rows and columns. You only need to make sure that all of your rows have the same parent element.</li><li>You can use fluid columns to create columns whose width is not a multiple of 1/12th of the screen's width (e.g. if you have 7 fluid columns in a row, each one of them will be 1/7th of the screen's width).</li><li>Predefined layouts can be combined with most of the features of the grid system, such as offsets and reordering, however they do not combine very well with regular columns.</li><li>You should only apply offset and reordering modifiers to the columns that you need and for the screen sizes that are necessary. Remember to also specify a column width or use a predefined layout before applying these modifiers.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable. This only affects the padding of the container.</li></ul></div>
<divclass="section"><p><strong>mini.css</strong> provides you with cards (<code>.card</code>), general-purpose containers that help you organize the content of your web apps. Cards should be used in combination with the <ahref="#grid">grid system</a>, meaning that they need to be placed inside a grid's rows to work properly. Layouts created with cards are responsive, realigning according to the available size on the screen.</p></div>
<h4>Alternative sizes</h4><p>You can create small (<code>.small</code>, <code>240px</code> wide) or large (<code>.large</code>, <code>480px</code> wide) cards by applying the appropriate modifiers to a card. Apart from that, you can also create fluid (<code>.fluid</code>) cards, that take up as much space as is available, however you will have to place these cards inside a grid layout's columns, effectively adding one extra step for them to display properly.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem"><divclass="row">
<divclass="card small"><divclass="section"><h3class="doc">Small Card</h3><pclass="doc">Small cards are <code>240px</code> wide.</p></div></div>
<divclass="card large"><divclass="section"><h3class="doc">Large Card</h3><pclass="doc">Large cards are <code>480px</code> wide.</p></div></div>
<divclass="col-sm-12 col-md-10 col-lg-8">
<divclass="card fluid"style="margin: 0.5rem 0.25rem;"><divclass="section"><h3class="doc">Fluid Card</h3><pclass="doc">Fluid cards scale their width based on the column that contains them.</p></div></div>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre><br/><h4>Color variants</h4><p>You can display warning (<code>.warning</code>) or error (<code>.error</code>) messages using cards, simply by adding the appropriate color modifiers to a card.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem"><divclass="row">
<divclass="card warning"><divclass="section"><h3class="doc">Warning Card</h3><pclass="doc">Warning cards are used to display important information to users.</p></div></div>
<divclass="card error"><divclass="section"><h3class="doc">Error Card</h3><pclass="doc">Error cards are used to display error messages to users.</p></div></div>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> You can create rows inside a card, which can in turn contain other cards.</p></div></div><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"card row"</span><spanclass="highlight-a">></div></span></span>
<spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"card col-sm"</span><spanclass="highlight-a">></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> An element cannot be a card and a row or column at the same time.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Never forget to wrap your cards inside a row and your fluid cards inside a row and a column.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"row"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Try not to combine fixed-width and fluid cards. Instead, combine fixed-width cards with columns and place fluid cards inside them.</p></div></div><br/><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><div</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"card warning error"</span><spanclass="highlight-a">></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid applying two color modifiers on the same card.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>Due to the fact that fluid cards stretch to fill their parent container, they might not fully respect their margins sometimes, although this should not cause any noticable problems in your web apps' layouts.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for cards can be changed by changing the value of the <code>--card-fore-color</code> variable.</li><li>Background color for cards can be changed by changing the value of the <code>--card-back-color</code> variable.</li><li>Border color for cards can be changed by changing the value of the <code>--card-border-color</code> variable.</li><li>You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
<divclass="section"><p>Card content is usually organized in smaller sections (<code>.section</code>) to be more easily digestible. A card section can be any valid HTML5 element with the appropriate class applied to it.</p></div>
<divclass="card fluid"style="margin: 0.5rem 0.25rem"><h3class="doc section">Title section</h3><pclass="doc section">This is a section with some textual content.</p></div>
<h4>Media sections</h4><p>You can create sections for media (<code>.media</code>), such as images or videos (using an <code><img></code> or a <code><iframe></code> element respectively). These sections are styled appropriately for presentation of media content, meaning that the content will scale appropriately to fill up the available space.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem;"><divclass="row">
<divclass="card"><divclass="section"><h3class="doc">Card with image</h3></div><imgclass="section media"src="https://placehold.it/800x600"alt="placeholder"></div>
<divclass="card"><divclass="section"><h3class="doc">Card with video</h3></div><iframeclass="section media"width="1280"height="720"src="https://www.youtube.com/embed/ScMzIvxBSi4"></iframe></div>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre><br/><h4>Color variants</h4><p>You can create sections with a darker (<code>.dark</code>) background, by applying the appropriate modifier.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem;"><divclass="row">
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre><br/><h4>Additional spacing</h4><p>You can create sections with additional spacing (<code>.double-padded</code>), by applying the appropriate modifier.</p><h5>Example</h5><divclass="container"style="padding: 0.25rem;"><divclass="row">
<spanclass="code-line"><spanclass="highlight-a"><p></span>This should have been a section!<spanclass="highlight-a"></p></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid mixing regular content with content in sections. Instead, wrap all of your card's contents in sections.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>While not mandatory, it is highly suggested that you wrap all of your cards' contents in one or more sections.</li><li>Remember that a section can be any valid HTML5 element, so you can apply them to headings, paragraphs, input elements etc.</li><li>Media sections have a default height of <code>200px</code>.</li><li>Due to the media sections using <ahref="http://caniuse.com/#feat=object-fit"target="_blank><code>object-fit</code></a>, you might want to use a polyfill for better browser support (recommended: <a href="https://github.com/bfred-it/object-fit-images"target="_blank>image polyfill</a>, <a href="https://github.com/jonathantneal/fitie"target="_blank>video polyfill</a>).</li><li>Depending on the source website, some embedded videos might not display properly as media sections.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for cards and card sections can be changed by changing the value of the <code>--card-fore-color</code> variable.</li><li>Background color for cards and card sections can be changed by changing the value of the <code>--card-back-color</code> variable.</li><li>Border color for cards and card sections can be changed by changing the value of the <code>--card-border-color</code> variable.</li><li>You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li></ul></div>
<h2class="section double-padded">Forms & input</h2>
<divclass="section"><p>Forms, labels and common HTML5 input elements have been styled using clean, modern rules, improving the accessibility and usability of your web apps' forms.</p></div>
<spanclass="code-line"><spanclass="highlight-a"></form></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> Form inputs are inline by defaut, however you can combine forms with the <ahref="#grid">grid system</a> to create aligned forms.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>Using the <code><fieldset></code> and <code><legend></code> elements is highly recommended, as it improves semantic markup and accessibility.</li><li>Some input elements, such as date & time, color and range types, are not supported and, as a result, do not have a default style defined for them. You can define said styles manually if you need to use them in your web app.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for forms and legend elements can be changed by changing the value of the <code>--form-fore-color</code> variable.</li><li>Background color for forms can be changed by changing the value of the <code>--form-back-color</code> variable.</li><li>Border color for forms and fieldset elements can be changed by changing the value of the <code>--form-border-color</code> variable.</li><li>Text color for input elements can be changed by changing the value of the <code>--input-fore-color</code> variable.</li><li>Background color for input elements can be changed by changing the value of the <code>--input-back-color</code> variable.</li><li>Border color for input elements can be changed by changing the value of the <code>--input-border-color</code> variable.</li><li>Border color for focused and invalid input elements can be changed by changing the value of the <code>--input-focus-color</code> and <code>--input-invalid-color</code> variables respectively.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
<divclass="section"><p>Buttons and button-like input elements have been styled by default to be consistent across browsers. You can also style other elements, such as links or form labels, to look like buttons, using the appropriate class (<code>.button</code>) or the <ahref="https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role"target="_blank">button</a> role.</p></div>
<h4>Color variants</h4><p>To make your buttons stand out, you can give them a primary (<code>.primary</code>), secondary (<code>.secondary</code>), tertiary (<code>.tertiary</code>) or inversed (<code>.inverse</code>) color palette.</p><h5>Example</h5><buttonclass="primary doc">Primary</button><buttonclass="secondary doc">Secondary</button><buttonclass="tertiary doc">Tertiary</button><buttonclass="inverse doc">Inverse</button><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><button</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"primary"</span><spanclass="highlight-a">></span>Primary<spanclass="highlight-a"></button></span></span>
<spanclass="code-line"><spanclass="highlight-a"><button</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"inverse"</span><spanclass="highlight-a">></span>Inverse<spanclass="highlight-a"></button></span></span></pre><br/><h4>Size variants</h4><p>You can make buttons smaller (<code>.small</code>) or larger (<code>.large</code>), by applying the appropriate modifier.</p><h5>Example</h5><buttonclass="small doc">Small</button><buttonclass="large doc">Large</button><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><button</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"small"</span><spanclass="highlight-a">></span>Small<spanclass="highlight-a"></button></span></span>
<spanclass="code-line"><spanclass="highlight-a"><label</span><spanclass="highlight-b">for</span>=<spanclass="highlight-c">"file-input"</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"button"</span><spanclass="highlight-a">></span>Upload file<spanclass="highlight-a"></label></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> File upload inputs are not styled by default, due to inconsistencies in how browsers handle them. If you want them to look like other buttons, you can hide them and use a linked label.</p></div></div><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><button</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"primary inverse"</span><spanclass="highlight-a">></span>Button<spanclass="highlight-a"></button></span></span>
<spanclass="code-line"><spanclass="highlight-a"><button</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"small large"</span><spanclass="highlight-a">></span>Button<spanclass="highlight-a"></button></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid applying multiple modifiers of the same type on the same button.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>It is recommended to use the button role instead of the provided class, if you want your custom buttons to be fully accessible.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for buttons can be changed by changing the value of the <code>--button-fore-color</code> variable.</li><li>Background color for buttons can be changed by changing the value of the <code>--button-back-color</code> variable.</li><li>Border color for buttons can be changed by changing the value of the <code>--button-border-color</code> variable.</li><li>Background and border color for focused buttons can be changed by changing the values of the <code>--button-hover-back-color</code> and <code>--button-hover-border-color</code> variables respectively.</li><li>You can customize the colors of different color variants by changing the values of the related variables in their respective definitions.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
<divclass="section"><p>You can ensure that input elements and labels display together on the same line, by grouping them together (<code>.input-group</code>). You can also group buttons together, using a different grouping class (<code>.button-group</code>).</p></div>
<h4>Fluid & vertical grouping</h4><p>You can make your input groups fluid (<code>.fluid</code>) or vertical (<code>.vertical</code>), by applying the appropriate modifiers.</p><h5>Example</h5><form>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid combining input groups with the <ahref="#grid">grid system</a>, as there might be overlapping styles.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>It is highly recommended that you do not place checkboxes or radio buttons inside fluid or vertical input groups.</li><li>Button groups will display horizontally on medium and large screens, but collapse into a vertical view on small screens.</li></ul></div>
<divclass="section"><p>The header element has been minimally styled, allowing you to create modern headers for your web apps. A header can include a logo element (<code>.logo</code>), as well as buttons, links and labels, styled as buttons (<code>.button</code>).</p></div>
<h4>Sticky header</h4><p>You can make your web app's header sticky (<code>.sticky</code>), by applying the appropriate modifier.</p><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><header</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"sticky"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-a"></header></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> You should not apply a <code>.button</code> class to the logo of your header, but you must make sure that all other elements inside the header are styled as buttons.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>The header element is partially responsive on smaller screens, displaying a scrollbar indicating that there is more content off-screen.</li><li>The header element can be a row in a <ahref="grid">grid system</a>, allowing you to create responsive headers.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for the header can be changed by changing the value of the <code>--header-fore-color</code> variable.</li><li>Background color for the header can be changed by changing the value of the <code>--header-back-color</code> variable.</li><li>Border color for the header can be changed by changing the value of the <code>--header-border-color</code> variable.</li><li>Background color for focused buttons inside the header can be changed by changing the value of the <code>--header-hover-back-color</code> variable.</li></ul></div>
<divclass="section"><p>The navigation bar element has been minimally styled, allowing you to create simple vertical navigation menus for your web apps. Apart from styling from links, custom classes (<code>.sublink-1</code> and <code>.sublink-2</code>) are provided for creating navigation trees.</p></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>It is recommended that you combine the navigation bar element with the <ahref="#grid">grid system</a> to create responsive navigation menus for your web apps.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for navigation bars can be changed by changing the value of the <code>--nav-fore-color</code> variable.</li><li>Background color for navigation bars can be changed by changing the value of the <code>--nav-back-color</code> variable.</li><li>Border color for navigation bars can be changed by changing the value of the <code>--nav-border-color</code> variable.</li><li>Background color for focused buttons inside navigation bars can be changed by changing the value of the <code>--nav-hover-back-color</code> variable.</li><li>Text color for links inside navigation bars can be changed by changing the value of the <code>--nav-link-color</code> variable.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
<divclass="section"><p>The footer element has been minimally styled, aiming to provide you with a clean base to create your web apps' footers.</p></div>
<h4>Sticky footer</h4><p>You can make your web app's footer sticky (<code>.sticky</code>), by applying the appropriate modifier.</p><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><footer</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"sticky"</span><spanclass="highlight-a">></span></span>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for the footer can be changed by changing the value of the <code>--footer-fore-color</code> variable.</li><li>Background color for the footer can be changed by changing the value of the <code>--footer-back-color</code> variable.</li><li>Border color for the footer can be changed by changing the value of the <code>--footer-border-color</code> variable.</li><li>Text color for links inside the footer can be changed by changing the value of the <code>--footer-link-color</code> variable.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li></ul></div>
<divclass="section"><p>The drawer component of <strong>mini.css</strong> is used to create responsive navigation menus for your web apps. It is composed of three components - the drawer, the toggle button and the close button:</p>
<ul><li>To create a drawer, simply create a checkbox input, applying the appropriate class to it (<code>.drawer</code>), immediately followed by a container of your liking (e.g. a <code><div></code> or <code><nav></code>). The former serves as your drawer's control, while the latter is the actual drawer container.</li>
<li>Create a label anywhere outside your drawer's container for the checkbox controlling your drawer, applying the appropriate class (<code>.drawer-toggle</code>). This will serve as the toggle button for your drawer menu.</li>
<li>Finally, inside your drawer's container, add another label for the checkbox controlling your drawer, applying the appropriate class (<code>.drawer-close</code>). This will serve as the close button for your drawer menu.</li>
<h4>Persistent drawer</h4><p>If you want your drawer menus to not expand into normal containers on larger screens, simply add the appropriate modifier (<code>.persistent</code>) on the checkbox controlling the drawer and its toggle button.</p><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><label</span><spanclass="highlight-b">for</span>=<spanclass="highlight-c">"drawer-control"</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"drawer-toggle persistent"</span><spanclass="highlight-a">></label></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> You can combine the drawer menu with the <ahref="#grid">grid system</a> to create responsive menus that are part of the layout of your web app.</p></div></div><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><input</span><spanclass="highlight-b">type</span>=<spanclass="highlight-c">"checkbox"</span><spanclass="highlight-b">id</span>=<spanclass="highlight-c">"drawer-control"</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"drawer"</span><spanclass="highlight-a">></span></span>
<spanclass="code-line"><spanclass="highlight-c"><!-- Do not place other stuff between these --></span></span>
<spanclass="code-line"><spanclass="highlight-a"></div></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> You should not place anything between the checkbox controlling the drawer and the container.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>Drawer menus are responsive by default and will expand into normal containers on screens larger or equal to <code>768px</code> wide.</li><li>It is highly recommended to place your drawer's toggle button inside your web app's header element.</li><li>You can combine the navigation bar element with the drawer menu for better results.</li><li>Remember to apply the appropriate classes to any and all elements, as indicated in the examples. Failing to do so will result in the drawer menu not rendering or behaving properly.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color can be changed globally by changing the value of the <code>--fore-color</code> variable. This will affect the text color of the toggle button and items inside the drawer container.</li><li>Background color for the drawer container can be changed by changing the value of the <code>--drawer-back-color</code> variable.</li><li>Border color for the drawer container can be changed by changing the value of the <code>--drawer-border-color</code> variable.</li><li>Text color for the drawer close button can be changed by changing the values of the <code>--drawer-close-color</code>.</li><li>Background color for the drawer close button when focused or hovered over can be changed by changing the values of the <code>--drawer-hover-back-color</code>.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
<divclass="section double-padded prefiller-example"><h3>Sample code</h3><pre><spanclass="code-line"><spanclass="highlight-a"><p></span>This is some <spanclass="highlight-a"><mark></span>highlighted text<spanclass="highlight-a"></mark></span>.<spanclass="highlight-a"></p></span></span></pre></div>
<h4>Color variants</h4><p>You can change the color of highlighted text, based on context by applying the appropriate class (secondary - <code>.secondary</code> or tertiary - <code>.tertiary</code>).</p><h5>Example</h5><pclass="doc">This is a <markclass="doc secondary">secondary highlight</mark> and this is a <markclass="doc tertiary">tertiary highlight</mark>.</p><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><p></span>This is a <spanclass="highlight-a"><mark</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"secondary"</span><spanclass="highlight-a">></span>secondary highlight<spanclass="highlight-a"></mark></span> and this is a <spanclass="highlight-a"><mark</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"tertiary"</span><spanclass="highlight-a">></span>tertiary highlight<spanclass="highlight-a"></mark></span>.<spanclass="highlight-a"></p></span></span></pre><br/><h4>Style variants</h4><p>You can make highlights look like tags (<code>.tag</code>) or display as inline blocks (<code>.inline-block</code>), by applying the appropriate class.</p><h5>Example</h5><pclass="doc">This is a highlight styled as a <markclass="doc tag">tag</mark>.</p><p><markclass="doc inline-block">This is some highlighted text that is displayed as an inline block.</mark></p><h5>Sample code</h5><pre><spanclass="code-line"><spanclass="highlight-a"><p></span>This is a highlight styled as a <spanclass="highlight-a"><mark</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"tag"</span><spanclass="highlight-a">></span>tag<spanclass="highlight-a"></mark></span>.<spanclass="highlight-a"></p></span></span>
<spanclass="code-line"><spanclass="highlight-a"><p></span><spanclass="highlight-a"><mark</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"inline-block"</span><spanclass="highlight-a">></span>This is some highlighted text that is displayed as an inline block.<spanclass="highlight-a"></mark></span><spanclass="highlight-a"></p></span></span></pre></div>
<divclass="section double-padded"><h3>Best practices</h3><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><mark</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"inline-block"</span><spanclass="highlight-a">></span><spanclass="highlight-a"><mark</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"secondary"</span><spanclass="highlight-a">></span>Secondary highlight<spanclass="highlight-a"></mark></span> inside a inline block.<spanclass="highlight-a"></mark></span></span></pre></div><divclass="col-sm-12 col-md-6"><p><markclass="do">Do:</mark> You can nest a highlight inside another one, if the outer one is displayed as an inline-block.</p></div></div><divclass="row dodos"><divclass="col-sm-12 col-md-6"><pre><spanclass="code-line"><spanclass="highlight-a"><mark</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"primary inverse"</span><spanclass="highlight-a">></span>Highlight<spanclass="highlight-a"></mark></span></span>
</pre></div><divclass="col-sm-12 col-md-6"><p><markclass="dont">Don't:</mark> Avoid applying multiple color modifiers on the same highlight.</p></div></div></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>Highlighted text scales according to its parent element, so it can be used inside any kind of element (headings, forms, paragraphs etc.).</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for highlighted text can be changed by changing the value of the <code>--mark-fore-color</code> variable.</li><li>Background color for highlighted text can be changed by changing the value of the <code>--mark-back-color</code> variable.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
<divclass="section"><p><strong>mini.css</strong> provides you with toast messages (<code>.toast</code>), allowing you to display native-looking notifications on mobile devices.</p></div>
<divclass="section"><h3>Example</h3><divclass="container"style="height: 8rem; position: relative;"><spanclass="toast doc"style="position: absolute;">This is a toast message!</span></div></div>
<divclass="section double-padded prefiller-example"><h3>Sample code</h3><pre><spanclass="code-line"><spanclass="highlight-a"><span</span><spanclass="highlight-b">class</span>=<spanclass="highlight-c">"toast"</span><spanclass="highlight-a">></span>This is a toast message!<spanclass="highlight-a"></span></span><spanclass="highlight-a"></mark></span></span></pre></div>
<divclass="section double-padded"><h3>Notes</h3><ul><li>Toast elements do not have any pre-defined behavior, but you can use Javascript to add functionality to them.</li></ul></div>
<divclass="section double-padded"><h3>Customization</h3><ul><li>Text color for toast messages can be changed by changing the value of the <code>--toast-fore-color</code> variable.</li><li>Background color for toast messages can be changed by changing the value of the <code>--toast-back-color</code> variable.</li><li>Universal margin for elements can be changed globally by changing the value of the <code>--universal-margin</code> variable. As a rule of thumb, consider the universal margin to be the distance you want your paragraphs to have from the sides of the screen.</li><li>Universal padding for elements can be changed globally by changing the value of the <code>--universal-padding</code> variable.</li><li>Universal border radius for elements can be changed globally by changing the value of the <code>--universal-border-radius</code> variable.</li></ul></div>
</div><footer><p><strong>mini.css</strong> was designed and built by <ahref="https://github.com/Chalarangelo"target="_blank">@Chalarangelo</a>. Source code licensed under the <ahref="https://github.com/Chalarangelo/mini.css/blob/master/LICENSE">MIT License</a>.</p><p>Icons provided by <ahref="https://feathericons.com/"target="_blank">Feather</a>. Search powered by <ahref="http://fusejs.io/"target="_blank">Fuse.js</a>.</p></footer></main>
'<inputtype="image"class="codepen-link"src="data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23424242%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolygon%20points%3D%2212%202%2022%208.5%2022%2015.5%2012%2022%202%2015.5%202%208.5%2012%202%22%3E%3C%2Fpolygon%3E%3Cline%20x1%3D%2212%22%20y1%3D%2222%22%20x2%3D%2212%22%20y2%3D%2215.5%22%3E%3C%2Fline%3E%3Cpolyline%20points%3D%2222%208.5%2012%2015.5%202%208.5%22%3E%3C%2Fpolyline%3E%3Cpolyline%20points%3D%222%2015.5%2012%208.5%2022%2015.5%22%3E%3C%2Fpolyline%3E%3Cline%20x1%3D%2212%22%20y1%3D%222%22%20x2%3D%2212%22%20y2%3D%228.5%22%3E%3C%2Fline%3E%3C%2Fsvg%3E"width="40"height="40"value="Open in Codepen">' +