chapter.module.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .chapter-page {
  2. @apply font-sans w-full flex-1 py-5 px-5 border-x border-x-gray-200 bg-white;
  3. @apply lg:w-0 lg:max-w-3xl lg:px-10;
  4. :global(.dark) & {
  5. @apply bg-gray-800 border-x-gray-700;
  6. }
  7. &.serif {
  8. @apply font-serif;
  9. }
  10. }
  11. .chapter-header {
  12. @apply flex px-5 items-center relative;
  13. @apply lg:sticky;
  14. &.open {
  15. @apply sticky;
  16. }
  17. }
  18. .chapter-main {
  19. @apply flex justify-center bg-gray-100 lg:pr-12 lg:min-h-[calc(100vh-65px)];
  20. :global(.dark) & {
  21. @apply bg-gray-900;
  22. }
  23. }
  24. .novel {
  25. @apply w-full;
  26. header {
  27. @apply mb-5;
  28. }
  29. h1 {
  30. @apply text-3xl font-bold;
  31. }
  32. h2 {
  33. @apply text-2xl font-bold;
  34. }
  35. p {
  36. @apply my-3;
  37. }
  38. }
  39. .toolbar {
  40. color-scheme: dark;
  41. @apply fixed bottom-0 left-0 w-full bg-gray-800 z-20 text-gray-400; // hidden;
  42. @apply lg:right-0 lg:w-auto lg:left-auto lg:h-full lg:flex lg:items-center lg:justify-center;
  43. .toolbar-items {
  44. @apply flex lg:flex-col lg:w-full;
  45. }
  46. .toolbar-item {
  47. // position: relative;
  48. // display: flex;
  49. // height: 100%;
  50. // flex-basis: 100%;
  51. // cursor: pointer;
  52. // flex-direction: column;
  53. // align-items: center;
  54. // justify-content: center;
  55. // gap: 0.25rem;
  56. // border-color: currentColor;
  57. @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;
  58. svg {
  59. @apply w-5 h-5 lg:w-4 lg:h-4;
  60. }
  61. &.toolbar-item-current {
  62. @apply lg:bg-blue-700 lg:text-white;
  63. }
  64. }
  65. }
  66. .toolbar-display {
  67. color-scheme: dark;
  68. @apply fixed bottom-0 left-0 w-full bg-gray-900 text-gray-100 z-30 pt-4 pb-16 px-5;
  69. @apply lg:w-96 lg:max-h-[calc(100vh-65px)] lg:sticky lg:top-[65ox] lg:pb-4 lg:px-0;
  70. .toolbar-display-title {
  71. @apply text-base mb-2;
  72. }
  73. .toolbar-display-label {
  74. @apply text-sm mb-2 mt-5;
  75. }
  76. // :global(.btn-group){
  77. // @apply w-full;
  78. // }
  79. .toolbar-inner {
  80. @apply max-h-[70vh] flex flex-col overflow-hidden flex-1 flex-shrink-0;
  81. @apply lg:max-h-full lg:px-5;
  82. ol {
  83. // @apply flex-1 h-0 overflow-y-auto;
  84. // @apply lg:-mr-5 lg: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-9 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;
  99. }
  100. small {
  101. @apply text-slate-400 ml-2;
  102. }
  103. }
  104. }
  105. }
  106. }