templates/frontend/default/header.html.twig line 1

Open in your IDE?
  1. {% block header %}
  2. <style>
  3. header {
  4. text-align: center; margin: 0 auto;
  5. overflow: hidden;
  6. position: absolute;
  7. height: 435vw;
  8. width: 100%;
  9. }
  10. header .background{
  11. width:100%;
  12. position: relative;
  13. -webkit-background-clip: padding-box;
  14. background-clip: padding-box;
  15. color: white;
  16. background-color: transparent;
  17. bottom: 5px;
  18. z-index: 0;
  19. }
  20. header p{
  21. margin-top: 3%;
  22. }
  23. header .rule {
  24. position: absolute;
  25. top: 4%;
  26. left: 65%;
  27. }
  28. header .rule img {
  29. width: 30%;
  30. float: right;
  31. }
  32. @media only screen and (min-width: 700px) {
  33. header .rule{
  34. left:77%
  35. }
  36. header{
  37. height: 325vw;
  38. }
  39. header .rule img{
  40. width: 45%
  41. }
  42. }
  43. @media only screen and (min-width: 1000px) {
  44. header .rule{
  45. left:81%
  46. }
  47. }
  48. </style>
  49. <header>
  50. <img src="{{ asset('images/background.png') }}" class='background' alt="BG Image"></img>
  51. {# <p class="event-date">{{ 'mission.event-date' | trans }}</p> #}
  52. <div class="rule">
  53. <a href="{{ path('game_pre_activity_rule', {'language': app.request.locale} ) }}">
  54. <img src="{{ asset('images/tnc_btn.png') }}" alt="gamerule"/>
  55. </a>
  56. </div>
  57. </header>
  58. {% endblock %}