Implement Web Assets' theme system and selection, and add 'light' theme #118

Merged
Márton Lente merged 97 commits from martonlente/extensions-website:ui/theme-light into main 2024-05-08 14:20:07 +02:00
2 changed files with 11 additions and 8 deletions
Showing only changes of commit 7c98bc87b0 - Show all commits

View File

@ -63,6 +63,11 @@
--star-size: 1.6em
width: 8em
// TODO: refactor stars-helper
.stars-helper
max-height: 1.4rem
transform: translateY(-.1rem)
.ratings-summary
display: flex
flex-direction: column

View File

@ -14,14 +14,12 @@
{{ rating.user }}
</a>
</li>
<li class="me-auto">
<div class="align-items-center d-flex">
<li class="align-items-center d-flex me-auto">
{% with score_percentage=rating.score %}
<a href="{{ extension.get_ratings_url }}?score={{ rating.score }}">
<a class="stars-helper" href="{{ extension.get_ratings_url }}?score={{ rating.score }}">
{% include "ratings/components/average.html" with score=rating.score %}
</a>
{% endwith %}
</div>
</li>
<li>
<a href="{{ extension.get_versions_url }}#v{{ rating.version.version|slugify }}">