Skip to content

Commit

Permalink
Added sorta ugly section tag background. Made latest block title edit…
Browse files Browse the repository at this point in the history
…able in admin
  • Loading branch information
SamuelmdLow committed Oct 12, 2023
1 parent 8c2b023 commit d69a67d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion article/templates/article/objects/blog_column-latest.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{% endif %}
</div>
<div class="o-article__meta">
<h4 class="o-article__section">
<h4 class="o-article__section" style="background-color: {{article|get_colour}}">
<a href="{{article.get_parent.url}}">{{article.get_parent.title}}</a>
</h4>
<h3 class="o-article__headline">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load articletags %}

<div class="article-list blog sidebar-block">
{% include 'home/objects/home_heading-box.html' with styling='boxLabel-highlight' title="Lastest Stories" text='Last updated:' textBold=articles.0.explicit_published_at|display_pubdate %}
{% include 'home/objects/home_heading-box.html' with styling='boxLabel-highlight' title=title text='Last updated:' textBold=articles.0.explicit_published_at|display_pubdate %}
<ul class="article-list">
{% for article in articles %}
<li>
Expand Down
8 changes: 8 additions & 0 deletions ubyssey/static_src/src/styles/objects/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,14 @@
display: flex;
flex-direction: column;

.o-article__section {
width: fit-content;
padding-left: 0.2em;
padding-right: 0.2em;
background-color: $color-ubyssey-blue;
color: white;
}

.o-article__headline {
margin-top: 0;
line-height: 1.3em;
Expand Down

0 comments on commit d69a67d

Please sign in to comment.