_header.scss 7.3 KB

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