header.scss 3.6 KB

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