_header.scss 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. .block-headermenu-menu{
  58. }
  59. }
  60. ul{
  61. font-size: 1rem;
  62. list-style: none;
  63. display: flex;
  64. flex-direction: row;
  65. justify-content: space-between;
  66. background-color: white;
  67. width: 100%;
  68. padding: 1rem;
  69. .is-active{
  70. color:$blue-light;
  71. }
  72. ul{
  73. display: flex;
  74. flex-direction: column;
  75. // padding: 1rem;
  76. // padding: 0.5rem;
  77. display: none;
  78. .is-active{
  79. color:$blue-light;
  80. }
  81. }
  82. li{
  83. display: flex;
  84. flex-direction: column;
  85. background-color: $white;
  86. padding-bottom: 0.8rem;
  87. // align-items: center;
  88. min-width: 30%;
  89. align-items: center;
  90. .menuOpen{
  91. display: flex;
  92. }
  93. a {
  94. color: $black;
  95. // text-align: center;
  96. }
  97. .is-active{
  98. color:$blue-light;
  99. }
  100. :hover{
  101. color: $blue-light;
  102. }
  103. }
  104. &:hover{
  105. ul{
  106. display: block;
  107. }
  108. }
  109. }
  110. // ul ul {
  111. // display: none;
  112. // }
  113. // :hover ul{
  114. // ul{
  115. // display: flex;
  116. // justify-content: space-between;
  117. // padding: 1rem;
  118. // background-color: white;
  119. // .is-active{
  120. // color:$blue-light;
  121. // }
  122. // a{
  123. // color: $black;
  124. // &:hover{
  125. // color: $blue-light;
  126. // }
  127. // }
  128. // }
  129. // }
  130. // :hover div:first-of-type{
  131. // .menuOpen ul{
  132. // display: flex;
  133. // justify-content: space-between;
  134. // padding: 1rem;
  135. // background-color: white;
  136. // .is-active{
  137. // color:$blue-light;
  138. // }
  139. // a{
  140. // color: $black;
  141. // &:hover{
  142. // color: $blue-light;
  143. // }
  144. // }
  145. // }
  146. // }
  147. // :hover ul div:nth-of-type(2){
  148. // .menuOpen ul{
  149. // display: flex;
  150. // justify-content: space-between;
  151. // padding: 1rem;
  152. // background-color: white;
  153. // .is-active{
  154. // color:$blue-light;
  155. // }
  156. // a{
  157. // color: $black;
  158. // &:hover{
  159. // color: $blue-light;
  160. // }
  161. // }
  162. // }
  163. // }
  164. }
  165. // reseaux sociaux
  166. #block-socialnetwork-2{
  167. position: relative;
  168. top: -33px;
  169. align-self: flex-end;
  170. margin-left: auto;
  171. .field--name-body{
  172. min-height: 75px;
  173. margin-right: 1rem;
  174. }
  175. p{
  176. display: flex;
  177. flex-direction: row-reverse;
  178. margin-bottom: 0;
  179. min-height: 65px;
  180. justify-content: space-around;
  181. width: 120%;
  182. a{
  183. color: $white;
  184. font-size: 0;
  185. }
  186. svg.ext{
  187. display: none;
  188. }
  189. .link-twitter{
  190. display: flex;
  191. background-color: black;
  192. width: 40px;
  193. justify-content: center;
  194. align-items: end;
  195. &:before{
  196. content: url("../images/pictos/twitter_white.svg");
  197. min-width: 30px;
  198. padding-bottom: 0.3rem;
  199. }
  200. }
  201. .link-youtube{
  202. display: flex;
  203. background-color: black;
  204. min-width: 40px;
  205. justify-content: center;
  206. align-items: end;
  207. &:before{
  208. content: url("../images/pictos/youtube_white.svg");
  209. min-width: 25px;
  210. padding-bottom: 0.5rem;
  211. }
  212. }
  213. .link-linkedin{
  214. display: flex;
  215. background-color: black;
  216. min-width: 40px;
  217. justify-content: center;
  218. align-items: end;
  219. // background-position-y: top;
  220. &:before{
  221. content: url("../images/pictos/linkedin_white.svg");
  222. min-width: 35px;
  223. padding-bottom: 0.2rem;
  224. }
  225. }
  226. }
  227. }
  228. #block-burger { // menu burger à droite
  229. z-index: 1;
  230. background-color: $blue-light;
  231. font-size: 0.7rem;
  232. color: $white;
  233. display: block;
  234. width: 7rem;
  235. height: 100%;
  236. margin-top: 0;
  237. :hover{
  238. cursor: pointer;
  239. }
  240. h2{
  241. padding-top: 1rem;
  242. }
  243. h2:after{
  244. display: block;
  245. margin:auto;
  246. height: 70px;
  247. 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>');
  248. }
  249. #block-burger-menu{
  250. display: block;
  251. margin: 0;
  252. align-self: center;
  253. text-align: center;
  254. // height:7rem;
  255. }
  256. // block menu open fond bleu
  257. .ul1:not(.sous-liste){
  258. width: 300%;
  259. position: relative;
  260. right: 260px;
  261. margin: 0;
  262. padding-top: 2rem;
  263. padding-bottom: 2rem;
  264. z-index: 99;
  265. }
  266. ul {
  267. display: none;
  268. background-color: $blue-light;
  269. line-height: 2rem;
  270. list-style: none;
  271. .ul1 .sous-liste{
  272. a{
  273. opacity: 1;
  274. }
  275. }
  276. a{
  277. opacity: 0.6;
  278. color: $white;
  279. font-weight: 800;
  280. font-size: 1rem;
  281. }
  282. }
  283. &.opened ul {
  284. display: block;
  285. }
  286. }
  287. }