header.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #header{
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. z-index: 999;
  6. .navbar{
  7. .language-selector{
  8. z-index: 999;
  9. position: fixed;
  10. left: 50%;
  11. top: 0;
  12. width: 300px;
  13. margin-left: -150px;
  14. margin-top: 10px;
  15. text-align: center;
  16. &>li{
  17. display:inline-block;
  18. }
  19. }
  20. .navigation{
  21. &>li{
  22. width: 50%;
  23. position: fixed;
  24. &:nth-of-type(1){
  25. display: none;
  26. }
  27. &:nth-of-type(2){
  28. bottom: 0;
  29. left: 0;
  30. margin-bottom: 15px;
  31. padding-left: 50px;
  32. text-align: center;
  33. }
  34. &:nth-of-type(3){
  35. bottom: 0px;
  36. right: 0;
  37. margin-bottom: 15px;
  38. padding-right: 50px;
  39. text-align: center;
  40. }
  41. &:nth-of-type(4){
  42. top: 0px;
  43. left: 0;
  44. padding-left: 50px;
  45. margin-top: 15px;
  46. text-align: center;
  47. }
  48. &:nth-of-type(5){
  49. top: 50%;
  50. right: -25%;
  51. margin-right: 23px;
  52. text-align: center;
  53. -webkit-transform: rotate(90deg);
  54. transform: rotate(90deg);
  55. }
  56. &:nth-of-type(6){
  57. top: 50%;
  58. left: -25%;
  59. margin-left: 23px;
  60. text-align: center;
  61. -webkit-transform: rotate(-90deg);
  62. transform: rotate(-90deg);
  63. }
  64. &:nth-of-type(7){
  65. top: 0;
  66. margin-top: 15px;
  67. right: 0;
  68. -webkit-transform-origin: center;
  69. transform-origin: center;
  70. text-align: center;
  71. }
  72. }
  73. }
  74. .nav_media_q{
  75. display: none;
  76. }
  77. }
  78. }
  79. a{
  80. position: relative;
  81. }
  82. a::before {
  83. content: " ";
  84. position: absolute;
  85. width: 100%;
  86. height: 2px;
  87. bottom: 0;
  88. left: 0;
  89. background-color: #4f100B;
  90. visibility: hidden;
  91. -webkit-transform: scaleX(0);
  92. transform: scaleX(0);
  93. -webkit-transition: all 0.3s ease-in-out 0s;
  94. transition: all 0.3s ease-in-out 0s;
  95. }
  96. a:hover::before, a.active::before{
  97. visibility: visible;
  98. -webkit-transform: scaleX(1);
  99. transform: scaleX(1);
  100. }