Skip to content

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

Fix modals according to material design style guide

weronka893786689e6c
diff --git a/saleor/static/scss/dashboard/components/_card.scss b/saleor/static/scss/dashboard/components/_card.scss
index 7c44b4bcd3..c4e1d5b13f 100644
--- a/saleor/static/scss/dashboard/components/_card.scss
+++ b/saleor/static/scss/dashboard/components/_card.scss
@@ -9,6 +9,9 @@
&--no-data {
padding-top: 6px;
}
+ &.card-content-form {
+ padding: 24px 16px 16px;
+ }
}
.row {
margin-bottom: 0;
diff --git a/templates/dashboard/discount/sale_form.html b/templates/dashboard/discount/sale_form.html
index 7a68fcce13..23bfef26e9 100644
--- a/templates/dashboard/discount/sale_form.html
+++ b/templates/dashboard/discount/sale_form.html
@@ -50,7 +50,7 @@
<div class="col m12 l9">
<div class="card">
<form method="post" enctype="multipart/form-data" id="form-sales" novalidate>
- <div class="card-content">
+ <div class="card-content card-content-form">
{% csrf_token %}
<div class="row">
{{ form.name|materializecss }}
diff --git a/templates/dashboard/discount/voucher_form.html b/templates/dashboard/discount/voucher_form.html
index c8f3c2727a..acfff01cb3 100644
--- a/templates/dashboard/discount/voucher_form.html
+++ b/templates/dashboard/discount/voucher_form.html
@@ -49,7 +49,7 @@
<div class="col m12 l9">
<div class="card">
<form method="post" enctype="multipart/form-data" id="form-vouchers" novalidate>
- <div class="card-content">
+ <div class="card-content card-content-form">
{% csrf_token %}
{% if form.non_field_errors %}
<blockquote>
diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.html
index cd32a68e28..24ffbc60eb 100644
--- a/templates/dashboard/order/detail.html
+++ b/templates/dashboard/order/detail.html
@@ -71,7 +71,7 @@
<div class="col s12 l4 switch-two-columns">
<div class="card">
<div class="card-content">
- <h5 class="card-title">{% trans "Order summary" context "Order summary title" %}</h5>
+ <span class="card-title">{% trans "Order summary" context "Order summary title" %}</span>
<div class="row">
<div class="col s12 m4 l12">
diff --git a/templates/dashboard/product/attributes/form.html b/templates/dashboard/product/attributes/form.html
index b790bfb4e3..9939827fc6 100644
--- a/templates/dashboard/product/attributes/form.html
+++ b/templates/dashboard/product/attributes/form.html
@@ -50,7 +50,7 @@
<div class="col m12 l9">
<div class="card">
<form method="post" enctype="multipart/form-data" id="form-attributes" novalidate>
- <div class="card-content">
+ <div class="card-content card-content-form">
{% csrf_token %}
<div class="row">
{{ form.display|materializecss }}
diff --git a/templates/dashboard/product/product_class_form.html b/templates/dashboard/product/product_class_form.html
index fa64dfcd05..600b280c1f 100644
--- a/templates/dashboard/product/product_class_form.html
+++ b/templates/dashboard/product/product_class_form.html
@@ -51,7 +51,7 @@
<div class="col m12 l9">
<div class="card">
<form method="post" id="form-product" enctype="multipart/form-data" novalidate>
- <div class="card-content">
+ <div class="card-content card-content-form">
{% csrf_token %}
<div class="row">
{{ form.name|materializecss }}
diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.html
index aef4105d8f..495b010000 100644
--- a/templates/dashboard/product/product_form.html
+++ b/templates/dashboard/product/product_form.html
@@ -100,9 +100,9 @@
<form method="post" class="card" id="form-product" enctype="multipart/form-data" novalidate>
{% csrf_token %}
<div class="card-content">
- <h5 class="card-title">
+ <span class="card-title">
{{ product.product_class }}
- </h5>
+ </span>
<div class="row">
<div class="col s12 l8" >
<div class="row">
diff --git a/templates/dashboard/product/stock_locations/form.html b/templates/dashboard/product/stock_locations/form.html
index 0263f28c07..cad79002cf 100644
--- a/templates/dashboard/product/stock_locations/form.html
+++ b/templates/dashboard/product/stock_locations/form.html
@@ -45,7 +45,7 @@
<div class="col m12 l9">
<div class="card">
<form method="post" id="form-product" novalidate>
- <div class="card-content">
+ <div class="card-content card-content-form">
{% csrf_token %}
<div class="row">
diff --git a/templates/dashboard/sites/detail.html b/templates/dashboard/sites/detail.html
index 41d6ed22c9..47b67dfb40 100644
--- a/templates/dashboard/sites/detail.html
+++ b/templates/dashboard/sites/detail.html
@@ -19,7 +19,7 @@
<div class="col m12 l9">
<div class="card">
<form method="post" id="form-category" enctype="multipart/form-data" novalidate>
- <div class="card-content">
+ <div class="card-content card-content-form">
{% csrf_token %}
<div class="row">
{{ form.name|materializecss }}