header.scss 4.6 KB

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