From 0b53f0574019ecf3713afb40c2cfc92efa60e983 Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Tue, 11 Jun 2024 18:34:37 +0700 Subject: [PATCH] feat: standardize unit to rem (#146) --- src/lib/core/Overlay.svelte | 2 +- src/lib/core/ThemeSwitcher.svelte | 2 +- src/lib/internal/Docs.svelte | 42 +++++++++++++++---------------- src/routes/+error.svelte | 4 +-- src/routes/+page.svelte | 2 +- src/routes/Footer.svelte | 18 ++++++------- 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/lib/core/Overlay.svelte b/src/lib/core/Overlay.svelte index 5299334..ea81ff3 100644 --- a/src/lib/core/Overlay.svelte +++ b/src/lib/core/Overlay.svelte @@ -27,7 +27,7 @@ display: grid; justify-items: center; align-content: space-between; - padding: 1em 0.5em; + padding: 1rem 0.5rem; border-radius: inherit; background-color: rgba(0, 0, 0, 0.7); color: #ffffff; diff --git a/src/lib/core/ThemeSwitcher.svelte b/src/lib/core/ThemeSwitcher.svelte index 3e32c90..26c9663 100644 --- a/src/lib/core/ThemeSwitcher.svelte +++ b/src/lib/core/ThemeSwitcher.svelte @@ -62,7 +62,7 @@ diff --git a/src/routes/Footer.svelte b/src/routes/Footer.svelte index 5292d17..228a223 100644 --- a/src/routes/Footer.svelte +++ b/src/routes/Footer.svelte @@ -52,28 +52,28 @@ --t-duration: 200ms; width: 100%; - max-width: 53em; + max-width: 53rem; position: relative; display: grid; - gap: 0.5em; - padding: 3em 1em; - margin: auto auto 3em; + gap: 0.5rem; + padding: 3rem 1rem; + margin: auto auto 3rem; text-align: center; line-height: 1.5; font-family: var(--font-monospace); - font-size: clamp(0.8em, 3vw, 1em); + font-size: clamp(0.8rem, 3vw, 1rem); } .social-links { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; - padding: 0 0 0.5em; + padding: 0 0 0.5rem; margin: auto; } .social-links > a { - flex: 0 1 5em; - padding-top: 1em; + flex: 0 1 5rem; + padding-top: 1rem; } .social-links a, .social-links a:visited { @@ -99,6 +99,6 @@ display: grid; grid-template-rows: repeat(2, 1fr); place-items: center; - gap: 0.5em; + gap: 0.5rem; }