From e3d7669588a258f028182dd40c181d90c8346fb5 Mon Sep 17 00:00:00 2001 From: poire-z Date: Sun, 10 Mar 2024 12:21:51 +0100 Subject: [PATCH] Style tweaks: add tweak to avoid some presentational hints --- frontend/ui/data/css_tweaks.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/frontend/ui/data/css_tweaks.lua b/frontend/ui/data/css_tweaks.lua index 7aecc3b2b..c81a3fbd3 100644 --- a/frontend/ui/data/css_tweaks.lua +++ b/frontend/ui/data/css_tweaks.lua @@ -419,6 +419,13 @@ Further small adjustments can be done with 'Line Spacing' in the bottom menu.]]) }, { title = _("Font size and families"), + { + id = "font_no_presentational_hints", + title = _("Ignore font related HTML presentational hints"), + description = _("Ignore HTML attributes that contribute to styles on the elements (bgcolor, text…) and (face, size, color…)."), + css = [[body, font { -cr-hint: no-presentational; }]], + separator = true, + }, { id = "font_family_all_inherit", title = _("Ignore publisher font families"), @@ -564,6 +571,13 @@ body, h1, h2, h3, h4, h5, h6, div, li, td, th { text-indent: 0 !important; } title = _("Tables, links, images"), { title = _("Tables"), + { + id = "table_no_presentational_hints", + title = _("Ignore tables related HTML presentational hints"), + description = _("Ignore HTML attributes that contribute to styles on the element and its sub-elements (ie. align, valign, frame, rules, border, cellpading, cellspacing…)."), + css = [[table, caption, colgroup, col, thead, tbody, tfoot, tr, td, th { -cr-hint: no-presentational; }]], + separator = true, + }, { id = "table_full_width", title = _("Full-width tables"),