From d3d48926a6de78aaca9e2bf577b495a48ee764ab Mon Sep 17 00:00:00 2001 From: Robin Whittleton Date: Wed, 18 Dec 2024 22:40:52 +0100 Subject: [PATCH] Restrict blocking of table popup to just Apple Books MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was causing an undesired inability to select text on Kobo. Of course, it turns out that we also can’t select text on Books either, but at least this fixes non-Books scenarios. --- se/data/templates/compatibility.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/se/data/templates/compatibility.css b/se/data/templates/compatibility.css index 4a16790a..48a05fcc 100644 --- a/se/data/templates/compatibility.css +++ b/se/data/templates/compatibility.css @@ -82,12 +82,12 @@ img.mathml{ /* Apple Books will load a pannable zoomable table view when clicked, which is useful unless you’re trying to read a piece of drama. */ -[epub|type~="z3998:drama"] table, -table[epub|type~="z3998:drama"]{ +:root[__ibooks_internal_theme] [epub|type~="z3998:drama"] table, +:root[__ibooks_internal_theme] table[epub|type~="z3998:drama"]{ pointer-events: none; } -[epub|type~="z3998:drama"] table a, -table[epub|type~="z3998:drama"] a{ +:root[__ibooks_internal_theme] [epub|type~="z3998:drama"] table a, +:root[__ibooks_internal_theme] table[epub|type~="z3998:drama"] a{ pointer-events: auto; }