Skip to content

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

Remove legacy category-page

Pacu211af19cb6297
diff --git a/saleor/static/scss/layouts/_category-page.scss b/saleor/static/scss/layouts/_category-page.scss
deleted file mode 100644
index e6381f9a22..0000000000
--- a/saleor/static/scss/layouts/_category-page.scss
+++ /dev/null
@@ -1,29 +0,0 @@
-#category-page {
- h2 {
- font-weight: bold;
- padding-bottom: $global-padding / 2;
- }
- .breadcrumbs {
- margin: 0;
- }
- .category-list {
- margin-top: $global-margin;
- &--loading {
- opacity: 0.5;
- transition: 0.3s;
- }
- }
- .category-top {
- border-bottom: solid 1px $gray;
- padding: $global-padding 0;
- @include media-breakpoint-down(sm) {
- width: 100%;
- position: fixed;
- background: $white;
- z-index: 3;
- top: 5.7rem;
- left: 0;
- padding-top: $global-padding;
- }
- }
-}
diff --git a/saleor/static/scss/storefront.scss b/saleor/static/scss/storefront.scss
index d6c867caa6..27876e1fe8 100644
--- a/saleor/static/scss/storefront.scss
+++ b/saleor/static/scss/storefront.scss
@@ -19,7 +19,6 @@
@import "layouts/account";
@import "layouts/cart";
-@import "layouts/category-page";
@import "layouts/checkout";
@import "layouts/home";
@import "layouts/login";
diff --git a/templates/base.html b/templates/base.html
index f9bb96cd17..42b039ca4f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -154,6 +154,8 @@
</div>
</header>
{% endblock %}
+{% block topcontent %}
+{% endblock topcontent %}
<div class="container maincontent">
{% if messages %}
{% for message in messages %}
diff --git a/templates/product/product_list_base.html b/templates/product/product_list_base.html
index e16305948c..4637396e82 100644
--- a/templates/product/product_list_base.html
+++ b/templates/product/product_list_base.html
@@ -98,10 +98,13 @@
</div>
{% endblock %}
+{% block topcontent %}
+ {% if object.background_image %}
+ <div class="row" id="category-image" style="background-image: url('{{ object.background_image.url }}')"></div>
+ {% endif %}
+{% endblock topcontent %}
+
{% block content %}
- <div class="row">
-
- </div>
<div id="product-list-page">
<div class="row">
<div class="col-md-4 col-lg-3">