CoverGridItem.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. .cover-grid-item {
  2. position: relative;
  3. border-radius: 5px;
  4. height: 275px;
  5. width: 200px;
  6. margin-bottom: 2vw;
  7. cursor: pointer;
  8. transition: transform 0.5s;
  9. background: rgb(128, 128, 128);
  10. .library-indicator {
  11. bottom: 80px;
  12. left: 5px;
  13. }
  14. .cover-image {
  15. height: 200px;
  16. width: 200px;
  17. border-radius: 5px 5px 0 0;
  18. background: rgb(128, 128, 128);
  19. margin: 0;
  20. }
  21. .cover-grid-info-tab {
  22. height: 95px;
  23. width: 100%;
  24. background: rgb(128, 128, 128);
  25. margin-top: -4px;
  26. padding: .5vw;
  27. box-sizing: border-box;
  28. border-radius: 0 0 5px 5px;
  29. transition: background-color 0.5s;
  30. overflow: hidden;
  31. .cover-grid-title {
  32. width: 100%;
  33. overflow: hidden;
  34. text-overflow: ellipsis;
  35. font-weight: bold;
  36. font-size: 14pt;
  37. white-space: nowrap;
  38. }
  39. .cover-grid-artist {
  40. width: 100%;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. font-size: 12pt;
  44. white-space: nowrap;
  45. }
  46. .dots {
  47. display: flex;
  48. flex-flow: row nowrap;
  49. .dot {
  50. width: 10px;
  51. height: 10px;
  52. background-color: black;
  53. border-radius: 25%;
  54. margin-right: 5px;
  55. margin-top: 5px;
  56. }
  57. }
  58. }
  59. &::after {
  60. content: '';
  61. display: block;
  62. position: absolute;
  63. left: 0;
  64. top: 0;
  65. box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5);
  66. border-radius: 5px;
  67. height: 275px;
  68. width: 200px;
  69. z-index: -1;
  70. }
  71. &:hover {
  72. transform: scale(1.05);
  73. }
  74. &:last-child {
  75. margin-bottom: 7vw;
  76. margin-right: 1vw;
  77. }
  78. &.loading {
  79. .cover-image {
  80. object-fit: contain;
  81. }
  82. }
  83. }
  84. @keyframes pulse {
  85. to {
  86. background-position: 0px -18vw;
  87. }
  88. }