Commit 978cd70b by halweg

size样式美化

parent 25a89c00
......@@ -80,8 +80,10 @@
$chartTableArray = [];
$chartInfo = '';
$chartEnabled = 1;
$sizeDesc = '';
if ($sizeChart != null) {
$chartTable = $sizeChart->getData('custom_size');
$sizeDesc = $sizeChart->getData('description');
$chartTableArray = json_decode($chartTable, true);
$chartInfo = $sizeChart->getData('sizechart_info');
}
......@@ -101,7 +103,7 @@
}
#chart-details .tbody .td:first-child {
font-weight: bold;
/*font-weight: bold;*/
}
#fme_sizechart_table {
......@@ -115,7 +117,9 @@
border: 1px solid #111;
padding:8px 0;
color: #fff;
/*
font-weight: 600 !important;
*/
}
#fme_sizechart_table .td {
......@@ -123,7 +127,9 @@
}
#fme_sizechart_table .td.bold {
/*
font-weight:600 !important;
*/
}
#fme_sizechart_table .th, .table .td {
......@@ -318,8 +324,9 @@
<li class="lastli lastli-right" style="cursor:pointer">X</li>
</ul>
<div class="area-content">
<div id="size-chart" style="display: none;">
<div id="size-chart" style="display: none;padding: 1.6em;">
<?php if ($chartBlock->isEnabled() && (count($chartTableArray) > 1)): ?>
<h4 class="joshine-text-center">Size Guide</h4>
<div id="chart-details">
<div class="chart-size-switch ">
<input type="hidden" value="">
......@@ -355,6 +362,9 @@
</div>
</div>
</div>
<?php if($sizeDesc): ?>
<span class="size-desc"><?= $sizeDesc ?></span>
<?php endif; ?>
<?php echo $chartBlock->getContentFromStaticBlock($chartInfo);?>
<?php else: ?>
<?php
......@@ -386,6 +396,16 @@
<div id="areaMask" class="mask"></div>
</li>
<style>
.size-chart {
padding-right: 20px !important;
padding-left: 20px !important;
}
.size-desc {
font-size: .85em;
color: #9E9E9E;
display: inline-block;
margin-bottom: 1em;
}
#product-intro__freeshipping-more-3{
display: revert;
color: #2d68a;
......
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