header.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. @media screen and (min-width: 1200px) {
  92. display: flex;
  93. ul{
  94. margin-bottom: 0;
  95. flex-wrap: wrap;
  96. li{
  97. margin: 0 0.5rem;
  98. &:not(:last-child){
  99. &:after{
  100. display: inline-block;
  101. content: "|";
  102. margin-left: 0.5rem;
  103. }
  104. }
  105. }
  106. }
  107. // }
  108. &.is-active{
  109. display: block;
  110. position: fixed;
  111. width: 100vw;
  112. height: 100vh;
  113. left: 0;
  114. top: 0;
  115. background: white;
  116. z-index: 9999;
  117. @media screen and (min-width: 576px) {
  118. height: auto;
  119. ul{
  120. margin: 130px 0 50px 0;
  121. }
  122. li{
  123. font-size: 1.7rem;
  124. line-height: 3rem;
  125. padding: 0 15px;
  126. }
  127. }
  128. ul{
  129. display: flex;
  130. justify-content: center;
  131. flex-direction: column;
  132. height: 100%;
  133. align-items: center;
  134. li{
  135. font-size: 1.5rem;
  136. line-height: 3rem;
  137. padding: 0 15px;
  138. @media screen and (min-width: 360px) {
  139. width: 100%;
  140. &::before{
  141. display: inline-block;
  142. content: " ";
  143. width: 0%;
  144. transition: width 1s ease;
  145. height: 1px;
  146. background: $color1;
  147. }
  148. &:hover{
  149. &::before{
  150. width: 10%;
  151. transition: all 1s ease;
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. }
  159. }
  160. }
  161. }
  162. #block-colloque2024-mainnavigation{
  163. border-left: 1px solid black;
  164. display: flex;
  165. align-items: center;
  166. justify-content: flex-end;
  167. .burger{
  168. display: block;
  169. margin: auto;
  170. @media screen and (min-width: 1200px) {
  171. display: none;
  172. }
  173. &.is-active{
  174. z-index: 999;
  175. }
  176. }
  177. .nav-main{
  178. display: none;
  179. height: auto;
  180. @media screen and (min-width: 1200px) {
  181. display: flex;
  182. }
  183. }
  184. }
  185. header.front{
  186. #block-colloque2024-branding{
  187. width: 21rem;
  188. position: relative;
  189. z-index: 9999;
  190. a{
  191. max-height: 8rem!important;
  192. }
  193. &.is-active{
  194. overflow: inherit;
  195. &>div{
  196. max-height: 115px;
  197. }
  198. }
  199. }
  200. #block-colloque2024-renderedsitesettingsblock-2{
  201. // display: none;
  202. }
  203. }