style: refactor layout and replace fixed spacing with font-relative units

This commit is contained in:
Erzbir
2025-08-05 14:50:52 +08:00
parent 8e3cd1ae8d
commit 6e0c6973f2
15 changed files with 287 additions and 233 deletions
+7 -7
View File
@@ -1,5 +1,5 @@
.link-section {
margin-bottom: 2rem;
margin-bottom: calc(var(--font-theme-size) * 2);
}
.link-table {
@@ -9,7 +9,7 @@
.link-item {
display: block;
margin-bottom: 0.5rem;
margin-bottom: calc(var(--font-theme-size) * 0.5);
text-decoration: none;
color: inherit;
}
@@ -20,12 +20,12 @@
.link-container {
display: flex;
padding: 0.25rem;
padding: calc(var(--font-theme-size) * 0.25);
align-items: center;
}
.link-logo {
width: 4rem;
width: calc(var(--font-theme-size) * 4);
height: auto;
flex-shrink: 0;
}
@@ -35,7 +35,7 @@
display: flex;
flex-direction: column;
justify-content: space-around;
min-height: 4rem;
min-height: calc(var(--font-theme-size) * 4);
}
.link-title {
@@ -45,12 +45,12 @@
.link-url {
color: var(--color-theme-accent);
font-size: 0.9em;
font-size: calc(var(--font-theme-size) * 0.9);
}
.link-description {
margin: 0;
color: var(--color-theme-foreground);
font-size: 0.9em;
font-size: calc(var(--font-theme-size) * 0.9);
line-height: 1.4;
}