Merge pull request 'refactor: update product and my-account page styles' (#7) from abhisheks/theme-elegance:main into main

Reviewed-on: brooksbingham/theme-elegance#7
pagebuilder
abhisheks 2023-11-30 16:31:46 +00:00
commit 9348891e8b
4 changed files with 17 additions and 28 deletions

View File

@ -1,25 +1,17 @@
<div class="w-full" id="product-details"> {block name='product_features'}
{if $product.grouped_features}
{block name='product_features'} <div class='w-full flex items-center flex-col'>
{if $product.grouped_features} <h1 class='text-base font-semibold text-gray-600'>
Description
</h1>
<ul class="product-features list-[square] w-full"> <ul class="product-features list-[square] w-full">
{foreach from=$product.grouped_features item=feature} {foreach from=$product.grouped_features item=feature}
<li> <li>
<span class="name inline-flex w-16 font-semibold">{$feature.name}</span> <span class="name inline-flex w-40 font-semibold">{$feature.name}</span>
<span class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</span> <span class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</span>
</li> </li>
{/foreach} {/foreach}
</ul> </ul>
{/if} </div>
{/block} {/if}
{/block}
{block name='product_condition'}
{if $product.condition}
<div class="product-condition">
<label class="label">{l s='Condition' d='Shop.Theme.Catalog'} </label>
<link itemprop="itemCondition" href="{$product.condition.schema_url}"/>
<span>{$product.condition.label}</span>
</div>
{/if}
{/block}
</div>

View File

@ -137,9 +137,6 @@
{block name='product_tabs'} {block name='product_tabs'}
<div class='w-full flex items-center flex-col mt-12'> <div class='w-full flex items-center flex-col mt-12'>
<h1 class='text-base font-semibold text-gray-600'>
Description
</h1>
{block name='product_details'} {block name='product_details'}
{include file='catalog/_partials/product-details.tpl'} {include file='catalog/_partials/product-details.tpl'}
{/block} {/block}

View File

@ -25,7 +25,7 @@
<div class="flex"> <div class="flex">
{foreach from=$cart.subtotals item="subtotal"} {foreach from=$cart.subtotals item="subtotal"}
{if $subtotal.value && $subtotal.type !== 'tax'} {if $subtotal && $subtotal.value|count_characters > 0 && $subtotal.type !== 'tax'}
<div class="flex justify-between font-medium" id="cart-subtotal-{$subtotal.type}"> <div class="flex justify-between font-medium" id="cart-subtotal-{$subtotal.type}">
<span> <span>
{$subtotal.label} {$subtotal.label}

View File

@ -32,7 +32,7 @@
{block name='page_content'} {block name='page_content'}
<div class="w-full my-8"> <div class="w-full my-8">
<div class="links flex justify-center flex-wrap py-4"> <div class="links flex flex-wrap py-4">
<a class="w-full md:w-1/3 lg:w-1/4 flex flex-col p-4 border-gray-500" id="identity-link" href="{$urls.pages.identity}"> <a class="w-full md:w-1/3 lg:w-1/4 flex flex-col p-4 border-gray-500" id="identity-link" href="{$urls.pages.identity}">
<span class="flex flex-col items-center font-semibolds text-lg"> <span class="flex flex-col items-center font-semibolds text-lg">