style.scoped.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. .playlist-info {
  2. display: flex;
  3. flex-direction: column;
  4. align-items: center;
  5. justify-content: center;
  6. width: 250px;
  7. min-height: 250px;
  8. margin-bottom: 10px;
  9. position: relative;
  10. z-index: 2;
  11. word-break: break-all;
  12. background-color: #131316;
  13. border-radius: 20px;
  14. transition: 0.5s;
  15. .icon {
  16. position: absolute;
  17. display: flex;
  18. width: 35%;
  19. height: 35%;
  20. z-index: 1;
  21. transition: 0.35s;
  22. filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(116deg)
  23. brightness(109%) contrast(109%);
  24. }
  25. p {
  26. transition: 0.5s;
  27. user-select: none;
  28. opacity: 0;
  29. }
  30. .name {
  31. font-size: 36px;
  32. }
  33. &::before {
  34. top: 0;
  35. content: "Hover here";
  36. width: 100%;
  37. height: 20px;
  38. display: flex;
  39. color: #000;
  40. justify-content: center;
  41. border-top-left-radius: 20px;
  42. border-top-right-radius: 20px;
  43. opacity: 1;
  44. transition: 0.3s;
  45. background-color: rgb(89, 215, 89);
  46. position: absolute;
  47. }
  48. &::after {
  49. bottom: 0;
  50. content: "Click to edit";
  51. width: 100%;
  52. height: 20px;
  53. display: flex;
  54. color: #000;
  55. justify-content: center;
  56. border-bottom-left-radius: 20px;
  57. border-bottom-right-radius: 20px;
  58. opacity: 0;
  59. transition: 0.3s;
  60. background-color: rgb(254, 127, 1);
  61. position: absolute;
  62. }
  63. &:hover {
  64. cursor: pointer;
  65. p {
  66. opacity: 1;
  67. }
  68. .icon {
  69. opacity: 0;
  70. }
  71. &::before {
  72. opacity: 0;
  73. }
  74. &::after {
  75. opacity: 1;
  76. }
  77. }
  78. }
  79. .playlist-edit {
  80. display: flex;
  81. flex-direction: column;
  82. height: 100px;
  83. width: 100%;
  84. justify-content: space-between;
  85. position: absolute;
  86. bottom: 0;
  87. transition: 0.5s;
  88. opacity: 0;
  89. }
  90. .playlist-edit-visible {
  91. bottom: -110px;
  92. opacity: 1;
  93. }