_header.scss 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. .layout-container{
  2. position: relative;
  3. width: 100vw;
  4. header{
  5. // display: block;
  6. // width: 100%;
  7. position: fixed;
  8. z-index: 99;
  9. width: 100vw;
  10. // position: -webkit-sticky;
  11. // position: sticky;
  12. // top: 0;
  13. // .sticky{
  14. // position: fixed;
  15. // }
  16. }
  17. }
  18. #header-top {
  19. height: 7rem;
  20. background-color: $white;
  21. box-shadow: 1px 0px 8px $black;
  22. display: flex;
  23. flex-direction: row;
  24. justify-content: space-between;
  25. color: $black;
  26. top:0%;
  27. scroll-margin: 8rem {};
  28. // logo + menu déroulant
  29. .region-header-top-left {
  30. width: 80vw;
  31. display:flex;
  32. flex-direction: row;
  33. padding: 1rem;
  34. padding-left: 4%;
  35. align-items:center;
  36. color: $black;
  37. font-weight: 800;
  38. flex: 1;
  39. #block-logogouv{
  40. display: flex;
  41. height: 100%;
  42. align-items: center;
  43. img{
  44. width: 80%;
  45. height: auto;
  46. }
  47. }
  48. #block-logoeql{
  49. display: flex;
  50. height: 100%;
  51. align-items: center;
  52. img{
  53. // min-width: 80px;
  54. width: 80%;
  55. height: auto;
  56. }
  57. }
  58. #block-headermenu{
  59. align-self: baseline;
  60. width: 70%;
  61. margin-left: 3rem;
  62. margin-right: 3rem;
  63. }
  64. ul{
  65. font-size: 1rem;
  66. list-style: none;
  67. display: flex;
  68. flex-direction: row;
  69. justify-content: space-between;
  70. // padding-left: 3rem;
  71. // margin-right: 20px;
  72. width: 100%;
  73. padding-inline-start: 0px;
  74. padding: 1rem;
  75. .is-active{
  76. color:$blue-light;
  77. }
  78. ul{
  79. display: flex;
  80. flex-direction: column;
  81. display: none;
  82. min-width: 100px;
  83. width: 100%;
  84. justify-content: space-between;
  85. // background:$white;
  86. // padding-inline-start: 0;
  87. padding-inline-start: 0px;
  88. .is-active{
  89. color:$blue-light;
  90. }
  91. }
  92. li{
  93. display: flex;
  94. flex-direction: column;
  95. // justify-content: space-between;
  96. background-color: $white;
  97. padding-bottom: 0.8rem;
  98. max-width: inherit;
  99. width: 25%;
  100. align-items: center;
  101. // padding-left: 1rem;
  102. height: 20px;
  103. // text-align: none
  104. // .menuOpen{
  105. // display: flex;
  106. // }
  107. a {
  108. color: $black;
  109. }
  110. .is-active{
  111. color:$blue-light;
  112. }
  113. :hover{
  114. color: $blue-light;
  115. }
  116. }
  117. li:hover ul {
  118. display: block;
  119. }
  120. .ul1.sous-liste.ul2{
  121. padding-left: 1rem;
  122. // width: 200px;
  123. }
  124. }
  125. }
  126. // reseaux sociaux
  127. #block-socialnetwork-2{
  128. position: relative;
  129. top: -33px;
  130. align-self: flex-end;
  131. margin-left: auto;
  132. .field--name-body{
  133. min-height: 75px;
  134. // margin-right: 1rem;
  135. }
  136. p{
  137. display: flex;
  138. flex-direction: row-reverse;
  139. margin-bottom: 0;
  140. min-height: 65px;
  141. justify-content: space-around;
  142. width: 140px;
  143. a{
  144. color: $white;
  145. font-size: 0;
  146. }
  147. svg.ext{
  148. display: none;
  149. }
  150. .link-twitter{
  151. display: flex;
  152. background-color: black;
  153. width: 40px;
  154. justify-content: center;
  155. align-items: flex-end;
  156. &:before{
  157. content: url("../images/pictos/logo_x_blanc.svg");
  158. min-width: 30px;
  159. padding-bottom: 0.5rem;
  160. }
  161. }
  162. .link-youtube{
  163. display: flex;
  164. background-color: black;
  165. min-width: 40px;
  166. justify-content: center;
  167. align-items: flex-end;
  168. &:before{
  169. content: url("../images/pictos/youtube_white.svg");
  170. min-width: 25px;
  171. padding-bottom: 0.5rem;
  172. }
  173. }
  174. .link-linkedin{
  175. display: flex;
  176. background-color: black;
  177. min-width: 40px;
  178. justify-content: center;
  179. align-items: flex-end;
  180. // background-position-y: top;
  181. &:before{
  182. content: url("../images/pictos/linkedin_white.svg");
  183. min-width: 35px;
  184. padding-bottom: 0.2rem;
  185. }
  186. }
  187. }
  188. }
  189. // menu burger à droite
  190. #block-burger {
  191. z-index: 1;
  192. background-color: $blue-light;
  193. font-size: 0.7rem;
  194. color: $white;
  195. display: block;
  196. width: 7rem;
  197. height: 100%;
  198. margin-top: 0;
  199. :hover{
  200. cursor: pointer;
  201. }
  202. h2{
  203. padding-top: 1rem;
  204. }
  205. h2:after{
  206. display: block;
  207. margin:auto;
  208. height: 70px;
  209. content:url('data:image/svg+xml,<svg width="70" 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="white" stroke-width="3"/><path id="path930-3" d="M 5,25 H 65" stroke-linecap="round" stroke="white" stroke-width="3"/><path id="path930-6" d="M 5,37 H 65" stroke-linecap="round" stroke="white" stroke-width="3"/></svg>');
  210. }
  211. #block-burger-menu{
  212. display: block;
  213. margin: 0;
  214. align-self: center;
  215. text-align: center;
  216. // height:7rem;
  217. }
  218. // block menu open fond bleu
  219. .ul1:not(.sous-liste){
  220. width: 300%;
  221. position: relative;
  222. right: 260px;
  223. margin: 0;
  224. padding-top: 2rem;
  225. padding-bottom: 2rem;
  226. z-index: 99;
  227. }
  228. ul {
  229. display: none;
  230. background-color: $blue-light;
  231. line-height: 2rem;
  232. list-style: none;
  233. .ul1 .sous-liste{
  234. a{
  235. opacity: 1;
  236. }
  237. }
  238. a{
  239. opacity: 0.6;
  240. color: $white;
  241. font-weight: 800;
  242. font-size: 1rem;
  243. }
  244. }
  245. &.opened ul {
  246. display: block;
  247. }
  248. }
  249. }