Projet

Général

Profil

0001-misc-move-cart-ds-button-next-to-file-upload-widget-.patch

Frédéric Péters, 31 août 2019 18:11

Télécharger (2,61 ko)

Voir les différences:

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

 .../clisson-sevre-et-maine-agglo/style.scss   |  1 +
 static/includes/_cartads.scss                 | 22 +++++++++++++++++++
 static/toodego/style.scss                     |  1 +
 .../qommon/forms/widgets/pieces-cartads.html  |  6 ++---
 4 files changed, 27 insertions(+), 3 deletions(-)
 create mode 100644 static/includes/_cartads.scss
static/clisson-sevre-et-maine-agglo/style.scss
2 2

  
3 3
@import 'vars';
4 4
@import '../includes/publik';
5
@import '../includes/cartads';
5 6
@import 'custom';
static/includes/_cartads.scss
1
div.template-pieces-cartads {
2
	div.piece {
3
		button.plus {
4
			margin-top: 60px;
5
			&:disabled {
6
				display: none;
7
			}
8
			@media screen and (max-width: $very-small-limit) {
9
				margin-top: 0;
10
				margin-bottom: 2rem;
11
			}
12
		}
13
		div.title + div.file-upload-widget + div.file-upload-widget + div.file-upload-widget + div.button-plus {
14
			// special case when there are three file upload
15
			// widgets and the + button goes to a new line
16
			button {
17
				margin-top: 0;
18
				margin-bottom: 2rem;
19
			}
20
		}
21
	}
22
}
static/toodego/style.scss
5 5
@import '../includes/font-oswald';
6 6
@import '../includes/font-raleway';
7 7
@import '../includes/publik';
8
@import '../includes/cartads';
8 9
@import 'specialpages';
9 10
@import 'maps';
10 11
@import 'forms';
templates/qommon/forms/widgets/pieces-cartads.html
45 45
  </div>
46 46
  </div>
47 47
  {% endfor %}
48
  <div class="grid-1-1 newline">
49 48
  {% if piece.max_files > 1 %}
50
  <button class="plus" style="margin-bottom: 2rem;">+</button>
51
  {% endif %}
49
  <div class="grid-1-12 button-plus">
50
  <button class="plus">+</button>
52 51
  </div>
52
  {% endif %}
53 53
  </div>
54 54

  
55 55
{% endfor %}
56
-