_header.scss 9.5 KB

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