fix: minor styling fixes

This commit is contained in:
Shivam Mishra 2020-12-24 14:14:17 +05:30
parent eb0e596d43
commit bba2726333
3 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,9 @@
@import "frappe/public/scss/desk/variables";
@import "frappe/public/scss/mixins";
@import "frappe/public/scss/desk/mixins";
body.product-page {
background: var(--gray-50);
}
.carousel-control {
height: 42px;
@ -50,6 +54,11 @@
height: 360px;
align-items: center;
justify-content: center;
&:hover {
box-shadow: 0px 16px 60px rgba(0, 0, 0, 0.08), 0px 8px 30px -20px rgba(0, 0, 0, 0.04);
transition: box-shadow 400ms;
}
}
// .card-body {
@ -81,6 +90,10 @@
display: -webkit-box;
-webkit-line-clamp: 6;
-webkit-box-orient: vertical;
p {
margin-bottom: 0.5rem;
}
}
.product-category {
@ -141,7 +154,7 @@
}
}
.product-page {
.product-container {
@include card($padding: var(--padding-md));
min-height: 70vh;

View File

@ -317,6 +317,7 @@ class Item(WebsiteGenerator):
context.search_link = '/product_search'
context.parents = get_parent_item_groups(self.item_group)
context.body_class = "product-page"
self.set_variant_context(context)
self.set_attribute_context(context)

View File

@ -7,7 +7,7 @@
{% endblock %}
{% block page_content %}
<div class="product-page">
<div class="product-container">
{% from "erpnext/templates/includes/macros.html" import product_image %}
<div class="item-content">
<div class="product-page-content" itemscope itemtype="http://schema.org/Product">