header.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. header{
  2. max-height: 125px;
  3. .row{
  4. background: white;
  5. max-height: inherit;
  6. justify-content: space-between;
  7. border-bottom: 1px solid black;
  8. padding-left: 40px;
  9. #block-colloque2024-logorepublique, #block-colloque2024-logoepau{
  10. max-height: inherit;
  11. & > div{
  12. max-height: inherit;
  13. a{
  14. display: block;
  15. max-height: inherit;
  16. img{
  17. width: auto;
  18. height: 125px;
  19. // width: 100%;
  20. // max-height: inherit;
  21. // object-fit: contain;
  22. padding-bottom: 0.5rem;
  23. padding-top: 0.5rem;
  24. @media screen and (min-width: 450px) {
  25. width: auto;
  26. }
  27. }
  28. }
  29. }
  30. &.is-active{
  31. z-index: 10000;
  32. }
  33. }
  34. #block-colloque2024-renderedsitesettingsblock-2{
  35. width: 35%;
  36. border-left: 1px solid $color1;
  37. padding: 0;
  38. display: none;
  39. a{
  40. display: flex;
  41. }
  42. @media screen and (min-width: 1200px) {
  43. display: flex;
  44. }
  45. .site_setting_entity{
  46. display: flex;
  47. align-items: center;
  48. justify-content: flex-start;
  49. padding: 0 1rem 0 0rem;
  50. h1{
  51. width: 100%;
  52. color: $color2;
  53. padding-right: 1rem;
  54. text-transform: uppercase;
  55. text-align: right;
  56. align-self: stretch;
  57. margin: auto 0;
  58. }
  59. .__info_colloque{
  60. width: 50%;
  61. height: auto;
  62. display: flex;
  63. flex-direction: column;
  64. // justify-content: space-between;
  65. &>div{
  66. height: auto;
  67. &:first-child{
  68. color: $color1;
  69. white-space: nowrap;
  70. border-bottom: 2px solid $color1;
  71. padding-bottom: 0.4rem;
  72. margin-bottom: 0.6rem;
  73. }
  74. &:last-child{
  75. color: $color2;
  76. padding-right: 10px;
  77. width: min-content;
  78. margin-bottom: 0;
  79. }
  80. }
  81. }
  82. }
  83. }
  84. #block-colloque2024-mainnavigation{
  85. width: max-content;
  86. .burger{
  87. padding-top: 0.25rem;
  88. z-index: 9999;
  89. }
  90. .nav-main{
  91. display: none;
  92. @media screen and (min-width: 1200px) {
  93. display: block;
  94. ul{
  95. margin-bottom: 0;
  96. flex-wrap: wrap;
  97. li{
  98. margin: 0 0.5rem;
  99. &:not(:last-child){
  100. &:after{
  101. display: inline-block;
  102. content: "|";
  103. margin-left: 0.5rem;
  104. }
  105. }
  106. }
  107. }
  108. }
  109. &.is-active{
  110. display: block;
  111. position: fixed;
  112. width: 100vw;
  113. height: 100vh;
  114. left: 0;
  115. top: 0;
  116. background: white;
  117. z-index: 9999;
  118. @media screen and (min-width: 576px) {
  119. height: auto;
  120. ul{
  121. margin: 130px 0 50px 0;
  122. }
  123. li{
  124. font-size: 1.7rem;
  125. line-height: 3rem;
  126. padding: 0 15px;
  127. }
  128. }
  129. ul{
  130. display: flex;
  131. justify-content: center;
  132. flex-direction: column;
  133. height: 100%;
  134. align-items: center;
  135. li{
  136. font-size: 1.5rem;
  137. line-height: 3rem;
  138. padding: 0 15px;
  139. @media screen and (min-width: 360px) {
  140. width: 100%;
  141. &::before{
  142. display: inline-block;
  143. content: " ";
  144. width: 0%;
  145. transition: width 1s ease;
  146. height: 1px;
  147. background: $color2024;
  148. }
  149. &:hover{
  150. &::before{
  151. width: 10%;
  152. transition: all 1s ease;
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }
  159. }
  160. }
  161. }
  162. }
  163. #block-colloque2024-mainnavigation{
  164. border-left: 1px solid black;
  165. display: flex;
  166. align-items: center;
  167. justify-content: flex-end;
  168. .burger{
  169. display: block;
  170. margin: auto;
  171. @media screen and (min-width: 1200px) {
  172. display: none;
  173. }
  174. &.is-active{
  175. z-index: 999;
  176. }
  177. }
  178. .nav-main{
  179. display: none;
  180. height: auto;
  181. @media screen and (min-width: 1200px) {
  182. display: flex;
  183. }
  184. }
  185. }
  186. header.front{
  187. #block-colloque2024-branding{
  188. width: 21rem;
  189. position: relative;
  190. z-index: 9999;
  191. a{
  192. max-height: 8rem!important;
  193. }
  194. &.is-active{
  195. overflow: inherit;
  196. &>div{
  197. max-height: 115px;
  198. }
  199. }
  200. }
  201. #block-renderedsitesettingsblock-2{
  202. display: none;
  203. }
  204. }