index.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. @import "base.scss";
  2. @import "mixin/_animation.scss";
  3. @import "mixin/_media.scss";
  4. @import "drop_down.scss";
  5. /* 单位 */
  6. .main {
  7. width: 100%;
  8. height: 84%;
  9. .aside-left {
  10. position: relative;
  11. width: 22%;
  12. height: 100%;
  13. .book-rank {
  14. border-bottom: 1px solid rgba(#1397ff, .1);
  15. font-size: 12px;
  16. span {
  17. display: inline-block;
  18. height: 100%;
  19. }
  20. .ranking {
  21. color: #2edbff;
  22. }
  23. .hot {
  24. font-size: 12px;
  25. color: #1397ff;
  26. }
  27. } // 公共样式
  28. .ranking {
  29. width: 13%;
  30. padding-left: 5%;
  31. }
  32. .name {
  33. width: 32%;
  34. }
  35. .company {
  36. width: 34%;
  37. }
  38. .hot {
  39. width: 20%;
  40. padding-left: 2%;
  41. }
  42. .ranking,
  43. .name,
  44. .company,
  45. .hot {
  46. overflow: hidden;
  47. white-space: nowrap;
  48. text-overflow: ellipsis;
  49. }
  50. h3 {
  51. height: 17%;
  52. }
  53. .tit {
  54. height: 6%;
  55. margin: 3% 0;
  56. font-size: px2em(28, 64);
  57. color: #2edbff;
  58. span {
  59. display: inline-block;
  60. height: 100%;
  61. }
  62. }
  63. .top {
  64. position: relative;
  65. height: 49%;
  66. .con-wrap {
  67. position: relative;
  68. width: 100%;
  69. height: 75%;
  70. overflow: hidden;
  71. .over-wrap {
  72. position: absolute;
  73. top: 0;
  74. left: 0;
  75. }
  76. .go {
  77. transition: all .5s linear;
  78. }
  79. .top1 {
  80. top: -100%!important;
  81. }
  82. .top2 {
  83. top: -200%!important;
  84. }
  85. .top3 {
  86. top: -300%!important;
  87. }
  88. .top4 {
  89. top: -400%!important;
  90. }
  91. .top5 {
  92. top: -500%!important;
  93. }
  94. .top6 {
  95. top: -600%!important;
  96. }
  97. .top7 {
  98. top: -700%!important;
  99. }
  100. .top8 {
  101. top: -800%!important;
  102. }
  103. .top9 {
  104. top: -900%!important;
  105. }
  106. .top10 {
  107. top: -1000%!important;
  108. }
  109. .top11 {
  110. top: -1100%!important;
  111. }
  112. .top12 {
  113. top: -1200%!important;
  114. }
  115. }
  116. .con {
  117. height: 100%;
  118. li {
  119. height: 11.5%;
  120. cursor: pointer;
  121. .book-rank {
  122. height: 100%;
  123. }
  124. .book-show {
  125. display: none;
  126. position: relative;
  127. margin-top: 2%;
  128. overflow: hidden;
  129. .img-box {
  130. position: relative;
  131. width: 25%;
  132. height: 100%;
  133. margin: 0 4% 0 16%;
  134. img {
  135. position: absolute;
  136. top: 0;
  137. right: 0;
  138. width: 100%;
  139. max-height: 100%;
  140. overflow: hidden;
  141. }
  142. }
  143. .content {
  144. width: 42%;
  145. height: 100%;
  146. margin-top: 2%;
  147. font-size: px2em(12, 32);
  148. overflow: hidden;
  149. p {
  150. height: 20%;
  151. margin: 0;
  152. overflow: hidden;
  153. white-space: nowrap;
  154. text-overflow: ellipsis;
  155. }
  156. }
  157. }
  158. }
  159. li.active {
  160. height: auto;
  161. background: rgba(#1397ff, .1);
  162. .book-rank {
  163. border-bottom: none;
  164. }
  165. .book-show {
  166. display: block;
  167. }
  168. }
  169. }
  170. }
  171. .bottom {
  172. position: absolute;
  173. width: 100%;
  174. height: 49%;
  175. .bottom-in {
  176. width: 100%;
  177. height: 100%;
  178. overflow: hidden;
  179. } // 公共样式
  180. .short {
  181. width: 67%;
  182. }
  183. .hot {
  184. width: 20%;
  185. }
  186. .con {
  187. height: 74%;
  188. li {
  189. height: 10.5%;
  190. border-bottom: 1px solid rgba(19, 151, 255, .1);
  191. .book-rank {
  192. height: 100%;
  193. border-bottom: none;
  194. }
  195. .short {
  196. overflow: hidden;
  197. white-space: nowrap;
  198. text-overflow: ellipsis;
  199. }
  200. }
  201. }
  202. }
  203. }
  204. .aside-right {
  205. position: relative;
  206. width: 22%;
  207. height: 100%; // 公共样式
  208. .pie,
  209. .trend {
  210. position: relative;
  211. }
  212. .keys {
  213. position: relative;
  214. height: 20%;
  215. margin-bottom: 2.5%;
  216. h3 {
  217. height: 40%;
  218. padding-top: 6%;
  219. margin-left: 5%;
  220. }
  221. .con {
  222. height: 42%;
  223. margin: 0 20px;
  224. background: #081d5d;
  225. dl {
  226. width: 33.3%;
  227. height: 100%;
  228. padding: 10px 0 0 10px;
  229. dt {
  230. height: 40%;
  231. font-size: px2em(36, 64);
  232. color: #128df0;
  233. }
  234. ;
  235. dd {
  236. height: 60%;
  237. font-family: Rubik;
  238. font-size: px2em(72, 64);
  239. font-weight: 300;
  240. color: #fff;
  241. }
  242. }
  243. .middle {
  244. position: relative;
  245. &:before,
  246. &:after {
  247. position: absolute;
  248. top: 20%;
  249. width: 1px;
  250. height: 60%;
  251. background: rgba(#fff, .1);
  252. content: "";
  253. }
  254. &:before {
  255. left: 0;
  256. }
  257. &:after {
  258. right: 0;
  259. }
  260. }
  261. }
  262. }
  263. .pie {
  264. position: relative;
  265. height: 38%;
  266. margin-bottom: 2.5%;
  267. background: url("../img/bg1_1.png") no-repeat;
  268. background-size: cover;
  269. &:after {
  270. position: absolute;
  271. width: 100%;
  272. height: 100%;
  273. background: url("../img/bor1_4.png") no-repeat;
  274. background-size: 100% 100%;
  275. content: "";
  276. }
  277. h3 {
  278. height: 16%;
  279. text-align: center;
  280. }
  281. .pie1 {
  282. width: 50%;
  283. height: 100%;
  284. padding-top: 8%; // margin-left: 4%;
  285. }
  286. .pie2 {
  287. width: 50%;
  288. height: 100%;
  289. padding-top: 8%; // margin-left: 4%;
  290. }
  291. .legend {
  292. position: absolute;
  293. bottom: 10%;
  294. left: 50%;
  295. width: 80%;
  296. min-width: 280px;
  297. font-size: px2em(20, 64);
  298. transform: translate(-50%, 0);
  299. span {
  300. position: relative;
  301. margin-right: 1%;
  302. &:before {
  303. display: inline-block;
  304. position: relative;
  305. top: 1px;
  306. width: 1em;
  307. height: 1em;
  308. margin-right: 1%;
  309. content: "";
  310. }
  311. &:nth-of-type(1) {
  312. &:before {
  313. background: #0239a7;
  314. }
  315. }
  316. &:nth-of-type(2) {
  317. &:before {
  318. background: #fff;
  319. }
  320. }
  321. &:nth-of-type(3) {
  322. &:before {
  323. background: #24feb4;
  324. }
  325. }
  326. &:nth-of-type(4) {
  327. &:before {
  328. background: #23539b;
  329. }
  330. }
  331. &:nth-of-type(5) {
  332. &:before {
  333. background: #3c9de4;
  334. }
  335. }
  336. }
  337. }
  338. }
  339. .area-rank {
  340. position: relative;
  341. height: 63%;
  342. margin-bottom: 2.5%;
  343. background: url("../img/bg1_3.png") no-repeat;
  344. background-size: cover;
  345. overflow: hidden;
  346. &:after {
  347. position: absolute;
  348. top: 0;
  349. width: 100%;
  350. height: 100%;
  351. background: url("../img/bor1_5.png") no-repeat;
  352. background-size: 100% 100%;
  353. content: "";
  354. }
  355. h3 {
  356. height: 24%;
  357. padding-top: 10%;
  358. margin-left: 5%;
  359. }
  360. .con {
  361. position: relative;
  362. height: 75%;
  363. margin: 0 0 5% 5%;
  364. font-size: px2em(20, 64);
  365. color: #07bffb;
  366. overflow: hidden;
  367. ul {
  368. position: absolute;
  369. top: 0;
  370. width: 100%;
  371. height: 100%;
  372. }
  373. li {
  374. height: 11.1%;
  375. &:nth-of-type(1) {
  376. .bar-in {
  377. width: 94%;
  378. }
  379. }
  380. &:nth-of-type(2) {
  381. .bar-in {
  382. width: 88%;
  383. }
  384. }
  385. &:nth-of-type(3) {
  386. .bar-in {
  387. width: 84%;
  388. }
  389. }
  390. &:nth-of-type(4) {
  391. .bar-in {
  392. width: 79%;
  393. }
  394. }
  395. &:nth-of-type(5) {
  396. .bar-in {
  397. width: 76%;
  398. }
  399. }
  400. &:nth-of-type(6) {
  401. .bar-in {
  402. width: 74%;
  403. }
  404. }
  405. &:nth-of-type(7) {
  406. .bar-in {
  407. width: 70%;
  408. }
  409. }
  410. &:nth-of-type(8) {
  411. .bar-in {
  412. width: 68%;
  413. }
  414. }
  415. &:nth-of-type(9) {
  416. .bar-in {
  417. width: 65%;
  418. }
  419. }
  420. &:nth-of-type(10) {
  421. .bar-in {
  422. width: 62%;
  423. }
  424. }
  425. &:nth-of-type(11) {
  426. .bar-in {
  427. width: 60%;
  428. }
  429. }
  430. &:nth-of-type(12) {
  431. .bar-in {
  432. width: 58%;
  433. }
  434. }
  435. &:nth-of-type(13) {
  436. .bar-in {
  437. width: 54%;
  438. }
  439. }
  440. &:nth-of-type(14) {
  441. .bar-in {
  442. width: 51%;
  443. }
  444. }
  445. &:nth-of-type(15) {
  446. .bar-in {
  447. width: 49%;
  448. }
  449. }
  450. }
  451. span {
  452. display: inline-block;
  453. height: 100%;
  454. }
  455. .num {
  456. @include media3840 {
  457. width: 30px;
  458. }
  459. @include media1920 {
  460. width: 15px;
  461. }
  462. }
  463. .city-name {
  464. @include media3840 {
  465. width: 80px;
  466. margin-right: 30px;
  467. }
  468. @include media1920 {
  469. width: 40px;
  470. margin-right: 15px;
  471. }
  472. }
  473. .bar {
  474. position: relative;
  475. top: 10%;
  476. height: 46%;
  477. @include media3840 {
  478. width: calc(100% - 320px);
  479. }
  480. @include media1920 {
  481. width: calc(100% - 160px);
  482. }
  483. .bar-in {
  484. display: block;
  485. height: 100%;
  486. background: linear-gradient(to right, #2690cf, #00fecc);
  487. }
  488. }
  489. .rank-value {
  490. font-size: px2em(64, 64);
  491. @include media3840 {
  492. width: 100px;
  493. margin-left: 30px;
  494. }
  495. @include media1920 {
  496. width: 50px;
  497. margin-left: 15px;
  498. }
  499. }
  500. }
  501. }
  502. .trend {
  503. position: absolute;
  504. bottom: 0;
  505. width: 100%;
  506. height: 26%;
  507. background: url("../img/bg1_3.png") no-repeat;
  508. background-size: cover;
  509. &:after {
  510. position: absolute;
  511. top: 0;
  512. width: 100%;
  513. height: 100%;
  514. background: url("../img/bor1_6.png") no-repeat;
  515. background-size: 100% 100%;
  516. content: "";
  517. }
  518. h3 {
  519. height: 20%;
  520. padding-top: 5%;
  521. margin-left: 5%;
  522. }
  523. ;
  524. }
  525. }
  526. }
  527. .main-bottom {
  528. width: 100%;
  529. height: 5px;
  530. span {
  531. display: inline-block;
  532. height: 100%;
  533. background: #02336b;
  534. }
  535. .line1 {
  536. width: 15%;
  537. margin-right: 6px;
  538. }
  539. .line2 {
  540. width: 55%;
  541. margin-right: 6px;
  542. }
  543. .line3 {
  544. width: 26%;
  545. }
  546. }
  547. // 出版社排行 旋转效果
  548. // .pressRotate {
  549. // -webkit-animation: mymove .5s ease-in;
  550. // -moz-animation: mymove .5s ease-in;
  551. // -o-animation: mymove .5s ease-in;
  552. // animation: mymove .5s ease-in;
  553. // }
  554. @include myMove(".pressRotate");