chapter.module.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. .chapter-page {
  2. @apply w-full flex-1 py-5 px-5 bg-white;
  3. @apply lg:w-0 lg:max-w-3xl lg:px-10 lg:border-x lg:border-x-gray-200;
  4. :global(.dark) & {
  5. @apply bg-gray-800 border-x-gray-700;
  6. }
  7. }
  8. .chapter-header {
  9. @apply flex px-5 items-center relative;
  10. @apply lg:sticky;
  11. &.open {
  12. @apply sticky;
  13. }
  14. }
  15. .chapter-main {
  16. @apply flex justify-center bg-gray-100 lg:pr-12 lg:min-h-[calc(100vh-65px)];
  17. :global(.dark) & {
  18. @apply bg-gray-900;
  19. }
  20. }
  21. .novel {
  22. @apply w-full;
  23. header {
  24. @apply mb-5;
  25. }
  26. h1 {
  27. @apply text-3xl font-bold;
  28. }
  29. h2 {
  30. @apply text-2xl font-bold;
  31. }
  32. p {
  33. @apply my-[1em] leading-[1.5];
  34. }
  35. }
  36. .toolbar {
  37. color-scheme: dark;
  38. @apply fixed bottom-0 left-0 w-full bg-gray-900 z-30 text-gray-400 shadow-lg shadow-white; // hidden;
  39. @apply lg:bg-gray-800 lg:right-0 lg:w-auto lg:left-auto lg:h-full lg:flex lg:items-center lg:justify-center lg:shadow-none;
  40. .toolbar-items {
  41. @apply flex lg:flex-col lg:w-full;
  42. }
  43. .toolbar-item {
  44. @apply flex-1 flex items-center justify-center py-5 lg:border-t lg:border-t-gray-900 lg:p-4 lg:hover:bg-gray-700 lg:last:border-b lg:last:border-b-gray-900;
  45. svg {
  46. @apply w-5 h-5 lg:w-4 lg:h-4;
  47. }
  48. &.toolbar-item-current {
  49. @apply lg:bg-blue-700 text-white;
  50. }
  51. }
  52. }
  53. .toolbar-display {
  54. color-scheme: dark;
  55. @apply fixed bottom-0 left-0 w-full bg-gray-900 text-gray-100 z-30 pt-4 pb-24 px-5 shadow-xl shadow-white/10;
  56. @apply lg:w-96 lg:max-h-[calc(100vh-65px)] lg:sticky lg:top-[65px] lg:pb-4 lg:px-0;
  57. .toolbar-display-title {
  58. @apply flex text-base mb-2 pb-2 items-center justify-between border-b border-b-slate-700;
  59. .btn-close {
  60. @apply w-6 h-6;
  61. .icon-close {
  62. @apply w-6 h-6;
  63. }
  64. }
  65. }
  66. .toolbar-display-label {
  67. @apply text-sm mb-2 mt-5;
  68. }
  69. // :global(.btn-group){
  70. // @apply w-full;
  71. // }
  72. .toolbar-inner {
  73. @apply max-h-[70vh] flex flex-col flex-1 flex-shrink-0;
  74. @apply lg:max-h-full lg:px-5;
  75. .toolbar-scrollbar {
  76. @apply -mr-5 pr-5;
  77. }
  78. ol {
  79. // @apply flex-1 h-0 overflow-y-auto;
  80. // @apply -mr-5 pr-5;
  81. li {
  82. a {
  83. @apply block overflow-hidden py-1 w-full text-ellipsis hover:underline whitespace-nowrap;
  84. }
  85. &.current {
  86. @apply text-blue-300 font-extrabold;
  87. }
  88. // a {
  89. // @apply flex w-full h-full py-1;
  90. // &:hover {
  91. // strong {
  92. // text-decoration: underline;
  93. // }
  94. // }
  95. // }
  96. // i {
  97. // @apply w-11 mr-1 flex-shrink-0 not-italic text-slate-400;
  98. // }
  99. // strong {
  100. // @apply block font-normal flex-1 whitespace-nowrap w-0 overflow-hidden text-ellipsis text-gray-100;
  101. // }
  102. // small {
  103. // @apply text-slate-400 ml-2;
  104. // }
  105. // &.current {
  106. // a strong {
  107. // @apply text-blue-300 font-extrabold;
  108. // }
  109. // }
  110. }
  111. }
  112. }
  113. }
  114. .slider {
  115. @apply h-1 w-full inline-block relative cursor-pointer touch-none text-blue-300;
  116. &:hover {
  117. @apply opacity-100;
  118. }
  119. &.disabled {
  120. @apply pointer-events-none cursor-default opacity-50 text-gray-600;
  121. }
  122. & .rail {
  123. @apply block absolute w-full h-1 rounded bg-current opacity-40;
  124. }
  125. & .track {
  126. @apply block absolute h-1 rounded bg-current;
  127. }
  128. & .thumb {
  129. @apply absolute w-5 h-5 -ml-2.5 -mt-2.5 top-1/2 box-border rounded-full outline-0 border-0 border-current bg-white;
  130. &:hover,
  131. &.focusVisible {
  132. box-shadow: 0 0 0 0.25rem rgba(147, 196, 253, 0.15);
  133. // @apply shadow-blue-300 shadow-md;
  134. }
  135. &.active {
  136. box-shadow: 0 0 0 0.25rem rgba(147, 196, 253, 0.3);
  137. // @apply shadow-blue-300 shadow-md;
  138. }
  139. }
  140. & .mark {
  141. @apply absolute w-0.5 h-0.5 rounded bg-current top-1/2 opacity-70 -translate-x-1/2 -translate-y-1/2;
  142. }
  143. & .markActive {
  144. @apply bg-blue-900;
  145. }
  146. & .valueLabel {
  147. @apply text-sm block relative -top-6 text-center -translate-x-1/2;
  148. }
  149. & .markLabel {
  150. @apply text-xs absolute top-3 -translate-x-1/2;
  151. }
  152. }