diff --git a/saturn/calendar/event.py b/saturn/calendar/event.py index aef6b6c..ee2e240 100644 --- a/saturn/calendar/event.py +++ b/saturn/calendar/event.py @@ -60,3 +60,6 @@ class Event: return (self._dtend.time() == datetime.time.min \ and self._dtend - self._dtstart <= datetime.timedelta(days=1)) \ or self._dtend.date() == self._dtstart.date() + + def is_one_month(self): + return self._dtend.month == self._dtstart.month diff --git a/saturn/server/static/css/index.css b/saturn/server/static/css/index.css index c9612f8..7921e70 100644 --- a/saturn/server/static/css/index.css +++ b/saturn/server/static/css/index.css @@ -15,6 +15,7 @@ body > h1 { body > #events { margin: 2rem; + max-width: 30rem; } @media (max-width: 672px) { diff --git a/saturn/server/static/css/main.css b/saturn/server/static/css/main.css index 6b699b6..e543258 100644 --- a/saturn/server/static/css/main.css +++ b/saturn/server/static/css/main.css @@ -36,6 +36,10 @@ h1 { line-height: 4rem; font-feature-settings: 'ss01', 'ss02', 'ss03', 'cv11'; } +h1 > img { + height: 4rem; + vertical-align: bottom; +} a { color: var(--link-01); diff --git a/saturn/server/templates/index.html b/saturn/server/templates/index.html index 6d4f629..c4e6f02 100644 --- a/saturn/server/templates/index.html +++ b/saturn/server/templates/index.html @@ -7,7 +7,7 @@ {% endblock %} {% block body %} -