index.module.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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: 30px 30px;
  57. height: 100%;
  58. overflow: hidden;
  59. z-index: 2;
  60. }
  61. .item {
  62. display: flex;
  63. font-size: 12px;
  64. font-weight: 600;
  65. color: #333;
  66. line-height: 20px;
  67. margin: 20px 0;
  68. word-break: break-all;
  69. }
  70. .name {
  71. width: 100%;
  72. display: flex;
  73. flex-direction: row;
  74. align-items: center;
  75. }
  76. .des {
  77. line-height: 16px;
  78. font-size: 12px;
  79. font-weight: 400;
  80. }
  81. .icon {
  82. width: 20px;
  83. height: 20px;
  84. margin-right: 6px;
  85. }
  86. .last {
  87. font-size: 12px;
  88. color: #ff5a56;
  89. margin-left: 6px;
  90. font-weight: 400;
  91. }
  92. }
  93. :global(.even) {
  94. .wrap {
  95. left: -1px;
  96. &::before {
  97. right: 0;
  98. border-radius: 4px 0 0 4px;
  99. }
  100. &::after {
  101. content: '';
  102. position: absolute;
  103. right: 0;
  104. top: 0;
  105. bottom: 0;
  106. width: 24px;
  107. background: linear-gradient(
  108. to right,
  109. rgba(255, 255, 255, 0) 20%,
  110. rgba(229, 199, 156, 0.4) 100%
  111. );
  112. z-index: 3;
  113. }
  114. }
  115. }
  116. :global(.odd) {
  117. .wrap {
  118. left: -1px;
  119. &::before {
  120. left: 0;
  121. border-radius: 0 4px 4px 0;
  122. }
  123. &::after {
  124. content: '';
  125. position: absolute;
  126. left: 0;
  127. top: 0;
  128. bottom: 0;
  129. width: 24px;
  130. background: linear-gradient(
  131. to right,
  132. rgba(255, 225, 183, 0.35) 8%,
  133. rgba(255, 255, 255, 0) 100%
  134. );
  135. z-index: 2;
  136. }
  137. }
  138. .wrapItem {
  139. padding-left: 20px;
  140. }
  141. }
  142. .preIcon {
  143. width: 22px;
  144. height: 13px;
  145. margin-right: 5px;
  146. }
  147. .nameText {
  148. overflow: hidden;
  149. white-space: nowrap;
  150. text-overflow: ellipsis;
  151. }