_header.scss 8.9 KB

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