This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 942
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Amazon CSS to new design * Remove old JS * Update brand class * Move ratings into price container * Use new showBrand variable * Update css for --has-brand class * More tweaks to footer styles * Increase webkit lineclamp to 3 when no brand * Remove absolute position, not needed * Add CSS for mobile screens * Remove custom CSS, moved to internal CSS * Remove opt--t-xxs class * Fix vertical alignment of footer elements * Add back right float
- Loading branch information
Showing
3 changed files
with
12 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
<div class="tile tile--pr tile--c has-detail tile--{{parentId}} opt--t-xxs" data-link="{{url}}"> | ||
<div class="tile tile--pr tile--c has-detail tile--{{parentId}} {{#if showBrand}}tile--has-brand{{/if}}" data-link="{{url}}"> | ||
<div class="tile__media tile__media--pr"> | ||
<img src="" data-src="{{{imageProxy img}}}" alt="{{title}}" class="tile__media__img js-lazyload" /> | ||
{{#and showBadge meta.options.badge}}{{{include meta.options.badge}}}{{/and}} | ||
</div> | ||
<div class="tile__body tile__body--pr"> | ||
{{#and brand brand_query}} | ||
{{{formatTitle brand el="h5" className="tile__title--brand" classNameSec="tile__title--pr" href="brand_query" optSub=true ellipsis=100}}} | ||
{{/and}} | ||
{{#if showBrand}} | ||
{{{formatTitle brand el="h5" className="tile__title tile__title--brand" classNameSec="tile__title--pr" href="brand_query" optSub=true ellipsis=100}}} | ||
{{/if}} | ||
{{#if url}} | ||
{{{formatTitle heading el="h6" className="tile__title" classNameSec="tile__title--pr" href="url" optSub=true ellipsis=100}}} | ||
{{else}} | ||
{{{formatTitle heading el="h6" className="tile__title" classNameSec="tile__title--pr" optSub=true ellipsis=100}}} | ||
{{{formatTitle heading el="h6" className="tile__title" classNameSec="tile__title--pr" optSub=true ellipsis=100}}} | ||
{{/if}} | ||
<div class="tile__tx tile--pr__sub one-line"> | ||
<div class="tile--pr__sub one-line"> | ||
{{#and meta.options.price price}} | ||
<span class="tile--pr__price price">{{price}}</span> | ||
<span class="tile--pr__price price pull-left">{{price}}</span> | ||
{{/and}} | ||
</div> | ||
{{#if meta.options.rating}} | ||
<div class="tile__tx tile__rating one-line"> | ||
{{{starsAndReviews rating reviewCount url_review true}}} | ||
</div> | ||
<span class="tile--pr__rating tile__rating pull-right"> | ||
{{{starsAndReviews rating reviewCount url_review true}}} | ||
</span> | ||
{{/if}} | ||
</div> | ||
</div> | ||
</div> | ||
|