UNPKG

itl-css-utility_classes

Version:
301 lines (247 loc) 12.4 kB
<!DOCTYPE html> <html> <head> <title>ITL utility_classes</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="mobile-web-app-capable" content="yes"> <meta name="generator" content="kss-node"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,300"> <link rel="stylesheet" href="kss-assets/vendor/prism.css"> <link rel="stylesheet" href="kss-assets/css/kss.css"> <link rel="stylesheet" href="../css/itl-utility_classes.css"> </head> <body class="kss-body"> <!-- header. --> <header class="kss-header"> <section class="kss-header__inner"> <a class="kss-header__hamburger-trigger"> <div class="kss-header__hamburger"></div> </a> <h1 class="kss-header__title kss-title">ITL utility_classes</h1> </section> </header> <!-- /header. --> <!-- navigation. --> <section class="kss-navigation"> <h1 class="kss-navigation__title kss-title">ITL utility_classes</h1> <ul class="kss-nav"> <li class="kss-nav__item"> <a href="index.html"> <span class="kss-nav__ref">0</span> <span class="kss-nav__name">Introduction</span> </a> </li> <li class="kss-nav__item"> <a class="kss-state-active" href="section-button.html"> <span class="kss-nav__ref">1</span> <span class="kss-nav__name">Buttons</span> </a> <ul class="kss-nav__subnav"> <li class="kss-nav__item "> <a href="section-button.html#kssref-button-effects"> <span class="kss-nav__ref">1.1</span> <span class="kss-nav__name">Effects</span> </a> </li> <li class="kss-nav__item "> <a href="section-button.html#kssref-button-sizes"> <span class="kss-nav__ref">1.2</span> <span class="kss-nav__name">Sizes</span> </a> </li> <li class="kss-nav__item "> <a href="section-button.html#kssref-button-styles"> <span class="kss-nav__ref">1.3</span> <span class="kss-nav__name">Styles</span> </a> </li> </ul> </li> <li class="kss-nav__item"> <a class="" href="section-colors.html"> <span class="kss-nav__ref">2</span> <span class="kss-nav__name">Colors</span> </a> </li> <li class="kss-nav__item"> <a class="" href="section-fonts.html"> <span class="kss-nav__ref">3</span> <span class="kss-nav__name">Fonts</span> </a> </li> <li class="kss-nav__item"> <a class="" href="section-layout.html"> <span class="kss-nav__ref">4</span> <span class="kss-nav__name">Layout</span> </a> </li> <li class="kss-nav__item"> <a class="" href="section-lists.html"> <span class="kss-nav__ref">5</span> <span class="kss-nav__name">Lists</span> </a> </li> <li class="kss-nav__item"> <a class="" href="section-responsiveness.html"> <span class="kss-nav__ref">6</span> <span class="kss-nav__name">Responsiveness</span> </a> </li> <li class="kss-nav__item"> <a class="" href="section-sizes.html"> <span class="kss-nav__ref">7</span> <span class="kss-nav__name">Sizes</span> </a> </li> <li class="kss-nav__item"> <a class="" href="section-table.html"> <span class="kss-nav__ref">8</span> <span class="kss-nav__name">Table</span> </a> </li> <li class="kss-nav__item"> <a class="" href="section-zmisc.html"> <span class="kss-nav__ref">9</span> <span class="kss-nav__name">Misc</span> </a> </li> </ul> </section> <!-- /navigation. --> <!-- documentation. --> <section class="kss-documentation"> <!-- display each section, in order. the "root" element comes first in this loop, and can be detected using the "#if @first" block as seen below. --> <header class="kss-section kss-section--depth-1" id="kssref-button"> <article class="kss-section__content"> <p class="kss-section__source">Source: <span>_buttons.scss</span>, line <span>6</span></p> <a class="kss-section__permalink" href="#kssref-button"> <h1 class="kss-section__item kss-section__item--depth-1"> <span class="kss-section__ref">1</span> <span class="kss-section__name">Buttons</span> </h1> </a> <div class="kss-section__description"><p><code class="block">@mixin button</code> Improvement uppon the default buttons. Buttons as they should be.</p> </div> </article> <article class="kss-section__modifiers"> <h1 class="kss-modifiers__heading">Example</h1> <div class="kss-modifiers__example"><button>Normal button</button><button class="button">Utility button</button></div> </article> <article class="kss-section__markup"> <pre><code class="language-markup">&lt;button&gt;Normal button&lt;/button&gt;&lt;button class&#x3D;&quot;button&quot;&gt;Utility button&lt;/button&gt;</code></pre> </article> </header> <section class="kss-section kss-section--depth-2" id="kssref-button-effects"> <article class="kss-section__content"> <p class="kss-section__source">Source: <span>_buttons.scss</span>, line <span>149</span></p> <a class="kss-section__permalink" href="#kssref-button-effects"> <h2 class="kss-section__item kss-section__item--depth-2"> <span class="kss-section__ref">1.1</span> <span class="kss-section__name">Effects</span> </h2> </a> <div class="kss-section__description"><p><code class="block">@mixin buttonEffect([lighten, darken, 3d])</code> Add hover-effects to buttons</p> <ul> <li>.button--lighten: lightens the button opacity</li> <li>.button--darken: darkens the button bg</li> <li>.button--3d: gives a 3d effect to a button</li> </ul></div> </article> <article class="kss-section__modifiers"> <h1 class="kss-modifiers__heading">Example</h1> <div class="kss-modifiers__example"><button class="button--lighten button bg-green">Sample button</button> <button class="button--darken button bg-green">Sample button</button> <button class="button--3d button bg-green">Sample button</button></div> </article> <article class="kss-section__markup"> <pre><code class="language-markup">&lt;button class&#x3D;&quot;button--lighten button bg-green&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--darken button bg-green&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--3d button bg-green&quot;&gt;Sample button&lt;/button&gt;</code></pre> </article> </section> <section class="kss-section kss-section--depth-2" id="kssref-button-sizes"> <article class="kss-section__content"> <p class="kss-section__source">Source: <span>_buttons.scss</span>, line <span>16</span></p> <a class="kss-section__permalink" href="#kssref-button-sizes"> <h2 class="kss-section__item kss-section__item--depth-2"> <span class="kss-section__ref">1.2</span> <span class="kss-section__name">Sizes</span> </h2> </a> <div class="kss-section__description"><p><code class="block">@mixin buttonSize([xs,sm,md,lg,xl,wide,wider])</code> use the BEM modifiers to change the default button sizes:</p> <ul> <li>.button--xs: smallest button in the book</li> <li>.button--sm: still smaller than default</li> <li>.button--md: actually the default</li> <li>.button--lg: bigger than default</li> <li>.button--xl: pretty big</li> <li>.button--wide: wider than default</li> <li>.button--wider: much wider than default</li> </ul></div> </article> <article class="kss-section__modifiers"> <h1 class="kss-modifiers__heading">Example</h1> <div class="kss-modifiers__example"><button class="button--xs button bg-yellow">Sample button</button> <button class="button--sm button bg-green">Sample button</button> <button class="button--md button bg-red">Sample button</button> <button class="button--lg button bg-blue">Sample button</button> <button class="button--xl button bg-white">Sample button</button></div> </article> <article class="kss-section__markup"> <pre><code class="language-markup">&lt;button class&#x3D;&quot;button--xs button bg-yellow&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--sm button bg-green&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--md button bg-red&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--lg button bg-blue&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--xl button bg-white&quot;&gt;Sample button&lt;/button&gt;</code></pre> </article> </section> <section class="kss-section kss-section--depth-2" id="kssref-button-styles"> <article class="kss-section__content"> <p class="kss-section__source">Source: <span>_buttons.scss</span>, line <span>101</span></p> <a class="kss-section__permalink" href="#kssref-button-styles"> <h2 class="kss-section__item kss-section__item--depth-2"> <span class="kss-section__ref">1.3</span> <span class="kss-section__name">Styles</span> </h2> </a> <div class="kss-section__description"><p><code class="block">@mixin buttonStyle([flat, curve, pill, round])</code> Add appearance styles to buttons</p> <ul> <li>.button--flat: removes the border-radius</li> <li>.button--curve: adds a border-radius</li> <li>.button--pill: makes the button pill shaped</li> <li>.button--round: makes the button circle shaped <span class="note">Should be used in combination with fixed width and height</span></li> </ul></div> </article> <article class="kss-section__modifiers"> <h1 class="kss-modifiers__heading">Example</h1> <div class="kss-modifiers__example"><button class="button--flat button bg-green">Sample button</button> <button class="button--curve button bg-green">Sample button</button> <button class="button--pill button bg-blue">Sample button</button> <button class="button--round w64 h64 button bg-red">Big</button></div> </article> <article class="kss-section__markup"> <pre><code class="language-markup">&lt;button class&#x3D;&quot;button--flat button bg-green&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--curve button bg-green&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--pill button bg-blue&quot;&gt;Sample button&lt;/button&gt; &lt;button class&#x3D;&quot;button--round w64 h64 button bg-red&quot;&gt;Big&lt;/button&gt;</code></pre> </article> </section> </section> <!-- /documentation. --> <!-- scripts. --> <script src="kss-assets/vendor/jquery.js"></script> <script src="kss-assets/vendor/prism.js"></script> <script src="kss-assets/js/kss.js"></script> <!-- /scripts. --> </body> </html>