templates/AppTemplates/layout/share/index.html.twig line 1

Open in your IDE?
  1. <!-- Share CSS  -->
  2. <style>
  3. .sf-minitoolbar {
  4.     display:none!important;
  5. }
  6. .share {
  7.     position:fixed;
  8.     bottom:0;
  9.     width:100%;
  10.     height:auto;
  11.     display:flex;
  12.     z-index:100;
  13.     opacity:0;
  14.     transition: opacity 0.3s ease-in-out;
  15.     animation:1s;
  16. }
  17. .share a {
  18.     display:flex;
  19.     justify-content: center;
  20.     align-items: center;
  21.     width:25%;
  22.     height:32px;
  23. }
  24. .share a i {
  25.     font-size:19px;
  26.     color:white;
  27. }
  28. .share a:nth-child(1) {
  29.     background-color:#6f6f6f;
  30.     color:#00e5e5;
  31.     font-weight:700;
  32.     text-transform:uppercase;
  33.     letter-spacing:0.75px;
  34. }
  35. .share a:nth-child(2) {
  36.     background-color: #3b5999;
  37. }
  38. .share a:nth-child(3) {
  39.     background-color: #0077b5;
  40. }
  41. .share a:nth-child(4) {
  42.     background-color: #38b000;
  43. }
  44. @media screen and (min-width:768px) {
  45.     .share {
  46.         flex-direction: column;
  47.         top:calc(45% - 48px);
  48.         left:calc(100% - 48px);
  49.     }
  50.     .share a {
  51.         width :48px;
  52.         height:48px;
  53.     }
  54. }
  55. </style>
  56. <!-- Share HTML -->
  57. <div class="share">
  58.     {% set currentLocale = app.request.locale %}
  59.     {% for locale in locales %}
  60.         {% if locale != currentLocale %}
  61.             <a href="{{ path('app_' ~ locale) }}">
  62.                 {{ locale }}
  63.             </a>
  64.         {% endif %}
  65.     {% endfor %}
  66.     <a><i class="fas fa-share-alt"></i></a>
  67.     <a><i class="fab fa-linkedin-in"></i></a>
  68.     <a href="tel:0550505050"><i class="fas fa-phone"></i></a>
  69. </div>
  70. <!-- Share JS -->
  71. <script>
  72.     {#% include "appTemplates/layout/share/element.js" %#}
  73. </script>