_header.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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: $white;
  76. padding: 1rem;
  77. a{
  78. color: $black;
  79. &:hover{
  80. color: $blue-light;
  81. }
  82. }
  83. }
  84. }
  85. }
  86. #block-burger { // menu burger à droite
  87. z-index: 1;
  88. background-color: $blue-light;
  89. font-size: 0.7rem;
  90. color: $white;
  91. display: block;
  92. width: 7rem;
  93. height: 100%;
  94. margin-top: 0;
  95. :hover{
  96. cursor: pointer;
  97. }
  98. h2{
  99. padding-top: 1rem;
  100. }
  101. h2:after{
  102. display: block;
  103. margin:auto;
  104. // height: 60px;
  105. 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>');
  106. }
  107. #block-burger-menu{
  108. display: block;
  109. margin: 0;
  110. align-self: center;
  111. text-align: center;
  112. // height:7rem;
  113. }
  114. // block menu open fond bleu
  115. .ul1:not(.sous-liste){
  116. width: 300%;
  117. position: relative;
  118. right: 260px;
  119. margin: 0;
  120. padding-top: 2rem;
  121. padding-bottom: 2rem;
  122. z-index: 99;
  123. }
  124. ul {
  125. display: none;
  126. background-color: $blue-light;
  127. line-height: 2rem;
  128. list-style: none;
  129. .ul1 .sous-liste{
  130. a{
  131. opacity: 1;
  132. }
  133. }
  134. a{
  135. opacity: 0.6;
  136. color: $white;
  137. font-weight: 800;
  138. font-size: 1rem;
  139. }
  140. }
  141. &.opened ul {
  142. display: block;
  143. }
  144. }
  145. }