mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-19 05:30:08 -07:00
Fix template validity
This commit is contained in:
parent
a7f11179c9
commit
50248d4d69
@ -1,14 +1,15 @@
|
|||||||
.part {
|
.part {
|
||||||
.content {
|
.content {
|
||||||
padding: 7px !important;
|
padding: 0.5em !important;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
font-size: 12px !important;
|
font-size: 1em !important;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
font-size: 11px;
|
font-size: 0.9em;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,11 @@
|
|||||||
|
|
||||||
.set {
|
.set {
|
||||||
.content .header {
|
.content .header {
|
||||||
font-size: 14px !important;
|
font-size: 1em !important;
|
||||||
margin-bottom: 3px;
|
margin-bottom: 0.1em;
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
padding: 0.5em !important;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -6,7 +6,7 @@
|
|||||||
{% set placeholder = asset("resources/images/transparent_min.png") %}
|
{% set placeholder = asset("resources/images/transparent_min.png") %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<img src="{{ placeholder }}" data-src="{{ asset(color~'/'~number~'.png') | imagine_filter(filter) }}">
|
<img src="{{ placeholder }}" data-src="{{ asset(color~'/'~number~'.png') | imagine_filter(filter) }}" alt="{{ number }} - image">
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
@ -18,7 +18,7 @@
|
|||||||
{% set placeholder = asset("resources/images/transparent_min.png") %}
|
{% set placeholder = asset("resources/images/transparent_min.png") %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<img src="{{ placeholder }}" data-src="{{ asset(number~'.jpg')|imagine_filter(filter) }}">
|
<img src="{{ placeholder }}" data-src="{{ asset(number~'.jpg')|imagine_filter(filter) }}" alt="{{ number }} - image">
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
@ -71,7 +71,7 @@
|
|||||||
{{ set.name }}
|
{{ set.name }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
<span class="left floated">{{ set.id }}</span>
|
<span title="{{ set.id }}" class="left truncate">{{ set.id }}</span>
|
||||||
<br>
|
<br>
|
||||||
{% if set.theme is not null %}
|
{% if set.theme is not null %}
|
||||||
<span title="{{ set.theme.fullName }}" class="left floated truncate"><small>{{ set.theme.fullName }}</small></span>
|
<span title="{{ set.theme.fullName }}" class="left floated truncate"><small>{{ set.theme.fullName }}</small></span>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{% if options['class'] == 'asc' %}
|
{% if options['class'] == 'asc' %}
|
||||||
{% set icon = '<i class="icon sort content ascending"></i>' %}
|
{% set icon = '<i class="icon sort content ascending"></i>' %}
|
||||||
{% set class = 'item active' %}
|
{% set options = (options)|merge({'class':'item active'}) %}
|
||||||
{% elseif options['class'] == 'desc' %}
|
{% elseif options['class'] == 'desc' %}
|
||||||
{% set icon = '<i class="icon sort content descending"></i>' %}
|
{% set icon = '<i class="icon sort content descending"></i>' %}
|
||||||
{% set class = 'item active' %}
|
{% set options = (options)|merge({'class':'item active'}) %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set icon = null %}
|
{% set icon = null %}
|
||||||
{% set class = 'item' %}
|
{% set options = (options)|merge({'class':'item'}) %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="{{ class }}" {% for attr, value in options %} {{ attr }}="{{ value }}"{% endfor %}>{{ icon|raw }} {{ title }}</a>
|
<a {% for attr, value in options %} {{ attr }}="{{ value }}"{% endfor %}>{{ icon|raw }} {{ title }}</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user