index.module.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .list {
  2. @apply grid grid-cols-1 gap-4 my-5 lg:grid-cols-2;
  3. .item {
  4. @apply flex flex-1 rounded-[8px] border-[0.5px] border-black border-opacity-[0.1] bg-white p-3 shadow-lg lg:p-4 relative;
  5. :global(.dark) & {
  6. // @apply bg-[#131415];
  7. @apply bg-zinc-900;
  8. }
  9. .cover {
  10. @apply w-20 mr-2.5 lg:w-28 lg:mr-5;
  11. }
  12. .body {
  13. @apply w-0 flex-1 flex flex-col pr-8;
  14. }
  15. .title {
  16. @apply h-0 overflow-hidden flex-1 line-clamp-2 text-base font-extrabold lg:text-lg;
  17. }
  18. .progressTitle {
  19. @apply text-xs opacity-80 lg:text-base;
  20. }
  21. .progressbar {
  22. @apply w-full h-1 bg-neutral-200 mt-1 rounded-full;
  23. :global(.dark) & {
  24. @apply bg-neutral-700;
  25. }
  26. div {
  27. @apply h-full bg-blue-500 rounded-full;
  28. }
  29. }
  30. .btns {
  31. @apply mt-2.5 lg:mt-4;
  32. }
  33. .btn {
  34. @apply inline-block text-xs border border-blue-700 px-3 py-2 rounded hover:bg-blue-700/10 lg:text-base;
  35. }
  36. .close {
  37. @apply absolute right-0 top-0 p-2;
  38. svg {
  39. @apply fill-current w-6 h-6 opacity-70;
  40. }
  41. &:hover {
  42. svg {
  43. @apply fill-blue-700;
  44. }
  45. }
  46. }
  47. }
  48. }