_header.scss 6.9 KB

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