header.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .midnightHeader{
  2. margin-top: 0px;
  3. }
  4. .midnightHeader.default a{
  5. color: white;
  6. }
  7. .midnightHeader.white a{
  8. color: black;
  9. }
  10. .midnightHeader.black a{
  11. color: white;
  12. }
  13. #header{
  14. .language-selector{
  15. display: flex;
  16. position: fixed;
  17. width: 160px;
  18. left: 50%;
  19. margin-top: 10px;
  20. margin-left: -75px;
  21. li{
  22. display: flex;
  23. &:nth-child(-n+2){
  24. &::after{
  25. margin: 0 10px;
  26. display: block;
  27. position: relative;
  28. }
  29. }
  30. }
  31. }
  32. .navigation{
  33. li{
  34. z-index: 999;
  35. position: fixed;
  36. text-align: center;
  37. &:first-child{
  38. display: none;
  39. }
  40. &:nth-child(2){
  41. // margin-bottom: 10px;
  42. top: auto!important;
  43. right: auto!important;
  44. bottom: 10px!important;
  45. left: auto!important;
  46. width: 50%;
  47. }
  48. &:nth-child(3){
  49. // margin-top: 10px;
  50. top: 10px!important;
  51. bottom: auto!important;
  52. right: auto!important;
  53. left: auto!important;
  54. width: 50%;
  55. }
  56. &:nth-child(4){
  57. // margin-bottom: 10px;
  58. bottom: 10px!important;
  59. top: auto!important;
  60. right: 0!important;
  61. left: auto!important;
  62. width: 50%;
  63. }
  64. &:nth-child(5){
  65. transform: rotate(90deg);
  66. top: 50%!important;
  67. width: 100%;
  68. right: -48.6%!important;
  69. left: auto!important;
  70. bottom: auto!important;
  71. // margin-right: 22px;
  72. }
  73. &:nth-child(6){
  74. transform: rotate(-90deg);
  75. top: 50%!important;
  76. width: 100%;
  77. left: -48.6%!important;
  78. right: auto!important;
  79. bottom: auto!important;
  80. // margin-left: 22px;
  81. }
  82. &:nth-child(7){
  83. // margin-top: 10px;
  84. top: 10px!important;
  85. right: 0!important;
  86. bottom: auto!important;
  87. left: auto!important;
  88. width: 50%;
  89. }
  90. a{
  91. position: relative;
  92. margin: auto;
  93. &:hover:before{
  94. visibility: visible;
  95. -webkit-transform: scaleX(1);
  96. transform: scaleX(1);
  97. }
  98. &:before{
  99. content: "";
  100. position: absolute;
  101. width: 100%;
  102. height: 2px;
  103. bottom: 0;
  104. left: 0;
  105. background-color: white;
  106. visibility: hidden;
  107. -webkit-transform: scaleX(0);
  108. transform: scaleX(0);
  109. -webkit-transition: all 0.3s ease-in-out 0s;
  110. transition: all 0.3s ease-in-out 0s;
  111. }
  112. }
  113. }
  114. .active{
  115. a:before{
  116. visibility: visible;
  117. -webkit-transform: scaleX(1);
  118. transform: scaleX(1);
  119. }
  120. }
  121. }
  122. }