From b9316474b7cd55531dff4d631be3e829a24a8fd2 Mon Sep 17 00:00:00 2001 From: Marcin Gasperowicz Date: Wed, 7 Oct 2020 16:55:12 +0200 Subject: [PATCH] LibWeb: Make h4, h5 and h6 bold Some Markdown documents using level 4 and 5 headings were not displayed in an eye-pleasing manner. This patch makes those headings bold by default. --- Libraries/LibWeb/CSS/Default.css | 87 ++++++++++++++++++++++++-------- 1 file changed, 65 insertions(+), 22 deletions(-) diff --git a/Libraries/LibWeb/CSS/Default.css b/Libraries/LibWeb/CSS/Default.css index c5792fc76d..c1d478ffef 100644 --- a/Libraries/LibWeb/CSS/Default.css +++ b/Libraries/LibWeb/CSS/Default.css @@ -2,7 +2,12 @@ html { font-family: Katica; } -head, link, meta, script, style, title { +head, +link, +meta, +script, +style, +title { display: none; } @@ -10,12 +15,16 @@ body { margin: 8px; } -h1, h2 { +h1, +h2 { font-family: Pebbleton; font-weight: bold; } -h3 { +h3, +h4, +h5, +h6 { font-weight: bold; } @@ -32,26 +41,51 @@ code { font-weight: lighter; } -u, ins { +u, +ins { text-decoration: underline; } -strong, b { +strong, +b { font-weight: bold; } -html, address, +html, +address, blockquote, -body, dd, div, -dl, dt, fieldset, form, -frame, frameset, +body, +dd, +div, +dl, +dt, +fieldset, +form, +frame, +frameset, hgroup, -h1, h2, h3, h4, -h5, h6, noframes, -ol, p, ul, center, -dir, hr, menu, pre, -header, footer, nav, main, -article, aside, section { +h1, +h2, +h3, +h4, +h5, +h6, +noframes, +ol, +p, +ul, +center, +dir, +hr, +menu, +pre, +header, +footer, +nav, +main, +article, +aside, +section { display: block; } @@ -59,19 +93,27 @@ center { text-align: -libweb-center; } -h1, h2, h3 { +h1, +h2, +h3 { margin: 8px 0 8px 0; } -h4, p, -blockquote, ul, -fieldset, form, -ol, dl, dir, +h4, +p, +blockquote, +ul, +fieldset, +form, +ol, +dl, +dir, menu { margin: 4px 0 4px 0; } -h5, h6 { +h5, +h6 { margin: 2px 0 2px 0; } @@ -127,7 +169,8 @@ tr { display: table-row; } -td, th { +td, +th { display: table-cell; }