diff --git a/erpnext/public/scss/shopping_cart.scss b/erpnext/public/scss/shopping_cart.scss index de55c50619..16a19ad270 100644 --- a/erpnext/public/scss/shopping_cart.scss +++ b/erpnext/public/scss/shopping_cart.scss @@ -160,8 +160,8 @@ body.product-page { min-height: 70vh; .product-title { - font-size: 16px; - font-weight: 500; + font-size: 24px; + font-weight: 600; color: var(--text-color); } @@ -175,15 +175,35 @@ body.product-page { color: var(--gray-800); } - - .product-image { border-color: var(--table-border-color) !important; - img { - min-height: 320px; - max-height: 30rem; - min-width: 320px; + padding: 15px; + + @include media-breakpoint-between(xs, md) { + 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 { @@ -216,11 +236,22 @@ body.product-page { font-size: 14px; } } + + .item-breadcrumbs { + .breadcrumb-container { + margin: 0px; + padding: 0px; + + a { + color: $text-muted; + } + } + } } .item-group-slideshow { .item-group-description { - max-width: 800px; + // max-width: 900px; } .carousel-inner.rounded-carousel { diff --git a/erpnext/templates/generators/item/item.html b/erpnext/templates/generators/item/item.html index a456179516..889908031e 100644 --- a/erpnext/templates/generators/item/item.html +++ b/erpnext/templates/generators/item/item.html @@ -3,7 +3,6 @@ {% block title %} {{ title }} {% endblock %} {% block breadcrumbs %} - {% include "templates/includes/breadcrumbs.html" %} {% endblock %} {% block page_content %} diff --git a/erpnext/templates/generators/item/item_details.html b/erpnext/templates/generators/item/item_details.html index 9a0bb5cfc3..6a85ca50e6 100644 --- a/erpnext/templates/generators/item/item_details.html +++ b/erpnext/templates/generators/item/item_details.html @@ -1,8 +1,11 @@ -
+
-
- {{ item_name }} +
+ {% include "templates/includes/breadcrumbs.html" %}
+

+ {{ item_name }} +

{{ _("Item Code") }}: {{ doc.name }} diff --git a/erpnext/templates/generators/item/item_image.html b/erpnext/templates/generators/item/item_image.html index fa70ebe998..39a30d0d7c 100644 --- a/erpnext/templates/generators/item/item_image.html +++ b/erpnext/templates/generators/item/item_image.html @@ -1,4 +1,4 @@ -

+
{% if slides %}
{% for item in slides %} diff --git a/erpnext/templates/includes/macros.html b/erpnext/templates/includes/macros.html index 1523b0d9fd..74c84ba27c 100644 --- a/erpnext/templates/includes/macros.html +++ b/erpnext/templates/includes/macros.html @@ -8,7 +8,7 @@ {% endmacro %} {% macro product_image(website_image, css_class="", alt="") %} -
+
{{ alt }}
{% endmacro %} @@ -113,5 +113,5 @@
{{ rate or '' }}
{% endif %}
- + {%- endmacro -%} \ No newline at end of file