_header.scss 7.0 KB

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