_header.scss 8.4 KB

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