From c046b16b695c886fc16350243190a2ac1f0dd7f2 Mon Sep 17 00:00:00 2001 From: ztimson Date: Sat, 23 Nov 2024 21:43:26 -0500 Subject: [PATCH] Opt out of fix syntax --- package.json | 2 +- src/main.scss | 16 +++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index e5538af..f7a61c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/css-utils", - "version": "1.0.6", + "version": "1.1.0", "description": "CSS Utility Classes", "readme": "README.md", "scripts": { diff --git a/src/main.scss b/src/main.scss index b2144b6..1c24815 100644 --- a/src/main.scss +++ b/src/main.scss @@ -47,7 +47,7 @@ $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]) { color: var(--theme-primary); &:not(:hover) { text-decoration: none; } @@ -55,13 +55,13 @@ $divisible: (0, 10, 20, 25, 30, 33, 34, 40, 50, 60, 66, 70, 75, 80, 90, 100); } } -.fix-button, .fix { +.fix-button, .fix:not(.no-button-fix) { button:not(:disabled) { cursor: pointer; } } -.fix-dom, .fix { +.fix-dom, .fix:not(.no-dom-fix) { &, html, body { height: 100%; width: 100%; @@ -72,22 +72,16 @@ $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: inherit; } } -.fix-font, .fix { +.fix-font, .fix:not(.no-font-fix) { color: var(--theme-text); font-family: var(--theme-font), sans-serif;