badge-design in rtl
This commit is contained in:
parent
63d3c7b554
commit
9e03cd121b
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"/js/velocity.js": "/js/velocity.js?id=226121407d7f6a559c67",
|
||||
"/css/velocity-admin.css": "/css/velocity-admin.css?id=612d35e452446366eef7",
|
||||
"/css/velocity.css": "/css/velocity.css?id=91aa43446b2111505847"
|
||||
"/css/velocity.css": "/css/velocity.css?id=cc482075060e64cbc228"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -322,18 +322,22 @@ class Helper extends Review
|
|||
}
|
||||
}
|
||||
|
||||
$priceHTML = view('shop::products.price', ['product' => $product])->render();
|
||||
|
||||
$isProductNew = ($product->new && ! strpos($priceHTML, 'sticker sale') > 0) ? __('shop::app.products.new') : false;
|
||||
|
||||
return [
|
||||
'priceHTML' => $priceHTML,
|
||||
'avgRating' => $avgRatings,
|
||||
'totalReviews' => $totalReviews,
|
||||
'image' => $productImage,
|
||||
'new' => $isProductNew,
|
||||
'galleryImages' => $galleryImages,
|
||||
'name' => $product->name,
|
||||
'slug' => $product->url_key,
|
||||
'description' => $product->description,
|
||||
'shortDescription' => $product->short_description,
|
||||
'firstReviewText' => trans('velocity::app.products.be-first-review'),
|
||||
'new' => $product->new ? __('shop::app.products.new') : false,
|
||||
'priceHTML' => view('shop::products.price', ['product' => $product])->render(),
|
||||
'defaultAddToCart' => view('shop::products.add-buttons', ['product' => $product])->render(),
|
||||
'addToCartHtml' => view('shop::products.add-to-cart', [
|
||||
'product' => $product,
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@
|
|||
.badge-wrapper,
|
||||
.badge-container {
|
||||
top: -2px;
|
||||
left: -7px;
|
||||
left: -12px;
|
||||
position: relative;
|
||||
|
||||
.badge {
|
||||
|
|
|
|||
|
|
@ -51,8 +51,22 @@ body {
|
|||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.vc-header {
|
||||
> div {
|
||||
&.vc-small-screen {
|
||||
.right-vc-header {
|
||||
.badge-container {
|
||||
left: -4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.main-content-wrapper .vc-header
|
||||
|
||||
.mini-cart-container {
|
||||
#mini-cart {
|
||||
.badge {
|
||||
|
|
@ -363,6 +377,22 @@ body {
|
|||
}
|
||||
}
|
||||
|
||||
.advertisement-three-container {
|
||||
.second-panel {
|
||||
padding-right: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.advertisement-two-container {
|
||||
.row {
|
||||
padding: 0 !important;
|
||||
|
||||
.pr0 {
|
||||
padding-right: 15px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Shared
|
||||
.text-right {
|
||||
text-align: left !important;
|
||||
|
|
@ -370,6 +400,9 @@ body {
|
|||
.text-left {
|
||||
text-align: right !important;
|
||||
}
|
||||
.pr0 {
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
.pl0 {
|
||||
padding-right: 0px !important;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue