From 9e8b3810649abb6300c2d1c2859bd59e83801d2e Mon Sep 17 00:00:00 2001
From: Jared He <66887902+jaredjhe@users.noreply.github.com>
Date: Sun, 22 Aug 2021 13:57:22 -0500
Subject: [PATCH] Address CSS issues
---
pages/events/[year]/[term]/index.tsx | 6 +++---
pages/events/[year]/[term]/term.module.css | 10 ++++------
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/pages/events/[year]/[term]/index.tsx b/pages/events/[year]/[term]/index.tsx
index ed849b70..eaa2e71d 100644
--- a/pages/events/[year]/[term]/index.tsx
+++ b/pages/events/[year]/[term]/index.tsx
@@ -31,7 +31,7 @@ export default function Term(props: Props) {
{hasFutureEvents && (
<>
-
Upcoming Events:
+
Upcoming Events:
{props.futureEvents.map(({ content, metadata }) => (
@@ -48,13 +48,13 @@ export default function Term(props: Props) {
)}
{hasFutureEvents && hasPastEvents && (
<>
-
Past Events:
+ Past Events:
>
)}
{!hasFutureEvents && (
<>
-
+
Events Archive:
{` ${props.term.charAt(0).toUpperCase()}${props.term.slice(1)} ${
diff --git a/pages/events/[year]/[term]/term.module.css b/pages/events/[year]/[term]/term.module.css
index 6c6446e9..a33c8fbe 100644
--- a/pages/events/[year]/[term]/term.module.css
+++ b/pages/events/[year]/[term]/term.module.css
@@ -1,13 +1,11 @@
.main {
- margin: auto;
margin-top: calc(112rem / 16);
- margin-bottom: calc(224rem / 16);
- width: calc(800rem / 16);
}
-.heading2 {
- font-weight: 700;
- color: var(--primary-heading);
+@media only screen and (max-width: calc(768rem / 16)) {
+ .main {
+ margin-top: calc(48rem / 16);
+ }
}
.blue {