_header.scss 4.8 KB

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