Skip to content

Commit

Permalink
More silly fixes for AMS elections page
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelmdLow committed Feb 27, 2025
1 parent 75e356f commit 5a1fae9
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@

{% include 'article/objects/article_column-pubdate-bottom.html' with style="pubdate-bottom left-right-desktop big" article=articles|first image_size="large" lede="true" byline="true" pubdate="true" %}

{% if articles|slice:"1:" %}
<div class="article-wrap">
{% for article in articles|slice:"1:"%}
{% include 'article/objects/article_column-pubdate-bottom.html' with style="pubdate-bottom small" article=article pubdate="true" %}
{% endfor %}
</div>
{% endif %}
</div>
9 changes: 6 additions & 3 deletions ubyssey/static_src/src/styles/objects/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,15 @@ ul.article-list, ol.article-list {
}

.menu-title {
margin: 1em !important;
margin: .25rem !important;
border: 1px solid transparent;

flex-grow: 1;
background: linear-gradient(transparent calc(100% - 0.25em), var(--linkColour) 0);
background-color: var(--linkColour);
transition: .2s;
cursor: default;

color: white;
text-align: center;
font-size: 1.2rem;
font-weight: 600;
Expand All @@ -395,7 +398,7 @@ ul.article-list, ol.article-list {

&:hover {
background-color: transparent !important;
border-color: #555;
border-color: var(--linkColour);
color: #555;
}
}
Expand Down
4 changes: 3 additions & 1 deletion ubyssey/static_src/src/styles/objects/_article_column.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@
article.left-right-desktop {
display: flex;
flex-direction: row;
padding-bottom: 1em;

padding-bottom: 2em;
border-bottom: 1px solid var(--light-border);
.o-article__left {
width: 50%;
flex-shrink: 0;
Expand Down
4 changes: 1 addition & 3 deletions ubyssey/static_src/src/styles/objects/_articles-wrapped.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.article-wrap {
margin-top: 1em;
padding-top: 2em;
border-top: 1px solid var(--light-border);
margin-top: 2em;
display: flex;
flex-wrap: wrap;
gap: 24px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@
}
}

.section .header-menu .menu-title {
color: black;
}

[color-css-theme="light"] {
.landing-stream-block__borders {
border-color: $color-ubyssey-blue;
Expand Down

0 comments on commit 5a1fae9

Please sign in to comment.