From 2ac5c35065b74366e00a982f00691270fc9cd188 Mon Sep 17 00:00:00 2001 From: Jesus Laiz Date: Wed, 21 Oct 2020 11:47:04 +0100 Subject: [PATCH] Fix styling of Apple data-detectors in newsletters The existing style was not properly targetting the links Apple inject when (wrongly, in this case) detecting phone numbers in newsletters. This has no effect in any other platform or device. The numbers are still clickable, couldn't fine a way to disable the functionality completely (tried the `format-detection` meta tag with no luck), but at least the styles are not changed anymore. I tested this on iPhone and iPad and you can see how it looks before and after the change below. --- data/interfaces/newsletters/recently_added.html | 4 ++-- data/interfaces/newsletters/recently_added.internal.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/interfaces/newsletters/recently_added.html b/data/interfaces/newsletters/recently_added.html index 7065ec20..50d2531a 100644 --- a/data/interfaces/newsletters/recently_added.html +++ b/data/interfaces/newsletters/recently_added.html @@ -521,7 +521,7 @@ line-height: 100%; } - .apple-link a { + a[x-apple-data-detectors] { color: inherit !important; font-family: inherit !important; font-size: inherit !important; @@ -1087,4 +1087,4 @@ -% endif \ No newline at end of file +% endif diff --git a/data/interfaces/newsletters/recently_added.internal.html b/data/interfaces/newsletters/recently_added.internal.html index b16f5851..d681406e 100644 --- a/data/interfaces/newsletters/recently_added.internal.html +++ b/data/interfaces/newsletters/recently_added.internal.html @@ -521,7 +521,7 @@ line-height: 100%; } - .apple-link a { + a[x-apple-data-detectors] { color: inherit !important; font-family: inherit !important; font-size: inherit !important; @@ -1087,4 +1087,4 @@ -% endif \ No newline at end of file +% endif