misc: move cart@ds + button next to file upload widget (#35724)

This commit is contained in:
Frédéric Péters 2019-08-31 18:07:35 +02:00
parent c066091aaf
commit b5959701f4
4 changed files with 27 additions and 3 deletions

View File

@ -2,4 +2,5 @@
@import 'vars';
@import '../includes/publik';
@import '../includes/cartads';
@import 'custom';

View File

@ -0,0 +1,22 @@
div.template-pieces-cartads {
div.piece {
button.plus {
margin-top: 60px;
&:disabled {
display: none;
}
@media screen and (max-width: $very-small-limit) {
margin-top: 0;
margin-bottom: 2rem;
}
}
div.title + div.file-upload-widget + div.file-upload-widget + div.file-upload-widget + div.button-plus {
// special case when there are three file upload
// widgets and the + button goes to a new line
button {
margin-top: 0;
margin-bottom: 2rem;
}
}
}
}

View File

@ -5,6 +5,7 @@
@import '../includes/font-oswald';
@import '../includes/font-raleway';
@import '../includes/publik';
@import '../includes/cartads';
@import 'specialpages';
@import 'maps';
@import 'forms';

View File

@ -45,11 +45,11 @@
</div>
</div>
{% endfor %}
<div class="grid-1-1 newline">
{% if piece.max_files > 1 %}
<button class="plus" style="margin-bottom: 2rem;">+</button>
{% endif %}
<div class="grid-1-12 button-plus">
<button class="plus">+</button>
</div>
{% endif %}
</div>
{% endfor %}