_header.scss 6.8 KB

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