Skip to content

Commit

Permalink
timeline: stop using cropped images
Browse files Browse the repository at this point in the history
  • Loading branch information
toru committed Jan 30, 2024
1 parent d992a08 commit fdd8326
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 0 additions & 6 deletions _includes/timeline.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
{% for ep in include.episodes %}
<a href="{{ep.url}}">
<li class="tl-node" tabindex="-1">
{% if ep.thumb %}
<img src="{{ site.object_store }}/ep/sq-{{ ep.images[0] }}" width="48px">
{% else %}
{% assign fallback_indices = "0|1|2" | split: "|" %}
<img src="{{ site.object_store }}/ep/sq-fallback-{{ fallback_indices | sample }}.png">
{% endif %}
<div class="tl-body">
<div class="title">{{ ep.title }}</div>
<div class="date">Published: {{ ep.date | date: "%Y-%m-%d" }}</div>
Expand Down
7 changes: 4 additions & 3 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@ a:focus {
text-decoration: none;
}
.tl li {
border-left: 1px solid #ccc;
border-left: 16px solid #faf9f6;
}
.tl li:hover {
border-left: 1px solid #ff2d55;
border-color: #626262;
}
.tl li:focus {
outline: thin dotted;
}
.tl li.active {
border-left: 2px solid #ff2d55;
border-color: #626262;
}
.tl-node {
margin-bottom: 8px;
Expand All @@ -101,6 +101,7 @@ a:focus {
}
.tl-body {
flex: 1;
padding-left: 12px;
}
.tl-body > .date {
font-size: 85%;
Expand Down

0 comments on commit fdd8326

Please sign in to comment.