chapter.module.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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; // 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;
  40. .toolbar-items {
  41. @apply flex lg:flex-col lg:w-full;
  42. }
  43. .toolbar-item {
  44. // position: relative;
  45. // display: flex;
  46. // height: 100%;
  47. // flex-basis: 100%;
  48. // cursor: pointer;
  49. // flex-direction: column;
  50. // align-items: center;
  51. // justify-content: center;
  52. // gap: 0.25rem;
  53. // border-color: currentColor;
  54. @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;
  55. svg {
  56. @apply w-5 h-5 lg:w-4 lg:h-4;
  57. }
  58. &.toolbar-item-current {
  59. @apply lg:bg-blue-700 text-white;
  60. }
  61. }
  62. }
  63. .toolbar-display {
  64. color-scheme: dark;
  65. @apply fixed bottom-0 left-0 w-full bg-gray-900 text-gray-100 z-30 pt-4 pb-16 px-5 shadow-xl shadow-white/10;
  66. @apply lg:w-96 lg:max-h-[calc(100vh-65px)] lg:sticky lg:top-[65px] lg:pb-4 lg:px-0;
  67. .toolbar-display-title {
  68. @apply text-base mb-2;
  69. }
  70. .toolbar-display-label {
  71. @apply text-sm mb-2 mt-5;
  72. }
  73. // :global(.btn-group){
  74. // @apply w-full;
  75. // }
  76. .toolbar-inner {
  77. @apply max-h-[70vh] flex flex-col flex-1 flex-shrink-0;
  78. @apply lg:max-h-full lg:px-5;
  79. .toolbar-scrollbar {
  80. @apply -mr-5 pr-5;
  81. }
  82. ol {
  83. // @apply flex-1 h-0 overflow-y-auto;
  84. // @apply -mr-5 pr-5;
  85. li {
  86. a {
  87. @apply flex w-full h-full py-1;
  88. &:hover {
  89. strong {
  90. text-decoration: underline;
  91. }
  92. }
  93. }
  94. i {
  95. @apply w-11 mr-1 flex-shrink-0 not-italic text-slate-400;
  96. }
  97. strong {
  98. @apply block font-normal flex-1 whitespace-nowrap w-0 overflow-hidden text-ellipsis text-gray-100;
  99. }
  100. small {
  101. @apply text-slate-400 ml-2;
  102. }
  103. &.current {
  104. a strong {
  105. @apply text-blue-300 font-extrabold;
  106. }
  107. }
  108. }
  109. }
  110. }
  111. }