_header.scss 6.5 KB

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