From 4489ad258347228af28d421a24905dc3f3a3a356 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Mon, 27 Apr 2020 10:16:12 +0200 Subject: [PATCH] Purecss compat - force letter-spacing In pages based on purecss, the default letter-spacing is negative. This lead to unreadable keepassxc entries in the autocomplete list and notifications. This patch forces the letter-spacing and word-spacing to 'normal', and text-rendering to 'auto', which is what purecss does in elements displaying text. --- keepassxc-browser/css/autocomplete.css | 3 +++ keepassxc-browser/css/notification.css | 3 +++ 2 files changed, 6 insertions(+) diff --git a/keepassxc-browser/css/autocomplete.css b/keepassxc-browser/css/autocomplete.css index a532e1e..53b9191 100644 --- a/keepassxc-browser/css/autocomplete.css +++ b/keepassxc-browser/css/autocomplete.css @@ -11,6 +11,9 @@ width: auto; color: var(--kpxc-text-color); font-size: .9em !important; + letter-spacing: normal !important; + word-spacing: normal !important; + text-rendering: auto !important; } .kpxcAutocomplete-items div:last-child { diff --git a/keepassxc-browser/css/notification.css b/keepassxc-browser/css/notification.css index 0fda0f7..1bb815f 100644 --- a/keepassxc-browser/css/notification.css +++ b/keepassxc-browser/css/notification.css @@ -5,6 +5,9 @@ cursor: pointer; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; + letter-spacing: normal !important; + word-spacing: normal !important; + text-rendering: auto !important; margin: 0px auto; margin-bottom: 20px; padding: 15px;