novel-info.module.scss 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 px-4 py-2 rounded-md uppercase lg:text-lg select-none bg-gradient-to-r from-blue-600 to-blue-800 transition-all;
  45. :global(.dark) & {
  46. @apply from-blue-600 to-blue-900;
  47. }
  48. }
  49. }
  50. }
  51. .novel-text {
  52. @apply text-sm;
  53. p {
  54. @apply my-2;
  55. }
  56. }
  57. .chapter-list {
  58. @apply grid gap-y-4 lg:grid-cols-2 lg:gap-x-10 xl:grid-cols-3;
  59. // counter-reset: chapter attr(start);
  60. li {
  61. @apply border-b text-sm lg:text-base border-b-slate-100;
  62. // counter-increment: chapter;
  63. :global(.dark) & {
  64. @apply border-b-slate-700;
  65. }
  66. a {
  67. @apply flex w-full h-full py-2 hover:bg-slate-50;
  68. :global(.dark) & {
  69. @apply hover:bg-slate-800;
  70. }
  71. &:hover {
  72. strong {
  73. text-decoration: underline;
  74. }
  75. }
  76. }
  77. i {
  78. @apply w-10 mr-1 flex-shrink-0 not-italic text-slate-400 ;
  79. }
  80. strong {
  81. @apply block font-normal flex-1;
  82. }
  83. time {
  84. @apply text-slate-400 ml-2;
  85. }
  86. }
  87. }