1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-16 12:20:09 -07:00

Fix header color

This commit is contained in:
Unknown 2017-06-03 17:34:15 +02:00
parent 0a7718bea8
commit 4d3faad864
5 changed files with 49 additions and 43 deletions

View File

@ -146,4 +146,10 @@ $colors: (
.text.color-#{$number} {
color: $color;
}
.segment.color-#{$number} {
padding-left: 0.7em !important;
margin-left: -1em !important;
border-left: $color 0.3em solid !important;
}
}

View File

@ -8,16 +8,16 @@
{% endfor %}
{% endfor %}
<div class="ui segment clearing noborder vertical">
<div class="ui segment clearing basic vertical">
<a class="ui primary right floated button" href="{{ path('set_zip', {id: set.id, sorted: true }) }}" download><i class="download icon"></i> {{ 'set.download.multicolor.button' | trans}}</a>
</div>
{% if colors|length > 0 %}
<div class="ui segment vertical noborder">
<h3 class="ui horizontal divider header">Models</h3>
<div class="ui segment vertical basic">
<h2 class="ui dividing header">{{ 'set.inventory.models' | trans }}</h2>
{% for color in colors %}
<div class="ui segment vertical noborder">
<h5 class="ui dividing header text color-{{ color['color'].id }}">
<div class="ui segment vertical basic side color-{{ color['color'].id }}">
<h5 class="ui header">
{{ color['color'].name }} ({{ color['quantity'] }})
</h5>
<div class="ui grid doubling ten column row parts">
@ -31,8 +31,8 @@
{% endif %}
{% if missing|length > 0 %}
<div class="ui segment vertical noborder">
<h3 class="ui horizontal divider header">Missing</h3>
<div class="ui vertical segment basic">
<h2 class="ui dividing header">{{ 'set.inventory.parts' | trans }}</h2>
<div class="ui grid doubling ten column row parts">
{% for part in missing %}
{{ blocks.part(part['part'],part['quantity']) }}

View File

@ -14,7 +14,7 @@
{% if models|length > 0 %}
<div class="ui segment vertical basic">
<h3 class="ui horizontal divider header">Models</h3>
<h2 class="ui dividing header">{{ 'set.inventory.models' | trans }}</h2>
<div class="ui grid doubling ten column row parts">
{% for model in models %}
{{ blocks.model(model['model'],model['quantity']) }}
@ -24,7 +24,7 @@
{% endif %}
{% if missing|length > 0 %}
<div class="ui segment vertical basic">
<h3 class="ui horizontal divider header">Missing</h3>
<h2 class="ui dividing header">{{ 'set.inventory.parts' | trans }}</h2>
<div class="ui grid doubling ten column row parts">
{% for part in missing %}
{{ blocks.part(part['part'],part['quantity']) }}

View File

@ -27,7 +27,7 @@ class Model
/**
* @var Category
*
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\LDraw\Category", inversedBy="models", cascade={"persist"})
* @ORM\ManyToOne(targetEntity="AppBundle\Entity\LDraw\Category", inversedBy="models", fetch="EAGER", cascade={"persist"})
*/
private $category;