From d6ac89bb9f3668a2554dbbc71dba77a4dbb01b10 Mon Sep 17 00:00:00 2001 From: Jason Ojisan Date: Thu, 12 Dec 2024 22:13:55 +0100 Subject: [PATCH] Add annotations and visibility classes to some Japanese-specific settings * Add "Japanese only" label to some settings * Add a .jp-only visibility class and apply it to some settings * Add the .jpzhyue-only visibility class to the Term display setting MGFhMDVlMjFiMTlkZmQxZjRjMWUxMGZiMGIxOTAyMzAxMDM4MzBiZgo= --- ext/css/visibility-modifiers.css | 3 +++ ext/settings.html | 15 +++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ext/css/visibility-modifiers.css b/ext/css/visibility-modifiers.css index f461b9c11..42f0439a3 100644 --- a/ext/css/visibility-modifiers.css +++ b/ext/css/visibility-modifiers.css @@ -13,3 +13,6 @@ :root:is([data-language=ja], [data-language=zh], [data-language=yue], [data-language=ko]) .not-jpzhyueko { display: none; } +:root:not([data-language=ja]) .jp-only { + display: none; +} \ No newline at end of file diff --git a/ext/settings.html b/ext/settings.html index fd2930163..1d1a79374 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -864,7 +864,7 @@

Rikaitan Settings

-
+
Term display style
Change how terms and their readings are displayed.
@@ -878,10 +878,10 @@

Rikaitan Settings

-
+