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

View File

@ -1,9 +1,9 @@
{
"name": "stylelite",
"version": "0.5.0",
"description": "css for minimalists",
"version": "0.6.0",
"description": "a class-lite stylesheet on the light-side",
"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": {
"type": "git",
@ -24,7 +24,7 @@
},
"homepage": "https://n2geoff.github.io/stylelite",
"devDependencies": {
"csso-cli": "^3.0.0"
"csso-cli": "^4.0.2"
},
"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 {
--space: 1rem;
--size: 1rem;
@ -36,9 +36,10 @@
html,body {
background: var(--bg);
color: var(--fg);
accent-color: var(--theme);
margin: 0;
padding: 0;
font-family: -apple-system, system-ui, Roboto, sans-serif;
font-family: system-ui, sans-serif;
font-size: 16px;
letter-spacing: 0.0125em;
line-height: 1.5rem;
@ -46,18 +47,27 @@ html,body {
padding: 0;
}
div, input, button, textarea, select {margin-bottom: .25rem;}
p {margin: .5rem 0}
img,embed,iframe,object,audio,video {
height: auto;
max-width: 100%;
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 {
margin: 0 auto;
padding: var(--space);
height: 100vh;
max-width: 1140px;
}
@ -138,34 +148,21 @@ h1 {
}
h2 {font-size: 1.8rem}
h3 {font-size: 1.4rem}
h4 {font-size: 1.2rem}
h5 {font-size: 1rem}
h6 {font-size: .9rem}
h3 {font-size: 1.4rem;margin: .5rem 0}
h4 {font-size: 1.2rem; margin: .25rem 0}
h5 {font-size: 1rem; margin: .25rem 0}
h6 {font-size: .9rem; margin: .25rem 0}
a {color: var(--theme)}
a:hover {color: var(--dark);}
section, article {
margin-bottom: calc(var(--space) * 1.2);
padding-bottom: var(--space);
margin-bottom: 2rem;
}
article {
border: 1px solid rgba(0,0,0,.125);
background: var(--default);
}
article main {
height: auto;
padding: var(--space);
}
article header {
padding: var(--space);
}
article footer {
padding: var(--space);
}
@ -211,6 +208,14 @@ a.button, button, input {
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"] {
display: inline-block;
border-radius: var(--radius);
@ -278,14 +283,6 @@ select:focus,textarea:focus,input:focus {
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 {
display: inline-block;
outline: none;
@ -332,7 +329,6 @@ nav > ul {
margin: 0 0 0 -2rem;
display: flex;
list-style-type: none;
}
nav ul li a {
@ -347,9 +343,9 @@ nav ul li a:hover {opacity: .75;}
.grid {
display: grid;
gap: var(--space);
gap: .25rem;
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
padding: .4rem;
/* padding: 0; */
}
.row {
@ -357,6 +353,7 @@ nav ul li a:hover {opacity: .75;}
flex: 0 1 auto;
flex-direction: row;
flex-wrap: wrap;
column-gap: .5rem;
margin:0;
padding: .25rem 0;
}
@ -366,9 +363,8 @@ nav ul li a:hover {opacity: .75;}
flex-direction: column;
justify-content: space-between;
align-items: stretch;
box-sizing: border-box;
flex: 1;
padding: calc(var(--size) / 2);
padding: .5rem;
max-width: 100%;
}
@ -393,9 +389,9 @@ nav ul li a:hover {opacity: .75;}
.padding {padding: var(--space)}
.margin {margin: var(--space)}
.title {margin: 0; padding:0}
.subtitle {margin-top: -.25rem; font-size: small};
.subtitle {margin-top: -.25rem; font-size: smaller};
.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);}
.rounded {border-radius: calc(var(--size) / 4);}
.no-border {border: none}