Implement Web Assets' theme system and selection, and add 'light' theme #118
@ -1,3 +1,18 @@
|
|||||||
.card
|
.card
|
||||||
@extend .box
|
@extend .box
|
||||||
|
|
||||||
|
.crads-item-excerpt
|
||||||
|
line-height: calc(24 / 18)
|
||||||
|
|
||||||
|
.cards-item-extra
|
||||||
|
text-transform: none
|
||||||
|
|
||||||
|
.cards-item-extra-rating-stars
|
||||||
|
margin-bottom: .2rem
|
||||||
|
|
||||||
|
.stars
|
||||||
|
font-size: 1.4rem
|
||||||
|
|
||||||
|
.cards-item-title
|
||||||
|
+padding(0, y)
|
||||||
|
|
||||||
|
@ -1,24 +1,32 @@
|
|||||||
{% load common filters %}
|
{% load common filters %}
|
||||||
{% with latest=extension.latest_version %}
|
{% with latest=extension.latest_version %}
|
||||||
|
{# TODO: add conditional if is bg blur to web-assets component card #}
|
||||||
<div class="ext-card {% if blur %}is-bg-blur{% endif %}">
|
{% comment %}
|
||||||
|
<div class="ext-card {% if blur %}is-bg-blur{% endif %}">
|
||||||
{% if blur %}
|
{% if blur %}
|
||||||
<div class="ext-card-thumbnail-blur" style="background-image: url({{ extension.previews.listed.first.source.url }});"></div>
|
<div class="ext-card-thumbnail-blur" style="background-image: url({{ extension.previews.listed.first.source.url }});"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="ext-card-thumbnail" href="{{ extension.get_absolute_url }}">
|
</div>
|
||||||
<div class="ext-card-thumbnail-img" style="background-image: url({{ extension.previews.listed.first.source.url }});" title="{{ extension.name }}"></div>
|
{% endcomment %}
|
||||||
</a>
|
|
||||||
|
|
||||||
<div class="ext-card-body">
|
<div class="cards-item">
|
||||||
<h3 class="ext-card-title">
|
<div class="cards-item-content">
|
||||||
|
<a href="{{ extension.get_absolute_url }}">
|
||||||
|
<div class="cards-item-thumbnail">
|
||||||
|
<img alt="{{ extension.name }}" src="{{ extension.previews.listed.first.source.url }}" title="{{ extension.name }}">
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<h3 class="cards-item-title">
|
||||||
<a href="{{ extension.get_absolute_url }}">{{ extension.name }}</a>
|
<a href="{{ extension.get_absolute_url }}">{{ extension.name }}</a>
|
||||||
</h3>
|
</h3>
|
||||||
|
<div class="cards-item-excerpt">
|
||||||
<p>
|
<p>
|
||||||
{{ latest.tagline }}
|
{{ latest.tagline }}
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
<ul class="ext-list-details">
|
<div class="cards-item-extra">
|
||||||
|
<ul>
|
||||||
<li class="ext-card-author">
|
<li class="ext-card-author">
|
||||||
{% if extension.team %}
|
{% if extension.team %}
|
||||||
{% with team=extension.team %}
|
{% with team=extension.team %}
|
||||||
@ -30,7 +38,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="ext-list-details mt-1">
|
<ul class="cards-item-extra-rating-stars">
|
||||||
{% if extension.average_score %}
|
{% if extension.average_score %}
|
||||||
<li>
|
<li>
|
||||||
<a class="align-items-center d-flex" href="{{ extension.get_ratings_url }}">
|
<a class="align-items-center d-flex" href="{{ extension.get_ratings_url }}">
|
||||||
@ -54,15 +62,16 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% if latest.tags.count %}
|
{% if latest.tags.count %}
|
||||||
<ul class="ext-list-details ext-card-tags">
|
<ul class="ext-card-tags">
|
||||||
<li class="ext-card-tags">
|
<li class="ext-card-tags">
|
||||||
{% include "extensions/components/tags.html" with small=True version=latest %}
|
{% include "extensions/components/tags.html" with small=True version=latest %}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{# Author/admin tools can be added here in an extending template #}
|
{# Author/admin tools can be added here in an extending template #}
|
||||||
{% block admin %}{% endblock admin %}
|
{% block admin %}{% endblock admin %}
|
||||||
</div>
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
Loading…
Reference in New Issue
Block a user