istyle.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. .header-layout {
  2. $mc: .5s cubic-bezier(.77, 0, .175, 1);
  3. $ts: all $mc;
  4. background-color: #fff;
  5. color: #fff;
  6. justify-content: space-between;
  7. color: #202020;
  8. height: 80px;
  9. box-shadow:0px 3px 6px rgba(0,0,0,0.1);
  10. .container {
  11. height: 100%;
  12. }
  13. .child-layout {
  14. position: absolute;
  15. top: 100%;
  16. max-height: 0;
  17. left: 0;
  18. right: 0;
  19. transition: max-height $mc;
  20. overflow: hidden;
  21. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  22. .silp {
  23. position: absolute;
  24. width: 1px;
  25. height: 100%;
  26. background-color: #ededed;
  27. z-index: 2;
  28. }
  29. }
  30. .logo-layout {
  31. text-align: center;
  32. text-align: left;
  33. margin-right: 52px;
  34. float: left;
  35. height: 100%;
  36. .logo {
  37. position: relative;
  38. width: 150px;
  39. height: 100%;
  40. display: inline-block;
  41. color: #fff;
  42. }
  43. }
  44. .menu {
  45. float: left;
  46. min-width: 600px;
  47. .lang {
  48. box-sizing: border-box;
  49. text-align: center;
  50. padding-right: 10px;
  51. a {
  52. display: inline-block;
  53. font-size: 16px;
  54. font-weight: bold;
  55. margin-left: 5px;
  56. color: #727272;
  57. transition: color 0.3s ease;
  58. &:hover{
  59. color: #fff;
  60. }
  61. }
  62. .active{
  63. color: #fff;
  64. }
  65. }
  66. .list {
  67. justify-content: space-between;
  68. height: 100%;
  69. a {
  70. display: inline-block;
  71. line-height: 80px;
  72. margin-right: 47px;
  73. font-size: 16px;
  74. text-decoration: none;
  75. font-weight: bold;
  76. position: relative;
  77. transition: color $mc;
  78. &::before {
  79. z-index: 2;
  80. }
  81. &.active {
  82. color: #727272;
  83. &::after {
  84. border-top-color: #727272;
  85. transform: translateY(-50%) scale(1.3);
  86. }
  87. &::before {
  88. transform: translateY(-50%) scale(0.7);
  89. border-top-color: #000;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .ctrl {
  96. align-items: center;
  97. font-size: 16px;
  98. float: right;
  99. padding: 20px 0;
  100. &>div {
  101. display: inline-block;
  102. vertical-align: middle;
  103. }
  104. .shop-btn {
  105. width: 140px;
  106. height: 40px;
  107. line-height: 40px;
  108. background-color: #1FE4DC;
  109. text-align: center;
  110. font-weight: 600;
  111. margin-right: 25px;
  112. }
  113. .country {
  114. width: 20px;
  115. height: 21px;
  116. display: inline-block;
  117. background: url(~@/assets/images/home/CHINA.png) no-repeat center center;
  118. vertical-align: middle;
  119. }
  120. .language-w {
  121. padding: 0 30px 0 10px;
  122. }
  123. .language {
  124. margin: 0 15px 0 0;
  125. color: #8F8F8F;
  126. cursor: pointer;
  127. vertical-align: middle;
  128. font-size: 16px;
  129. font-weight: 600;
  130. &.is-active {
  131. color: #202020;
  132. }
  133. }
  134. .user {
  135. width: 20px;
  136. height: 20px;
  137. background: url(~@/assets/images/home/account-icon.png) no-repeat center center;
  138. cursor: pointer;
  139. background-size: contain;
  140. }
  141. }
  142. }
  143. @media screen and (max-width: 1600px){
  144. }
  145. @media screen and (max-width: 1450px){
  146. }