Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Unify order details styling

Anna Siwik3558226babc0
diff --git a/saleor/static/dashboard/scss/components/_data-table.scss b/saleor/static/dashboard/scss/components/_data-table.scss
index 53dd870693..364f581adc 100644
--- a/saleor/static/dashboard/scss/components/_data-table.scss
+++ b/saleor/static/dashboard/scss/components/_data-table.scss
@@ -91,7 +91,12 @@
}
.label {
line-height: 1;
- margin-right: 24px;
+ margin-right: 16px;
+ }
+ h5 {
+ text-transform: initial;
+ font-size: 24px;
+ font-weight: 300;
}
}
@@ -99,7 +104,7 @@
align-items: center;
display: flex;
flex-direction: column;
- padding: 24px;
+ padding: 16px;
.input {
padding: 0;
@@ -108,11 +113,11 @@
&-title {
flex-grow: 1;
- font-size: 20px;
+ font-size: 24px;
font-weight: 300;
line-height: 1;
margin: 0;
- padding: 0 24px;
+ padding: 0 16px;
&--no-data {
padding: 0 15px;
}
@@ -157,7 +162,7 @@
th, td {
height: 48px;
overflow: hidden;
- padding: 0 24px;
+ padding: 0 16px;
text-overflow: ellipsis;
vertical-align: middle;
white-space: nowrap;
@@ -167,11 +172,11 @@
}
&:first-child {
- padding-left: 24px;
+ padding-left: 16px;
}
&:last-child {
- padding-right: 24px;
+ padding-right: 16px;
}
&.no-padded {
@@ -197,6 +202,8 @@
input {
width: 64px;
+ margin-bottom: 0;
+ text-align: right;
}
}
}
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index 78d9dfa814..92eda35c45 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -308,7 +308,7 @@
</td>
</tr>
{% endfor %}
- <tr>
+ <tr class="last-no-border">
<td class="right-align" colspan="3">
<p>{% trans "Subtotal" context "Order subtotal" %}</p>
<p>{% trans "Shipping" context "Order totals header" %} ({{ order.shipping_method_name|default:"-" }})</p>
@@ -330,6 +330,7 @@
</li>
</ul>
{% endif %}
+ <p><strong>{% trans "Grand total" context "Order totals header" %}</strong></p>
</td>
<td class="right-align">
<p>{{ order.get_subtotal.gross|amount:'html' }}</p>
@@ -337,19 +338,10 @@
{% if order.discount_amount %}
<p>{% discount_as_negative order.discount_amount html=True %}</p>
{% endif %}
+ <p><strong>{{ order.total.gross|amount:'html' }}</strong></p>
</td>
</tr>
</tbody>
- <tfoot>
- <tr>
- <td class="right-align" colspan="3">
- {% trans "Grand total" context "Order totals header" %}
- </td>
- <td>
- {{ order.total.gross|amount:'html' }}
- </td>
- </tr>
- </tfoot>
</table>
</div>
{% if perms.order.edit_order and order.can_edit or order.can_fulfill %}