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

View File

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