_header.scss 6.7 KB

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