header.scss 4.5 KB

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