Fix button spacing and adjust it to edit mode

This commit is contained in:
Martin Müller 2017-11-04 11:58:11 +01:00
parent 99bb026a56
commit a6a1b04a8e
2 changed files with 7 additions and 3 deletions

View File

@ -148,6 +148,8 @@ nav .extra > a {
.sound {
display: inline-block;
border: 1px solid transparent;
margin: 5px;
}
.sound a {
@ -174,6 +176,8 @@ nav .extra > a {
.edit {
border: 1px dashed #eee;
box-sizing: border-box;
margin: 5px;
}
.table-row {

View File

@ -7,9 +7,9 @@
<li><a href="#">{{ tag.name }}</a></li>
{% endfor %}
</ul>
{% for sound in sounds %}
<div class="sound{{ ' edit' if edit }}"><a href="{{ '/' + ('edit' if edit else 'play') + '/' + sound | urlencode }}">{{ sound.split('.', 1)[0] }}</a></div>
{% endfor %}
{% for sound in sounds %}<!--
--><div class="sound{{ ' edit' if edit }}"><a href="{{ '/' + ('edit' if edit else 'play') + '/' + sound | urlencode }}">{{ sound.split('.', 1)[0] }}</a></div><!--
-->{% endfor %}
</section>
<section id="youtube">
<form action="/" method="GET">