_header.scss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. .layout-container{
  2. position: relative;
  3. }
  4. header{
  5. display: block;
  6. position: sticky;
  7. }
  8. #header-top {
  9. height: 7rem;
  10. background-color: $white;
  11. box-shadow: 1px 0px 8px $black;
  12. display: flex;
  13. flex-direction: row;
  14. justify-content: space-between;
  15. color: $black;
  16. position: sticky;
  17. top:0%;
  18. .region-header-top-left {
  19. display:flex;
  20. flex-direction: row;
  21. padding: 1rem;
  22. align-items:start;
  23. color: $black;
  24. font-weight: 800;
  25. #block-logogouv{
  26. display: flex;
  27. height: 100%;
  28. align-items: center;
  29. }
  30. ul{
  31. position: absolute;
  32. list-style: none;
  33. display: flex;
  34. flex-direction: row;
  35. li {
  36. padding-right: 1rem;
  37. a {
  38. color: $black;
  39. }
  40. .is-active {
  41. color: $blue-light;
  42. }
  43. }
  44. .ul2{
  45. flex-direction: column;
  46. display: none;
  47. }
  48. :hover{
  49. color: $blue-light;
  50. }
  51. }
  52. li:not(ul):not(.ul2){
  53. display: block;
  54. position: relative;
  55. }
  56. :hover {
  57. .ul2{
  58. display: block;
  59. background-color: $white;
  60. padding: 1rem;
  61. // a{
  62. // color: $white;
  63. // }
  64. // position: relative;
  65. // transition: ease-in-out 2s;
  66. }
  67. }
  68. }
  69. li .ul1 {
  70. display: flex;
  71. flex-direction: column;
  72. }
  73. #block-burger {
  74. z-index: 1;
  75. background-color: $blue-light;
  76. font-size: 0.5rem;
  77. color: $white;
  78. display: block;
  79. width: 7rem;
  80. height: 100%;
  81. margin-top: 0;
  82. :hover{
  83. cursor: pointer;
  84. }
  85. h2:after{
  86. display: block;
  87. height: 60px;
  88. font-family: 'Font Awesome';
  89. content: "\f0c9";
  90. font-weight: 100;
  91. font-size: 5rem;
  92. // content:"";
  93. // background-image: url('~/web/themes/custom/eql/images/pictos/menu.png');
  94. height: 6rem;
  95. }
  96. #block-burger-menu{
  97. display: block;
  98. margin: 0;
  99. align-self: center;
  100. text-align: center;
  101. height:7rem;
  102. }
  103. .ul1:not(.sous-liste){
  104. width: 300%;
  105. position: relative;
  106. right: 260px;
  107. margin: 0;
  108. padding-top: 2rem;
  109. z-index: 99;
  110. }
  111. ul {
  112. display: none;
  113. background-color: $blue-light;
  114. line-height: 2rem;
  115. list-style: none;
  116. .ul1 .sous-liste{
  117. a{
  118. opacity: 1;
  119. }
  120. }
  121. a{
  122. opacity: 0.6;
  123. color: $white;
  124. font-weight: 800;
  125. font-size: 1rem;
  126. }
  127. }
  128. &.opened ul {
  129. display: block;
  130. }
  131. }
  132. }