Skip to content

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

CSS fixes

Pacu2fbe8933a8a58
diff --git a/saleor/static/dashboard/scss/components/_chars-left.scss b/saleor/static/dashboard/scss/components/_chars-left.scss
new file mode 100644
index 0000000000..63c9fc2e00
--- /dev/null
+++ b/saleor/static/dashboard/scss/components/_chars-left.scss
@@ -0,0 +1,10 @@
+.chars-left {
+ align-items: baseline;
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ &__label {
+ position: relative!important;
+ margin-left: -10px;
+ }
+}
diff --git a/saleor/static/dashboard/scss/components/_form.scss b/saleor/static/dashboard/scss/components/_form.scss
index 4dc55fbf1a..bebe318722 100644
--- a/saleor/static/dashboard/scss/components/_form.scss
+++ b/saleor/static/dashboard/scss/components/_form.scss
@@ -245,3 +245,10 @@
.main form, .modal form {
@include form;
}
+
+.is_featured_checkbox {
+ .input.input-field {
+ padding-top: 0!important;
+ padding-bottom: 10px;
+ }
+}
diff --git a/saleor/static/dashboard/scss/components/_google-preview.scss b/saleor/static/dashboard/scss/components/_google-preview.scss
index 58e987ae0d..c097d4a6ca 100644
--- a/saleor/static/dashboard/scss/components/_google-preview.scss
+++ b/saleor/static/dashboard/scss/components/_google-preview.scss
@@ -2,6 +2,7 @@
text-align: left;
letter-spacing: initial;
&__container {
+ padding: 10px 0 0 10px;
background-color: #fff;
max-width: 600px;
}
diff --git a/saleor/static/dashboard/scss/dashboard.scss b/saleor/static/dashboard/scss/dashboard.scss
index c36fd9dfff..5168c6b21c 100644
--- a/saleor/static/dashboard/scss/dashboard.scss
+++ b/saleor/static/dashboard/scss/dashboard.scss
@@ -9,6 +9,7 @@
@import "components/breadcrumbs";
@import "components/buttons";
@import "components/card-collapse";
+@import "components/chars-left";
@import "components/data-table";
@import "components/dropzone";
@import "components/form";
@@ -32,15 +33,3 @@
@import "layouts/search-results";
@import "layouts/style-guide";
@import "print";
-
-
-.chars-left {
- align-items: baseline;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- &__label {
- position: relative!important;
- margin-left: -10px;
- }
-}
diff --git a/templates/dashboard/includes/_google_preview.html b/templates/dashboard/includes/_google_preview.html
index 8ea2fe0b6a..645eac8cfe 100644
--- a/templates/dashboard/includes/_google_preview.html
+++ b/templates/dashboard/includes/_google_preview.html
@@ -1,8 +1,8 @@
{% load build_absolute_uri from urls %}
{% load materializecss %}
{% load i18n %}
-<span class="card-title">{% trans "Search engine listing preview" context "Title of the box showing preview from the search engine perspective" %}</span>
<div class='google-preview'>
+ <span class="card-title">{% trans "Search engine listing preview" context "Title of the box showing preview from the search engine perspective" %}</span>
<div class='google-preview__container'>
<br>
<div id="preview-error"></div>
diff --git a/templates/dashboard/page/form.html b/templates/dashboard/page/form.html
index 79ce3512c1..bdeed703e4 100644
--- a/templates/dashboard/page/form.html
+++ b/templates/dashboard/page/form.html
@@ -60,8 +60,12 @@
<div class="row">
<div class="card-content">
<div class="col s12 l8">
- {{ form.title|materializecss }}
- {{ form.content|materializecss }}
+ <div class="row">
+ {{ form.title|materializecss }}
+ </div>
+ <div class="row">
+ {{ form.content|materializecss }}
+ </div>
{% include "dashboard/includes/_google_preview.html" with object=page form=form %}
</div>
<div class="col s12 l4">
diff --git a/templates/dashboard/product/form.html b/templates/dashboard/product/form.html
index 8f43ec6c42..ca32623a1d 100644
--- a/templates/dashboard/product/form.html
+++ b/templates/dashboard/product/form.html
@@ -77,7 +77,7 @@
<div class="col s12 m3">
{{ product_form.is_published|materializecss }}
</div>
- <div class="col s12 m5">
+ <div class="col s12 m9">
{{ product_form.available_on|materializecss }}
</div>
</div>
@@ -98,7 +98,7 @@
<div class="row">
{{ product_form.collections|materializecss }}
</div>
- <div class="row">
+ <div class="row is_featured_checkbox">
{{ product_form.is_featured|materializecss }}
</div>
<div class="row">