styling overhaul & colors

This commit is contained in:
Geoff Doty 2023-12-22 14:52:37 -06:00
parent cf39089a57
commit d4223e06fe
2 changed files with 776 additions and 669 deletions

View File

@ -1,386 +1,393 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" data-theme="dark"> <html lang="en" data-theme="">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stylelite</title> <title>Stylelite</title>
<link rel="stylesheet" href="../src/stylelite.css"> <link rel="stylesheet" href="../src/stylelite.css">
<style> <style>
.fg-danger {color: indianred}
.fg-success {color: seagreen} </style>
.fg-primary {color: steelblue} </head>
.fg-warning {color: khaki} <body>
.btn-success {background: seagreen; color: #FFF;} <main>
.btn-danger {background: indianred; color: #FFF;} <section>
.btn-primary {background: steelblue; color: #FFF;} <nav>
.btn-warning {background: khaki; color: #000;} <strong>Styles</strong>
</style> <ul>
</head> <li><a href="#type">Typography</a></li>
<body> <li><a href="#forms">Forms</a></li>
<main> <li><a href="#table">Tables</a></li>
<section> <li><a href="#grid">Grid Layout</a></li>
<nav> <li><a href="#components">Components</a></li>
<strong>Styles</strong> <li><a href="#utilities">Utilities</a></li>
<ul> <li></li>
<li><a href="#type">Typography</a></li> </ul>
<li><a href="#forms">Forms</a></li> </nav>
<li><a href="#table">Tables</a></li> <br>
<li><a href="#grid">Grid Layout</a></li> <div>
<li><a href="#utilities">Utilities</a></li> <h1 style="color: var(--mg);">
<li></li> STYLELITE
</ul> <span style="color: var(--fg);">CSS</span>
</nav> </h1>
<br> <div class="subtitle">CSS for Minimalist</div>
<div> </div>
<h1 style="color: var(--mg);"> <br>
STYLELITE <div class="grid">
<span style="color: var(--fg);">CSS</span> <div style="background: var(--fg);">&nbsp;</div>
</h1> <div style="background: var(--gray);">&nbsp;</div>
<div class="subtitle">CSS for Minimalist</div> <div class="outline">&nbsp;</div>
</div> </div>
<br> </section>
<div class="grid"> <section>
<div style="background: var(--fg);">&nbsp;</div> <a name="overview"></a>
<div style="background: var(--mg);">&nbsp;</div> <h2 class="underline">Overview</h2>
<div class="outline">&nbsp;</div> <div>
</div> <code>DIV</code> is not the only tag avalible to your designs.
</section> Mimic traditional <code>.container</code> class by just using a <code>MAIN</code> tag.
<section> <p></p>
<a name="overview"></a> Need to divide major sections of your code, eh...use <code>SECTION</code> tag.
<h2 class="underline">Overview</h2> <p></p>
<div> And for that little extra content flair, wrap in an <code>ARTICLE</code> tag.
<code>DIV</code> is not the only tag avalible to your designs. </div>
Mimic traditional <code>.container</code> class by just using a <code>MAIN</code> tag. </section>
<p></p> <section>
Need to divide major sections of your code, eh...use <code>SECTION</code> tag. <a name="type"></a>
<p></p> <h2>Typography</h2>
And for that little extra content flair, wrap in an <code>ARTICLE</code> tag. <div>
</div> <blockquote>
</section> The alternative to good design is always bad design. there is no such thing as no design.
<section> Simplicity carried to an extreme, becomes elegance.
<a name="type"></a> <cite>-- Adam Judge</cite>
<h2>Typography</h2> </blockquote>
<div> <p>
<blockquote> <code>P</code>
The alternative to good design is always bad design. there is no such thing as no design. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vestibulum luctus arcu,
Simplicity carried to an extreme, becomes elegance. eu faucibus ex. Ut consequat lorem eget aliquet semper. Praesent quis vestibulum ante,
<cite>-- Adam Judge</cite> id tristique leo. Etiam sed congue lacus. Nunc ut ornare metus. Suspendisse tincidunt in
</blockquote> odio eu faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla
<p> facilisi.
<code>P</code> </p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris vestibulum luctus arcu, <p>
eu faucibus ex. Ut consequat lorem eget aliquet semper. Praesent quis vestibulum ante, <code>STRONG</code>
id tristique leo. Etiam sed congue lacus. Nunc ut ornare metus. Suspendisse tincidunt in <strong id="generated">Generated 1 paragraph, 52 words, 354 bytes of
odio eu faucibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla <a href="https://www.lipsum.com/" title="Lorem Ipsum">Lorem Ipsum</a>
facilisi. </strong>
</p> </p>
<p> <hr>
<code>STRONG</code> </div>
<strong id="generated">Generated 1 paragraph, 52 words, 354 bytes of <div class="grid">
<a href="https://www.lipsum.com/" title="Lorem Ipsum">Lorem Ipsum</a> <div>
</strong> <h1><code>H1</code> Heading...</h1>
</p> <h2><code>H2</code> Heading...</h2>
<hr> <h3><code>H3</code> Heading...</h3>
</div> <h4><code>H4</code> Heading...</h4>
<div class="grid"> <h5><code>H5</code> Heading...</h5>
<div> <h6><code>H6</code> Heading...</h6>
<h1><code>H1</code> Heading...</h1> </div>
<h2><code>H2</code> Heading...</h2> <div>
<h3><code>H3</code> Heading...</h3> <p><code>P</code> can simply be a paragraph</p>
<h4><code>H4</code> Heading...</h4> <p><code>A</code> can be a <a href="./">link</a></p>
<h5><code>H5</code> Heading...</h5> <p><code>STRONG</code> can be <strong>bold</strong></p>
<h6><code>H6</code> Heading...</h6> <p><code>U</code> can be <u>underlined</u></p>
</div> <p><code>EM</code> can be <em>emphasised</em></p>
<div> <p><code>SMALL</code> can be <small>small</small></p>
<p><code>P</code> can simply be a paragraph</p> <p><code>CODE</code> can be <code>code</code></p>
<p><code>A</code> can be a <a href="./">link</a></p> </div>
<p><code>STRONG</code> can be <strong>bold</strong></p> </div>
<p><code>U</code> can be <u>underlined</u></p> <div>
<p><code>EM</code> can be <em>emphasised</em></p> <code>HR</code>
<p><code>SMALL</code> can be <small>small</small></p> <hr>
<p><code>CODE</code> can be <code>code</code></p> </div>
</div> <div>
</div> <div>
<div> <code>IMG</code>
<code>HR</code> </div>
<hr> <img src='http://via.placeholder.com/340x280' alt='Example image'>
</div> </div>
<div> </section>
<div> <section>
<code>IMG</code> <a name="lists"></a>
</div> <h2>Lists</h2>
<img src='http://via.placeholder.com/340x280' alt='Example image'> <article class="grid">
</div> <div>
</section> <code>UL</code>
<section> <ul>
<a name="lists"></a> <li><code>LI</code>List Item</li>
<h2>Lists</h2> <li><code>LI</code>List Item</li>
<article class="grid"> <li><code>LI</code>List Item</li>
<div> <li><code>LI</code>List Item</li>
<code>UL</code> </ul>
<ul> </div>
<li><code>LI</code>List Item</li> <div>
<li><code>LI</code>List Item</li> <code>OL</code>
<li><code>LI</code>List Item</li> <ol>
<li><code>LI</code>List Item</li> <li><code>LI</code>List Item</li>
</ul> <li><code>LI</code>List Item</li>
</div> <li><code>LI</code>List Item</li>
<div> <li><code>LI</code>List Item</li>
<code>OL</code> </ol>
<ol> </div>
<li><code>LI</code>List Item</li> </article>
<li><code>LI</code>List Item</li> </section>
<li><code>LI</code>List Item</li> <section>
<li><code>LI</code>List Item</li> <a name="forms"></a>
</ol> <h2>Forms</h2>
</div> <form class="">
</article> <details>
</section> <summary>Details Summary</summary>
<section> <div>
<a name="forms"></a> Default <code>details</code> and <code>summary</code> behavior.
<h2>Forms</h2> wrap content in tag, like <code>div</code>
<form> </div>
<details> </details>
<summary>Details Summary</summary>
<div> <div>
Default <code>details</code> and <code>summary</code> behavior. <label for='id'>User id (read only)</label>
wrap content in tag, like <code>div</code> <input name='id' id='id' value='R2D2' readonly>
</div> </div>
</details> <div>
<label for='email'>Email</label>
<div> <input type='email' name='email' id='email' placeholder='email@example.com'>
<label for='id'>User id (read only)</label> </div>
<input name='id' id='id' value='R2D2' readonly> <div>
</div> <label for='password'>Password</label>
<div> <input type='password' name='password' id='password'>
<label for='email'>Email</label> </div>
<input type='email' name='email' id='email' placeholder='email@example.com'>
</div> <div>
<div> <label for='disabled'>Random disabled input</label>
<label for='password'>Password</label> <input disabled name='disabled' id='disabled'
<input type='password' name='password' id='password'> placeholder='Because why not?'>
</div> </div>
<div> <div>
<label for='disabled'>Random disabled input</label> <label for='selected'>Prefered theme</label>
<input disabled name='disabled' id='disabled' <select name="selected" id="">
placeholder='Because why not?'> <option value="">Choose One</option>
</div> <option value="light">Light</option>
<option value="dark">Dark</option>
<div> </select>
<label for='selected'>Prefered theme</label> </div>
<select name="selected" id="">
<option value="">Choose One</option> <div>
<option value="light">Light</option> <label for='about'>About me</label>
<option value="dark">Dark</option> <textarea name='about' id='about'
</select> placeholder='I am a textarea...'></textarea>
</div> </div>
<div> <div>
<label for='about'>About me</label> <label for='remember'>
<textarea name='about' id='about' <input type='checkbox' name='remember' id='remember' checked>
placeholder='I am a textarea...'></textarea> Remember me
</div> </label>
</div>
<div>
<label for='remember'> <div>
<input type='checkbox' name='remember' id='remember' checked> <input class="right" type="submit"></input>
Remember me </div>
</label> </form>
</div> </section>
<br>
<div> <section>
<input class="right" type="submit"></input> <a name="buttons"></a>
</div> <h3>Buttons</h3>
</form> <div class="grid">
</section> <button>Button</button>
<br> <button class="default">Default</button>
<section> <button class="primary">Primary</button>
<a name="buttons"></a> <button disabled>Disabled</button>
<h3>Buttons</h3> <button class="link">Link</button>
<div class="grid"> </div>
<button class="sm">Small</button>
<button>Default</button> <div class="grid">
<button class="lg">Large</button> <button class="default">Default</button>
<button class="outline">Outline</button> <button class="primary">Primary</button>
</div> <button class="info">Info</button>
<button class="warning">Warning</button>
<div class="grid"> <button class="danger">Danger</button>
<button class="btn-warning">Warning</button> <button class="success">Success</button>
<button class="btn-danger">Danger</button> </div>
<button class="btn-primary">Primary</button> </section>
<button class="btn-success">Success</button> <section>
</div> <a name="table"></a>
</section> <h2>Tables</h2>
<section> <table>
<a name="table"></a> <thead>
<h2>Tables</h2> <tr>
<table> <th>One</th>
<thead> <th>Two</th>
<tr> <th>There</th>
<th>One</th> </tr>
<th>Two</th> </thead>
<th>There</th> <tbody>
</tr> <tr>
</thead> <td>Data</td>
<tbody> <td>Data</td>
<tr> <td>Data</td>
<td>Data</td> </tr>
<td>Data</td> <tr>
<td>Data</td> <td>Data</td>
</tr> <td>Data</td>
<tr> <td>Data</td>
<td>Data</td> </tr>
<td>Data</td> <tr>
<td>Data</td> <td>Data</td>
</tr> <td>Data</td>
<tr> <td>Data</td>
<td>Data</td> </tr>
<td>Data</td> </tbody>
<td>Data</td> </table>
</tr> </section>
</tbody>
</table> <section>
</section> <a name="grid"></a>
<h2>Grid System</h2>
<section> <p>
<a name="grid"></a> The flex-based grid system dynamicly divides content on the number of
<h2>Grid System</h2> child elements under <code>row</code>, be that a plain <code>div</code>(auto) or <code>col-*</code>
<p>
The flex-based grid system dynamicly divides content on the number of <p>
child elements under <code>row</code>, be that a plain <code>div</code>(auto) or <code>col-*</code> column sizes range from <code>col-1</code> to <code>col-5</code>
</p>
<p>
column sizes range from <code>col-1</code> to <code>col-5</code> <p>
</p> a <code>col-5</code> is 5x <code>col-1</code>
</p>
<p>
a <code>col-5</code> is 5x <code>col-1</code> <blockquote>
</p> if <code>col-*</code> is not defined on a <code>div</code>, it is considered a <code>col-1</code>
</blockquote>
<blockquote> </p>
if <code>col-*</code> is not defined on a <code>div</code>, it is considered a <code>col-1</code> <section>
</blockquote> <div class="row">
</p> <div class="border center">auto</div>
<article> </div>
<div class="row content"> <div class="row">
<div class="border center">auto</div> <div class="border center">auto</div>
</div> <div class="border center">auto</div>
<div class="row content"> </div>
<div class="border center">auto</div> <div class="row">
<div class="border center">auto</div> <div class="border center">auto</div>
</div> <div class="border center">auto</div>
<div class="row content"> <div class="border center">auto</div>
<div class="border center">auto</div> </div>
<div class="border center">auto</div> <div class="row">
<div class="border center">auto</div> <div class="border center">auto</div>
</div> <div class="border center">auto</div>
<div class="row content"> <div class="border center">auto</div>
<div class="border center">auto</div> <div class="border center">auto</div>
<div class="border center">auto</div> </div>
<div class="border center">auto</div> <div class="row">
<div class="border center">auto</div> <div class="border center">auto</div>
</div> <div class="border center">auto</div>
<div class="row content"> <div class="border center">auto</div>
<div class="border center">auto</div> <div class="border center">auto</div>
<div class="border center">auto</div> <div class="border center">auto</div>
<div class="border center">auto</div> </div>
<div class="border center">auto</div> <div class="row">
<div class="border center">auto</div> <div class="border center col-2">2</div>
</div> <div class="border center">auto</div>
<div class="row content"> <div class="border center">auto</div>
<div class="border center col-2">2</div> <div class="border center">auto</div>
<div class="border center">auto</div> <div class="border center">auto</div>
<div class="border center">auto</div> </div>
<div class="border center">auto</div> <div class="row">
<div class="border center">auto</div> <div class="border center col-3">3</div>
</div> <div class="border center">auto</div>
<div class="row content"> <div class="border center">auto</div>
<div class="border center col-3">3</div> <div class="border center">auto</div>
<div class="border center">auto</div> <div class="border center">auto</div>
<div class="border center">auto</div> </div>
<div class="border center">auto</div> <div class="row">
<div class="border center">auto</div> <div class="border center col-4">4</div>
</div> <div class="border center">auto</div>
<div class="row content"> <div class="border center">auto</div>
<div class="border center col-4">4</div> <div class="border center">auto</div>
<div class="border center">auto</div> <div class="border center">auto</div>
<div class="border center">auto</div> </div>
<div class="border center">auto</div> <div class="row">
<div class="border center">auto</div> <div class="border center col-5">5</div>
</div> <div class="border center">auto</div>
<div class="row content"> <div class="border center">auto</div>
<div class="border center col-5">5</div> <div class="border center">auto</div>
<div class="border center">auto</div> <div class="border center">auto</div>
<div class="border center">auto</div> </div>
<div class="border center">auto</div> </section>
<div class="border center">auto</div> </section>
</div> <section>
</article> <a name="components"></a>
</section> <h2>Components</h2>
<section>
<a name="utilities"></a> <article>
<h2>Utility</h2> <header>Header</header>
<table> <main>Content</main>
<tr> <footer>Footer</footer>
<th><code>.content</code></th> </article>
<td>adds uniform padding</td> </section>
</tr> <section>
<tr> <a name="utilities"></a>
<th><code>.left</code></th> <h2>Utility</h2>
<td>float content left</td> <table>
</tr> <tr>
<tr> <th><code>.content</code></th>
<th><code>.right</code></th> <td>adds uniform padding</td>
<td>float content right</td> </tr>
</tr> <tr>
<tr> <th><code>.left</code></th>
<th><code>.center</code></th> <td>float content left</td>
<td>text aligns content center</td> </tr>
</tr> <tr>
<tr> <th><code>.right</code></th>
<th><code>.grid</code></th> <td>float content right</td>
<td>dynamic grid layout helper</td> </tr>
</tr> <tr>
<tr> <th><code>.center</code></th>
<th><code>.sm</code></th> <td>text aligns content center</td>
<td>reduces component size by half</td> </tr>
</tr> <tr>
<tr> <th><code>.grid</code></th>
<th><code>.lg</code></th> <td>dynamic grid layout helper</td>
<td>increase component size by 75%</td> </tr>
</tr> <tr>
<tr> <th><code>.sm</code></th>
<th><code>.outline</code></th> <td>reduces component size by half</td>
<td></td> </tr>
</tr> <tr>
<tr> <th><code>.lg</code></th>
<th><code>.underline</code></th> <td>increase component size by 75%</td>
<td></td> </tr>
</tr> <tr>
<tr> <th><code>.outline</code></th>
<th><code>.border</code></th> <td></td>
<td></td> </tr>
</tr> <tr>
<tr> <th><code>.underline</code></th>
<th><code>.spaceless</code></th> <td></td>
<td></td> </tr>
</tr> <tr>
<tr> <th><code>.border</code></th>
<th><code>.subtitle</code></th> <td></td>
<td>designed for tigher fit under headings</td> </tr>
</tr> <tr>
<tr> <th><code>.spaceless</code></th>
<th><code>.fill</code></th> <td></td>
<td>fills all available space</td> </tr>
</tr> <tr>
<tr> <th><code>.subtitle</code></th>
<th><code>.clear</code></th> <td>designed for tigher fit under headings</td>
<td> clear float fix</td> </tr>
</tr> <tr>
</table> <th><code>.fill</code></th>
</section> <td>fills all available space</td>
</main> </tr>
</body> <tr>
<th><code>.clear</code></th>
<td> clear float fix</td>
</tr>
</table>
</section>
</main>
</body>
</html> </html>

View File

@ -1,284 +1,384 @@
/*! Stylelite v:0.5.0 | MIT LICENSE | https://github.com/n2geoff/stylelite */ /*! Stylelite v:0.5.0 | MIT LICENSE | https://github.com/n2geoff/stylelite */
:root { :root {
--space: 1rem; --space: 1rem;
--size: 1.1rem; --size: 1.1rem;
--radius: 0rem; --radius: 0rem;
--fg: #17202A; --fg: #17202A;
--bg: #FDFEFE; --bg: #FDFEFE;
--mg: #ABB2B9; --mg: #99A3A4;
}
--white: #FFF;
[data-theme=dark] { --black: #000;
--mg: #ABB2B9; --gray: #DCDCDC;
--bg: #17202A;
--fg: #FDFEFE; --primary: #1F618D;
} --info: #3498DB;
--warning: #B7950B;
*,*:before,*:after { --danger: #C0392B;
box-sizing: border-box; --success: #1E8449;
} --default: #DCDCDC;
}
html,body {
background: var(--bg); [data-theme=dark] {
color: var(--fg); --mg: #99A3A4;;
margin: 0; --bg: #17202A;
padding: 0; --fg: #EAECEE;
font-family: Verdana, Arial, Helvetica, sans-serif; }
font-size: var(--size);
letter-spacing: 0.0625em; *,*:before,*:after {
line-height: calc(var(--size) * 1.5); box-sizing: border-box;
box-sizing: border-box; }
padding: 0;
} html,body {
background: var(--bg);
img,embed,iframe,object,audio,video { color: var(--fg);
height: auto; margin: 0;
max-width: 100%; padding: 0;
border: none; font-family: -apple-system, system-ui, Roboto, sans-serif;
} font-size: 16px;
letter-spacing: 0.0125em;
main { line-height: calc(var(--size) * 1.5);
margin: 0 auto; box-sizing: border-box;
padding: var(--space); padding: 0;
height: 100vh; }
max-width: 1140px;
} img,embed,iframe,object,audio,video {
height: auto;
ul,ol,li { max-width: 100%;
margin: 0 calc(var(--space) *.72); border: none;
padding: 0 }
}
main {
table { margin: 0 auto;
background: var(--bg); padding: var(--space);
border-collapse: collapse; height: 100vh;
border-spacing: 0; max-width: 1140px;
width: 100%; }
}
table {
th { background: var(--bg);
text-align: left; border-collapse: collapse;
} border-spacing: 0;
width: 100%;
th,td { }
padding: calc(var(--space) / 2.4);
border-bottom: 1px solid var(--mg); table>thead>tr>th {
} border-bottom: 2px solid var(--mg);
}
blockquote {
margin: var(--space) 0; table.striped tbody>:nth-child(2n-1) {
border-left: calc(var(--space) / 2) solid var(--fg); background: #f5f5f5;
color: var(--fg); }
background: var(--mg);
padding: var(--space); th {
} text-align: left;
}
code {
color: var(--mg); th,td {
font-family: monospace; padding: calc(var(--space) / 2.4);
} border-bottom: 1px solid var(--mg);
}
blockquote code, details code {
color: var(--bg); fieldset {border: none;padding: 0;}
}
legend {
hr { font-size: larger;
color: var(--mg); display: block;
border: 1px solid; width: 100%;
} padding: 0;
margin-bottom: 1rem;
h1,h2,h3,h4,h5,h6 { line-height: inherit;
margin: var(--space) 0; border: 0;
padding-bottom: calc(var(--space) / 2); border-bottom: 1px solid var(--mg);
text-transform: capitalize; }
}
blockquote {
h1 { margin: var(--space) 0;
font-size: calc(var(--size) * 2); border-left: calc(var(--space) / 2) solid var(--fg);
color: var(--fg); color: var(--black);
} background: var(--gray);
padding: var(--space);
a {color: var(--mg)} }
a:hover {color: var(--fg)}
code {
section, article { color: var(--mg);
margin-top: calc(var(--space) * 1.2); font-family: monospace;
padding-bottom: var(--space); }
}
blockquote code, details code {
/* Forms */ color: var(--bg);
}
details {
margin: var(--space) 0; hr {
color: var(--bg); color: var(--mg);
cursor: pointer; border: 1px solid;
} }
details[open] { h1,h2,h3,h4,h5,h6 {
background-color: var(--mg); margin: var(--space) 0;
margin-bottom: var(--space); padding-bottom: calc(var(--space) / 2);
} text-transform: capitalize;
color: var(--fg);
details>* {padding: calc(var(--space)/2); border-top: 1px solid var(--bg)} }
summary { h1 {
background-color: var(--mg); font-size: 2.2rem;
} }
button, input { h2 {font-size: 1.8rem}
display: inline-block; h3 {font-size: 1.4rem}
outline: none; h4 {font-size: 1.2rem}
box-sizing: border-box; h5 {font-size: 1rem}
font-size: var(--size); h6 {font-size: .9rem}
background: var(--bg);
color: var(--fg); a {color: var(--primary)}
width: 100%; a:hover {opacity: .5;}
height: calc(var(--size) * 3); /* a:hover {color: var(--fg)} */
border: 1px solid var(--mg);
border-radius: var(--radius); section, article {
padding: clamp(.5rem, var(--space), 2rem); margin-bottom: calc(var(--space) * 1.2);
margin-bottom: var(--space); padding-bottom: var(--space);
margin-right: var(--space); }
}
article {
button, input[type="reset"],input[type="submit"] { border: 1px solid rgba(0,0,0,.125);
display: inline-block; background: var(--gray);
text-transform: uppercase; }
border-radius: var(--radius);
width: initial; article main {
background: var(--fg); height: auto;
color: var(--bg); padding: var(--space);
} }
button { article header {
background: var(--fg); /* border-bottom: 1px solid rgba(0,0,0,.125); */
color: var(--bg); padding: var(--space);
} }
button:hover, input[type="reset"]:hover,input[type="submit"]:hover { article footer {
background: var(--mg); /* background: var(--default); */
color: var(--fg); /* border-top: 1px solid rgba(0,0,0,.125); */
cursor: pointer; padding: var(--space);
} }
input:disabled { /* Forms */
background: var(--mg);
color: var(--bg); form>* {border-top: red}
cursor: not-allowed;
} details {
margin: var(--space) 0;
select:focus,textarea:focus,input:focus { color: var(--black);
border: 2px solid var(--mg); cursor: pointer;
} }
input[type="checkbox"],input[type="radio"] { details[open] {
display: inline-block; background-color: var(--default);
padding: 0; margin-bottom: var(--space);
margin: 0 .5rem; }
width: calc(var(--size) * .8);
height: calc(var(--size) * .8); details>* {padding: calc(var(--space)/2); border-top: 1px solid var(--bg)}
}
summary {
select,textarea { background-color: var(--default);
display: inline-block; }
outline: none;
font-size: var(--size); button, input {
height: calc(var(--size) * 3); display: inline-block;
width: 100%; outline: none;
border: 1px solid var(--mg); box-sizing: border-box;
color: var(--fg); font-size: 1rem;
background: var(--bg); background: var(--bg);
border-radius: var(--radius); color: var(--fg);
padding: 0 var(--space); width: 100%;
margin-bottom: var(--space); height: calc(var(--size) * 2);
cursor: pointer; border: 1px solid var(--mg);
} border-radius: var(--radius);
padding: .5rem 1rem;
select { }
background: var(--bg) no-repeat 100%;
color: var(--fg); button, input[type="reset"],input[type="submit"] {
padding: 0 clamp(.5rem, var(--space), 2rem); display: inline-block;
appearance: none; border-radius: var(--radius);
background-size: 1ex; width: initial;
background-origin: content-box; }
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='%23555'><polygon points='0,0 60,0 30,40'/></svg>");
} button[disabled], button[disabled]:hover {
opacity: .5;
textarea { cursor: not-allowed;
overflow: auto; pointer-events: none;
resize: vertical; }
border: 1px solid var(--mg);
height: calc(var(--size) * 6rem);; button.link {
padding: clamp(.5rem, var(--space), 2rem); border: none;
cursor: text; background: none;
color: var(--fg); color: var(--primary)
} }
/* Navigation */ button.default {
background: var(--default);
nav { color: var(--black);
display: flex; }
justify-content: space-between;
padding: .5rem 1rem; button.primary {
background-color: var(--fg); background: var(--primary);
color: var(--bg); color: var(--white);
} }
button.info {
nav ul { background: var(--info);
display: flex; color: var(--white);
list-style-type: none; }
}
button.warning {
nav ul li a { background: var(--warning);
color: var(--bg); color: var(--white);
text-decoration: none; }
}
nav ul li a:hover {color: var(--mg)} button.danger {
background: var(--danger);
color: var(--white);
/* Grid System */ }
.grid { button.success {
display: grid; background: var(--success);
gap: var(--space); color: var(--white);
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr)); }
}
button:hover, input[type="reset"]:hover,input[type="submit"]:hover {
.row { /* background: var(--mg); */
display: flex; background: #DCDCDC;
flex: 0 1 auto; color: var(--black);
flex-direction: row; cursor: pointer;
flex-wrap: wrap;
margin:0; }
}
.row>*, .col, .col-1, .col-2, .col-3, .col-4,.col-5 { button.link:hover {
display: flex; background: var(--bg)
flex-direction: column; }
justify-content: space-between;
align-items: stretch; input:disabled {
box-sizing: border-box; opacity: .5;
flex: 1; color: var(--bg);
max-width: 100%; cursor: not-allowed;
} }
.col-1 {flex: 1 !important;} select:focus,textarea:focus,input:focus {
.col-2 {flex: 2 !important;} border: 2px solid var(--mg);
.col-3 {flex: 3 !important;} }
.col-4 {flex: 4 !important;}
.col-5 {flex: 5 !important;} input[type="checkbox"],input[type="radio"] {
display: inline-block;
/* Utilities */ padding: 0;
margin: 0 .5rem;
.right {float:right} width: calc(var(--size) * .8);
.left {float:left} height: calc(var(--size) * .8);
.center {text-align: center;} }
.clear {content:'';display: table;clear:both}
.fill {width: 100%; height: 100%} select,textarea {
.outline {background-color: transparent; color: var(--fg); border: 1px solid var(--fg)} display: inline-block;
.underline {border-bottom: 1px solid var(--mg)} outline: none;
.border {border: 1px solid var(--mg)} font-size: var(--size);
.content {padding: var(--space)} height: calc(var(--size) * 2);
.subtitle {margin-top: calc(var(--size) * -1); margin-bottom: var(--space); font-size: smaller}; width: 100%;
.spaceless {margin: 0; padding:0} border: 1px solid var(--mg);
.sm {font-size: small;height: calc(var(--size) * 1.5);padding: 0 calc(var(--size)/ .75);} color: var(--fg);
.lg {font-size: x-large;height: calc(var(--size) * 4.5);padding: 0 calc(var(--size) / 1.25);} background: var(--bg);
border-radius: var(--radius);
padding: 0 var(--space);
/* margin-bottom: var(--space); */
cursor: pointer;
}
select {
background: var(--bg) no-repeat 100%;
color: var(--fg);
padding: 0 clamp(.5rem, var(--space), 2rem);
appearance: none;
background-size: 1ex;
background-origin: content-box;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' fill='%23555'><polygon points='0,0 60,0 30,40'/></svg>");
}
textarea {
overflow: auto;
resize: vertical;
border: 1px solid var(--mg);
height: calc(var(--size) * 6rem);;
padding: clamp(.5rem, var(--space), 2rem);
cursor: text;
color: var(--fg);
}
/* Navigation */
nav {
display: flex;
justify-content: space-between;
border-bottom: 1px solid var(--mg);
}
nav ul {
margin:0;
display: flex;
list-style-type: none;
}
nav ul li a {
padding: .5rem 1rem;
text-decoration: none;
}
nav ul li a:hover {opacity: .75;}
/* Grid System */
.grid {
display: grid;
gap: var(--space);
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
padding: .4rem;
}
.row {
display: flex;
flex: 0 1 auto;
flex-direction: row;
flex-wrap: wrap;
margin:0;
padding: .4rem;
}
.row>*, .col, .col-1, .col-2, .col-3, .col-4,.col-5 {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
box-sizing: border-box;
flex: 1;
max-width: 100%;
}
.col-1 {flex: 1 !important;}
.col-2 {flex: 2 !important;}
.col-3 {flex: 3 !important;}
.col-4 {flex: 4 !important;}
.col-5 {flex: 5 !important;}
/* Utilities */
.right {float:right}
.left {float:left}
.center {text-align: center;}
.clear {content:'';display: table;clear:both}
.fill {width: 100%; height: 100%}
.outline {background-color: transparent; color: var(--fg); border: 1px solid var(--fg)}
.underline {border-bottom: 1px solid var(--mg)}
.border {border: 1px solid var(--mg)}
.content {padding: var(--space)}
.title {margin: 0; padding:0}
.subtitle {margin-top: -.25rem; font-size: small};
.spaceless {margin: 0; padding:0}
.sm {font-size: small;height: calc(var(--size) * 1.5);padding: 0 calc(var(--size)/ .75);}
.lg {font-size: x-large;height: calc(var(--size) * 4.5);padding: 0 calc(var(--size) / 1.25);}
.rounded {border-radius: calc(var(--size) / 4);}