_header.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. .layout-container{
  2. position: relative;
  3. }
  4. header{
  5. // display: block;
  6. width: 100%;
  7. position: fixed;
  8. z-index: 99;
  9. }
  10. #header-top {
  11. height: 7rem;
  12. background-color: $white;
  13. // box-shadow: 1px 0px 8px $black;
  14. display: flex;
  15. flex-direction: row;
  16. justify-content: space-between;
  17. color: $black;
  18. top:0%;
  19. .region-header-top-left { // logo + menu déroulant
  20. display:flex;
  21. flex-direction: row;
  22. padding: 1rem;
  23. padding-left: 3rem;
  24. align-items:start;
  25. color: $black;
  26. font-weight: 800;
  27. #block-logogouv{
  28. display: flex;
  29. height: 100%;
  30. align-items: center;
  31. img{
  32. width: 70%;
  33. height: auto;
  34. }
  35. }
  36. #block-logoeql{
  37. display: flex;
  38. height: 100%;
  39. align-items: center;
  40. img{
  41. width: 80%;
  42. height: auto;
  43. }
  44. }
  45. ul{
  46. list-style: none;
  47. display: flex;
  48. flex-direction: row;
  49. :is(.sous-liste){
  50. display: flex;
  51. flex-direction: column;
  52. padding: 1rem;
  53. }
  54. .ul1.sous-liste{
  55. padding-right: 2rem;
  56. }
  57. li{
  58. a {
  59. color: $black;
  60. }
  61. .is-active{
  62. color:$blue-light;
  63. }
  64. :hover{
  65. color: $blue-light;
  66. }
  67. }
  68. }
  69. ul:is(.ul1 .sous-liste .ul2){
  70. display: none;
  71. }
  72. :hover {
  73. ul:is(.ul1 .sous-liste .ul2){
  74. display: block;
  75. background-color: $blue-light;
  76. padding: 1rem;
  77. a{
  78. color: $white;
  79. }
  80. }
  81. }
  82. }
  83. #block-burger { // menu burger à droite
  84. z-index: 1;
  85. background-color: $blue-light;
  86. font-size: 0.7rem;
  87. color: $white;
  88. display: block;
  89. width: 7rem;
  90. height: 100%;
  91. margin-top: 0;
  92. :hover{
  93. cursor: pointer;
  94. }
  95. h2{
  96. padding-top: 1rem;
  97. }
  98. h2:after{
  99. display: block;
  100. margin:auto;
  101. // height: 60px;
  102. content:url('data:image/svg+xml,<svg width="100" height="70" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path id="path930" d="M 20,10 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/><path id="path930-3" d="M 20,25 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/><path id="path930-6" d="M 20,40 H 80" stroke-linecap="round" stroke="white" stroke-width="4"/></svg>');
  103. }
  104. #block-burger-menu{
  105. display: block;
  106. margin: 0;
  107. align-self: center;
  108. text-align: center;
  109. // height:7rem;
  110. }
  111. // block menu open fond bleu
  112. .ul1:not(.sous-liste){
  113. width: 300%;
  114. position: relative;
  115. right: 260px;
  116. margin: 0;
  117. padding-top: 2rem;
  118. padding-bottom: 2rem;
  119. z-index: 99;
  120. }
  121. ul {
  122. display: none;
  123. background-color: $blue-light;
  124. line-height: 2rem;
  125. list-style: none;
  126. .ul1 .sous-liste{
  127. a{
  128. opacity: 1;
  129. }
  130. }
  131. a{
  132. opacity: 0.6;
  133. color: $white;
  134. font-weight: 800;
  135. font-size: 1rem;
  136. }
  137. }
  138. &.opened ul {
  139. display: block;
  140. }
  141. }
  142. }