diff --git a/src/assets/style/global.css b/src/assets/style/global.css index 0bc9581..fe97efb 100644 --- a/src/assets/style/global.css +++ b/src/assets/style/global.css @@ -12,6 +12,7 @@ html { body { max-width: 95vw; /* leave some space in the end by default */ margin: auto; + padding: 15px 0; } section:not(:first-child) { @@ -45,3 +46,17 @@ section:not(:first-child) { max-width: 1536px; } } + +a { + color: var(--prj-link-text); +} + +ul { + /* Make the marker position is inside the container */ + list-style-position: inside; + margin: 0; +} + +li:not(:last-child) { + margin-bottom: var(--prj-spacing-1); +} diff --git a/src/assets/style/utils.css b/src/assets/style/utils.css index e9b276c..db3c2cc 100644 --- a/src/assets/style/utils.css +++ b/src/assets/style/utils.css @@ -97,3 +97,15 @@ text-align: justify; text-justify: inter-word; } + +.text-start { + text-align: start; +} + +.text-middle { + text-align: middle; +} + +.text-end { + text-align: end; +} diff --git a/src/components/Card.astro b/src/components/Card.astro index c68fa2a..0cbd2be 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,63 +1,36 @@ --- export interface Props { - title: string; - body: string; - href: string; + title: string; + body: string; + href: string; } const { href, title, body } = Astro.props; --- - - diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index f60e074..35bb261 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -26,12 +26,11 @@ const links = [