header.scss 4.2 KB

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