_header.scss 7.3 KB

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