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

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8.  {% if CustomerKbn == "seller" %}
  9.  {% else %}
  10.     {% form_theme form 'Form/form_div_layout.twig' %}
  11.         <div class="ec-headerSearch1">
  12.             <form method="get" class="searchform" action="{{ path('product_list') }}">
  13.                 <!--
  14.                 <div class="ec-headerSearch__category">
  15.                     <div class="ec-select ec-select_search">
  16.                         {{ form_widget(form.category_id, {'id': null, 'attr': {'class': 'category_id'}}) }}
  17.                     </div>
  18.                 </div>
  19.                 -->
  20.                 <div class="ec-headerSearch__keyword">
  21.                     <div class="ec-input" style="display: flex; align-items: center; height: 40px;">
  22.                         {{ form_widget(form.name, {'id': null, 'attr': {'class': 'search-name', 'placeholder' : '商品名・商品ID・キーワード' }} ) }}
  23.                             <button class="ec-headerSearch__keywordBtn" type="submit" style="margin: 0; padding: 0;">
  24.                                 <div class="ec-icon">
  25.                                     <img src="{{ asset('assets/icon/search-dark.svg') }}" alt="" style="height:35px;">
  26.                                 </div>
  27.                             </button>
  28.                     </div>
  29.                 </div>
  30.             </form>
  31.         </div>
  32.         <style>
  33.         .ec-headerSearch__keywordBtn {
  34.             line-height: 1; /* または適切な値を設定 */
  35.             position: relative; /* 相対位置指定を有効にする */
  36.             top: -8px; /* 上方向に5px移動 */
  37.         }
  38.         .ec-icon {
  39.             line-height: 1; /* または適切な値を設定 */
  40.             position: relative; /* 相対位置指定を有効にする */
  41.             top: 1px; /* 上方向に5px移動 */
  42.         }
  43.         </style>
  44. {% endif %}