_header.scss 7.0 KB

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