Compare commits

...

14 Commits

Author SHA1 Message Date
8e3cca4890 Fixed fs-strike & fs-underline on same element
All checks were successful
Publish Library / Build NPM Project (push) Successful in 47s
Publish Library / Tag Version (push) Successful in 13s
Publish Library / Publish CDN & Docs (push) Successful in 32s
2025-03-11 22:05:04 -04:00
035faa69d4 Fixed border style
All checks were successful
Publish Library / Build NPM Project (push) Successful in 42s
Publish Library / Tag Version (push) Successful in 12s
Publish Library / Publish CDN & Docs (push) Successful in 29s
2025-03-09 10:39:18 -04:00
3e48cd5ba2 Changed default border color & renamed bg-clear to bg-container
All checks were successful
Publish Library / Build NPM Project (push) Successful in 17s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Successful in 20s
2025-03-06 16:23:33 -05:00
0363593568 foreground now affects text-decoration
All checks were successful
Publish Library / Build NPM Project (push) Successful in 12s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Successful in 18s
2025-02-05 22:09:46 -05:00
07cf090976 Renamed line-through to strike
All checks were successful
Publish Library / Build NPM Project (push) Successful in 16s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Successful in 20s
2025-02-05 22:04:07 -05:00
049d3f8a49 fixed scss warning
All checks were successful
Publish Library / Build NPM Project (push) Successful in 1m6s
Publish Library / Tag Version (push) Successful in 15s
Publish Library / Publish CDN & Docs (push) Successful in 49s
2024-12-12 23:33:54 -05:00
ed8fb032e5 Underline anchors on focus
All checks were successful
Publish Library / Build NPM Project (push) Successful in 17s
Publish Library / Tag Version (push) Successful in 9s
Publish Library / Publish CDN & Docs (push) Successful in 28s
2024-12-06 19:16:09 -05:00
150bfd7278 Remove highlight with fix-focus
All checks were successful
Publish Library / Build NPM Project (push) Successful in 18s
Publish Library / Tag Version (push) Successful in 8s
Publish Library / Publish CDN & Docs (push) Successful in 29s
2024-12-06 18:56:34 -05:00
715d686171 updated anchor fix to include pointer cursor
All checks were successful
Publish Library / Build NPM Project (push) Successful in 12s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Publish CDN & Docs (push) Successful in 19s
2024-11-29 20:44:22 -05:00
e98ed586f5 Fixed font-family inheritance
Some checks failed
Publish Library / Build NPM Project (push) Successful in 11s
Publish Library / Tag Version (push) Successful in 5s
Publish Library / Publish CDN & Docs (push) Failing after 14s
2024-11-23 21:59:09 -05:00
c046b16b69 Opt out of fix syntax
All checks were successful
Publish Library / Build NPM Project (push) Successful in 11s
Publish Library / Tag Version (push) Successful in 5s
Publish Library / Publish CDN & Docs (push) Successful in 17s
2024-11-23 21:43:26 -05:00
344585e6dc Fixed some of the fixes
All checks were successful
Publish Library / Publish CDN & Docs (push) Successful in 20s
Publish Library / Tag Version (push) Successful in 6s
Publish Library / Build NPM Project (push) Successful in 17s
2024-11-23 21:39:26 -05:00
0ec350aae7 Fixed colors
All checks were successful
Publish Library / Build NPM Project (push) Successful in 11s
Publish Library / Tag Version (push) Successful in 5s
Publish Library / Publish CDN & Docs (push) Successful in 19s
2024-11-19 20:36:06 -05:00
00f290c861 Updated styles & docs
All checks were successful
Publish Library / Tag Version (push) Successful in 12s
Publish Library / Build NPM Project (push) Successful in 20s
Publish Library / Publish CDN & Docs (push) Successful in 32s
2024-11-19 19:32:46 -05:00
4 changed files with 101 additions and 92 deletions

View File

@ -13,6 +13,22 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css">
<link href="./dist/css-utils.css" rel="stylesheet">
<style>
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-thumb {
width: 6px;
height: 6px;
margin: 0 1px;
border-radius: 3px;
background: #777;
cursor: pointer;
}
::-webkit-scrollbar-corner {
background: rgba(0,0,0,0);
}
* {
font-family: Roboto, sans-serif !important;
scroll-behavior: smooth;
@ -34,11 +50,14 @@
}
.animate-example.animated {
left: 110px;
background: var(--theme-accent);
transform: rotate(180deg);
opacity: 25%;
}
.animate-example.animated.animate,
.animate-example.animated.animate-pos {
left: 110px;
}
.box {
width: 20px;
@ -50,6 +69,7 @@
display: inline-block;
padding: 5px;
background: #f3f3f3;
word-break: break-word;
}
</style>
@ -58,9 +78,9 @@
<script>hljs.highlightAll();</script>
</head>
<body class="theme-light p-3 flex-r justify-center">
<body class="theme-light p-4 flex-r justify-center">
<div class="clamp flex-c z-1">
<div id="top" class="flex-grow-1 bg-clear shadow p-3">
<div id="top" class="flex-grow-1 bg-container shadow p-3">
<h1 class="mb-0">@ztimson/css-utils</h1>
<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>
@ -68,7 +88,7 @@
</div>
<h2 id="setup" class="mt-4 mb-3">Setup</h2>
<div class="flex-grow-1 bg-clear shadow p-3">
<div class="flex-grow-1 bg-container shadow p-3">
<h3 id="install">Install</h3>
<h4>NPM</h4>
<pre><code class="language-scss">
@ -89,7 +109,7 @@ npm install @ztimson/css-utils
&lt;link rel="stylesheet" href="https://css.zakscode.com/src/main.scss" &gt;&lt;/link&gt;
</code></pre>
</div>
<div class="flex-grow-1 bg-clear shadow p-3 mt-4">
<div class="flex-grow-1 bg-container shadow p-3 mt-4">
<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>
<pre><code class="language-scss">
@ -137,7 +157,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
</div>
<h2 id="utilities" class="mt-4 mb-3">Utilities</h2>
<div class="flex-grow-1 bg-clear shadow p-3">
<div class="flex-grow-1 bg-container shadow p-3">
<h3 id="alignment">Alignment</h3>
<div class="inline-code">.align-[x|y]-[xs|sm|md|lg|xl]-[start|end]</div>
<br><br>
@ -170,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="animations">Animations</h3>
<div class="inline-code">.animate-[color|none|opacity|pos|trans]</div>
<br><br>
@ -234,7 +254,7 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
</script>
</div>
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="borders">Borders</h3>
<h4 class="fs-3">Color</h4>
<div class="inline-code">.b-[accent|black|danger|info|muted|primary|success|text|warn|white]</div>
@ -296,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="colors">Colors</h3>
<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>
@ -305,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-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-clear m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-clear</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-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-muted m-2 p-2 inline-code flex-r align-items-center justify-center">.bg-muted</div>
@ -351,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<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>
<br><br>
@ -381,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<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>
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="flex">Flex</h3>
<h4>Direction</h4>
<div class="inline-code">.flex-[xs|sm|md|lg|xl]-[c|r|rc|rr]</div>
@ -555,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="float">Float</h3>
<div class="inline-code">.float-[xs|sm|md|lg|xl]-[end|none|start]</div>
<br><br>
@ -566,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="font">Font Style</h3>
<h4>Decoration</h4>
<div class="inline-code">.fs-[italic|line-through|none|underline]</div>
<div class="inline-code">.fs-[italic|none|strike|underline]</div>
<br><br>
<div>
<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-strike inline-code b-1 p-2">.fs-strike</span>
<span class="fs-underline inline-code b-1 p-2">.fs-underline</span>
</div>
<br>
@ -634,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="hover">Hover</h3>
<div class="inline-code">.curs-hover|.hover</div>
<br><br>
@ -644,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="object-fit">Object Fit</h3>
<div class="inline-code">.fit-[contain|cover|fill|scale|none]</div>
<br><br>
@ -672,35 +692,37 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
</div>
</div>
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
<h3 id="overflow">Overflow</h3>
<div class="inline-code">.overflow-[x|y]-[auto|hidden|scroll|visible]</div>
<br><br>
<div class="flex-r">
<div class="b-1 m-2 overflow-auto" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-auto</span>
<div class="mt-4 flex-grow-1 bg-container shadow">
<div class="overflow-hidden p-3">
<h3 id="overflow">Overflow</h3>
<div class="inline-code">.overflow-[x|y]-[auto|hidden|scroll|visible]</div>
<br><br>
<div class="flex-r">
<div class="b-1 m-2 overflow-auto" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-auto</span>
</div>
</div>
</div>
<div class="b-1 m-2 overflow-hidden" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-hidden</span>
<div class="b-1 m-2 overflow-hidden" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-hidden</span>
</div>
</div>
</div>
<div class="b-1 m-2 overflow-scroll" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-scroll</span>
<div class="b-1 m-2 overflow-scroll" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-scroll</span>
</div>
</div>
</div>
<div class="b-1 m-2 overflow-visible" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-visible</span>
<div class="b-1 m-2 overflow-visible" style="width: 150px; height: 150px;">
<div style="width: 300px; height: 300px;" class="pos-rel">
<span class="pos-abs" style="left: 50%; top: 25%; transform: translate(-50%, -50%)">.overflow-visible</span>
</div>
</div>
</div>
</div>
</div>
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<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>
<br><br>
@ -719,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="position">Position</h3>
<div class="inline-code">.pos-[abs|rel|static|stick]</div>
<br><br>
@ -747,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="shadows">Shadows</h3>
<div class="inline-code">.shadow-[drop|none|white]</div>
<br><br>
@ -764,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="size">Size</h3>
<div class="flex-c flex-md-r">
<div class="flex-fill-even">
@ -846,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<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>
<br>
@ -897,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 class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="uer-select">User Select</h3>
<div class="inline-code">.select-[all|auto|none|text]</div>
<br><br>
@ -907,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>
<div class="mt-4 flex-grow-1 bg-clear shadow p-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3">
<h3 id="visibility">Visibility</h3>
<div class="inline-code">.[hidden|visible]-[xs|sm|md|lg|xl]</div>
<br><br>
@ -919,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 class="mt-4 flex-grow-1 bg-clear shadow p-3 mb-3">
<div class="mt-4 flex-grow-1 bg-container shadow p-3 mb-3">
<h3 id="z-index">Z-Index</h3>
<div class="inline-code">.z-[0-5]</div>
<br><br>
@ -938,10 +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>
<div id="toc" class="flex-r shadow bg-clear z-5 pos-fix animate b-1" style="right: 0; top: 50px; transform: translateX(calc(100% - 26px))">
<div id="toc-toggle" class="curs-hover b-0 be-1 px-1 py-3 bg-backdrop" style="writing-mode: vertical-rl">
Table of Contents
</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 class="p-3 overflow-y-auto" style="max-height: 50vh;">
<ul class="p-0">
<li>
@ -983,13 +1002,16 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
</li>
</ul>
</div>
<div id="toc-toggle" class="curs-hover b-0 be-1 px-1 py-3 bg-primary fg-white" style="writing-mode: vertical-rl">
Table of Contents
</div>
</div>
<script>
let open = false;
const toc = document.querySelector('#toc')
document.querySelector('#toc-toggle').onclick = () => {
if(open) toc.style.transform = 'translateX(calc(100% - 26px))';
if(open) toc.style.transform = 'translateX(calc(-100% + 26px))';
else toc.style.transform = 'translateX(0)';
open = !open;
}

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@ztimson/css-utils",
"version": "1.0.3",
"version": "1.2.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@ztimson/css-utils",
"version": "1.0.3",
"version": "1.2.1",
"license": "MIT",
"devDependencies": {
"sass": "^1.80.6"

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/css-utils",
"version": "1.0.3",
"version": "1.3.2",
"description": "CSS Utility Classes",
"readme": "README.md",
"scripts": {

View File

@ -16,6 +16,7 @@
--theme-white: white;
// Misc
--theme-border: black;
--theme-animation: 0.2s linear; // Animation style
--theme-content-width: 1100px; // Max width of clamped content
--theme-font: Arial, sans-serif;
@ -47,30 +48,22 @@ $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
.fix-anchor, .fix {
.fix-anchor, .fix:not(.no-anchor-fix) {
a, a:not([href]) {
cursor: pointer;
color: var(--theme-primary);
&:not(:hover) { text-decoration: none; }
&:hover { text-decoration: underline; }
&:not(:hover):not(:focus) { text-decoration: none; }
&:hover, &:focus { text-decoration: underline; }
}
}
.fix-button, .fix {
.fix-button, .fix:not(.no-button-fix) {
button:not(:disabled) {
cursor: pointer;
}
}
.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 {
.fix-dom, .fix:not(.no-dom-fix) {
&, html, body {
height: 100%;
width: 100%;
@ -81,29 +74,22 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
background-color: var(--theme-backdrop);
}
hr {
border-bottom: 1px solid black;
width: 100%;
opacity: 50%;
}
* { box-sizing: border-box; }
}
.fix-focus, .fix {
.fix-focus, .fix:not(.no-focus-fix) {
* {
outline: none !important;
box-shadow: none !important;
outline: inherit;
-webkit-tap-highlight-color: transparent;
}
}
.fix-font, .fix {
* { font-family: var(--theme-font), sans-serif; }
.fix-font, .fix:not(.no-font-fix) {
color: var(--theme-text);
font-family: var(--theme-font), sans-serif;
p, input, select, textarea, button { font-size: 1rem; }
span { font-size: inherit; }
h1, h2, h3, h4, h5, h6, p {
margin-top: 0;
margin-bottom: 0.5rem;
}
h1, h2, h3, h4, h5, h6, p { margin: 0 0 0.5rem 0; }
h1 { font-weight: 500; font-size: 2.5rem; }
h2 { font-weight: 500; font-size: 2rem; }
h3 { font-weight: 500; font-size: 1.75rem; }
@ -112,8 +98,6 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100);
h6 { font-weight: 500; font-size: 1rem; }
}
option { color: black !important; }
// Misc =====================================================================================================
// Center
@ -127,7 +111,6 @@ option { color: black !important; }
// Clamp (Restrict page width for large screens)
.clamp { width: min(var(--theme-content-width), calc(100% - map.get($sizes, 3))); }
// Utilities ================================================================================================
// Anchor
@ -170,7 +153,7 @@ option { color: black !important; }
.bg-black { background-color: var(--theme-black) !important; }
.bg-white { background-color: var(--theme-white) !important; }
.bg-transparent { background-color: transparent !important; }
.bg-clear {
.bg-container {
background-color: var(--theme-clear) !important;
color: var(--theme-text) !important;
}
@ -195,7 +178,10 @@ option { color: black !important; }
// Colors - Foreground
@each $color in ('black', 'clear', 'white', 'text', 'primary', 'accent', 'info', 'success', 'warn', 'danger', 'muted') {
.fg-#{$color} { color: var(--theme-#{$color}) !important; }
.fg-#{$color} {
color: var(--theme-#{$color}) !important;
text-decoration-color: var(--theme-#{$color}) !important;
}
}
// Cursors
@ -210,9 +196,10 @@ option { color: black !important; }
.fs-italic { font-style: italic !important; }
.fs-none { font-style: normal !important; }
.fs-lighter { font-weight: lighter !important; }
.fs-line-through { text-decoration: line-through !important; }
.fs-no-dec { text-decoration: none !important; }
.fs-strike { text-decoration: line-through !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-6 { font-size: 2.25rem !important; }
.fs-5 { font-size: 2rem !important; }
@ -414,7 +401,7 @@ option { color: black !important; }
.hidden#{$bp} { visibility: hidden !important; }
@each $s, $size in $sizes {
.b#{$bp}-#{$s} { border: #{$s}px solid var(--theme-muted) !important; } // Border
.b#{$bp}-#{$s} { border: #{$s}px solid var(--theme-border) !important; } // Border
.m#{$bp}-#{$s} { margin: $size !important; } // Margin
.p#{$bp}-#{$s} { padding: $size !important; } // Padding
.mx#{$bp}-#{$s} { // Margin
@ -441,7 +428,7 @@ option { color: black !important; }
.m#{$d}#{$bp}-auto { margin-#{$dir}: auto !important; } // Margin
@each $s, $size in $sizes {
.b#{$d}#{$bp}-#{$s} { border-#{$dir}: #{$s}px solid var(--theme-muted) !important; } // Border
.b#{$d}#{$bp}-#{$s} { border-#{$dir}: #{$s}px solid var(--theme-border) !important; } // Border
.m#{$d}#{$bp}-#{$s} { margin-#{$dir}: $size !important; } // Margin
.p#{$d}#{$bp}-#{$s} { padding-#{$dir}: $size !important; } // Padding
}