Skip to content

Commit

Permalink
Added nav links to new Club 250 Trending rankings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Apr 20, 2024
1 parent 63a00d1 commit ed20899
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
11 changes: 6 additions & 5 deletions assets/css/inc/nav.less
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ ol.menu {
padding: calc(.2em + 3px) .8em calc(.2em + 4px);
}

a:not([href]):after {
a:has(+ ol):after {
content: '';
position: absolute;
top: 50%;
Expand All @@ -116,9 +116,13 @@ ol.menu {
color: #07080a;
text-shadow: 1px 1px 1px #cfab72;
text-decoration: none;

&[class]:before {
filter: brightness(14%);
}
}

a:not([href]):after {
a:has(+ ol):after {
right: calc(1em - 3px);
}
}
Expand Down Expand Up @@ -183,9 +187,6 @@ ol.menu {
// Fudge size for scuffed Chrome SVG renderer.
mask: no-repeat 0/99% 100%;
}
&:hover:before {
filter: brightness(14%);
}

&.cup:before {
#icons.cup();
Expand Down
4 changes: 2 additions & 2 deletions template/layout/ranking.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<li><a href="/7day{{ ext }}"><span class="new">New This Week</span></a>
<li><a href="/2024{{ ext }}"><span class="curyear">Best of 2024</span></a>
<li><a href="/most_played{{ ext }}"><span class="played">Most Played</span></a>
<li><a href="{{ club250 }}/ranking/trending">
<li><a href="{{ club250 }}/ranking/trending-now">
<span class="trend">
Trending
Trending Now
{{ include('@components/micro tier.twig', {tier: 1, benefit: 'trend'}) }}
</span>
</a>
Expand Down
5 changes: 5 additions & 0 deletions template/layout/template.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
Trending Games
{{ include('@components/micro tier.twig', {tier: 1, benefit: 'trend'}) }}
</a>
<ol>
<li><a href="{{ club250 }}/ranking/trending" class="trend">Trending</a>
<li><a href="{{ club250 }}/ranking/new-and-trending" class="trend">New &amp; Trending</a>
<li><a href="{{ club250 }}/ranking/trending-now" class="trend">Trending Now</a>
</ol>
<li><a href="{{ club250 }}/ranking/custom" class="custom">
Custom Ranking
{{ include('@components/micro tier.twig', {tier: 1, benefit: 'cranking'}) }}
Expand Down

0 comments on commit ed20899

Please sign in to comment.