_header.scss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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. // justify-content: space-between;
  29. #block-logogouv{
  30. display: flex;
  31. height: 100%;
  32. align-items: center;
  33. img{
  34. min-width: 80px;
  35. width: 70%;
  36. height: auto;
  37. }
  38. }
  39. #block-logoeql{
  40. display: flex;
  41. height: 100%;
  42. align-items: center;
  43. img{
  44. min-width: 80px;
  45. width: 80%;
  46. height: auto;
  47. }
  48. }
  49. ul{
  50. font-size: 1.2rem;
  51. list-style: none;
  52. display: flex;
  53. flex-direction: row;
  54. width: 100%;
  55. :is(.sous-liste){
  56. display: flex;
  57. flex-direction: column;
  58. padding: 1rem;
  59. }
  60. .ul1.sous-liste{
  61. // padding-right: 2rem;
  62. }
  63. li{
  64. // width: 200px;
  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. #block-socialnetwork-2{
  113. position: relative;
  114. top: -33px;
  115. align-self: flex-end;
  116. margin-left: auto;
  117. // display: none;
  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: 54px;
  127. justify-content: space-around;
  128. min-width: 120%;
  129. a{
  130. color: $white;
  131. font-size: 0;
  132. // padding-left: 0.5rem;
  133. // padding-right: 0.5rem;
  134. }
  135. svg.ext{
  136. display: none;
  137. }
  138. .link-twitter{
  139. display: flex;
  140. background-color: black;
  141. min-width: 40px;
  142. justify-content: center;
  143. align-items: end;
  144. &:before{
  145. content: url("../images/pictos/twitter_white.svg");
  146. min-width: 30px;
  147. padding-bottom: 0.3rem;
  148. }
  149. }
  150. .link-youtube{
  151. display: flex;
  152. background-color: black;
  153. min-width: 40px;
  154. justify-content: center;
  155. align-items: end;
  156. &:before{
  157. content: url("../images/pictos/youtube_white.svg");
  158. min-width: 25px;
  159. padding-bottom: 0.5rem;
  160. }
  161. }
  162. .link-linkedin{
  163. display: flex;
  164. background-color: black;
  165. min-width: 40px;
  166. justify-content: center;
  167. align-items: end;
  168. // background-position-y: top;
  169. &:before{
  170. content: url("../images/pictos/linkedin_white.svg");
  171. min-width: 35px;
  172. padding-bottom: 0.2rem;
  173. }
  174. }
  175. }
  176. }
  177. #block-burger { // menu burger à droite
  178. z-index: 1;
  179. background-color: $blue-light;
  180. font-size: 0.7rem;
  181. color: $white;
  182. display: block;
  183. width: 7rem;
  184. height: 100%;
  185. margin-top: 0;
  186. :hover{
  187. cursor: pointer;
  188. }
  189. h2{
  190. padding-top: 1rem;
  191. }
  192. h2:after{
  193. display: block;
  194. margin:auto;
  195. height: 70px;
  196. 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>');
  197. }
  198. #block-burger-menu{
  199. display: block;
  200. margin: 0;
  201. align-self: center;
  202. text-align: center;
  203. // height:7rem;
  204. }
  205. // block menu open fond bleu
  206. .ul1:not(.sous-liste){
  207. width: 300%;
  208. position: relative;
  209. right: 260px;
  210. margin: 0;
  211. padding-top: 2rem;
  212. padding-bottom: 2rem;
  213. z-index: 99;
  214. }
  215. ul {
  216. display: none;
  217. background-color: $blue-light;
  218. line-height: 2rem;
  219. list-style: none;
  220. .ul1 .sous-liste{
  221. a{
  222. opacity: 1;
  223. }
  224. }
  225. a{
  226. opacity: 0.6;
  227. color: $white;
  228. font-weight: 800;
  229. font-size: 1rem;
  230. }
  231. }
  232. &.opened ul {
  233. display: block;
  234. }
  235. }
  236. }