_header.scss 9.6 KB

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