Changed several px to em.

This commit is contained in:
2025-06-20 14:33:01 +08:00
parent 5e7a17e90d
commit 296daa9683

View File

@@ -1,6 +1,6 @@
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
max-width: 800px; max-width: 50em;
margin: auto; margin: auto;
} }
@@ -8,21 +8,21 @@ body {
font-family: "Palatino", "Georgia", Times, serif; font-family: "Palatino", "Georgia", Times, serif;
background-color: rgb(255, 255, 250); background-color: rgb(255, 255, 250);
line-height: 1.4; line-height: 1.4;
padding-bottom: 200px; padding-bottom: 12.5em;
text-size-adjust: none; text-size-adjust: none;
-webkit-text-size-adjust: none; -webkit-text-size-adjust: none;
} }
img { img {
border-radius: 15px; border-radius: 1em;
} }
h1, h1,
h2, h2,
h3, h3,
h4 { h4 {
padding-top: 0px; padding-top: 0em;
padding-bottom: 10px; padding-bottom: 0.5em;
text-align: center; text-align: center;
} }
@@ -31,16 +31,16 @@ th {
} }
p { p {
padding-bottom: 10px; padding-bottom: 0.5em;
} }
#topbar { #topbar {
display: inline-block; display: inline-block;
padding: 0 5px; padding: 0 0.25em;
} }
div#annoucement { div#annoucement {
width: 750px; width: 45em;
} }
table#table1 { table#table1 {
@@ -76,7 +76,7 @@ ul#course {
display: inline-block; display: inline-block;
color: #f2f2f2; color: #f2f2f2;
text-align: center; text-align: center;
padding: 10px 16px; padding: 0.625em 1em;
text-decoration: none; text-decoration: none;
} }
@@ -88,12 +88,12 @@ ul#course {
/* Main content */ /* Main content */
.main { .main {
margin-top: 5px; margin-top: 0.3em;
/* Add a top margin to avoid content overlay */ /* Add a top margin to avoid content overlay */
} }
hr { hr {
border-top: dashed 1px; border-top: dashed 0.1em;
} }
.notATable { .notATable {
@@ -124,9 +124,9 @@ hr {
#shadowbox { #shadowbox {
border: 0px solid; border: 0px solid;
border-radius: 15px; border-radius: 1em;
padding: 10px; padding: 0.6em;
box-shadow: 5px 5px 18px #999999; box-shadow: 0.3em 0.3em 1em #999999;
} }
hr.style-one { hr.style-one {