istyle.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. .header-layout {
  2. $ts: all .7s cubic-bezier(.77, 0, .175, 1);
  3. $split: #7f7f7f;
  4. background-color: #101010;
  5. display: flex;
  6. color: #fff;
  7. justify-content: space-between;
  8. .child-layout {
  9. position: absolute;
  10. top: 100%;
  11. max-height: 0;
  12. left: 0;
  13. right: 0;
  14. transition: $ts;
  15. overflow: hidden;
  16. .silp {
  17. position: absolute;
  18. width: 1px;
  19. height: 100%;
  20. background-color: $split;
  21. z-index: 2;
  22. }
  23. }
  24. .logo-layout {
  25. flex: 0 1 340px;
  26. text-align: center;
  27. .logo {
  28. position: relative;
  29. width: 150px;
  30. height: 100%;
  31. display: inline-block;
  32. i {
  33. position: absolute;
  34. left: 50%;
  35. top: 60%;
  36. transform: translateX(-50%) translateY(-50%);
  37. }
  38. .icon-logo_b {
  39. font-size: 110px;
  40. color: #fff;
  41. }
  42. .icon-logo_a {
  43. font-size: 40px;
  44. margin-left: -48px;
  45. margin-top: -6px;
  46. color: #1fe4dc;
  47. }
  48. }
  49. }
  50. .menu {
  51. flex: 1;
  52. display: flex;
  53. .lang {
  54. box-sizing: border-box;
  55. text-align: center;
  56. padding-right: 10px;
  57. min-width: 100px;
  58. a {
  59. display: inline-block;
  60. font-size: 16px;
  61. font-weight: bold;
  62. margin-left: 5px;
  63. }
  64. }
  65. .list {
  66. border-left: 1px solid $split;
  67. padding: 0 20px;
  68. display: flex;
  69. min-width: 480px;
  70. max-width: 750px;
  71. justify-content: space-between;
  72. flex: 1;
  73. a {
  74. display: inline-block;
  75. padding: 25px 20px 25px 0;
  76. font-size: 16px;
  77. text-decoration: none;
  78. font-weight: bold;
  79. position: relative;
  80. flex: auto;
  81. &::after {
  82. display: none;
  83. content: '';
  84. border: 6px solid transparent;
  85. position: absolute;
  86. right: 0;
  87. top: 50%;
  88. transform: translateY(-50%);
  89. }
  90. }
  91. }
  92. }
  93. .ctrl {
  94. flex: 0 0 auto;
  95. a {
  96. display: inline-block;
  97. text-decoration: none;
  98. padding: 0 14px;
  99. height: 100%;
  100. i,
  101. span {
  102. display: inline-block;
  103. vertical-align: middle;
  104. }
  105. i {
  106. font-size: 24px;
  107. }
  108. span {
  109. font-size: 16px;
  110. margin-left: 4px;
  111. font-weight: bold;
  112. }
  113. &.user {
  114. background-color: #fff;
  115. color: #101010
  116. }
  117. }
  118. .search {
  119. position: relative;
  120. .hide,
  121. .open {
  122. transition: $ts
  123. }
  124. .open {
  125. opacity: 1;
  126. transform: scale(1);
  127. }
  128. .hide {
  129. opacity: 0;
  130. transform: scale(0);
  131. position: absolute;
  132. left: 50%;
  133. top: 50%;
  134. transform: translateX(-50%) translateY(-50%);
  135. font-size: 16px;
  136. }
  137. &.active {
  138. .open {
  139. opacity: 0;
  140. transform: scale(0);
  141. }
  142. .hide {
  143. opacity: 1;
  144. transform: scale(1) translateX(-50%) translateY(-50%);
  145. }
  146. }
  147. }
  148. }
  149. }