_header.scss 7.3 KB

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