Advertisement
Guest User

Untitled

a guest
Jun 6th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 1.50 KB | None | 0 0
  1. <!-- html -->
  2. {foreach $sAdvancedMenu as $category}
  3.                         {if $category.name == "Entdecken"}
  4.                             {foreach $category.sub as $discoverCat}
  5.                                 <div class="discover-category">
  6.                                     <div class="discover-category-inner show-all" {if $discoverCat.media.thumbnails.0.source}style="background-image: url('{$discoverCat.media.thumbnails.0.source}'); background-repeat: no-repeat; background-size: cover;"{/if}>
  7.                                         <a class="discover-category-link" href="{$discoverCat.link}">{$discoverCat.name}</a>
  8.                                     </div>
  9.                                 </div>
  10.                             {/foreach}
  11.                         {/if}
  12.                     {/foreach}
  13.  
  14. <!-- less -->
  15. .discover-category-inner {
  16.           height: 160px;
  17.           overflow: hidden;
  18.           position: relative;
  19.  
  20.           &.show-all {
  21.             background: #FFA850;
  22.             &::before {
  23.               display: none !important;
  24.             }
  25.             &:hover{
  26.               -webkit-filter: brightness(40%);
  27.               -webkit-transition: all 50ms ease;
  28.               -moz-transition: all 50ms ease;
  29.               -o-transition: all 50ms ease;
  30.               -ms-transition: all 50ms ease;
  31.               transition: all 50ms ease;
  32.               .discover-category-link{
  33.                 -webkit-filter: none !important;
  34.               }
  35.             }
  36.  
  37.           }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement