header.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. a{
  36. display: flex;
  37. }
  38. @media screen and (min-width: 1200px) {
  39. display: flex;
  40. }
  41. .site_setting_entity{
  42. display: flex;
  43. align-items: center;
  44. justify-content: flex-start;
  45. padding: 0 1rem 0 0rem;
  46. h1{
  47. width: 100%;
  48. color: $color2;
  49. padding-right: 1rem;
  50. text-transform: uppercase;
  51. text-align: right;
  52. align-self: stretch;
  53. margin: auto 0;
  54. }
  55. .__info_colloque{
  56. width: 50%;
  57. height: auto;
  58. display: flex;
  59. flex-direction: column;
  60. // justify-content: space-between;
  61. &>div{
  62. height: auto;
  63. &:first-child{
  64. color: $color1;
  65. white-space: nowrap;
  66. border-bottom: 2px solid $color1;
  67. padding-bottom: 0.4rem;
  68. margin-bottom: 0.6rem;
  69. }
  70. &:last-child{
  71. color: $color2;
  72. padding-right: 10px;
  73. width: min-content;
  74. margin-bottom: 0;
  75. }
  76. }
  77. }
  78. }
  79. }
  80. #block-mainnavigation{
  81. width: max-content;
  82. .burger{
  83. padding-top: 0.25rem;
  84. z-index: 9999;
  85. }
  86. .nav-main{
  87. display: none;
  88. @media screen and (min-width: 1200px) {
  89. display: block;
  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-mainnavigation{
  160. border-left: 1px solid $color1;
  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-popsu-colloque-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-renderedsitesettingsblock-2{
  198. display: none;
  199. }
  200. }