_header.scss 7.2 KB

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