1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

LibHTML: Tweak default CSS to bring it a bit closer to HTML4

This commit is contained in:
Andreas Kling 2019-10-01 20:16:42 +02:00
parent 53db492aba
commit 86b7dd6d5d

View file

@ -1,5 +1,4 @@
html { html {
display: block;
font-family: Katica; font-family: Katica;
} }
@ -8,7 +7,6 @@ head, link, meta, script, style, title {
} }
body { body {
display: block;
margin-left: 8; margin-left: 8;
margin-top: 8; margin-top: 8;
margin-right: 8; margin-right: 8;
@ -16,18 +14,15 @@ body {
} }
h1, h2 { h1, h2 {
display: block;
font-family: Pebbleton; font-family: Pebbleton;
font-weight: bold; font-weight: bold;
} }
h3 { h3 {
display: block;
font-weight: bold; font-weight: bold;
} }
pre { pre {
display: block;
margin-bottom: 8; margin-bottom: 8;
margin-top: 8; margin-top: 8;
white-space: pre; white-space: pre;
@ -46,16 +41,41 @@ strong, b {
font-weight: bold; font-weight: bold;
} }
div, p { html, address,
blockquote,
body, dd, div,
dl, dt, fieldset, form,
frame, frameset,
h1, h2, h3, h4,
h5, h6, noframes,
ol, p, ul, center,
dir, hr, menu, pre {
display: block; display: block;
margin-bottom: 8;
margin-top: 8;
} }
ul, ol { h1, h2, h3 {
display: block;
margin-top: 8; margin-top: 8;
margin-bottom: 8; margin-bottom: 8;
margin-left: 0;
margin-right: 0;
}
h4, p,
blockquote, ul,
fieldset, form,
ol, dl, dir,
menu {
margin-top: 4;
margin-bottom: 4;
margin-left: 0;
margin-right: 0;
}
h5, h6 {
margin-top: 2;
margin-bottom: 2;
margin-left: 0;
margin-right: 0;
} }
li { li {