_languages.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .languages {
  2. p {
  3. text-align: center;
  4. margin: 0 0 5px;
  5. font-size: 18px;
  6. color: $white;
  7. a {
  8. color: $primary-color-dark;
  9. }
  10. }
  11. .languages-columns {
  12. display: flex;
  13. }
  14. .col-globe {
  15. flex: 1.07;
  16. margin-top: 30px;
  17. .globe {
  18. width: 90%;
  19. transform: translateX(-40px);
  20. }
  21. }
  22. .col-list {
  23. flex: 0.93;
  24. padding-top: 80px;
  25. line-height: 1.6;
  26. font-weight: 400;
  27. .continent-name {
  28. color: $white;
  29. font-size: 22px;
  30. font-weight: 400;
  31. background: none;
  32. border: none;
  33. padding: 0;
  34. margin: 0;
  35. &:focus {
  36. outline: none;
  37. }
  38. &::after {
  39. content: "";
  40. display: inline-block;
  41. height: 0;
  42. width: 0;
  43. border: 6px solid transparent;
  44. border-left-color: $white;
  45. transform: translateX(5px) translateY(-1px);
  46. }
  47. }
  48. li[style] {
  49. .continent-name {
  50. &::after {
  51. border-left-color: transparent;
  52. border-top-color: $white;
  53. transform: translateX(2px) translateY(2px);
  54. }
  55. }
  56. }
  57. .lang-code {
  58. display: inline-block;
  59. min-width: 30px;
  60. padding-right: 8px;
  61. opacity: 0.6;
  62. transition: opacity $transition-duration;
  63. }
  64. .lang-name {
  65. transition: padding-left $transition-duration;
  66. }
  67. a {
  68. color: $primary-color-dark;
  69. transition: color $transition-duration;
  70. &:hover {
  71. color: $white;
  72. text-decoration: none;
  73. .lang-code {
  74. opacity: 1;
  75. }
  76. .lang-name {
  77. padding-left: 8px;
  78. }
  79. }
  80. }
  81. ul,
  82. li {
  83. margin: 0;
  84. padding: 0;
  85. list-style: none;
  86. }
  87. > ul {
  88. padding-right: 50px;
  89. > li {
  90. overflow: hidden;
  91. transition: height $transition-duration linear;
  92. &[data-height] {
  93. height: 30px;
  94. }
  95. ul {
  96. padding: 15px 0;
  97. columns: 2;
  98. line-height: 1.8;
  99. }
  100. }
  101. }
  102. }
  103. }