header.scss 4.2 KB

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