_header.scss 6.7 KB

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