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
5 changed files with 5 additions and 3 deletions
Showing only changes of commit d3b885ab27 - Show all commits

View File

@ -278,6 +278,7 @@
align-items: center align-items: center
color: var(--color-text-secondary) color: var(--color-text-secondary)
font-size: var(--fs-sm) font-size: var(--fs-sm)
line-height: var(--lh-sm)
margin: auto 0 0 0 margin: auto 0 0 0
&+.ext-list-details &+.ext-list-details

View File

@ -33,7 +33,7 @@
<ul class="ext-list-details mt-1"> <ul class="ext-list-details mt-1">
{% if extension.average_score %} {% if extension.average_score %}
<li> <li>
<a href="{{ extension.get_ratings_url }}"> <a class="align-items-center d-flex" href="{{ extension.get_ratings_url }}">
{% include "ratings/components/average.html" with score=extension.average_score %} {% include "ratings/components/average.html" with score=extension.average_score %}
({{ extension.text_ratings_count|int_compact }}) ({{ extension.text_ratings_count|int_compact }})
</a> </a>

View File

@ -129,7 +129,7 @@
<dt>{% trans 'Rating' %}</dt> <dt>{% trans 'Rating' %}</dt>
<dd> <dd>
{% if extension.average_score %} {% if extension.average_score %}
<a href="{{ extension.get_ratings_url }}" class="text-decoration-none"> <a href="{{ extension.get_ratings_url }}" class="align-items-center d-flex stars-helper-detail text-decoration-none">
{% include "ratings/components/average.html" with score=extension.average_score %} {% include "ratings/components/average.html" with score=extension.average_score %}
({{ extension.ratings.listed.count }}) ({{ extension.ratings.listed.count }})
</a> </a>

View File

@ -51,6 +51,7 @@
-webkit-mask-size: var(--star-size) var(--star-size) -webkit-mask-size: var(--star-size) var(--star-size)
mask-size: var(--star-size) var(--star-size) mask-size: var(--star-size) var(--star-size)
text-align: left text-align: left
transform: translateY(-.2rem)
width: var(--stars-number) width: var(--stars-number)
span span

View File

@ -2,6 +2,6 @@
{% blocktranslate asvar title with score=score %}Rated {{ score }} out of 5{% endblocktranslate %} {% blocktranslate asvar title with score=score %}Rated {{ score }} out of 5{% endblocktranslate %}
<span class="stars{% if size %} {{ size }}{% endif %}" title="{{ title }}"> <span class="stars me-1 {% if size %} {{ size }}{% endif %}" title="{{ title }}">
<span style="width: {% widthratio score 5 100 %}%"></span> <span style="width: {% widthratio score 5 100 %}%"></span>
</span> </span>