pc.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  1. @import "./mixin";
  2. @import "./var";
  3. .index-mobile {
  4. display: none !important;
  5. }
  6. .top-nav-ul {
  7. display: block !important;
  8. }
  9. .top-nav-ul .product-dropdown .dropdown-mobile {
  10. display: none !important;
  11. }
  12. .white-top-nav .top-nav-ul {
  13. .top-nav-right {
  14. a,
  15. div {
  16. &:hover {
  17. color: $light-blue;
  18. }
  19. }
  20. }
  21. }
  22. .top-nav-ul {
  23. .top-nav-left {
  24. float: left;
  25. margin: 0 10px;
  26. padding: 0 5px;
  27. position: inherit;
  28. &.first {
  29. padding-left: 0;
  30. margin-left: 0;
  31. }
  32. &.coupon {
  33. height: 60px;//ie高度问题
  34. }
  35. }
  36. }
  37. .top-nav-right {
  38. float: right;
  39. transition: 0.3s;
  40. position: relative;
  41. a,
  42. div {
  43. float: right;
  44. margin-right: 20px;
  45. &:hover {
  46. color: $light-blue;
  47. }
  48. img {
  49. vertical-align: text-top;
  50. }
  51. }
  52. }
  53. .product-left,
  54. .product-right {
  55. width: 50%;
  56. position: absolute;
  57. height: 700px;
  58. top: 100px;
  59. }
  60. .product-right {
  61. left: 50%;
  62. }
  63. .product-left .product-content {
  64. position: absolute;
  65. top: 0;
  66. right: 0;
  67. }
  68. .product-right .product-content {
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. }
  73. .product-top .product-content {
  74. position: absolute;
  75. top: 0;
  76. left: 0;
  77. right: 0;
  78. margin-left: auto;
  79. margin-right: auto;
  80. text-align: center;
  81. }
  82. .product-top .product-content .line {
  83. margin-left: auto;
  84. margin-right: auto;
  85. text-align: center;
  86. }
  87. .product-top .product-content .content {
  88. margin-left: auto;
  89. margin-right: auto;
  90. text-align: center;
  91. }
  92. .product-bottom .product-content {
  93. position: absolute;
  94. bottom: 0;
  95. left: 0;
  96. right: 0;
  97. margin-left: auto;
  98. margin-right: auto;
  99. text-align: center;
  100. }
  101. .product-top .title,
  102. .product-top .content,
  103. .product-top .line {
  104. text-align: center;
  105. margin-left: auto;
  106. margin-right: auto;
  107. }
  108. .product-bottom .product-img {
  109. margin: auto;
  110. max-height: 400px;
  111. }
  112. .top-nav-ul-drop-down-able {
  113. position: relative;
  114. }
  115. .top-nav-ul-drop-down-list {
  116. position: absolute;
  117. top: 60px;
  118. background: white;
  119. color: black;
  120. padding: 5px 0;
  121. a {
  122. display: flex;
  123. align-items: center;
  124. transition: 0.2s;
  125. &:hover {
  126. background: $background-blue;
  127. .product-nav-logo {
  128. border-radius: 8px;
  129. box-shadow: 0 8px 15px 0 rgba(2, 72, 227, 0.05),
  130. 0 4px 8px 0 rgba(2, 72, 227, 0.1), 0 0 1px 0 rgba(2, 72, 227, 0.1);
  131. background-color: #ffffff;
  132. }
  133. .product-nav-title {
  134. color: $dark-blue;
  135. }
  136. }
  137. &.future {
  138. &:hover {
  139. cursor: not-allowed;
  140. background: #fafbfc;
  141. }
  142. .product-nav-title {
  143. color: #767b83;
  144. }
  145. .product-nav-tips {
  146. display: block;
  147. width: 68px;
  148. height: 24px;
  149. line-height: 24px;
  150. font-size: $t3-size;
  151. background: #edeff2;
  152. color: #737780;
  153. margin-left: 10px;
  154. text-align: center;
  155. border-radius: 3px;
  156. }
  157. }
  158. }
  159. a.nav-first:before {
  160. position: absolute;
  161. z-index: 1;
  162. content: "";
  163. width: 20px;
  164. height: 9px;
  165. top: -9px;
  166. left: 28px;
  167. @include responsiveImage(popover-triangle-icon);
  168. pointer-events: none;
  169. cursor: default;
  170. }
  171. .classify-nav {
  172. display: inline-block;
  173. vertical-align: top;
  174. margin-right: 30px;
  175. margin-top: 15px;
  176. }
  177. .classify-title {
  178. font-size: $t3-size;
  179. font-weight: 500;
  180. color: #767b83;
  181. line-height: 27px;
  182. margin-left: 15px;
  183. border-bottom: 1px solid #edeff2;
  184. margin-bottom: 10px;
  185. }
  186. &.case {
  187. height: 170px;
  188. width: 160px;
  189. }
  190. &.solution {
  191. width: 184px;
  192. height: auto;
  193. padding: 5px 0;
  194. .product-nav-title {
  195. font-weight: normal;
  196. }
  197. }
  198. &.product {
  199. width: 1000px;
  200. padding: 50px 35px;
  201. cursor: default;
  202. position: absolute;
  203. left: 50%;
  204. margin-left: -500px;
  205. a {
  206. display: inline-block;
  207. width: 232px;
  208. height: 68px;
  209. border-radius: 3px;
  210. line-height: 24px;
  211. padding: 10px 15px;
  212. .product-nav-title {
  213. margin-top: 0;
  214. line-height: 20px;
  215. font-weight: 500;
  216. display: inline-block;
  217. position: relative;
  218. vertical-align: top;
  219. }
  220. }
  221. a:nth-child(2n) {
  222. margin-right: 10px;
  223. }
  224. .classify-nav {
  225. width: 475px;
  226. height: 310px;
  227. margin-top: auto;
  228. margin-right: 15px;
  229. &.middle {
  230. width: 190px;
  231. margin-right: 30px;
  232. a {
  233. width: 190px;
  234. padding: 10px 15px;
  235. &:hover {
  236. background-color: #e9f6f7;
  237. .product-nav-logo {
  238. box-shadow: 0 8px 15px 0 rgba(63, 151, 157, 0.05), 0 4px 8px 0 rgba(63, 151, 157, 0.1), 0 0 1px 0 rgba(63, 151, 157, 0.1);
  239. }
  240. .product-nav-box {
  241. .product-nav-title {
  242. color: #44acb6;
  243. }
  244. }
  245. }
  246. }
  247. a:nth-child(2n) {
  248. margin-right: 0;
  249. }
  250. }
  251. &.right {
  252. width: 220px;
  253. margin-right: auto;
  254. .divide-line {
  255. width: 1px;
  256. height: 310px;
  257. background: #edeff2;
  258. display: inline-block;
  259. vertical-align: top;
  260. }
  261. .nav-card {
  262. display: inline-block;
  263. width: 194px;
  264. height: 340px;
  265. padding: 15px;
  266. border-radius: 3px;
  267. transition: 0.3s;
  268. vertical-align: top;
  269. margin: -15px 0 0 25px;
  270. &:hover {
  271. cursor: pointer;
  272. background-color: #ebf3ff;
  273. }
  274. img {
  275. display: block;
  276. width: 164px;
  277. height: 115px;
  278. margin: auto auto 20px;
  279. border-radius: 3px;
  280. }
  281. .nav-card-info {
  282. .nav-card-title {
  283. font-size: $t2-size;
  284. line-height: 24px;
  285. margin-bottom: 8px;
  286. color: $title-black;
  287. }
  288. .nav-card-subtitle {
  289. font-size: $t2-size;
  290. line-height: 24px;
  291. color: $warm-gery;
  292. }
  293. }
  294. }
  295. }
  296. }
  297. }
  298. &.service {
  299. width: 1000px;
  300. height: 365px;
  301. padding: 45px;
  302. cursor: default;
  303. position: absolute;
  304. left: 50%;
  305. margin-left: -500px;
  306. a.nav-first:before {
  307. left: 30%;
  308. }
  309. a {
  310. width: 206px;
  311. height: 40px;
  312. line-height: 20px;
  313. border-radius: 3px;
  314. margin-top: 5px;
  315. .product-nav-title {
  316. margin-top: 0;
  317. line-height: 20px;
  318. font-weight: 400;
  319. display: inline-block;
  320. position: relative;
  321. }
  322. }
  323. .nav-card-divide-line {
  324. display: inline-block;
  325. height: 245px;
  326. width: 1px;
  327. background-color: #edeff2;
  328. margin-top: 15px;
  329. margin-left: 15px;
  330. }
  331. .nav-blog-article {
  332. display: inline-block;
  333. vertical-align: top;
  334. border-radius: 3px;
  335. padding-left: 30px;
  336. transition: 0.3s;
  337. .nav-article-card {
  338. width: 392px;
  339. height: 130px;
  340. padding: 15px;
  341. border-radius: 3px;
  342. &:nth-child(2) {
  343. margin-top: 15px;
  344. }
  345. .card-img {
  346. width: 180px;
  347. height: 100px;
  348. display: inline-block;
  349. vertical-align: middle;
  350. img {
  351. height: 100%;
  352. width: 100%;
  353. object-fit: cover;
  354. border-radius: 3px;
  355. }
  356. }
  357. .card-content {
  358. display: inline-block;
  359. vertical-align: middle;
  360. width: 163px;
  361. margin-left: 20px;
  362. .card-info {
  363. font-size: $t2-size;
  364. line-height: 24px;
  365. color: $title-black;
  366. }
  367. .blog-tag {
  368. height: 24px;
  369. span {
  370. font-size: $t2-size;
  371. line-height: 24px;
  372. display: inline-block;
  373. vertical-align: top;
  374. }
  375. }
  376. }
  377. &:first-child {
  378. margin-top: 0;
  379. }
  380. &:hover {
  381. background-color: $background-blue;
  382. .blog-tag span {
  383. color: $white;
  384. &.manage {
  385. background-color: $dark-blue;
  386. }
  387. &.super {
  388. background-color: $purple
  389. }
  390. &.product {
  391. background-color: $cyan;
  392. }
  393. &.dev {
  394. background-color: $green;
  395. }
  396. &.cto {
  397. background-color: $yellow;
  398. }
  399. &.news {
  400. background-color: $red;
  401. }
  402. }
  403. }
  404. }
  405. }
  406. }
  407. }
  408. .top-nav-ul-drop-down-span {
  409. position: relative;
  410. display: inline-block;
  411. color: $dark-grey;
  412. &.coupon {
  413. color: #fff;
  414. background-color: transparent;
  415. &:hover {
  416. color: #fff;
  417. }
  418. }
  419. &.coupon-entry-header {
  420. padding: 0 25px 0 8px;
  421. background: url("#{$imageUrl}/activity/coupon/coupon-entry-nav.gif") no-repeat 2px 15px;
  422. background-size: 100px auto;
  423. &.title-hovered {
  424. color: #fff;
  425. }
  426. @media (hover:hover) {
  427. &:hover::before {
  428. content: "";
  429. width: 83px;
  430. height: 22px;
  431. position: absolute;
  432. left: 0;
  433. top: 18px;
  434. border-radius: 11px;
  435. background-color: rgba(255,255,255,.15);
  436. }
  437. }
  438. }
  439. .top-nav-ul-drop-arrow {
  440. position: relative;
  441. top: -2px;
  442. width: 9px;
  443. height: 7px;
  444. display: inline-block;
  445. margin: auto auto auto 6px;
  446. transition: transform 0.3s;
  447. .nav-arrow-icon {
  448. width: 2px;
  449. height: 7px;
  450. background-color: $title-black;
  451. transform: rotate(47deg);
  452. position: absolute;
  453. right: 2px;
  454. &:before {
  455. content: "";
  456. width: 2px;
  457. height: 7px;
  458. background-color: $title-black;
  459. transform: rotate(-98deg);
  460. display: block;
  461. position: absolute;
  462. top: 3px;
  463. left: -3px;
  464. }
  465. }
  466. }
  467. .arrow-hovered,
  468. &:hover .top-nav-ul-drop-arrow {
  469. transform: rotate(180deg);
  470. transition: transform 0.3s;
  471. .nav-arrow-icon:before,
  472. .nav-arrow-icon {
  473. background-color: $dark-blue;
  474. }
  475. }
  476. &.title-hovered,
  477. &:hover {
  478. color: $dark-blue;
  479. }
  480. }
  481. .product-nav-box {
  482. display: inline-block;
  483. vertical-align: middle;
  484. }
  485. .product-nav-logo {
  486. margin-right: 10px;
  487. display: inline-block;
  488. vertical-align: middle;
  489. }
  490. .product-nav-title {
  491. line-height: 1;
  492. font-weight: 500;
  493. color: $title-black;
  494. }
  495. .product-nav-tips {
  496. display: none;
  497. }
  498. .product-nav-content {
  499. font-size: $t2-size;
  500. color: $warm-gery;
  501. }
  502. .product-nav-first {
  503. border-bottom: 0;
  504. }
  505. .normal-min-width {
  506. min-width: 1000px;
  507. }
  508. .icon-new {
  509. display: inline-block;
  510. padding-left: 5px;
  511. img {
  512. transform: translateY(1px);
  513. }
  514. }
  515. @media screen and (max-width: 1280px) {
  516. .top-nav-ul-drop-down-list.service a.nav-first:before {
  517. left: 44%;
  518. }
  519. .top-nav-ul-drop-down-list.product a.nav-first:before {
  520. left: 15%;
  521. }
  522. }