PlaylistView.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. @import './Animations';
  2. #playlists-view {
  3. padding-left: 50px;
  4. overflow: scroll;
  5. height: calc(100% + 10px);
  6. h1 {
  7. margin-top: 30px;
  8. margin-bottom: 10px;
  9. font-size: 32pt;
  10. }
  11. #new-playlist-button {
  12. width: 50px;
  13. height: 50px;
  14. display: flex;
  15. justify-content: center;
  16. align-items: center;
  17. border-radius: 50%;
  18. color: white;
  19. background-color: #2a4da3;
  20. font-size: 24pt;
  21. font-weight: bold;
  22. cursor: pointer;
  23. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
  24. position: absolute;
  25. top: 70px;
  26. right: 60px;
  27. }
  28. .playlist-item {
  29. display: flex;
  30. flex-flow: row nowrap;
  31. margin: 10px 0;
  32. width: 85%;
  33. box-sizing: border-box;
  34. padding-bottom: 10px;
  35. border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
  36. cursor: pointer;
  37. img {
  38. width: 100px;
  39. height: 100px;
  40. border-radius: 5px;
  41. margin-right: 10px;
  42. filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.25));
  43. }
  44. .playlist-item-info {
  45. width: inherit;
  46. .playlist-item-title, .playlist-item-author {
  47. white-space: nowrap;
  48. width: inherit;
  49. overflow: hidden;
  50. text-overflow: ellipsis;
  51. }
  52. .playlist-item-title {
  53. display: inline-block;
  54. margin: 5px 0;
  55. font-weight: bold;
  56. font-size: 14pt;
  57. }
  58. .playlist-item-length-info {
  59. opacity: 0.5;
  60. font-size: 11pt;
  61. position: relative;
  62. top: -10px;
  63. }
  64. .playlist-item-author {
  65. margin-bottom: 5px;
  66. }
  67. .playlist-item-description {
  68. overflow: hidden;
  69. height: 40px;
  70. &.no-description {
  71. font-style: italic;
  72. opacity: 0.5;
  73. }
  74. }
  75. }
  76. }
  77. }
  78. #new-playlist-dialog-under {
  79. position: absolute;
  80. top: 35px;
  81. left: 0;
  82. width: 100vw;
  83. height: calc(100vh - 35px);
  84. background-color: rgba(0, 0, 0, 0.5);
  85. animation: fade-in .2s forwards ease-out;
  86. perspective: 1000;
  87. #new-playlist-dialog {
  88. display: flex;
  89. flex-flow: row nowrap;
  90. position: absolute;
  91. top: calc(50% - 245px);
  92. left: calc(50% - 420px);
  93. width: 800px;
  94. height: 450px;
  95. background: white;
  96. padding: 20px;
  97. transform-origin: 0 0;
  98. animation: drop-in .2s forwards ease-out;
  99. label {
  100. display: block;
  101. margin-right: 5px;
  102. font-weight: bold;
  103. }
  104. #new-playlist-cover-image {
  105. display: none;
  106. }
  107. #new-playlist-add-cover-image {
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. font-size: 32pt;
  112. font-weight: bold;
  113. color: white;
  114. width: 200px;
  115. height: 200px;
  116. margin-bottom: 5px;
  117. background: rgba(0, 0, 0, 0.1);
  118. border-radius: 5px;
  119. cursor: pointer;
  120. overflow: hidden;
  121. img {
  122. width: 200px;
  123. height: 200px;
  124. }
  125. }
  126. #new-playlist-info {
  127. margin-top: 30px;
  128. margin-left: 30px;
  129. }
  130. }
  131. }
  132. .theme-dark #new-playlist-dialog-under #new-playlist-dialog {
  133. background: #303030;
  134. }