_header.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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. // display: none;
  116. .field--name-body{
  117. min-height: 75px;
  118. margin-right: 1rem;
  119. }
  120. p{
  121. display: flex;
  122. flex-direction: row-reverse;
  123. margin-bottom: 0;
  124. min-height: 54px;
  125. justify-content: space-around;
  126. min-width: 120%;
  127. a{
  128. color: $white;
  129. font-size: 0;
  130. // padding-left: 0.5rem;
  131. // padding-right: 0.5rem;
  132. }
  133. svg.ext{
  134. display: none;
  135. }
  136. .link-twitter{
  137. display: flex;
  138. background-color: black;
  139. min-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. }