style.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. .header-layout.active {
  2. $bgcolor: #101010;
  3. $color: #fff;
  4. $activeColor: #7f7f7f;
  5. .logo .icon-logo_b {
  6. color: $color;
  7. }
  8. .ctrl a {
  9. &.user {
  10. background-color: $color;
  11. color: $bgcolor
  12. }
  13. &.search i{
  14. color: $color
  15. }
  16. span {
  17. color: $bgcolor;
  18. }
  19. }
  20. .menu {
  21. .lang a{
  22. color: $activeColor;
  23. &.active {
  24. color: $color;
  25. }
  26. &::hover{
  27. color: $color;
  28. }
  29. }
  30. .list {
  31. // border-left: 1px solid $color;
  32. a {
  33. color: $color;
  34. &::after {
  35. border-top-color: $color !important;
  36. }
  37. &.active {
  38. color: $activeColor;
  39. &::after {
  40. border-top-color: $activeColor !important;
  41. }
  42. }
  43. }
  44. }
  45. }
  46. &::after {
  47. bottom: 0;
  48. }
  49. }
  50. .header-layout {
  51. $bgcolor: #fff;
  52. $color: #101010;
  53. $activeColor: #7f7f7f;
  54. $margin: 25px;
  55. $lrwidth: 340px;
  56. $ts: all .7s cubic-bezier(.77,0,.175,1);
  57. justify-content: space-between;
  58. background-color: $bgcolor;
  59. display: flex;
  60. .logo .icon-logo_b {
  61. transition: $ts;
  62. color: $color;
  63. }
  64. .ctrl a {
  65. &.user {
  66. background-color: $color;
  67. transition: $ts;
  68. color: $bgcolor
  69. }
  70. &.search i{
  71. color: $color;
  72. transition: $ts;
  73. }
  74. span {
  75. color: $bgcolor;
  76. transition: $ts;
  77. }
  78. }
  79. .menu {
  80. .lang a{
  81. transition: $ts;
  82. color: $activeColor;
  83. &:hover{
  84. color: $activeColor;
  85. }
  86. &.active {
  87. color: $color;
  88. }
  89. }
  90. .list {
  91. border-left: 1px solid $activeColor;
  92. transition: $ts;
  93. a {
  94. transition: $ts;
  95. color: $color;
  96. &::after {
  97. transition: $ts;
  98. border-top-color: $color !important;
  99. }
  100. &.active {
  101. color: $activeColor;
  102. &::after {
  103. transition: $ts;
  104. border-top-color: $activeColor !important;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. &::after {
  111. transition: $ts;
  112. content: '';
  113. position: absolute;
  114. left: 0;
  115. right: 0;
  116. bottom: 100%;
  117. height: 100%;
  118. background-color: $color;
  119. z-index: 1
  120. }
  121. .logo-layout {
  122. flex: 0 1 340px;
  123. text-align: center;
  124. .logo {
  125. width: 150px;
  126. z-index: 2;
  127. position: relative;
  128. height: 100%;
  129. display: inline-block;
  130. i {
  131. position: absolute;
  132. left: 50%;
  133. top: 60%;
  134. transform: translateX(-50%) translateY(-50%);
  135. }
  136. .icon-logo_b {
  137. font-size: 110px;
  138. }
  139. .icon-logo_a {
  140. font-size: 40px;
  141. margin-left: -48px;
  142. margin-top: -6px;
  143. color: #1fe4dc;
  144. }
  145. }
  146. }
  147. .ctrl {
  148. z-index: 2;
  149. text-align: right;
  150. flex: 0 0 auto;
  151. a {
  152. display: inline-block;
  153. text-decoration: none;
  154. padding: 0 14px;
  155. height: 100%;
  156. i, span {
  157. display: inline-block;
  158. vertical-align: middle;
  159. }
  160. i {
  161. font-size: 24px;
  162. }
  163. span {
  164. font-size: 16px;
  165. margin-left: 4px;
  166. font-weight: bold;
  167. }
  168. }
  169. .search {
  170. position: relative;
  171. .hide, .open {
  172. transition: $ts
  173. }
  174. .open {
  175. opacity: 1;
  176. transform: scale(1);
  177. }
  178. .hide {
  179. position: absolute;
  180. opacity: 0;
  181. transform: scale(0);
  182. position: absolute;
  183. left: 50%;
  184. top: 50%;
  185. transform: translateX(-50%) translateY(-50%);
  186. font-size: 16px;
  187. }
  188. &.active {
  189. .open {
  190. opacity: 0;
  191. transform: scale(0);
  192. }
  193. .hide {
  194. opacity: 1;
  195. transform: scale(1) translateX(-50%) translateY(-50%);;
  196. }
  197. }
  198. }
  199. }
  200. .menu {
  201. z-index: 2;
  202. $lwidth: 260px;
  203. padding-left: $lwidth;
  204. position: relative;
  205. flex: 1;
  206. .lang {
  207. box-sizing: border-box;
  208. position: absolute;
  209. width: $lwidth;
  210. padding-left: 60px;
  211. left: 0;
  212. top: 50%;
  213. transform: translateY(-50%);
  214. a {
  215. display: inline-block;
  216. font-size: 16px;
  217. font-weight: bold;
  218. margin-left: 5px;
  219. &:hover{
  220. color: $activeColor;
  221. }
  222. }
  223. }
  224. .list {
  225. padding: 0 20px;
  226. a {
  227. display: inline-block;
  228. padding: $margin 20px $margin 0;
  229. margin-right: 50px;
  230. font-size: 16px;
  231. text-decoration: none;
  232. font-weight: bold;
  233. position: relative;
  234. &::after {
  235. display: none;
  236. content: '';
  237. border: 6px solid transparent;
  238. position: absolute;
  239. right: 0;
  240. top: 50%;
  241. transform: translateY(-50%);
  242. }
  243. &:last-child {
  244. margin-right: 0;
  245. }
  246. }
  247. }
  248. }
  249. }