index.module.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. .book {
  2. position: fixed;
  3. left: 0;
  4. top: 0;
  5. right: 0;
  6. bottom: 0;
  7. inset: 0;
  8. z-index: 100;
  9. padding-top: 10vh;
  10. .back {
  11. position: absolute;
  12. left: 41px;
  13. top: 24px;
  14. }
  15. &.bookHide {
  16. visibility: hidden;
  17. pointer-events: none;
  18. opacity: 0;
  19. }
  20. :global {
  21. .bookWrap {
  22. margin: 0 auto;
  23. }
  24. .animated {
  25. transition: margin-left 0.2s ease-in-out;
  26. }
  27. .page {
  28. background: white;
  29. }
  30. .shadow {
  31. box-shadow: 0 0 20px 0 rgba(0, 0, 0, .4);
  32. }
  33. .page-wrapper {
  34. perspective: 2000px;
  35. }
  36. }
  37. }
  38. .wrap {
  39. position: relative;
  40. height: 100%;
  41. overflow: hidden;
  42. background-color: #FFD8A1;
  43. width: calc(100% + 1Px);
  44. &::before {
  45. content: '';
  46. position: absolute;
  47. left: 10Px;
  48. right: 10Px;
  49. top: 10Px;
  50. bottom: 10Px;
  51. background-color: #fff;
  52. z-index: 1;
  53. }
  54. .wrapItem {
  55. position: relative;
  56. padding: 20Px;
  57. height: 100%;
  58. overflow: hidden;
  59. z-index: 2;
  60. }
  61. .item {
  62. display: flex;
  63. font-size: 14px;
  64. font-weight: 600;
  65. color: #333;
  66. line-height: 20Px;
  67. padding: 13Px 0;
  68. word-break: break-all;
  69. }
  70. .des {
  71. line-height: 16Px;
  72. font-size: 12px;
  73. font-weight: 400;
  74. }
  75. .icon {
  76. width: 20Px;
  77. height: 20Px;
  78. margin-right: 6Px;
  79. }
  80. .last {
  81. font-size: 12Px;
  82. color: #FF5A56;
  83. margin-left: 6px;
  84. font-weight: 400;
  85. }
  86. }
  87. :global(.even) {
  88. .wrap {
  89. left: -1Px;
  90. &::before {
  91. right: 0;
  92. border-radius: 4Px 0 0 4Px;
  93. }
  94. &::after {
  95. content: '';
  96. position: absolute;
  97. right: 0;
  98. top: 0;
  99. bottom: 0;
  100. width: 24Px;
  101. background: linear-gradient(to right,rgba(255, 255, 255, 0) 20% ,rgba(229, 199, 156, .4) 100%);
  102. z-index: 3;
  103. }
  104. }
  105. }
  106. :global(.odd) {
  107. .wrap {
  108. left: -1Px;
  109. &::before {
  110. left: 0;
  111. border-radius: 0 4Px 4Px 0;
  112. }
  113. &::after {
  114. content: '';
  115. position: absolute;
  116. left: 0;
  117. top: 0;
  118. bottom: 0;
  119. width: 24Px;
  120. background: linear-gradient(to right, rgba(255, 225, 183, .35) 8%, rgba(255, 255, 255, 0) 100%);
  121. z-index: 2;
  122. }
  123. }
  124. .wrapItem {
  125. padding-left: 20Px;
  126. }
  127. }