From f0dedbefaea4208c51f9f4386da843eaaeebd65b Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 24 Jun 2024 22:27:03 +0000 Subject: [PATCH] Added similar visited state for embed buttons. --- src/mami.css/themes/archaic.css | 1 + src/mami.css/themes/blue.css | 1 + src/mami.css/themes/dark.css | 1 + src/mami.css/themes/light.css | 1 + src/mami.css/themes/purple.css | 1 + src/mami.js/parsing.js | 4 ++++ 6 files changed, 9 insertions(+) diff --git a/src/mami.css/themes/archaic.css b/src/mami.css/themes/archaic.css index 593f7ce..e88499f 100644 --- a/src/mami.css/themes/archaic.css +++ b/src/mami.css/themes/archaic.css @@ -169,6 +169,7 @@ .umi--archaic .markup__link { color: #1e90ff; } +.umi--archaic .markup__link--visited, .umi--archaic .markup__link:visited { color: #6B4F80; } diff --git a/src/mami.css/themes/blue.css b/src/mami.css/themes/blue.css index cbd380b..9c8ede0 100644 --- a/src/mami.css/themes/blue.css +++ b/src/mami.css/themes/blue.css @@ -169,6 +169,7 @@ .umi--blue .markup__link { color: #1e90ff; } +.umi--blue .markup__link--visited, .umi--blue .markup__link:visited { color: #6B4F80; } diff --git a/src/mami.css/themes/dark.css b/src/mami.css/themes/dark.css index 07ee0f8..130ea60 100644 --- a/src/mami.css/themes/dark.css +++ b/src/mami.css/themes/dark.css @@ -169,6 +169,7 @@ .umi--dark .markup__link { color: #1e90ff; } +.umi--dark .markup__link--visited, .umi--dark .markup__link:visited { color: #6B4F80; } diff --git a/src/mami.css/themes/light.css b/src/mami.css/themes/light.css index d358360..ec8c539 100644 --- a/src/mami.css/themes/light.css +++ b/src/mami.css/themes/light.css @@ -169,6 +169,7 @@ .umi--light .markup__link { color: #1e90ff; } +.umi--light .markup__link--visited, .umi--light .markup__link:visited { color: #6B4F80; } diff --git a/src/mami.css/themes/purple.css b/src/mami.css/themes/purple.css index cef0113..d716232 100644 --- a/src/mami.css/themes/purple.css +++ b/src/mami.css/themes/purple.css @@ -169,6 +169,7 @@ .umi--purple .markup__link { color: #1e90ff; } +.umi--purple .markup__link--visited, .umi--purple .markup__link:visited { color: #6B4F80; } diff --git a/src/mami.js/parsing.js b/src/mami.js/parsing.js index eabc82b..688f574 100644 --- a/src/mami.js/parsing.js +++ b/src/mami.js/parsing.js @@ -209,6 +209,7 @@ Umi.Parsing = (function() { container.title = 'image'; element.textContent = 'Remove'; element.dataset.embed = '1'; + element.classList.add('markup__link--visited'); let html = $e({ tag: 'img', @@ -262,6 +263,7 @@ Umi.Parsing = (function() { element.dataset.embed = '1'; element.textContent = 'Remove'; container.textContent = ''; + element.classList.add('markup__link--visited'); let media = $e({ tag: 'audio', @@ -304,6 +306,7 @@ Umi.Parsing = (function() { container.title = 'video'; element.dataset.embed = '1'; element.textContent = 'Remove'; + element.classList.add('markup__link--visited'); let media = $e({ tag: 'video', @@ -349,6 +352,7 @@ Umi.Parsing = (function() { target.textContent = container.dataset.shit; element.dataset.embed = '1'; element.textContent = 'Hide'; + element.classList.add('markup__link--visited'); } };