mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-08 02:15:12 -06:00
style: list stars before the commit time in expanded rows
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1893,13 +1893,13 @@ th[data-sort].sort-asc::after {
|
||||
padding-right: 0.8rem;
|
||||
}
|
||||
|
||||
/* Start the commit time on its own line instead of wrapping mid-phrase after the URL */
|
||||
.expand-commit::before {
|
||||
/* Start the stars and commit time on their own line instead of wrapping mid-phrase after the URL */
|
||||
.expand-stars::before {
|
||||
content: "\A";
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.expand-commit > .expand-sep {
|
||||
.expand-stars > .expand-sep {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -191,15 +191,15 @@
|
||||
rel="noopener"
|
||||
>{{ entry.url | replace("https://", "") }}</a
|
||||
>
|
||||
{% if entry.last_commit_at %}<span class="expand-commit"
|
||||
{% if entry.stars is not none %}<span
|
||||
class="expand-stars"
|
||||
><span class="expand-sep">/</span>{{
|
||||
"{:,}".format(entry.stars) }} stars</span
|
||||
>{% endif %} {% if entry.last_commit_at %}<span class="expand-commit"
|
||||
><span class="expand-sep">/</span
|
||||
><time datetime="{{ entry.last_commit_at }}"
|
||||
>{{ entry.last_commit_at[:10] }}</time
|
||||
></span
|
||||
>{% endif %} {% if entry.stars is not none %}<span
|
||||
class="expand-stars"
|
||||
><span class="expand-sep">/</span>{{
|
||||
"{:,}".format(entry.stars) }} stars</span
|
||||
>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -257,15 +257,15 @@
|
||||
rel="noopener"
|
||||
>{{ entry.url | replace("https://", "") }}</a
|
||||
>
|
||||
{% if entry.last_commit_at %}<span class="expand-commit"
|
||||
{% if entry.stars is not none %}<span
|
||||
class="expand-stars"
|
||||
><span class="expand-sep">/</span>{{
|
||||
"{:,}".format(entry.stars) }} stars</span
|
||||
>{% endif %} {% if entry.last_commit_at %}<span class="expand-commit"
|
||||
><span class="expand-sep">/</span
|
||||
><time datetime="{{ entry.last_commit_at }}"
|
||||
>{{ entry.last_commit_at[:10] }}</time
|
||||
></span
|
||||
>{% endif %} {% if entry.stars is not none %}<span
|
||||
class="expand-stars"
|
||||
><span class="expand-sep">/</span>{{
|
||||
"{:,}".format(entry.stars) }} stars</span
|
||||
>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user