index.module.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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, 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(
  102. to right,
  103. rgba(255, 255, 255, 0) 20%,
  104. rgba(229, 199, 156, 0.4) 100%
  105. );
  106. z-index: 3;
  107. }
  108. }
  109. }
  110. :global(.odd) {
  111. .wrap {
  112. left: -1px;
  113. &::before {
  114. left: 0;
  115. border-radius: 0 4px 4px 0;
  116. }
  117. &::after {
  118. content: '';
  119. position: absolute;
  120. left: 0;
  121. top: 0;
  122. bottom: 0;
  123. width: 24px;
  124. background: linear-gradient(
  125. to right,
  126. rgba(255, 225, 183, 0.35) 8%,
  127. rgba(255, 255, 255, 0) 100%
  128. );
  129. z-index: 2;
  130. }
  131. }
  132. .wrapItem {
  133. padding-left: 20px;
  134. }
  135. }