_header.scss 7.3 KB

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