app/template/default/Block/check_product.twig line 1

Open in your IDE?
  1. {#
  2. /*
  3.  * This file is part of the CheckProduct plugin
  4.  *
  5.  * Copyright(c) 2019 SYSTEM FRIEND INC.
  6.  *
  7.  */
  8. #}
  9. {% if CheckProducts|length > 0 %}
  10.     <div class="ec-role custom_zuijin">
  11.       <div class="section-header section-header--with-link">
  12.             <div class="ec-secHeading">
  13.                 <span class="ec-secHeading__en">{{'CheckProduct4.front.block.check_products.title.en'|trans}}</span>
  14.                 <span class="ec-secHeading__line"></span>
  15.                 <span class="ec-secHeading__ja">{{'CheckProduct4.front.block.check_products.title.ja'|trans}}</span>
  16.             </div>
  17.             <div>
  18.                 <div class="ec-checkProductItemRole__list">
  19.                     {% for Product in CheckProducts %}
  20.                         <div class="ec-checkProductRole__listItem">
  21.                             <a href="{{ url('product_detail', {'id' : Product.id}) }}" class="item_photo">
  22.                                 <img src="{{ asset(Product.main_list_image|no_image_product, 'save_image') }}">
  23.                                 <p class="ec-checkProductRole__listItemTitle">{{ Product.name }}</p>
  24.                             </a>
  25.                         </div>
  26.                     {% endfor %}
  27.                 </div>
  28.             </div>
  29.         </div>
  30.     </div>
  31. {% endif %}
  32. {% block stylesheet %}
  33.     <style type="text/css">
  34.         .ec-checkProductRole{
  35.             padding: 60px 0 0;
  36.         }
  37.         .ec-checkProductItemRole__list {
  38.             display: -ms-flexbox;
  39.             display: flex;
  40.             -ms-flex-wrap: wrap;
  41.             flex-wrap: wrap; }
  42.         .ec-checkProductRole__listItem{
  43.             margin-bottom: 4%;
  44.             width: 48%;
  45.             height: auto; }
  46.         .ec-checkProductRole__listItem:nth-child(odd) {
  47.             margin-right: 4%; }
  48.         .ec-checkProductRole__listItemTitle {
  49.             margin: 8px 0;
  50.             font-size: 14px;
  51.             font-weight: bold;
  52.             color: black; }
  53.         .ec-checkProductRole{
  54.             padding: 60px 0;
  55.         }
  56.         .ec-checkProductItemRole__list{
  57.             -ms-flex-wrap: nowrap;
  58.             flex-wrap: nowrap;
  59.         }
  60.         .ec-checkProductRole__listItem{
  61.             margin-bottom: 15px;
  62.             width: calc(100% / 5);
  63.         }
  64.         .ec-checkProductRole__listItem:not(:last-of-type){
  65.             margin-right: 30px;
  66.         }
  67.         .ec-checkProductRole__listItemTitle:nth-child(odd){
  68.             margin-right: 30px;
  69.         }
  70.     </style>
  71. {% endblock %}