header.scss 4.6 KB

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