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