_header.scss 6.5 KB

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