PlayerControls.css
| 1 | .player-controls { |
| 2 | padding: 1rem; |
| 3 | border-top: 1px solid var(--color-c); |
| 4 | display: flex; |
| 5 | flex-direction: column; |
| 6 | gap: 0.5rem; |
| 7 | |
| 8 | & > .track-info-toggle-container { |
| 9 | display: flex; |
| 10 | justify-content: space-between; |
| 11 | gap: 0.5rem; |
| 12 | & > .track-info { |
| 13 | display: flex; |
| 14 | gap: 1rem; |
| 15 | margin-bottom: 0.5rem; |
| 16 | margin-left: auto; |
| 17 | margin-right: auto; |
| 18 | text-align: center; |
| 19 | font-weight: bold; |
| 20 | overflow: hidden; |
| 21 | & > button > svg { |
| 22 | width: 20px; |
| 23 | height: 20px; |
| 24 | } |
| 25 | |
| 26 | & > .short-name { |
| 27 | overflow: hidden; |
| 28 | text-overflow: ellipsis; |
| 29 | text-wrap: nowrap; |
| 30 | } |
| 31 | .loading-spinner { |
| 32 | width: 20px !important; |
| 33 | height: 20px !important; |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | .metadata-list { |
| 40 | display: flex; |
| 41 | flex-direction: column; |
| 42 | gap: 0.5rem; |
| 43 | } |
| 44 | |
| 45 | .control-buttons { |
| 46 | display: flex; |
| 47 | flex-wrap: wrap; |
| 48 | justify-content: center; |
| 49 | gap: 1rem; |
| 50 | |
| 51 | button { |
| 52 | background: none; |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | .progress-container { |
| 57 | display: flex; |
| 58 | align-items: center; |
| 59 | gap: 0.5rem; |
| 60 | |
| 61 | & > .progress-bar { |
| 62 | position: relative; |
| 63 | flex: 1; |
| 64 | background-color: #ddd; |
| 65 | cursor: pointer; |
| 66 | |
| 67 | & > .buffered-fill, |
| 68 | & > .progress-fill { |
| 69 | pointer-events: none; |
| 70 | position: absolute; |
| 71 | top: 0; |
| 72 | left: 0; |
| 73 | height: 100%; |
| 74 | background-color: #0cc069; |
| 75 | } |
| 76 | |
| 77 | & > .progress-fill { |
| 78 | background-color: #4a6da7; |
| 79 | z-index: 1; |
| 80 | } |
| 81 | & > .progress-handle { |
| 82 | position: absolute; |
| 83 | top: 50%; |
| 84 | transform: translate(-50%, -50%); |
| 85 | background-color: #ddd; |
| 86 | border: 1px solid slategray; |
| 87 | touch-action: none; /*needed to disable pull-to-refresh on mobile*/ |
| 88 | |
| 89 | z-index: 2; |
| 90 | cursor: pointer; |
| 91 | pointer-events: auto; |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | .time-container { |
| 97 | display: flex; |
| 98 | justify-content: center; |
| 99 | gap: 0.5rem; |
| 100 | } |
| 101 | |
| 102 | .volume-control { |
| 103 | display: flex; |
| 104 | align-items: center; |
| 105 | padding: 0.25rem 0.5rem; |
| 106 | gap: 0.5rem; |
| 107 | min-width: 0; |
| 108 | svg { |
| 109 | flex-shrink: 0; |
| 110 | } |
| 111 | input { |
| 112 | min-width: 0; |
| 113 | } |
| 114 | } |
| 115 |