_header.scss 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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
  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: 100%;
  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: 100%;
  47. height: auto;
  48. }
  49. }
  50. }
  51. .region-header-top-rigth{
  52. display: flex;
  53. flex-direction: row;
  54. width: 40%;
  55. align-items: center;
  56. justify-content: flex-end;
  57. #block-eql-identitedusite{
  58. text-transform: uppercase;
  59. font-family: "Source Code Pro";
  60. color: $blue-dark !important;
  61. font-size: 1rem;
  62. text-align: end;
  63. width: 30%;
  64. :visited {
  65. color: $blue-dark !important;
  66. }
  67. :link{
  68. color: $blue-dark !important;
  69. }
  70. }
  71. #block-logoeql{
  72. padding-left: 1rem;
  73. padding-right: 2.5rem;
  74. img{
  75. width: 80px;
  76. height: auto;
  77. }
  78. }
  79. // menu burger à droite
  80. #block-burger {
  81. z-index: 1;
  82. background-color: $blue-light;
  83. font-size: 0.7rem;
  84. color: black;
  85. display: block;
  86. width: 7rem;
  87. height: 100%;
  88. margin-top: 0;
  89. aspect-ratio: 1;
  90. :hover{
  91. cursor: pointer;
  92. }
  93. h2{
  94. padding-top: 1rem;
  95. font-size: 1em;
  96. font-weight: light;
  97. color: $blue-light;
  98. }
  99. h2:after{
  100. display: block;
  101. margin:auto;
  102. height: 70px;
  103. content:url('data:image/svg+xml,<svg width="50" 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="black" stroke-width="2.5"/><path id="path930-3" d="M 5,25 H 65" stroke-linecap="round" stroke="black" stroke-width="2.5"/><path id="path930-6" d="M 5,37 H 65" stroke-linecap="round" stroke="black" stroke-width="2.5"/></svg>');
  104. }
  105. #block-burger-menu{
  106. display: block;
  107. margin: 0;
  108. align-self: center;
  109. text-align: center;
  110. // height:7rem;
  111. }
  112. // block menu open fond bleu
  113. .ul1:not(.sous-liste){
  114. width: 300%;
  115. position: relative;
  116. right: 260px;
  117. margin: 0;
  118. padding-top: 2rem;
  119. padding-bottom: 2rem;
  120. z-index: 99;
  121. }
  122. ul {
  123. display: none;
  124. background-color: $blue-light;
  125. line-height: 2rem;
  126. list-style: none;
  127. .ul1 .sous-liste{
  128. a{
  129. opacity: 1;
  130. }
  131. }
  132. a{
  133. opacity: 1;
  134. color: $white;
  135. font-weight: 800;
  136. font-size: 1rem;
  137. }
  138. }
  139. &.opened ul {
  140. display: block;
  141. }
  142. }
  143. }
  144. // reseaux sociaux
  145. #block-socialnetwork-2{
  146. display: none;
  147. position: relative;
  148. top: -33px;
  149. align-self: flex-end;
  150. margin-left: auto;
  151. .field--name-body{
  152. min-height: 75px;
  153. // margin-right: 1rem;
  154. }
  155. p{
  156. display: flex;
  157. flex-direction: row-reverse;
  158. margin-bottom: 0;
  159. min-height: 65px;
  160. justify-content: space-around;
  161. width: 140px;
  162. a{
  163. color: $white;
  164. font-size: 0;
  165. }
  166. svg.ext{
  167. display: none;
  168. }
  169. .link-twitter{
  170. display: flex;
  171. background-color: black;
  172. width: 40px;
  173. justify-content: center;
  174. align-items: flex-end;
  175. &:before{
  176. content: url("../images/pictos/logo_x_blanc.svg");
  177. min-width: 30px;
  178. padding-bottom: 0.5rem;
  179. }
  180. }
  181. .link-youtube{
  182. display: flex;
  183. background-color: black;
  184. min-width: 40px;
  185. justify-content: center;
  186. align-items: flex-end;
  187. &:before{
  188. content: url("../images/pictos/youtube_white.svg");
  189. min-width: 25px;
  190. padding-bottom: 0.5rem;
  191. }
  192. }
  193. .link-linkedin{
  194. display: flex;
  195. background-color: black;
  196. min-width: 40px;
  197. justify-content: center;
  198. align-items: flex-end;
  199. // background-position-y: top;
  200. &:before{
  201. content: url("../images/pictos/linkedin_white.svg");
  202. min-width: 35px;
  203. padding-bottom: 0.2rem;
  204. }
  205. }
  206. }
  207. }
  208. }
  209. .region-header-bottom{
  210. box-shadow: 0 4px 4px 3px rgba(0, 0, 0, 0.1);
  211. #block-headermenu{
  212. align-self: baseline;
  213. width: 100%;
  214. // margin-left: 3rem;
  215. // margin-right: 3rem;
  216. background-color: white;
  217. border-top: solid $blue-light 1px;
  218. }
  219. ul{
  220. font-size: 1rem;
  221. font-weight: 900;
  222. list-style: none;
  223. display: flex;
  224. flex-direction: row;
  225. // justify-content: space-between;
  226. justify-content: space-evenly;
  227. width: 100%;
  228. padding-inline-start: 0px;
  229. padding: 1rem;
  230. margin-top: 0 !important;
  231. padding-bottom: 0.5rem;
  232. .is-active{
  233. color:$blue-light;
  234. }
  235. ul{
  236. position: absolute;
  237. left: -28%;
  238. z-index: 1000;
  239. // display: none;
  240. display: flex;
  241. flex-direction: column;
  242. min-width: 210px;
  243. width: fit-content;
  244. justify-content: space-between;
  245. padding-inline-start: 0px;
  246. .is-active{
  247. color:$blue-light;
  248. }
  249. opacity: 0;
  250. visibility: hidden;
  251. transform: translateY(-10px);
  252. transition: opacity 0.3s ease, transform 0.3s ease;
  253. }
  254. li{
  255. position: relative;
  256. display: flex;
  257. flex-direction: column;
  258. background-color: $white;
  259. padding-bottom: 0.8rem;
  260. max-width: inherit;
  261. padding-left: 1rem;
  262. padding-right: 0.5rem;
  263. height: fit-content;
  264. a {
  265. color: $black;
  266. }
  267. .is-active{
  268. color:$blue-light;
  269. }
  270. :hover{
  271. color: $blue-light;
  272. }
  273. }
  274. li:hover ul {
  275. opacity: 1;
  276. visibility: visible;
  277. transform: translateY(0);
  278. }
  279. .ul1.sous-liste.ul2{
  280. padding-left: 1rem;
  281. }
  282. }
  283. }