_header.scss 7.0 KB

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