From 4f76229b7d3058b0f940721832816f8867da81c1 Mon Sep 17 00:00:00 2001 From: SamuelmdLow Date: Fri, 15 Nov 2024 11:37:00 +0000 Subject: [PATCH] Last little changes for femme design --- article/models.py | 7 ++++--- ubyssey/static_src/src/styles/supplement-2024-femme.scss | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/article/models.py b/article/models.py index 27eca36db..7e9a8ff8b 100644 --- a/article/models.py +++ b/article/models.py @@ -1200,12 +1200,13 @@ def get_authors_split_out_visual_bylines(self) -> str: return writers + visuals authors_split_out_visual_bylines = property(fget=get_authors_split_out_visual_bylines) - def get_category_articles(self, order='-first_published_at', max=10) -> QuerySet: + def get_category_articles(self, order='-first_published_at', max=False) -> QuerySet: """ Returns a list of articles within the Article's category """ - category_articles = ArticlePage.objects.live().filter(category=self.category).not_page(self).order_by(order)[:max] - + category_articles = ArticlePage.objects.live().filter(category=self.category).not_page(self).order_by(order) + if max: + return category_articles[:max] return category_articles def get_section_articles(self, order='-first_published_at', max=10) -> QuerySet: diff --git a/ubyssey/static_src/src/styles/supplement-2024-femme.scss b/ubyssey/static_src/src/styles/supplement-2024-femme.scss index 616f4e438..dbbf14cf5 100644 --- a/ubyssey/static_src/src/styles/supplement-2024-femme.scss +++ b/ubyssey/static_src/src/styles/supplement-2024-femme.scss @@ -55,12 +55,14 @@ header h1 { } .fw-description, .subtitle { - margin: 1em auto; + margin: 2em auto; text-align: center; font-size: 2em; line-height: 1em; color: var(--highlightColour); + font-family: norman-variable, sans-serif; + font-variation-settings: 'wght' 600; } a { @@ -249,6 +251,8 @@ img { flex-direction: column; img { margin: 0 auto; + height: 250px; + width: auto; } a { color: #a71d2c;