Projet

Général

Profil

0005-misc-move-datetimes-table-style-to-css-file-50035.patch

Frédéric Péters, 19 janvier 2021 09:46

Télécharger (2,21 ko)

Voir les différences:

Subject: [PATCH 5/6] misc: move datetimes table style to css file (#50035)

 wcs/qommon/static/css/dc2/admin.scss          | 31 ++++++++++++++++
 .../forms/widgets/select-datetimes.html       | 36 -------------------
 2 files changed, 31 insertions(+), 36 deletions(-)
wcs/qommon/static/css/dc2/admin.scss
2047 2047
div.buttons > div.widget {
2048 2048
	margin-right: 1rem;
2049 2049
}
2050

  
2051
div.datetimes-table {
2052
	margin-top: 1ex;
2053
	display: flex;
2054
	width: 100%;
2055
	> div {
2056
		flex: 0 1 auto;
2057
		width: 20%;
2058
		text-align: center;
2059
		display: none;
2060
	}
2061

  
2062
	div span {
2063
		display: block;
2064
		cursor: pointer;
2065
		padding: 0.3ex 0;
2066
		&.disabled {
2067
			opacity: 0.3;
2068
			cursor: not-allowed;
2069
		}
2070

  
2071
		&.selectable.on {
2072
			background: #215D9C;
2073
			color: white;
2074
		}
2075
	}
2076

  
2077
	div.head {
2078
		padding-bottom: 1ex;
2079
	}
2080
}
wcs/qommon/templates/qommon/forms/widgets/select-datetimes.html
162 162
  $select.trigger('wcs:options-change');
163 163
});
164 164
</script>
165
{% if request.quixote_request.is_in_backoffice %}
166
<style>
167
div.meetings_table {
168
  margin-top: 1ex;
169
  display: flex;
170
  width: 100%;
171
}
172

  
173
div.meetings_table > div {
174
  flex: 0 1 auto;
175
  width: 20%;
176
  text-align: center;
177
  display: none;
178
}
179

  
180
div.meetings_table div span {
181
  display: block;
182
  cursor: pointer;
183
  padding: 0.3ex 0;
184
}
185

  
186
div.meetings_table div span.disabled {
187
  opacity: 0.3;
188
  cursor: not-allowed;
189
}
190

  
191
div.meetings_table div span.selectable.on {
192
  background: #215D9C;
193
  color: white;
194
}
195

  
196
div.meetings_table div.head {
197
  padding-bottom: 1ex;
198
}
199
</style>
200
{% endif %}
201 165
{% endblock %}
202 166

  
203 167
{% block widget-hint %}
204
-