From f71ace1d3917e9efe891f08923882a07cd6dfeaf Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 14 Sep 2023 10:10:05 +0200 Subject: [PATCH] Move sections/orders scss file into admin v3 context --- app/webpacker/css/admin_v3/all.scss | 2 +- .../css/admin_v3/sections/orders.scss | 65 +++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 app/webpacker/css/admin_v3/sections/orders.scss diff --git a/app/webpacker/css/admin_v3/all.scss b/app/webpacker/css/admin_v3/all.scss index 9c4e6dc012..2dbafb6ad1 100644 --- a/app/webpacker/css/admin_v3/all.scss +++ b/app/webpacker/css/admin_v3/all.scss @@ -41,7 +41,7 @@ @import "../admin/plugins/powertip"; @import "../admin/plugins/jstree"; -@import "../admin/sections/orders"; +@import "sections/orders"; // admin_v3 @import "../admin/sections/products"; @import "../admin/hacks/mozilla"; diff --git a/app/webpacker/css/admin_v3/sections/orders.scss b/app/webpacker/css/admin_v3/sections/orders.scss new file mode 100644 index 0000000000..e6e45309d3 --- /dev/null +++ b/app/webpacker/css/admin_v3/sections/orders.scss @@ -0,0 +1,65 @@ +// Customize orders filter +.admin-orders-index-search { + select[data-placeholder="Status"] { + width: 100%; + } + + .select2-container { + width: 100% !important; + } +} + +// Order-total +.order-details-total { + text-align: center; + + .order-total { + font-size: 35px; + font-weight: 600; + color: $color-success; + } +} + +.admin-order-form-fields { + legend.stock-location { + color: $color-body-text; + + .shipment-number { + color: $color-success; + } + .stock-location-name { + color: $color-success; + } + } +} + +.insufficient-stock-items { + legend { + color: $color-error; + } + + table tr:last-child th { + border-bottom: 1px solid $color-tbl-border; + } +} + +// Customize orduct add fieldset +#add-line-item { + fieldset { + padding: 10px 0; + + .field { + margin-bottom: 0; + + input[type="text"], + input[type="number"] { + width: 100%; + } + } + .actions { + .button { + margin-top: 28px; + } + } + } +}