chapter.module.scss 4.2 KB

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