_header.scss 7.1 KB

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