fix: minor styling fixes
This commit is contained in:
parent
eb0e596d43
commit
bba2726333
@ -1,5 +1,9 @@
|
|||||||
@import "frappe/public/scss/desk/variables";
|
@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 {
|
.carousel-control {
|
||||||
height: 42px;
|
height: 42px;
|
||||||
@ -50,6 +54,11 @@
|
|||||||
height: 360px;
|
height: 360px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: 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 {
|
// .card-body {
|
||||||
@ -81,6 +90,10 @@
|
|||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 6;
|
-webkit-line-clamp: 6;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-category {
|
.product-category {
|
||||||
@ -141,7 +154,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.product-page {
|
.product-container {
|
||||||
@include card($padding: var(--padding-md));
|
@include card($padding: var(--padding-md));
|
||||||
min-height: 70vh;
|
min-height: 70vh;
|
||||||
|
|
||||||
|
@ -317,6 +317,7 @@ class Item(WebsiteGenerator):
|
|||||||
context.search_link = '/product_search'
|
context.search_link = '/product_search'
|
||||||
|
|
||||||
context.parents = get_parent_item_groups(self.item_group)
|
context.parents = get_parent_item_groups(self.item_group)
|
||||||
|
context.body_class = "product-page"
|
||||||
|
|
||||||
self.set_variant_context(context)
|
self.set_variant_context(context)
|
||||||
self.set_attribute_context(context)
|
self.set_attribute_context(context)
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
<div class="product-page">
|
<div class="product-container">
|
||||||
{% from "erpnext/templates/includes/macros.html" import product_image %}
|
{% from "erpnext/templates/includes/macros.html" import product_image %}
|
||||||
<div class="item-content">
|
<div class="item-content">
|
||||||
<div class="product-page-content" itemscope itemtype="http://schema.org/Product">
|
<div class="product-page-content" itemscope itemtype="http://schema.org/Product">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user