Skip to content

Commit

Permalink
Removed ranking fade in lieu of consistent app capsule sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Mar 23, 2024
1 parent 1f90b38 commit 1796b25
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 149 deletions.
7 changes: 5 additions & 2 deletions assets/css/250.less
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ span.filtered {
}

.ranking > header > h2:first-of-type {
width: 120px;
width: 170px;
box-sizing: border-box;
padding-left: 1.5em;
margin-left: .5em;
Expand Down Expand Up @@ -570,10 +570,11 @@ span.filtered {
max-width: 100%;
}

// Capsule image container.
.ranking > header ~ div > div:first-child {
flex-shrink: 0;
width: 25%;
max-width: 120px;
max-width: 170px; // Nominally 184px.
min-width: 80px;
aspect-ratio: 184/69;

Expand Down Expand Up @@ -625,6 +626,8 @@ span.filtered {
.ranking > div > div > .title {
/* Prevent breaking around title at small resolutions. */
display: inline;

font-size: 150%;
}
// Shared S250/C250 appline styles.
.appline {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/home.less
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ section.top10 {
background: linear-gradient(135deg, #1f202e, #343834, #212333, #291f29);
box-shadow: 0 0 4px #ffc82c;

transition: opacity .1s;
transition: opacity 50ms;
}
&:hover:before {
opacity: 1;
Expand Down
142 changes: 0 additions & 142 deletions assets/css/inc/ranking fade.css

This file was deleted.

2 changes: 0 additions & 2 deletions assets/css/ranking.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "inc/ranking fade.css" (min-width: 850px);

.col3 {
ins {
margin: 0;
Expand Down
4 changes: 2 additions & 2 deletions template/layout/ranking.twig
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
<div{% if game.rank is defined %} id="{{ game.rank }}"{% endif %}>
<div>
<a href="{{ steam.app_url(game.id) }}" {{ steam.video_attr(game.name, game.videos) }}>
<img alt="Logo" data-src="//steamcdn-a.akamaihd.net/steam/apps/{{ game.id }}/capsule_
{{- loop.index <= 14 ? '184x69.jpg' : 'sm_120.jpg' }}" class="lazy"
<img alt="Logo" data-src="//steamcdn-a.akamaihd.net/steam/apps/{{ game.id }}/capsule_184x69.jpg"
class="lazy"
></a>
</div>
<div class="appline">
Expand Down

0 comments on commit 1796b25

Please sign in to comment.