_header.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .layout-container{
  2. position: relative;
  3. }
  4. header{
  5. display: block;
  6. position: sticky; // sticky marche pas :(
  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 { // logo + menu déroulant
  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. // font-weight: 800;
  40. }
  41. .is-active {
  42. color: $blue-light;
  43. }
  44. }
  45. .ul2{
  46. flex-direction: column;
  47. display: none;
  48. }
  49. :hover{
  50. color: $blue-light;
  51. }
  52. }
  53. li:not(ul):not(.ul2){
  54. display: block;
  55. position: relative;
  56. }
  57. :hover {
  58. .ul2{
  59. display: block;
  60. background-color: $white;
  61. padding: 1rem;
  62. // a{
  63. // color: $white;
  64. // }
  65. // position: relative;
  66. // transition: ease-in-out 2s;
  67. }
  68. }
  69. }
  70. li .ul1 {
  71. display: flex;
  72. flex-direction: column;
  73. }
  74. #block-burger { // menu burger à droite
  75. z-index: 1;
  76. background-color: $blue-light;
  77. font-size: 0.5rem;
  78. color: $white;
  79. display: block;
  80. width: 7rem;
  81. height: 100%;
  82. margin-top: 0;
  83. :hover{
  84. cursor: pointer;
  85. }
  86. h2:after{
  87. display: block;
  88. height: 60px;
  89. font-family: 'Font Awesome';
  90. content: "\f0c9";
  91. font-weight: 100;
  92. font-size: 5rem;
  93. // content:"";
  94. // background-image: url('~/web/themes/custom/eql/images/pictos/menu.png');
  95. height: 6rem;
  96. }
  97. #block-burger-menu{
  98. display: block;
  99. margin: 0;
  100. align-self: center;
  101. text-align: center;
  102. height:7rem;
  103. }
  104. .ul1:not(.sous-liste){
  105. width: 300%;
  106. position: relative;
  107. right: 260px;
  108. margin: 0;
  109. padding-top: 2rem;
  110. z-index: 99;
  111. }
  112. ul {
  113. display: none;
  114. background-color: $blue-light;
  115. line-height: 2rem;
  116. list-style: none;
  117. .ul1 .sous-liste{
  118. a{
  119. opacity: 1;
  120. }
  121. }
  122. a{
  123. opacity: 0.6;
  124. color: $white;
  125. font-weight: 800;
  126. font-size: 1rem;
  127. }
  128. }
  129. &.opened ul {
  130. display: block;
  131. }
  132. }
  133. }