header.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #header{
  2. position: fixed;
  3. z-index: 999;
  4. .language-selector{
  5. display: flex;
  6. position: fixed;
  7. width: 100px;
  8. left: 50%;
  9. margin-top: 10px;
  10. margin-left: -100px;
  11. li{
  12. display: flex;
  13. &:nth-child(-n+2){
  14. &::after{
  15. margin: 0 10px;
  16. display: block;
  17. position: relative;
  18. }
  19. }
  20. }
  21. }
  22. .navigation{
  23. li{
  24. position: fixed;
  25. text-align: center;
  26. &:first-child{
  27. display: none;
  28. }
  29. &:nth-child(2){
  30. margin-bottom: 10px;
  31. bottom: 0;
  32. width: 50%;
  33. }
  34. &:nth-child(3){
  35. margin-top: 10px;
  36. top: 0;
  37. width: 50%;
  38. }
  39. &:nth-child(4){
  40. margin-bottom: 10px;
  41. bottom: 0;
  42. width: 50%;
  43. right: 0;
  44. }
  45. &:nth-child(5){
  46. transform: rotate(90deg);
  47. top: 50%;
  48. width: 100%;
  49. right: -50%;
  50. margin-right: 22px;
  51. }
  52. &:nth-child(6){
  53. transform: rotate(-90deg);
  54. top: 50%;
  55. width: 100%;
  56. left: -50%;
  57. margin-left: 22px;
  58. }
  59. &:nth-child(7){
  60. margin-top: 10px;
  61. top: 0;
  62. right: 0;
  63. width: 50%;
  64. }
  65. a{
  66. position: relative;
  67. margin: auto;
  68. }
  69. }
  70. }
  71. }