feat: style adjustments to product page
This commit is contained in:
parent
31a651365d
commit
45a56288bb
@ -160,8 +160,8 @@ body.product-page {
|
|||||||
min-height: 70vh;
|
min-height: 70vh;
|
||||||
|
|
||||||
.product-title {
|
.product-title {
|
||||||
font-size: 16px;
|
font-size: 24px;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,15 +175,35 @@ body.product-page {
|
|||||||
color: var(--gray-800);
|
color: var(--gray-800);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.product-image {
|
.product-image {
|
||||||
border-color: var(--table-border-color) !important;
|
border-color: var(--table-border-color) !important;
|
||||||
img {
|
padding: 15px;
|
||||||
min-height: 320px;
|
|
||||||
max-height: 30rem;
|
@include media-breakpoint-between(xs, md) {
|
||||||
min-width: 320px;
|
height: 320px;
|
||||||
|
width: 320px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
height: 430px;
|
||||||
|
width: 420px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-slideshow {
|
||||||
|
@include media-breakpoint-between(xs, md) {
|
||||||
|
max-height: 320px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
max-height: 430px;
|
||||||
|
}
|
||||||
|
|
||||||
|
overflow: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-slideshow-image {
|
.item-slideshow-image {
|
||||||
@ -216,11 +236,22 @@ body.product-page {
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-breadcrumbs {
|
||||||
|
.breadcrumb-container {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $text-muted;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-group-slideshow {
|
.item-group-slideshow {
|
||||||
.item-group-description {
|
.item-group-description {
|
||||||
max-width: 800px;
|
// max-width: 900px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.carousel-inner.rounded-carousel {
|
.carousel-inner.rounded-carousel {
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
{% block title %} {{ title }} {% endblock %}
|
{% block title %} {{ title }} {% endblock %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{% include "templates/includes/breadcrumbs.html" %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
<div class="col-md-8">
|
<div class="col-md-7">
|
||||||
<!-- title -->
|
<!-- title -->
|
||||||
<div class="product-title" itemprop="name">
|
<div class="item-breadcrumbs small text-muted">
|
||||||
{{ item_name }}
|
{% include "templates/includes/breadcrumbs.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
<h1 class="product-title" itemprop="name">
|
||||||
|
{{ item_name }}
|
||||||
|
</h1>
|
||||||
<p class="product-code">
|
<p class="product-code">
|
||||||
<span>{{ _("Item Code") }}:</span>
|
<span>{{ _("Item Code") }}:</span>
|
||||||
<span itemprop="productID">{{ doc.name }}</span>
|
<span itemprop="productID">{{ doc.name }}</span>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="col-md-4 h-100 d-flex">
|
<div class="col-md-5 h-100 d-flex">
|
||||||
{% if slides %}
|
{% if slides %}
|
||||||
<div class="item-slideshow d-flex flex-column mr-3">
|
<div class="item-slideshow d-flex flex-column mr-3">
|
||||||
{% for item in slides %}
|
{% for item in slides %}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro product_image(website_image, css_class="", alt="") %}
|
{% macro product_image(website_image, css_class="", alt="") %}
|
||||||
<div class="border text-center rounded h-100 {{ css_class }}" style="overflow: hidden;">
|
<div class="border text-center rounded {{ css_class }}" style="overflow: hidden;">
|
||||||
<img itemprop="image" class="website-image h-100 w-100" alt="{{ alt }}" src="{{ frappe.utils.quoted(website_image or 'no-image.jpg') | abs_url }}">
|
<img itemprop="image" class="website-image h-100 w-100" alt="{{ alt }}" src="{{ frappe.utils.quoted(website_image or 'no-image.jpg') | abs_url }}">
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
@ -113,5 +113,5 @@
|
|||||||
<div class="product-price">{{ rate or '' }}</div>
|
<div class="product-price">{{ rate or '' }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<a href="{{ url or '#' }}" class="stretched-link"></a>
|
<a href="/{{ url or '#' }}" class="stretched-link"></a>
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
Loading…
x
Reference in New Issue
Block a user