1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

LibWeb: Use length units and shorthands in the default UA style sheet

This commit is contained in:
Andreas Kling 2020-06-28 12:12:01 +02:00
parent 9576f6b1d4
commit c1acf67715

View file

@ -7,10 +7,7 @@ head, link, meta, script, style, title {
} }
body { body {
margin-left: 8; margin: 8px;
margin-top: 8;
margin-right: 8;
margin-bottom: 8;
} }
h1, h2 { h1, h2 {
@ -25,8 +22,8 @@ h3 {
pre { pre {
font-family: Csilla; font-family: Csilla;
font-weight: lighter; font-weight: lighter;
margin-bottom: 8; margin-bottom: 8px;
margin-top: 8; margin-top: 8px;
white-space: pre; white-space: pre;
} }
@ -63,10 +60,7 @@ center {
} }
h1, h2, h3 { h1, h2, h3 {
margin-top: 8; margin: 8px 0 8px 0;
margin-bottom: 8;
margin-left: 0;
margin-right: 0;
} }
h4, p, h4, p,
@ -74,24 +68,18 @@ blockquote, ul,
fieldset, form, fieldset, form,
ol, dl, dir, ol, dl, dir,
menu { menu {
margin-top: 4; margin: 4px 0 4px 0;
margin-bottom: 4;
margin-left: 0;
margin-right: 0;
} }
h5, h6 { h5, h6 {
margin-top: 2; margin: 2px 0 2px 0;
margin-bottom: 2;
margin-left: 0;
margin-right: 0;
} }
li { li {
display: list-item; display: list-item;
margin-left: 8; margin-left: 8px;
margin-top: 2; margin-top: 2px;
margin-bottom: 2; margin-bottom: 2px;
} }
a:link { a:link {
@ -104,20 +92,9 @@ a:hover {
} }
hr { hr {
margin-top: 4; margin-top: 4px;
margin-bottom: 4; margin-bottom: 4px;
border-top-width: 1; border: 1px inset #888888;
border-left-width: 1;
border-right-width: 1;
border-bottom-width: 1;
border-top-color: #888888;
border-left-color: #888888;
border-right-color: #888888;
border-bottom-color: #888888;
border-top-style: inset;
border-left-style: inset;
border-right-style: inset;
border-bottom-style: inset;
} }
blink { blink {