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