From 22f158dda9138270c82fd34ba42826ce01f6b571 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 16 Feb 2025 02:37:20 +0400 Subject: [PATCH 1/4] Fixed broken paddings --- src/styles/content/listing.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/content/listing.scss b/src/styles/content/listing.scss index a6ec9e9..611f708 100644 --- a/src/styles/content/listing.scss +++ b/src/styles/content/listing.scss @@ -62,7 +62,7 @@ .tag { cursor: pointer; - padding: 0 6px; + padding: 5px; user-select: none; &:hover { From 1b324f28293d24e9f37ea66cd202cab444ade5e0 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 16 Feb 2025 02:43:32 +0400 Subject: [PATCH 2/4] Added new site-defined vars for tag colors --- src/styles/booru-colors.scss | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/styles/booru-colors.scss diff --git a/src/styles/booru-colors.scss b/src/styles/booru-colors.scss new file mode 100644 index 0000000..5de64ab --- /dev/null +++ b/src/styles/booru-colors.scss @@ -0,0 +1,4 @@ +// These variables are defined dynamically based on the category of the tag +$resolved-tag-background: var(--tag-background); +$resolved-tag-border: var(--tag-border); +$resolved-tag-color: var(--tag-color); From 33e1948a220de4af2d8265daa044b9f69f7602ef Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 16 Feb 2025 02:43:58 +0400 Subject: [PATCH 3/4] Added site-managed vars as colors, removed override for category --- src/styles/content/listing.scss | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/styles/content/listing.scss b/src/styles/content/listing.scss index 611f708..a00b0b1 100644 --- a/src/styles/content/listing.scss +++ b/src/styles/content/listing.scss @@ -1,4 +1,5 @@ -@use '../colors'; +@use '$styles/colors'; +@use '$styles/booru-colors'; // This will fix wierd misplacing of the modified media boxes in the listing. .js-resizable-media-container { @@ -66,13 +67,8 @@ user-select: none; &:hover { - background: colors.$tag-text; - color: colors.$tag-background; - } - - &[data-tag-category=error]:hover { - background: colors.$tag-error-text; - color: colors.$tag-error-background; + background: booru-colors.$resolved-tag-color; + color: booru-colors.$resolved-tag-background; } &.is-missing:not(.is-added), From c834703781e150e6780b0cf91105af7f8d60df1a Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 16 Feb 2025 02:48:08 +0400 Subject: [PATCH 4/4] Fixed content styles not respecting aliases --- .vite/lib/content-scripts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.vite/lib/content-scripts.js b/.vite/lib/content-scripts.js index 55f886c..34f8653 100644 --- a/.vite/lib/content-scripts.js +++ b/.vite/lib/content-scripts.js @@ -112,6 +112,9 @@ export async function buildStyle(buildOptions) { } }, emptyOutDir: false, + }, + resolve: { + alias: makeAliases(buildOptions.rootDir) } });