PlaylistDetails.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. @import './Animations';
  2. #playlist-details {
  3. display: flex;
  4. flex-flow: row nowrap;
  5. padding: 15px;
  6. height: calc(100vh - 85px);
  7. position: relative;
  8. animation: fade-in .2s forwards;
  9. #playlist-songs {
  10. overflow-y: scroll;
  11. flex-grow: 1;
  12. margin-bottom: -35px;
  13. .playlist-song-item {
  14. padding: 10px 0;
  15. border-bottom: 1px dashed rgba(0,0,0,0.25);
  16. transition: .2s;
  17. span {
  18. display: flex;
  19. align-items: center;
  20. margin-left: 10px;
  21. width: calc(100% - 20px);
  22. }
  23. img:not(.delete-playlist-item) {
  24. width: 50px;
  25. height: 50px;
  26. border-radius: 5px;
  27. margin-right: 10px;
  28. filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.25));
  29. }
  30. .playlist-item-downloaded {
  31. width: 35px;
  32. height: 35px;
  33. margin-top: 10px;
  34. margin-left: 10px;
  35. margin-right: 10px;
  36. display: block;
  37. background: url(../assets/check.png);
  38. background-size: 25px;
  39. background-repeat: no-repeat;
  40. }
  41. .delete-playlist-item {
  42. width: 35px;
  43. height: 35px;
  44. margin-top: 10px;
  45. margin-left: 10px;
  46. margin-right: 10px;
  47. display: block;
  48. background: url(../assets/close.png);
  49. background-size: 25px;
  50. background-repeat: no-repeat;
  51. cursor: pointer;
  52. }
  53. &.draggable {
  54. cursor: -webkit-grab;
  55. border-bottom: none;
  56. background: rgba(0, 0, 0, 0.1);
  57. border-radius: 5px;
  58. margin: 10px;
  59. }
  60. }
  61. }
  62. #details-split {
  63. width: 100%;
  64. display: flex;
  65. flex-flow: row nowrap;
  66. margin-right: 40px;
  67. }
  68. #details-info {
  69. margin: 10px 20px;
  70. display: flex;
  71. flex-flow: column nowrap;
  72. width: calc(20vw + 20px);
  73. #edit-playlist-cover-image {
  74. display: none;
  75. }
  76. #edit-playlist-add-cover-image {
  77. display: flex;
  78. justify-content: center;
  79. align-items: center;
  80. font-size: 32pt;
  81. font-weight: bold;
  82. color: white;
  83. width: 200px;
  84. height: 200px;
  85. margin-bottom: 5px;
  86. background: rgba(0, 0, 0, 0.1);
  87. border-radius: 5px;
  88. cursor: pointer;
  89. overflow: hidden;
  90. img {
  91. width: 200px;
  92. height: 200px;
  93. }
  94. }
  95. .details-title {
  96. display: inline-block;
  97. font-size: 14pt;
  98. font-weight: 900;
  99. margin-top: 7px;
  100. margin-bottom: -3px;
  101. padding-left: 5px;
  102. max-width: 20vw;
  103. max-height: 70px;
  104. overflow: hidden;
  105. text-overflow: ellipsis;
  106. flex-shrink: 0;
  107. }
  108. .details-author {
  109. font-size: 12pt;
  110. opacity: 0.8;
  111. flex-shrink: 0;
  112. padding-left: 5px;
  113. margin-top: 5px;
  114. }
  115. .details-description {
  116. margin-bottom: 10px;
  117. max-width: 30vw;
  118. max-height: 20vh;
  119. overflow-y: scroll;
  120. flex-shrink: 0;
  121. }
  122. .action-buttons {
  123. margin: 15px 0;
  124. .action-button {
  125. margin: 0 3px;
  126. padding: 5px 10px;
  127. border-radius: 20px;
  128. font-size: 8pt;
  129. font-weight: 900;
  130. color: white;
  131. background-color: rgba(42, 77, 163, 0.8);
  132. cursor: pointer;
  133. display: inline-flex;
  134. align-items: center;
  135. &:not(.more-button) img {
  136. width: 15px;
  137. height: 15px;
  138. margin-right: 5px;
  139. }
  140. &.more-button img {
  141. width: 15px;
  142. height: 15px;
  143. }
  144. &:hover {
  145. background-color: rgb(42, 77, 163);
  146. }
  147. }
  148. }
  149. }
  150. .cover-image {
  151. width: 20vw;
  152. height: 20vw;
  153. filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.25));
  154. border-radius: 5px;
  155. }
  156. .text-box {
  157. width: calc(20vw - 30px);
  158. min-width: 0 !important;
  159. &:nth-child(2) {
  160. margin-top: 10px;
  161. }
  162. }
  163. .text-area {
  164. width: calc(20vw - 30px);
  165. height: 75px;
  166. min-width: calc(20vw - 30px);
  167. max-width: calc(20vw - 30px);
  168. }
  169. .close-icon {
  170. cursor: pointer;
  171. position: absolute;
  172. top: 20px;
  173. right: 20px;
  174. width: 25px;
  175. height: 25px;
  176. background: url(../assets/close.png);
  177. background-size: 25px;
  178. img {
  179. width: 25px;
  180. height: 25px;
  181. }
  182. }
  183. &.loading {
  184. .cover-image {
  185. display: block;
  186. background-color: silver;
  187. width: 20vw;
  188. height: 20vw;
  189. box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.25);
  190. border-radius: 5px;
  191. }
  192. .details-info {
  193. .details-title {
  194. display: inline-block;
  195. height: 30px;
  196. width: 30vw;
  197. background-color: silver;
  198. }
  199. .details-author {
  200. height: 20px;
  201. width: 15vw;
  202. background-color: silver;
  203. margin-top: 5px;
  204. }
  205. .details-description {
  206. background-color: silver;
  207. width: 30vw;
  208. height: 16.8vw;
  209. flex-shrink: 0;
  210. }
  211. .action-buttons .action-button {
  212. opacity: 0.4;
  213. cursor: not-allowed;
  214. flex-shrink: 0;
  215. }
  216. }
  217. }
  218. }
  219. .theme-dark, .theme-hc {
  220. #playlist-details {
  221. #playlist-songs .playlist-song-item {
  222. .delete-playlist-item {
  223. background: url(../assets/dark/close.png);
  224. background-size: 25px;
  225. background-repeat: no-repeat;
  226. }
  227. &.draggable {
  228. background: rgba(0, 0, 0, 0.3);
  229. }
  230. }
  231. .close-icon {
  232. background: url(../assets/dark/close.png);
  233. background-size: 25px;
  234. }
  235. }
  236. }
  237. .theme-hc {
  238. #playlist-songs .playlist-song-item {
  239. .delete-playlist-item {
  240. background: url(../assets/dark/close.png);
  241. background-size: 25px;
  242. background-repeat: no-repeat;
  243. }
  244. border-bottom: 1px dashed white !important;
  245. &.draggable {
  246. background: rgba(0, 0, 0, 0.3);
  247. border: 1px solid white;
  248. border-bottom: 1px solid white !important;
  249. }
  250. }
  251. }
  252. @keyframes playlist-details-loading-mask {
  253. to {
  254. mask-position: 300px 0;
  255. }
  256. }