index.module.less 2.6 KB

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