next version

This commit is contained in:
Geoff Doty 2024-01-19 18:43:53 -05:00
parent 9e6cb73455
commit 2cc5aaa19f
5 changed files with 83 additions and 78 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

@ -13,8 +13,18 @@
<body> <body>
<main> <main>
<section> <section>
<!-- <div class="grid">
<div style="background: var(--fg);">&nbsp;</div>
<div style="background: var(--gray);">&nbsp;</div>
<div class="outline">&nbsp;</div>
</div> -->
<!-- <br> -->
<nav> <nav>
<strong>Styles</strong> <!-- <h1 class="no-margin">Styles</h1> -->
<h1 class="no-margin" style="color: var(--mg);">
STYLELITE
<span style="color: var(--fg);">CSS</span>
</h1>
<ul> <ul>
<li><a href="#type">Typography</a></li> <li><a href="#type">Typography</a></li>
<li><a href="#forms">Forms</a></li> <li><a href="#forms">Forms</a></li>
@ -25,20 +35,20 @@
<li></li> <li></li>
</ul> </ul>
</nav> </nav>
<br> <!-- <br> -->
<div> <!-- <div>
<h1 style="color: var(--mg);"> <h1 style="color: var(--mg);">
STYLELITE STYLELITE
<span style="color: var(--fg);">CSS</span> <span style="color: var(--fg);">CSS</span>
</h1> </h1>
<div class="subtitle">CSS for Minimalist</div> <div class="">CSS for Minimalist</div>
</div> </div> -->
<br> <!-- <br> -->
<div class="grid"> <!-- <div class="grid">
<div style="background: var(--fg);">&nbsp;</div> <div style="background: var(--fg);">&nbsp;</div>
<div style="background: var(--gray);">&nbsp;</div> <div style="background: var(--gray);">&nbsp;</div>
<div class="outline">&nbsp;</div> <div class="outline">&nbsp;</div>
</div> </div> -->
</section> </section>
<section> <section>
<a name="overview"></a> <a name="overview"></a>
@ -163,7 +173,7 @@
</div> </div>
<div> <div>
<label for='selected'>Prefered theme</label> <label for='selected'>Preferred theme</label>
<select name="selected" id=""> <select name="selected" id="">
<option value="">Choose One</option> <option value="">Choose One</option>
<option value="light">Light</option> <option value="light">Light</option>
@ -178,13 +188,10 @@
</div> </div>
<div> <div>
<label for='remember'>
<input type='checkbox' name='remember' id='remember' checked> <input type='checkbox' name='remember' id='remember' checked>
Remember me <label for='remember'>
Remember Me
</label> </label>
</div>
<div>
<input class="right" type="submit"></input> <input class="right" type="submit"></input>
</div> </div>
</form> </form>
@ -194,17 +201,14 @@
<a name="buttons"></a> <a name="buttons"></a>
<h3>Buttons</h3> <h3>Buttons</h3>
<div class="grid"> <div class="grid">
<button>Button</button> <button>Theme</button>
<button class="default">Default</button>
<button class="primary">Primary</button>
<button disabled>Disabled</button> <button disabled>Disabled</button>
<button class="default">Default</button>
<button class="link">Link</button> <button class="link">Link</button>
</div> </div>
<div class="grid"> <div class="grid">
<button class="default">Default</button>
<button class="primary">Primary</button> <button class="primary">Primary</button>
<button class="info">Info</button>
<button class="warning">Warning</button> <button class="warning">Warning</button>
<button class="danger">Danger</button> <button class="danger">Danger</button>
<button class="success">Success</button> <button class="success">Success</button>
@ -244,22 +248,17 @@
<section> <section>
<a name="grid"></a> <a name="grid"></a>
<h2>Grid System</h2> <h2>Grid System</h2>
<p> <div>
The flex-based grid system dynamicly divides content on the number of The flex-based grid system dynamicly divides content on the number of
child elements under <code>row</code>, be that a plain <code>div</code>(auto) or <code>col-*</code> child elements under <code>row</code>, be that a plain <code>div</code>(auto) or <code>col-*</code>.
<p> Column sizes range from <code>col-1</code> to <code>col-5</code>
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> a <code>col-5</code> is 5x <code>col-1</code>
</p>
<blockquote> <blockquote>
if <code>col-*</code> is not defined on a <code>div</code>, it is considered a <code>col-1</code> if <code>col-*</code> is not defined on a <code>div</code>, it is considered a <code>col-1</code>
</blockquote> </blockquote>
</p> </div>
<section> <section>
<div class="row"> <div class="row">
<div class="border center">auto</div> <div class="border center">auto</div>
@ -320,11 +319,21 @@
<a name="components"></a> <a name="components"></a>
<h2>Components</h2> <h2>Components</h2>
<div class="grid center">
<div>
<article> <article>
<header>Header</header> <header>Header</header>
<main>Content</main> <main>Content</main>
<footer>Footer</footer> <footer>Footer</footer>
</article> </article>
</div>
<div>
<button>Modal</button>
</div>
<div>
Something
</div>
</div>
</section> </section>
<section> <section>
<a name="utilities"></a> <a name="utilities"></a>

View File

@ -1,9 +1,9 @@
{ {
"name": "stylelite", "name": "stylelite",
"version": "0.5.0", "version": "0.6.0",
"description": "css for minimalists", "description": "a class-lite stylesheet on the light-side",
"scripts": { "scripts": {
"build": "npx csso .\\src\\stylelite.css --comments first-exclamation --output .\\dist\\stylelite.min.css -s .\\dist\\stylelite.map" "build": "npx csso-cli .\\src\\stylelite.css --comments first-exclamation --output .\\dist\\stylelite.min.css -s .\\dist\\stylelite.map"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -24,7 +24,7 @@
}, },
"homepage": "https://n2geoff.github.io/stylelite", "homepage": "https://n2geoff.github.io/stylelite",
"devDependencies": { "devDependencies": {
"csso-cli": "^3.0.0" "csso-cli": "^4.0.2"
}, },
"dependencies": {} "dependencies": {}
} }

View File

@ -1,4 +1,4 @@
/*! Stylelite v:0.5.0 | MIT LICENSE | https://github.com/n2geoff/stylelite */ /*! Stylelite v:0.6.0 | MIT LICENSE | https://github.com/n2geoff/stylelite */
:root { :root {
--space: 1rem; --space: 1rem;
--size: 1rem; --size: 1rem;
@ -36,9 +36,10 @@
html,body { html,body {
background: var(--bg); background: var(--bg);
color: var(--fg); color: var(--fg);
accent-color: var(--theme);
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: -apple-system, system-ui, Roboto, sans-serif; font-family: system-ui, sans-serif;
font-size: 16px; font-size: 16px;
letter-spacing: 0.0125em; letter-spacing: 0.0125em;
line-height: 1.5rem; line-height: 1.5rem;
@ -46,18 +47,27 @@ html,body {
padding: 0; padding: 0;
} }
div, input, button, textarea, select {margin-bottom: .25rem;}
p {margin: .5rem 0}
img,embed,iframe,object,audio,video { img,embed,iframe,object,audio,video {
height: auto; height: auto;
max-width: 100%; max-width: 100%;
border: none; border: none;
} }
label {font-weight: 600;color: var(--dark)} label {
display: inline;
font-weight: 600;
color: var(--dark);
padding: .5rem 0;
vertical-align: top;
}
main { main {
margin: 0 auto; margin: 0 auto;
padding: var(--space); padding: var(--space);
height: 100vh;
max-width: 1140px; max-width: 1140px;
} }
@ -138,34 +148,21 @@ h1 {
} }
h2 {font-size: 1.8rem} h2 {font-size: 1.8rem}
h3 {font-size: 1.4rem} h3 {font-size: 1.4rem;margin: .5rem 0}
h4 {font-size: 1.2rem} h4 {font-size: 1.2rem; margin: .25rem 0}
h5 {font-size: 1rem} h5 {font-size: 1rem; margin: .25rem 0}
h6 {font-size: .9rem} h6 {font-size: .9rem; margin: .25rem 0}
a {color: var(--theme)} a {color: var(--theme)}
a:hover {color: var(--dark);} a:hover {color: var(--dark);}
section, article { section, article {
margin-bottom: calc(var(--space) * 1.2); margin-bottom: 2rem;
padding-bottom: var(--space);
} }
article { article {
border: 1px solid rgba(0,0,0,.125); border: 1px solid rgba(0,0,0,.125);
background: var(--default); background: var(--default);
}
article main {
height: auto;
padding: var(--space);
}
article header {
padding: var(--space);
}
article footer {
padding: var(--space); padding: var(--space);
} }
@ -211,6 +208,14 @@ a.button, button, input {
input[type=color] {padding: .25rem} input[type=color] {padding: .25rem}
input[type="checkbox"],
input[type="radio"]{
padding: 0;
width: 1.1rem;
height: 1.1rem;
margin-right: .5rem;
}
button, input[type="reset"],input[type="submit"] { button, input[type="reset"],input[type="submit"] {
display: inline-block; display: inline-block;
border-radius: var(--radius); border-radius: var(--radius);
@ -278,14 +283,6 @@ select:focus,textarea:focus,input:focus {
option { line-height: 1rem; vertical-align: center;} option { line-height: 1rem; vertical-align: center;}
input[type="checkbox"],input[type="radio"] {
display: inline-block;
padding: 0;
margin: 0 .5rem;
width: calc(var(--size) * .8);
height: calc(var(--size) * .8);
}
select,textarea { select,textarea {
display: inline-block; display: inline-block;
outline: none; outline: none;
@ -332,7 +329,6 @@ nav > ul {
margin: 0 0 0 -2rem; margin: 0 0 0 -2rem;
display: flex; display: flex;
list-style-type: none; list-style-type: none;
} }
nav ul li a { nav ul li a {
@ -347,9 +343,9 @@ nav ul li a:hover {opacity: .75;}
.grid { .grid {
display: grid; display: grid;
gap: var(--space); gap: .25rem;
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr)); grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
padding: .4rem; /* padding: 0; */
} }
.row { .row {
@ -357,6 +353,7 @@ nav ul li a:hover {opacity: .75;}
flex: 0 1 auto; flex: 0 1 auto;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
column-gap: .5rem;
margin:0; margin:0;
padding: .25rem 0; padding: .25rem 0;
} }
@ -366,9 +363,8 @@ nav ul li a:hover {opacity: .75;}
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: stretch; align-items: stretch;
box-sizing: border-box;
flex: 1; flex: 1;
padding: calc(var(--size) / 2); padding: .5rem;
max-width: 100%; max-width: 100%;
} }
@ -393,9 +389,9 @@ nav ul li a:hover {opacity: .75;}
.padding {padding: var(--space)} .padding {padding: var(--space)}
.margin {margin: var(--space)} .margin {margin: var(--space)}
.title {margin: 0; padding:0} .title {margin: 0; padding:0}
.subtitle {margin-top: -.25rem; font-size: small}; .subtitle {margin-top: -.25rem; font-size: smaller};
.spaceless {margin: 0; padding:0} .spaceless {margin: 0; padding:0}
.sm {font-size: small;height: calc(var(--size) * 1.5);padding: 0 calc(var(--size)/ .75);} .sm {font-size: smaller;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);} .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);} .rounded {border-radius: calc(var(--size) / 4);}
.no-border {border: none} .no-border {border: none}