_header.scss 7.2 KB

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