From 2072ed601dd629fc03385a86287e5fdca2782c80 Mon Sep 17 00:00:00 2001 From: "vishalsingh.qlo325" Date: Tue, 23 Jul 2024 18:14:58 +0530 Subject: [PATCH] Updated the desing for the hotel rating for the mobile view --- .../hotel-reservation-theme/css/product.css | 28 +++++++++++++++---- themes/hotel-reservation-theme/product.tpl | 4 +-- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/themes/hotel-reservation-theme/css/product.css b/themes/hotel-reservation-theme/css/product.css index 8ffed6c0b..984d98e98 100644 --- a/themes/hotel-reservation-theme/css/product.css +++ b/themes/hotel-reservation-theme/css/product.css @@ -1213,8 +1213,8 @@ Quick View Styles margin-bottom: 10px;} .hotel_name_block { -display: flex; -margin-bottom: 10px; + display: flex; + margin-bottom: 10px; } .hotel_name_block h1 { font-size: 22px; @@ -1724,10 +1724,26 @@ ul.service-product-nav > li:hover { #room_info_hotel_images .skeleton-loading-wrap .loading-container-box { height: 200px; } #hotel_rating { + position:relative; + top: -3px; display: inline-flex; - color: #3e3d3d; + color: #333; gap: 1px; - font-size: 12px; - margin-left: 10px; - margin-top: 8px; } + #hotel_rating i { + font-size: 12px; + } +@media (min-width:768px) { + .hotel_name_block{ + flex-wrap: wrap; + } + .hotel_name{ + margin-right: 10px; + } +} +@media (max-width:768px) { + #hotel_rating { + margin-left: 0px; + display: block; + } +} \ No newline at end of file diff --git a/themes/hotel-reservation-theme/product.tpl b/themes/hotel-reservation-theme/product.tpl index 0e1c3f47b..75615b50f 100644 --- a/themes/hotel-reservation-theme/product.tpl +++ b/themes/hotel-reservation-theme/product.tpl @@ -68,9 +68,9 @@
-

{$product->name} +

{$product->name} {* Block for booking products *} - {if isset($id_hotel) && $id_hotel} - {$hotel_name}{/if} + {if isset($id_hotel) && $id_hotel} - {$hotel_name}{/if}{if isset($hotel_rating) && $hotel_rating}
{for $i=0; $i < $hotel_rating; $i++}{/for}
{/if}

{if isset($hotel_rating) && $hotel_rating}
{for $i=0; $i < $hotel_rating; $i++}{/for}
{/if} {hook h='displayRoomTypeDetailRoomTypeNameBlock' id_product=$product->id}