templates/result-group.html.twig line 1

Open in your IDE?
  1. <link rel='stylesheet' id='agon-theme-style-css'  href='/styles.css' type='text/css' media='all' />
  2. <link href="https://fonts.googleapis.com/css?family=Roboto:400%7CChivo:700%7CNoto+Sans:400&display=swap" rel="stylesheet" property="stylesheet" media="all" type="text/css" >
  3. <style>
  4.     .result {
  5.         padding: 30px;
  6.         border: 1px solid #DDD;
  7.         border-radius: 40px;
  8.         background: #FFF;
  9.         max-height: 500px;
  10.         overflow: auto;
  11.     }
  12.     .result-item, .result-not-found {
  13.         display: inline-block;
  14.         width: 100%;
  15.         margin: 5px 0;
  16.         font-size: 16px;
  17.         line-height: 22px;
  18.         font-family: "Noto Sans", Sans-serif;
  19.     }
  20.     .result-item {
  21.         float: left;
  22.     }
  23.     .result-total {
  24.         margin-top: 30px;
  25.         display: inline-block;
  26.         width: 100%;
  27.         text-align: right;
  28.         font-family: "Chivo", Sans-serif;
  29.         font-weight: 600;
  30.     }
  31.     .result-source {
  32.         display: inline-block;
  33.         /*width: 100%;*/
  34.         color: #4c4c4c;
  35.         font-family: "Chivo", Sans-serif;
  36.         font-size: 12px;
  37.         font-weight: 600;
  38.     }
  39.     .group {
  40.         display: inline-block;
  41.         margin-bottom: 20px;
  42.     }
  43.     .group--title {
  44.         font-weight: bold;
  45.     }
  46.     em {
  47.         color: #f15a3c;
  48.     }
  49.     .more {
  50.         font-weight: 600;
  51.         margin: 10px 0;
  52.         display: inline-block;
  53.     }
  54. </style>
  55. <div class="result">
  56.     {% if total == 0 %}
  57.         {% if language == 'lt' %}
  58.             <div class="result-not-found">Duomenų nerasta</div>
  59.         {% else %}
  60.             <div class="result-not-found">No results found</div>
  61.         {% endif %}
  62.     {% else %}
  63.         {% if language == 'lt' %}
  64.             <div class="result-total">Paieškos rezultatai ({{ total }})</div>
  65.         {% else %}
  66.             <div class="result-total">Search results ({{ total }})</div>
  67.         {% endif %}
  68.         {% for group in groups %}
  69.             {% if group.total %}
  70.                 <div class="group">
  71.                     <div class="group--title">
  72.                         <div class="btn btn--tag animated fadeInDown">
  73.                             <div class="tag-circle"></div>
  74.                             {{ group.title }} ({{ group.total }})
  75.                         </div>
  76.                     </div>
  77.                     {% for item in group.items %}
  78.                         <div class="result-item">
  79.                             <a href="{{ item.link }}" target="_blank">{{ item.text|raw }}</a>
  80.                             {% if item.source %}
  81.                                 <br>
  82.                                 <div class="result-source"> {{ item.source }} {% if item.category %}| {{ item.category }}{% endif %}</div>
  83.                             {% endif %}
  84.                         </div>
  85.                     {% endfor %}
  86.                 </div>
  87.             {% endif %}
  88.         {% endfor %}
  89.     {% endif %}
  90. </div>