generated from ztimson/template
Compare commits
No commits in common. "develop" and "1.0.4" have entirely different histories.
54
index.html
54
index.html
@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
<body class="theme-light p-4 flex-r justify-center">
|
<body class="theme-light p-4 flex-r justify-center">
|
||||||
<div class="clamp flex-c z-1">
|
<div class="clamp flex-c z-1">
|
||||||
<div id="top" class="flex-grow-1 bg-container shadow p-3">
|
<div id="top" class="flex-grow-1 bg-clear shadow p-3">
|
||||||
<h1 class="mb-0">@ztimson/css-utils</h1>
|
<h1 class="mb-0">@ztimson/css-utils</h1>
|
||||||
<hr class="mb-3">
|
<hr class="mb-3">
|
||||||
<p>CSS Utils is a css library based on bootstrap. At 1/3 the size, its all the utilities without the bloat.</p>
|
<p>CSS Utils is a css library based on bootstrap. At 1/3 the size, its all the utilities without the bloat.</p>
|
||||||
@ -88,7 +88,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 id="setup" class="mt-4 mb-3">Setup</h2>
|
<h2 id="setup" class="mt-4 mb-3">Setup</h2>
|
||||||
<div class="flex-grow-1 bg-container shadow p-3">
|
<div class="flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="install">Install</h3>
|
<h3 id="install">Install</h3>
|
||||||
<h4>NPM</h4>
|
<h4>NPM</h4>
|
||||||
<pre><code class="language-scss">
|
<pre><code class="language-scss">
|
||||||
@ -109,7 +109,7 @@ npm install @ztimson/css-utils
|
|||||||
<link rel="stylesheet" href="https://css.zakscode.com/src/main.scss" ></link>
|
<link rel="stylesheet" href="https://css.zakscode.com/src/main.scss" ></link>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-grow-1 bg-container shadow p-3 mt-4">
|
<div class="flex-grow-1 bg-clear shadow p-3 mt-4">
|
||||||
<h3 id="theming">Theming</h3>
|
<h3 id="theming">Theming</h3>
|
||||||
<p>Theming is minimal since its so opinionated. Its all done through CSS variables allowing runtime manipulation without having to recompile.</p>
|
<p>Theming is minimal since its so opinionated. Its all done through CSS variables allowing runtime manipulation without having to recompile.</p>
|
||||||
<pre><code class="language-scss">
|
<pre><code class="language-scss">
|
||||||
@ -157,7 +157,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 id="utilities" class="mt-4 mb-3">Utilities</h2>
|
<h2 id="utilities" class="mt-4 mb-3">Utilities</h2>
|
||||||
<div class="flex-grow-1 bg-container shadow p-3">
|
<div class="flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="alignment">Alignment</h3>
|
<h3 id="alignment">Alignment</h3>
|
||||||
<div class="inline-code">.align-[x|y]-[xs|sm|md|lg|xl]-[start|end]</div>
|
<div class="inline-code">.align-[x|y]-[xs|sm|md|lg|xl]-[start|end]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -190,7 +190,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="animations">Animations</h3>
|
<h3 id="animations">Animations</h3>
|
||||||
<div class="inline-code">.animate-[color|none|opacity|pos|trans]</div>
|
<div class="inline-code">.animate-[color|none|opacity|pos|trans]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -254,7 +254,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="borders">Borders</h3>
|
<h3 id="borders">Borders</h3>
|
||||||
<h4 class="fs-3">Color</h4>
|
<h4 class="fs-3">Color</h4>
|
||||||
<div class="inline-code">.b-[accent|black|danger|info|muted|primary|success|text|warn|white]</div>
|
<div class="inline-code">.b-[accent|black|danger|info|muted|primary|success|text|warn|white]</div>
|
||||||
@ -316,7 +316,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="colors">Colors</h3>
|
<h3 id="colors">Colors</h3>
|
||||||
<h4 class="fs-3">Background</h4>
|
<h4 class="fs-3">Background</h4>
|
||||||
<div class="inline-code">.bg-[accent|backdrop|black|clear|danger|info|muted|primary|success|transparent|text|warn|white]</div>
|
<div class="inline-code">.bg-[accent|backdrop|black|clear|danger|info|muted|primary|success|transparent|text|warn|white]</div>
|
||||||
@ -325,7 +325,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
<div class="b-1 bg-accent m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-accent</div>
|
<div class="b-1 bg-accent m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-accent</div>
|
||||||
<div class="b-1 bg-backdrop m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-backdrop</div>
|
<div class="b-1 bg-backdrop m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-backdrop</div>
|
||||||
<div class="b-1 bg-black fg-white m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-black</div>
|
<div class="b-1 bg-black fg-white m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-black</div>
|
||||||
<div class="b-1 bg-container m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-container</div>
|
<div class="b-1 bg-clear m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-clear</div>
|
||||||
<div class="b-1 bg-danger m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-danger</div>
|
<div class="b-1 bg-danger m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-danger</div>
|
||||||
<div class="b-1 bg-info m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-info</div>
|
<div class="b-1 bg-info m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-info</div>
|
||||||
<div class="b-1 bg-muted m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-muted</div>
|
<div class="b-1 bg-muted m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-muted</div>
|
||||||
@ -371,7 +371,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="cursors">Cursors</h3>
|
<h3 id="cursors">Cursors</h3>
|
||||||
<div class="inline-code">.curs-[alias|auto|cell|col-resize|copy|crosshair|default|grab|grabbing|help|hover|move|not-allowed|pointer|progress|row-resize|text|none|wait|vertical-text|zoom-in|zoom-out]</div>
|
<div class="inline-code">.curs-[alias|auto|cell|col-resize|copy|crosshair|default|grab|grabbing|help|hover|move|not-allowed|pointer|progress|row-resize|text|none|wait|vertical-text|zoom-in|zoom-out]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -401,12 +401,12 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="display">Display</h3>
|
<h3 id="display">Display</h3>
|
||||||
<div class="inline-code">.d-[xs|sm|md|lg|xl]-[block|flex|grid|inline|inline-block|inline-flex|inline-grid|none|table|table-cell|table-row]</div>
|
<div class="inline-code">.d-[xs|sm|md|lg|xl]-[block|flex|grid|inline|inline-block|inline-flex|inline-grid|none|table|table-cell|table-row]</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="flex">Flex</h3>
|
<h3 id="flex">Flex</h3>
|
||||||
<h4>Direction</h4>
|
<h4>Direction</h4>
|
||||||
<div class="inline-code">.flex-[xs|sm|md|lg|xl]-[c|r|rc|rr]</div>
|
<div class="inline-code">.flex-[xs|sm|md|lg|xl]-[c|r|rc|rr]</div>
|
||||||
@ -575,7 +575,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="float">Float</h3>
|
<h3 id="float">Float</h3>
|
||||||
<div class="inline-code">.float-[xs|sm|md|lg|xl]-[end|none|start]</div>
|
<div class="inline-code">.float-[xs|sm|md|lg|xl]-[end|none|start]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -586,15 +586,15 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="font">Font Style</h3>
|
<h3 id="font">Font Style</h3>
|
||||||
<h4>Decoration</h4>
|
<h4>Decoration</h4>
|
||||||
<div class="inline-code">.fs-[italic|none|strike|underline]</div>
|
<div class="inline-code">.fs-[italic|line-through|none|underline]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
<div>
|
<div>
|
||||||
<span class="fs-italic inline-code b-1 p-2">.fs-italic</span>
|
<span class="fs-italic inline-code b-1 p-2">.fs-italic</span>
|
||||||
|
<span class="fs-line-through inline-code b-1 p-2">.fs-line-through</span>
|
||||||
<span class="fs-none inline-code b-1 p-2">.fs-none</span>
|
<span class="fs-none inline-code b-1 p-2">.fs-none</span>
|
||||||
<span class="fs-strike inline-code b-1 p-2">.fs-strike</span>
|
|
||||||
<span class="fs-underline inline-code b-1 p-2">.fs-underline</span>
|
<span class="fs-underline inline-code b-1 p-2">.fs-underline</span>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
@ -654,7 +654,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="hover">Hover</h3>
|
<h3 id="hover">Hover</h3>
|
||||||
<div class="inline-code">.curs-hover|.hover</div>
|
<div class="inline-code">.curs-hover|.hover</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -664,7 +664,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="object-fit">Object Fit</h3>
|
<h3 id="object-fit">Object Fit</h3>
|
||||||
<div class="inline-code">.fit-[contain|cover|fill|scale|none]</div>
|
<div class="inline-code">.fit-[contain|cover|fill|scale|none]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -692,7 +692,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow">
|
<div class="mt-4 flex-grow-1 bg-clear shadow">
|
||||||
<div class="overflow-hidden p-3">
|
<div class="overflow-hidden p-3">
|
||||||
<h3 id="overflow">Overflow</h3>
|
<h3 id="overflow">Overflow</h3>
|
||||||
<div class="inline-code">.overflow-[x|y]-[auto|hidden|scroll|visible]</div>
|
<div class="inline-code">.overflow-[x|y]-[auto|hidden|scroll|visible]</div>
|
||||||
@ -722,7 +722,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="opacity">Opacity</h3>
|
<h3 id="opacity">Opacity</h3>
|
||||||
<div class="inline-code">.opacity-[0|10|20|25|30|33|34|40|50|60|66|70|75|80|90|100]</div>
|
<div class="inline-code">.opacity-[0|10|20|25|30|33|34|40|50|60|66|70|75|80|90|100]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -741,7 +741,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="position">Position</h3>
|
<h3 id="position">Position</h3>
|
||||||
<div class="inline-code">.pos-[abs|rel|static|stick]</div>
|
<div class="inline-code">.pos-[abs|rel|static|stick]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -769,7 +769,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="shadows">Shadows</h3>
|
<h3 id="shadows">Shadows</h3>
|
||||||
<div class="inline-code">.shadow-[drop|none|white]</div>
|
<div class="inline-code">.shadow-[drop|none|white]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -786,7 +786,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="size">Size</h3>
|
<h3 id="size">Size</h3>
|
||||||
<div class="flex-c flex-md-r">
|
<div class="flex-c flex-md-r">
|
||||||
<div class="flex-fill-even">
|
<div class="flex-fill-even">
|
||||||
@ -868,7 +868,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="spacing">Spacing</h3>
|
<h3 id="spacing">Spacing</h3>
|
||||||
<div>Margin: <span class="inline-code">.m[b|e|s|t|x|y]-[xs|sm|md|lg|xl]-[0-5|auto]</span></div>
|
<div>Margin: <span class="inline-code">.m[b|e|s|t|x|y]-[xs|sm|md|lg|xl]-[0-5|auto]</span></div>
|
||||||
<br>
|
<br>
|
||||||
@ -919,7 +919,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="uer-select">User Select</h3>
|
<h3 id="uer-select">User Select</h3>
|
||||||
<div class="inline-code">.select-[all|auto|none|text]</div>
|
<div class="inline-code">.select-[all|auto|none|text]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -929,7 +929,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
<div class="select-text inline-code b-1 p-2">.select-text</div>
|
<div class="select-text inline-code b-1 p-2">.select-text</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
|
||||||
<h3 id="visibility">Visibility</h3>
|
<h3 id="visibility">Visibility</h3>
|
||||||
<div class="inline-code">.[hidden|visible]-[xs|sm|md|lg|xl]</div>
|
<div class="inline-code">.[hidden|visible]-[xs|sm|md|lg|xl]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -941,7 +941,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-4 flex-grow-1 bg-container shadow p-3 mb-3">
|
<div class="mt-4 flex-grow-1 bg-clear shadow p-3 mb-3">
|
||||||
<h3 id="z-index">Z-Index</h3>
|
<h3 id="z-index">Z-Index</h3>
|
||||||
<div class="inline-code">.z-[0-5]</div>
|
<div class="inline-code">.z-[0-5]</div>
|
||||||
<br><br>
|
<br><br>
|
||||||
@ -960,7 +960,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
|
|||||||
<div class="w-100 p-2"></div>
|
<div class="w-100 p-2"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="toc" class="flex-r shadow bg-container z-5 pos-fix animate b-1" style="left: 0; top: 25px; transform: translateX(calc(-100% + 26px))">
|
<div id="toc" class="flex-r shadow bg-clear z-5 pos-fix animate b-1" style="left: 0; top: 25px; transform: translateX(calc(-100% + 26px))">
|
||||||
<div class="p-3 overflow-y-auto" style="max-height: 50vh;">
|
<div class="p-3 overflow-y-auto" style="max-height: 50vh;">
|
||||||
<ul class="p-0">
|
<ul class="p-0">
|
||||||
<li>
|
<li>
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/css-utils",
|
"name": "@ztimson/css-utils",
|
||||||
"version": "1.2.1",
|
"version": "1.0.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@ztimson/css-utils",
|
"name": "@ztimson/css-utils",
|
||||||
"version": "1.2.1",
|
"version": "1.0.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"sass": "^1.80.6"
|
"sass": "^1.80.6"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/css-utils",
|
"name": "@ztimson/css-utils",
|
||||||
"version": "1.3.2",
|
"version": "1.0.4",
|
||||||
"description": "CSS Utility Classes",
|
"description": "CSS Utility Classes",
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
--theme-white: white;
|
--theme-white: white;
|
||||||
|
|
||||||
// Misc
|
// Misc
|
||||||
--theme-border: black;
|
|
||||||
--theme-animation: 0.2s linear; // Animation style
|
--theme-animation: 0.2s linear; // Animation style
|
||||||
--theme-content-width: 1100px; // Max width of clamped content
|
--theme-content-width: 1100px; // Max width of clamped content
|
||||||
--theme-font: Arial, sans-serif;
|
--theme-font: Arial, sans-serif;
|
||||||
@ -48,22 +47,30 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
|
|
||||||
// Optional opinionated styling to clean up CSS defaults
|
// Optional opinionated styling to clean up CSS defaults
|
||||||
|
|
||||||
.fix-anchor, .fix:not(.no-anchor-fix) {
|
.fix-anchor, .fix {
|
||||||
a, a:not([href]) {
|
a, a:not([href]) {
|
||||||
cursor: pointer;
|
|
||||||
color: var(--theme-primary);
|
color: var(--theme-primary);
|
||||||
&:not(:hover):not(:focus) { text-decoration: none; }
|
&:not(:hover) { text-decoration: none; }
|
||||||
&:hover, &:focus { text-decoration: underline; }
|
&:hover { text-decoration: underline; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fix-button, .fix:not(.no-button-fix) {
|
.fix-button, .fix {
|
||||||
button:not(:disabled) {
|
button:not(:disabled) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fix-dom, .fix:not(.no-dom-fix) {
|
.fix-code code, code.fix {
|
||||||
|
display: block;
|
||||||
|
white-space: pre;
|
||||||
|
font-family: monospace;
|
||||||
|
background: rgb(30, 30, 30);
|
||||||
|
color: #00cb00;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fix-dom, .fix {
|
||||||
&, html, body {
|
&, html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -74,22 +81,29 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
background-color: var(--theme-backdrop);
|
background-color: var(--theme-backdrop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border-bottom: 1px solid black;
|
||||||
|
width: 100%;
|
||||||
|
opacity: 50%;
|
||||||
|
}
|
||||||
* { box-sizing: border-box; }
|
* { box-sizing: border-box; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.fix-focus, .fix:not(.no-focus-fix) {
|
.fix-focus, .fix {
|
||||||
* {
|
* {
|
||||||
outline: inherit;
|
outline: none !important;
|
||||||
-webkit-tap-highlight-color: transparent;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.fix-font, .fix:not(.no-font-fix) {
|
.fix-font, .fix {
|
||||||
color: var(--theme-text);
|
* { font-family: var(--theme-font), sans-serif; }
|
||||||
font-family: var(--theme-font), sans-serif;
|
|
||||||
|
|
||||||
p, input, select, textarea, button { font-size: 1rem; }
|
p, input, select, textarea, button { font-size: 1rem; }
|
||||||
h1, h2, h3, h4, h5, h6, p { margin: 0 0 0.5rem 0; }
|
span { font-size: inherit; }
|
||||||
|
h1, h2, h3, h4, h5, h6, p {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
h1 { font-weight: 500; font-size: 2.5rem; }
|
h1 { font-weight: 500; font-size: 2.5rem; }
|
||||||
h2 { font-weight: 500; font-size: 2rem; }
|
h2 { font-weight: 500; font-size: 2rem; }
|
||||||
h3 { font-weight: 500; font-size: 1.75rem; }
|
h3 { font-weight: 500; font-size: 1.75rem; }
|
||||||
@ -98,6 +112,8 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
h6 { font-weight: 500; font-size: 1rem; }
|
h6 { font-weight: 500; font-size: 1rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
option { color: black !important; }
|
||||||
|
|
||||||
// Misc =====================================================================================================
|
// Misc =====================================================================================================
|
||||||
|
|
||||||
// Center
|
// Center
|
||||||
@ -111,6 +127,7 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
// Clamp (Restrict page width for large screens)
|
// Clamp (Restrict page width for large screens)
|
||||||
.clamp { width: min(var(--theme-content-width), calc(100% - map.get($sizes, 3))); }
|
.clamp { width: min(var(--theme-content-width), calc(100% - map.get($sizes, 3))); }
|
||||||
|
|
||||||
|
|
||||||
// Utilities ================================================================================================
|
// Utilities ================================================================================================
|
||||||
|
|
||||||
// Anchor
|
// Anchor
|
||||||
@ -153,7 +170,7 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
.bg-black { background-color: var(--theme-black) !important; }
|
.bg-black { background-color: var(--theme-black) !important; }
|
||||||
.bg-white { background-color: var(--theme-white) !important; }
|
.bg-white { background-color: var(--theme-white) !important; }
|
||||||
.bg-transparent { background-color: transparent !important; }
|
.bg-transparent { background-color: transparent !important; }
|
||||||
.bg-container {
|
.bg-clear {
|
||||||
background-color: var(--theme-clear) !important;
|
background-color: var(--theme-clear) !important;
|
||||||
color: var(--theme-text) !important;
|
color: var(--theme-text) !important;
|
||||||
}
|
}
|
||||||
@ -170,7 +187,7 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: var(--theme-#{$color});
|
background-color: var(--theme-#{$color});
|
||||||
filter: saturate(.5) brightness(150%);
|
filter: saturate(.5) brightness(250%);
|
||||||
border-radius: inherit;
|
border-radius: inherit;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
@ -178,10 +195,7 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
|
|
||||||
// Colors - Foreground
|
// Colors - Foreground
|
||||||
@each $color in ('black', 'clear', 'white', 'text', 'primary', 'accent', 'info', 'success', 'warn', 'danger', 'muted') {
|
@each $color in ('black', 'clear', 'white', 'text', 'primary', 'accent', 'info', 'success', 'warn', 'danger', 'muted') {
|
||||||
.fg-#{$color} {
|
.fg-#{$color} { color: var(--theme-#{$color}) !important; }
|
||||||
color: var(--theme-#{$color}) !important;
|
|
||||||
text-decoration-color: var(--theme-#{$color}) !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cursors
|
// Cursors
|
||||||
@ -196,10 +210,9 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
.fs-italic { font-style: italic !important; }
|
.fs-italic { font-style: italic !important; }
|
||||||
.fs-none { font-style: normal !important; }
|
.fs-none { font-style: normal !important; }
|
||||||
.fs-lighter { font-weight: lighter !important; }
|
.fs-lighter { font-weight: lighter !important; }
|
||||||
|
.fs-line-through { text-decoration: line-through !important; }
|
||||||
.fs-no-dec { text-decoration: none !important; }
|
.fs-no-dec { text-decoration: none !important; }
|
||||||
.fs-strike { text-decoration: line-through !important; }
|
|
||||||
.fs-underline { text-decoration: underline !important; }
|
.fs-underline { text-decoration: underline !important; }
|
||||||
.fs-strike.fs-underline { text-decoration: line-through underline !important; }
|
|
||||||
.fs-7 { font-size: 2.5rem !important; }
|
.fs-7 { font-size: 2.5rem !important; }
|
||||||
.fs-6 { font-size: 2.25rem !important; }
|
.fs-6 { font-size: 2.25rem !important; }
|
||||||
.fs-5 { font-size: 2rem !important; }
|
.fs-5 { font-size: 2rem !important; }
|
||||||
@ -401,7 +414,7 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
.hidden#{$bp} { visibility: hidden !important; }
|
.hidden#{$bp} { visibility: hidden !important; }
|
||||||
|
|
||||||
@each $s, $size in $sizes {
|
@each $s, $size in $sizes {
|
||||||
.b#{$bp}-#{$s} { border: #{$s}px solid var(--theme-border) !important; } // Border
|
.b#{$bp}-#{$s} { border: #{$s}px solid var(--theme-muted) !important; } // Border
|
||||||
.m#{$bp}-#{$s} { margin: $size !important; } // Margin
|
.m#{$bp}-#{$s} { margin: $size !important; } // Margin
|
||||||
.p#{$bp}-#{$s} { padding: $size !important; } // Padding
|
.p#{$bp}-#{$s} { padding: $size !important; } // Padding
|
||||||
.mx#{$bp}-#{$s} { // Margin
|
.mx#{$bp}-#{$s} { // Margin
|
||||||
@ -428,7 +441,7 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
|
|||||||
.m#{$d}#{$bp}-auto { margin-#{$dir}: auto !important; } // Margin
|
.m#{$d}#{$bp}-auto { margin-#{$dir}: auto !important; } // Margin
|
||||||
|
|
||||||
@each $s, $size in $sizes {
|
@each $s, $size in $sizes {
|
||||||
.b#{$d}#{$bp}-#{$s} { border-#{$dir}: #{$s}px solid var(--theme-border) !important; } // Border
|
.b#{$d}#{$bp}-#{$s} { border-#{$dir}: #{$s}px solid var(--theme-muted) !important; } // Border
|
||||||
.m#{$d}#{$bp}-#{$s} { margin-#{$dir}: $size !important; } // Margin
|
.m#{$d}#{$bp}-#{$s} { margin-#{$dir}: $size !important; } // Margin
|
||||||
.p#{$d}#{$bp}-#{$s} { padding-#{$dir}: $size !important; } // Padding
|
.p#{$d}#{$bp}-#{$s} { padding-#{$dir}: $size !important; } // Padding
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user