novel-info.module.scss 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .novel-wrap {
  2. @apply bg-cover bg-center overflow-hidden relative;
  3. @apply before:absolute before:inset-0 before:bg-gradient-to-b before:from-white/80 before:to-white/50;
  4. &::before {
  5. backdrop-filter: blur(8px);
  6. :global(.dark) & {
  7. @apply bg-gradient-to-b from-black/50 to-black/80;
  8. }
  9. }
  10. }
  11. .novel-container {
  12. @apply container relative px-4 mx-auto;
  13. }
  14. .novel-info {
  15. @apply flex pb-5;
  16. .novel-info-cover {
  17. @apply w-24 flex-shrink-0 mr-4 self-start md:w-32 lg:w-56 lg:mr-10;
  18. }
  19. .nove-info-body {
  20. @apply w-0 flex-1 flex flex-col justify-between;
  21. h1 {
  22. @apply w-full text-xl font-bold md:text-3xl lg:text-4xl text-black;
  23. :global(.dark) & {
  24. @apply text-white;
  25. }
  26. small {
  27. @apply text-xs inline-block align-middle px-2 py-0.5 text-white rounded ml-2 bg-blue-600;
  28. }
  29. }
  30. h2 {
  31. @apply text-sm flex items-center whitespace-nowrap flex-wrap py-2 lg:text-xl;
  32. a,
  33. strong {
  34. @apply flex items-center mr-2 font-bold lg:mr-4;
  35. }
  36. svg {
  37. @apply w-4 h-4 mr-1 md:w-5 md:h-5 lg:w-8 lg:h-8;
  38. }
  39. }
  40. .btns {
  41. @apply flex;
  42. }
  43. .button {
  44. @apply block text-white text-center px-4 py-3 rounded-md lg:text-lg select-none bg-gradient-to-r from-blue-600 to-blue-800 transition-all;
  45. strong {
  46. @apply block uppercase;
  47. }
  48. span {
  49. @apply block text-xs leading-3 opacity-70;
  50. }
  51. :global(.dark) & {
  52. @apply from-blue-600 to-blue-900;
  53. }
  54. }
  55. }
  56. }
  57. .novel-text {
  58. @apply text-sm;
  59. p {
  60. @apply my-2;
  61. }
  62. }
  63. .chapter-list {
  64. @apply grid gap-y-4 lg:grid-cols-2 lg:gap-x-10 xl:grid-cols-3;
  65. // counter-reset: chapter attr(start);
  66. li {
  67. @apply border-b text-sm lg:text-base border-b-gray-100;
  68. // counter-increment: chapter;
  69. :global(.dark) & {
  70. @apply border-b-gray-700;
  71. }
  72. a {
  73. @apply flex w-full h-full py-2 hover:bg-gray-50;
  74. :global(.dark) & {
  75. @apply hover:bg-gray-800;
  76. }
  77. &:hover {
  78. strong {
  79. text-decoration: underline;
  80. }
  81. }
  82. }
  83. i {
  84. @apply w-10 mr-1 flex-shrink-0 not-italic text-gray-400;
  85. }
  86. strong {
  87. @apply block font-normal flex-1;
  88. }
  89. time {
  90. @apply text-gray-400 ml-2;
  91. }
  92. }
  93. }