_header.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. .layout-container{
  2. position: relative;
  3. }
  4. header{
  5. // display: block;
  6. width: 100%;
  7. position: fixed;
  8. z-index: 99;
  9. }
  10. #block-socialnetwork-2{
  11. .field--name-body{
  12. p{
  13. display: flex;
  14. flex-direction: row-reverse;
  15. :nth-child(1){
  16. &:before{
  17. content: url();
  18. }
  19. }
  20. }
  21. }
  22. }
  23. #header-top {
  24. height: 7rem;
  25. background-color: $white;
  26. box-shadow: 1px 0px 8px $black;
  27. display: flex;
  28. flex-direction: row;
  29. justify-content: space-between;
  30. color: $black;
  31. top:0%;
  32. .region-header-top-left { // logo + menu déroulant
  33. display:flex;
  34. flex-direction: row;
  35. padding: 1rem;
  36. padding-left: 4%;
  37. align-items:start;
  38. color: $black;
  39. font-weight: 800;
  40. #block-logogouv{
  41. display: flex;
  42. height: 100%;
  43. align-items: center;
  44. img{
  45. min-width: 80px;
  46. width: 70%;
  47. height: auto;
  48. }
  49. }
  50. #block-logoeql{
  51. display: flex;
  52. height: 100%;
  53. align-items: center;
  54. img{
  55. min-width: 80px;
  56. width: 80%;
  57. height: auto;
  58. }
  59. }
  60. ul{
  61. font-size: 1.2rem;
  62. list-style: none;
  63. display: flex;
  64. flex-direction: row;
  65. width: 100%;
  66. :is(.sous-liste){
  67. display: flex;
  68. flex-direction: column;
  69. padding: 1rem;
  70. }
  71. .ul1.sous-liste{
  72. // padding-right: 2rem;
  73. }
  74. li{
  75. // width: 200px;
  76. a {
  77. color: $black;
  78. }
  79. .is-active{
  80. color:$blue-light;
  81. }
  82. :hover{
  83. color: $blue-light;
  84. }
  85. }
  86. }
  87. ul div:first-child li div{
  88. display: none;
  89. }
  90. // ul div:nth-child(2) li div{
  91. // display: none;
  92. // }
  93. // ul:is(.ul1 .sous-liste .ul2){
  94. // display: none;
  95. // }
  96. :hover ul {
  97. div:first-child li div{
  98. display: block;
  99. background-color: $white;
  100. padding: 1rem;
  101. a{
  102. color: $black;
  103. &:hover{
  104. color: $blue-light;
  105. }
  106. }
  107. }
  108. }
  109. :hover ul {
  110. div:nth-child(2) li div{
  111. display: block;
  112. background-color: $white;
  113. padding: 1rem;
  114. a{
  115. color: $black;
  116. &:hover{
  117. color: $blue-light;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. #block-burger { // menu burger à droite
  124. z-index: 1;
  125. background-color: $blue-light;
  126. font-size: 0.7rem;
  127. color: $white;
  128. display: block;
  129. width: 7rem;
  130. height: 100%;
  131. margin-top: 0;
  132. :hover{
  133. cursor: pointer;
  134. }
  135. h2{
  136. padding-top: 1rem;
  137. }
  138. h2:after{
  139. display: block;
  140. margin:auto;
  141. align-self: center;
  142. height: 70px;
  143. 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 30,13 H 70" stroke-linecap="round" stroke="white" stroke-width="3"/><path id="path930-3" d="M 30,25 H 70" stroke-linecap="round" stroke="white" stroke-width="3"/><path id="path930-6" d="M 30,37 H 70" stroke-linecap="round" stroke="white" stroke-width="3"/></svg>');
  144. }
  145. #block-burger-menu{
  146. display: block;
  147. margin: 0;
  148. align-self: center;
  149. text-align: center;
  150. // height:7rem;
  151. }
  152. // block menu open fond bleu
  153. .ul1:not(.sous-liste){
  154. width: 300%;
  155. position: relative;
  156. right: 260px;
  157. margin: 0;
  158. padding-top: 2rem;
  159. padding-bottom: 2rem;
  160. z-index: 99;
  161. }
  162. ul {
  163. display: none;
  164. background-color: $blue-light;
  165. line-height: 2rem;
  166. list-style: none;
  167. .ul1 .sous-liste{
  168. a{
  169. opacity: 1;
  170. }
  171. }
  172. a{
  173. opacity: 0.6;
  174. color: $white;
  175. font-weight: 800;
  176. font-size: 1rem;
  177. }
  178. }
  179. &.opened ul {
  180. display: block;
  181. }
  182. }
  183. }