_header.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. .layout-container{
  2. position: relative;
  3. width: 100vw;
  4. header{
  5. position: fixed;
  6. z-index: 99;
  7. width: 100vw;
  8. }
  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. scroll-margin: 8rem {};
  20. // logo + menu déroulant
  21. .region-header-top-left {
  22. width: 80vw;
  23. display:flex;
  24. flex-direction: row;
  25. padding: 1rem;
  26. padding-left: 4%;
  27. align-items:center;
  28. color: $black;
  29. font-weight: 800;
  30. flex: 1;
  31. #block-logogouv{
  32. display: flex;
  33. height: 100%;
  34. align-items: center;
  35. img{
  36. width: 80%;
  37. height: auto;
  38. }
  39. }
  40. #block-logoeql{
  41. display: flex;
  42. height: 100%;
  43. align-items: center;
  44. img{
  45. // min-width: 80px;
  46. width: 80%;
  47. height: auto;
  48. }
  49. }
  50. #block-headermenu{
  51. align-self: baseline;
  52. width: 70%;
  53. margin-left: 3rem;
  54. margin-right: 3rem;
  55. }
  56. ul{
  57. font-size: 1rem;
  58. list-style: none;
  59. display: flex;
  60. flex-direction: row;
  61. justify-content: space-between;
  62. width: 100%;
  63. padding-inline-start: 0px;
  64. padding: 1rem;
  65. .is-active{
  66. color:$blue-light;
  67. }
  68. ul{
  69. position: absolute;
  70. left: -28%;
  71. z-index: 1000;
  72. // display: none;
  73. display: flex;
  74. flex-direction: column;
  75. min-width: 210px;
  76. width: fit-content;
  77. justify-content: space-between;
  78. padding-inline-start: 0px;
  79. .is-active{
  80. color:$blue-light;
  81. }
  82. opacity: 0;
  83. visibility: hidden;
  84. transform: translateY(-10px);
  85. transition: opacity 0.3s ease, transform 0.3s ease;
  86. }
  87. li{
  88. position: relative;
  89. display: flex;
  90. flex-direction: column;
  91. background-color: $white;
  92. padding-bottom: 0.8rem;
  93. max-width: inherit;
  94. padding-left: 1rem;
  95. padding-right: 0.5rem;
  96. height: fit-content;
  97. a {
  98. color: $black;
  99. }
  100. .is-active{
  101. color:$blue-light;
  102. }
  103. :hover{
  104. color: $blue-light;
  105. }
  106. }
  107. li:hover ul {
  108. opacity: 1;
  109. visibility: visible;
  110. transform: translateY(0);
  111. }
  112. .ul1.sous-liste.ul2{
  113. padding-left: 1rem;
  114. }
  115. }
  116. }
  117. // reseaux sociaux
  118. #block-socialnetwork-2{
  119. position: relative;
  120. top: -33px;
  121. align-self: flex-end;
  122. margin-left: auto;
  123. .field--name-body{
  124. min-height: 75px;
  125. // margin-right: 1rem;
  126. }
  127. p{
  128. display: flex;
  129. flex-direction: row-reverse;
  130. margin-bottom: 0;
  131. min-height: 65px;
  132. justify-content: space-around;
  133. width: 140px;
  134. a{
  135. color: $white;
  136. font-size: 0;
  137. }
  138. svg.ext{
  139. display: none;
  140. }
  141. .link-twitter{
  142. display: flex;
  143. background-color: black;
  144. width: 40px;
  145. justify-content: center;
  146. align-items: flex-end;
  147. &:before{
  148. content: url("../images/pictos/logo_x_blanc.svg");
  149. min-width: 30px;
  150. padding-bottom: 0.5rem;
  151. }
  152. }
  153. .link-youtube{
  154. display: flex;
  155. background-color: black;
  156. min-width: 40px;
  157. justify-content: center;
  158. align-items: flex-end;
  159. &:before{
  160. content: url("../images/pictos/youtube_white.svg");
  161. min-width: 25px;
  162. padding-bottom: 0.5rem;
  163. }
  164. }
  165. .link-linkedin{
  166. display: flex;
  167. background-color: black;
  168. min-width: 40px;
  169. justify-content: center;
  170. align-items: flex-end;
  171. // background-position-y: top;
  172. &:before{
  173. content: url("../images/pictos/linkedin_white.svg");
  174. min-width: 35px;
  175. padding-bottom: 0.2rem;
  176. }
  177. }
  178. }
  179. }
  180. // menu burger à droite
  181. #block-burger {
  182. z-index: 1;
  183. background-color: $blue-light;
  184. font-size: 0.7rem;
  185. color: $white;
  186. display: block;
  187. width: 7rem;
  188. height: 100%;
  189. margin-top: 0;
  190. :hover{
  191. cursor: pointer;
  192. }
  193. h2{
  194. padding-top: 1rem;
  195. }
  196. h2:after{
  197. display: block;
  198. margin:auto;
  199. height: 70px;
  200. content:url('data:image/svg+xml,<svg width="70" height="50" xmlns="http://www.w3.org/2000/svg" version="1.1"> <path id="path930" d="M 5,13 H 65" stroke-linecap="round" stroke="white" stroke-width="3"/><path id="path930-3" d="M 5,25 H 65" stroke-linecap="round" stroke="white" stroke-width="3"/><path id="path930-6" d="M 5,37 H 65" stroke-linecap="round" stroke="white" stroke-width="3"/></svg>');
  201. }
  202. #block-burger-menu{
  203. display: block;
  204. margin: 0;
  205. align-self: center;
  206. text-align: center;
  207. // height:7rem;
  208. }
  209. // block menu open fond bleu
  210. .ul1:not(.sous-liste){
  211. width: 300%;
  212. position: relative;
  213. right: 260px;
  214. margin: 0;
  215. padding-top: 2rem;
  216. padding-bottom: 2rem;
  217. z-index: 99;
  218. }
  219. ul {
  220. display: none;
  221. background-color: $blue-light;
  222. line-height: 2rem;
  223. list-style: none;
  224. .ul1 .sous-liste{
  225. a{
  226. opacity: 1;
  227. }
  228. }
  229. a{
  230. opacity: 1;
  231. color: $white;
  232. font-weight: 800;
  233. font-size: 1rem;
  234. }
  235. }
  236. &.opened ul {
  237. display: block;
  238. }
  239. }
  240. }