Commit 720941f2 by lmf

优化评论列表样式

尺码弹窗位置优化
parent 6ab17bb3
// Generating css file. Path from vendor/magento/theme-frontend-blank
@import (reference) '../../../lib::css/source/lib/_lib.less'; // Library files
@import (reference) '../../../lib::css/source/lib/_responsive.less'; // Global responsive
@import '../_module.less';
...@@ -19,15 +19,16 @@ ...@@ -19,15 +19,16 @@
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('product-intro-size-chart')->toHtml();?> <?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('product-intro-size-chart')->toHtml();?>
</div> </div>
</div> </div>
<div id="product-intro__freeshipping-more-3" data-trigger="trigger">
<a href="javascript:void(0);">Size Guide</a></span></div>
<style> <style>
#product-intro__freeshipping-more-3{ #product-intro__freeshipping-more-3{
display: inline-block; display: inline-block;
color: #2d68a8; color: #000;
font-size: 12px; font-size: 12px;
line-height: 1; line-height: 1;
margin-top: -10px; margin-top: -10px;
font-weight: 700;
margin-left: 80%;
} }
.action.primary.tocart{ .action.primary.tocart{
font-size: 18px; font-size: 18px;
...@@ -113,5 +114,13 @@ ...@@ -113,5 +114,13 @@
'jquery' 'jquery'
], function ($) { ], function ($) {
$("#wishlist").html($(".product-addto-links > div:first").html()); $("#wishlist").html($(".product-addto-links > div:first").html());
setTimeout(function(){
if ($("div").hasClass("swatch-attribute size")){
var size = '<div id="product-intro__freeshipping-more-3" data-trigger="trigger">\n' +
' <a href="javascript:void(0);">Size Guide</a></span></div>';
$(".swatch-attribute.size > span:last").after(size);
}
},1000);
}); });
</script> </script>
...@@ -1787,3 +1787,25 @@ background-color: #000; ...@@ -1787,3 +1787,25 @@ background-color: #000;
} }
@media (min-width: 768px){
.review-list .review-details{
width: 20%;
}
.amreview-description-wrap{
width: 75%;
}
.amreview-author-details .amreview-recommended{
font-size: 12px;
width: 100px;
margin-top: 30px;
max-width: 100px;
}
.amreview-author-details .amreview-date{
position: inherit;
}
.review-list .review-item{
flex-direction: inherit !important;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment