_header.scss 8.2 KB

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