chapter.module.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. }
  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;
  66. @apply lg:w-96 lg:max-h-[calc(100vh-65px)] lg:sticky lg:top-[65ox] 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 overflow-hidden flex-1 flex-shrink-0;
  78. @apply lg:max-h-full px-5;
  79. ol {
  80. @apply flex-1 h-0 overflow-y-auto;
  81. @apply lg:-mr-5 lg:pr-5;
  82. li {
  83. a {
  84. @apply flex w-full h-full py-1;
  85. &:hover {
  86. strong {
  87. text-decoration: underline;
  88. }
  89. }
  90. }
  91. i {
  92. @apply w-9 mr-1 flex-shrink-0 not-italic text-slate-400;
  93. }
  94. strong {
  95. @apply block font-normal flex-1;
  96. }
  97. small {
  98. @apply text-slate-400 ml-2;
  99. }
  100. }
  101. }
  102. }
  103. }