reduce util classes

This commit is contained in:
Geoff Doty 2024-05-11 13:57:31 -04:00
parent b8255a73bd
commit e24aece5f7
4 changed files with 22 additions and 62 deletions

2
dist/stylelite.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@
<div class="grid space">
<div style="background: var(--theme);">&nbsp;</div>
<div style="background: var(--gray);">&nbsp;</div>
<div class="outline">&nbsp;</div>
<div class="border">&nbsp;</div>
</div>
</p>
</section>
@ -304,33 +304,17 @@
</div>
</section>
</section>
<section>
<a name="components"></a>
<h2>Components</h2>
<div class="grid center">
<div>
<article>
<header>Header</header>
<main>Content</main>
<footer>Footer</footer>
</article>
</div>
<div>
<button>Modal</button>
</div>
<div>
Something
</div>
</div>
</section>
<section>
<a name="utilities"></a>
<h2>Utility</h2>
<table>
<tr>
<th><code>.content</code></th>
<td>adds uniform padding</td>
<th><code>.grid</code></th>
<td>dynamic grid layout helper</td>
</tr>
<tr>
<th><code>.group</code></th>
<td>treats content as flex</td>
</tr>
<tr>
<th><code>.left</code></th>
@ -345,40 +329,18 @@
<td>text aligns content center</td>
</tr>
<tr>
<th><code>.grid</code></th>
<td>dynamic grid layout helper</td>
<th><code>.no-space</code></th>
<td>removes padding & margin</td>
</tr>
<tr>
<th><code>.sm</code></th>
<td>reduces component size by half</td>
<th><code>.no-border</code></th>
<td>removes borders</td>
</tr>
<tr>
<th><code>.lg</code></th>
<td>increase component size by 75%</td>
</tr>
<tr>
<th><code>.outline</code></th>
<td></td>
</tr>
<tr>
<th><code>.underline</code></th>
<td></td>
</tr>
<tr>
<th><code>.border</code></th>
<td></td>
</tr>
<tr>
<th><code>.spaceless</code></th>
<td></td>
</tr>
<tr>
<th><code>.subtitle</code></th>
<td>designed for tighter fit under headings</td>
</tr>
<tr>
<th><code>.fill</code></th>
<td>fills all available space</td>
<th><code>.no-theme</code></th>
<td>
removes theme flair
</td>
</tr>
<tr>
<th><code>.clear</code></th>

View File

@ -337,6 +337,8 @@ textarea {
color: var(--fg);
}
*:disabled, .disable, .disable {pointer-events: none;}
/* Navigation */
nav {
@ -358,6 +360,8 @@ nav.navbar {
nav.navbar a {color: var(--white)}
/* Grid System */
.grid {
@ -394,18 +398,12 @@ nav.navbar a {color: var(--white)}
/* Utilities */
.group {display: flex;}
.pointer {cursor: pointer;}
.right {float:right}
.left {float:left}
.center {text-align: center;}
.clear {content:'';display: table;clear:both}
.outline {background: transparent; color: var(--theme); border: 1px solid var(--theme)}
.underline {border-bottom: 1px solid var(--mg)}
.rounded {border-radius: calc(var(--size) / 4);}
.border {border: 1px solid var(--theme)}
.no-space {margin: 0; padding:0;}
.no-border {border: none}
.no-padding {padding: 0}
.no-margin {margin: 0}
.no-space {margin: 0; padding:0;}
.no-theme {--theme: var(--fg)}
*:disabled, .disable, .disable {pointer-events: none;}