9 Commits
1.0.5 ... 1.2.1

Author SHA1 Message Date
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
4 changed files with 24 additions and 38 deletions

View File

@ -589,12 +589,12 @@ $sizes: ('auto': auto, 0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 2.5re
<div class="mt-4 flex-grow-1 bg-clear 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|line-through|none|underline]</div> <div class="inline-code">.fs-[italic|none|strike|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>

4
package-lock.json generated
View File

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

View File

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

View File

@ -47,30 +47,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 // Optional opinionated styling to clean up CSS defaults
.fix-anchor, .fix { .fix-anchor, .fix:not(.no-anchor-fix) {
a, a:not([href]) { a, a:not([href]) {
cursor: pointer;
color: var(--theme-primary); color: var(--theme-primary);
&:not(:hover) { text-decoration: none; } &:not(:hover):not(:focus) { text-decoration: none; }
&:hover { text-decoration: underline; } &:hover, &:focus { text-decoration: underline; }
} }
} }
.fix-button, .fix { .fix-button, .fix:not(.no-button-fix) {
button:not(:disabled) { button:not(:disabled) {
cursor: pointer; cursor: pointer;
} }
} }
.fix-code code, code.fix { .fix-dom, .fix:not(.no-dom-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%;
@ -81,29 +73,22 @@ $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 { .fix-focus, .fix:not(.no-focus-fix) {
* { * {
outline: none !important; outline: inherit;
box-shadow: none !important; -webkit-tap-highlight-color: transparent;
} }
} }
.fix-font, .fix { .fix-font, .fix:not(.no-font-fix) {
* { font-family: var(--theme-font), sans-serif; } color: var(--theme-text);
font-family: var(--theme-font), sans-serif;
p, input, select, textarea, button { font-size: 1rem; } p, input, select, textarea, button { font-size: 1rem; }
span { font-size: inherit; } h1, h2, h3, h4, h5, h6, p { margin: 0 0 0.5rem 0; }
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; }
@ -112,8 +97,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; } h6 { font-weight: 500; font-size: 1rem; }
} }
option { color: black !important; }
// Misc ===================================================================================================== // Misc =====================================================================================================
// Center // Center
@ -195,7 +178,10 @@ option { color: black !important; }
// 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} { color: var(--theme-#{$color}) !important; } .fg-#{$color} {
color: var(--theme-#{$color}) !important;
text-decoration-color: var(--theme-#{$color}) !important;
}
} }
// Cursors // Cursors
@ -210,8 +196,8 @@ option { color: black !important; }
.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-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; }