_header.scss 7.2 KB

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