Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: ui/file_manager/audio_player/elements/control_panel.css

Issue 1441603002: Revert of Fix accessibility issues in AudioPlayer and VideoPlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Copyright 2014 The Chromium Authors. All rights reserved. 1 /* Copyright 2014 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 /* Controls bar. */ 5 /* Controls bar. */
6 .controls { 6 .controls {
7 align-items: center; 7 align-items: center;
8 background-color: white; 8 background-color: white;
9 display: flex; 9 display: flex;
10 flex-direction: column; 10 flex-direction: column;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 width: 100%; 55 width: 100%;
56 } 56 }
57 57
58 .media-button > div { 58 .media-button > div {
59 left: 0; 59 left: 0;
60 opacity: 0; 60 opacity: 0;
61 position: absolute; 61 position: absolute;
62 top: 0; 62 top: 0;
63 } 63 }
64 64
65 .media-button[state='default']:not(.disabled) > .default,
66 .media-button[state='ended']:not(.disabled) > .ended,
67 .media-button[state='playing']:not(.disabled) > .playing,
68 .media-button.disabled > .disabled {
69 opacity: 1;
70 }
71
65 /* Custom sliders for progress and volume. */ 72 /* Custom sliders for progress and volume. */
66 73
67 /* Customize the standard input[type='range']. */ 74 /* Customize the standard input[type='range']. */
68 75
69 /* Time controls: a slider and a text time display. */ 76 /* Time controls: a slider and a text time display. */
70 77
71 .time-controls { 78 .time-controls {
72 align-items: center; 79 align-items: center;
73 display: flex; 80 display: flex;
74 flex-direction: row; 81 flex-direction: row;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 justify-content: center; 127 justify-content: center;
121 } 128 }
122 129
123 /* Play/pause button. */ 130 /* Play/pause button. */
124 131
125 .media-button.toggle input { 132 .media-button.toggle input {
126 position: absolute; 133 position: absolute;
127 visibility: hidden; 134 visibility: hidden;
128 } 135 }
129 136
130 .media-button.shuffle-mode { 137 .media-button.shuffle-mode > label > .icon {
131 background-image: -webkit-image-set( 138 background-image: -webkit-image-set(
132 url(../assets/100/player_button_shuffle.png) 1x, 139 url(../assets/100/player_button_shuffle.png) 1x,
133 url(../assets/200/player_button_shuffle.png) 2x); 140 url(../assets/200/player_button_shuffle.png) 2x);
134 pointer-events: auto; 141 pointer-events: auto;
135 } 142 }
136 143
137 .media-button.repeat { 144 .media-button.repeat {
138 margin-left: 8px; 145 margin-left: 8px;
139 margin-right: 0; 146 margin-right: 0;
140 } 147 }
141 148
142 .media-button.repeat { 149 .media-button.repeat > label > .icon {
143 background-image: -webkit-image-set( 150 background-image: -webkit-image-set(
144 url(../assets/100/player_button_repeat.png) 1x, 151 url(../assets/100/player_button_repeat.png) 1x,
145 url(../assets/200/player_button_repeat.png) 2x); 152 url(../assets/200/player_button_repeat.png) 2x);
146 pointer-events: auto; 153 pointer-events: auto;
147 } 154 }
148 155
149 .media-button.play { 156 .media-button.play {
150 margin-left: 4px; 157 margin-left: 4px;
151 margin-right: 4px; 158 margin-right: 4px;
152 } 159 }
153 160
154 .media-button.play { 161 .media-button.play > .ended {
155 background-image: -webkit-image-set( 162 background-image: -webkit-image-set(
156 url(../assets/100/player_button_play.png) 1x, 163 url(../assets/100/player_button_play.png) 1x,
157 url(../assets/200/player_button_play.png) 2x); 164 url(../assets/200/player_button_play.png) 2x);
158 } 165 }
159 166
160 :host([playing]) .media-button.play { 167 .media-button.play > .playing {
161 background-image: -webkit-image-set( 168 background-image: -webkit-image-set(
162 url(../assets/100/player_button_pause.png) 1x, 169 url(../assets/100/player_button_pause.png) 1x,
163 url(../assets/200/player_button_pause.png) 2x); 170 url(../assets/200/player_button_pause.png) 2x);
164 } 171 }
165 172
166 .media-button.previous { 173 .media-button.previous {
167 background-image: -webkit-image-set(
168 url(../assets/100/player_button_previous.png) 1x,
169 url(../assets/200/player_button_previous.png) 2x);
170 margin-left: 8px; 174 margin-left: 8px;
171 margin-right: 0; 175 margin-right: 0;
172 } 176 }
173 177
178 .media-button.previous > .normal {
179 background-image: -webkit-image-set(
180 url(../assets/100/player_button_previous.png) 1x,
181 url(../assets/200/player_button_previous.png) 2x);
182 }
183
174 .media-button.next { 184 .media-button.next {
175 background-image: -webkit-image-set(
176 url(../assets/100/player_button_next.png) 1x,
177 url(../assets/200/player_button_next.png) 2x);
178 margin-left: 0; 185 margin-left: 0;
179 margin-right: 8px; 186 margin-right: 8px;
180 } 187 }
181 188
189 .media-button.next > .normal {
190 background-image: -webkit-image-set(
191 url(../assets/100/player_button_next.png) 1x,
192 url(../assets/200/player_button_next.png) 2x);
193 }
194
182 .media-button.volume { 195 .media-button.volume {
196 margin-left: 0;
197 margin-right: 8px;
198 }
199
200 .media-button.volume > .normal {
183 background-image: -webkit-image-set( 201 background-image: -webkit-image-set(
184 url(../assets/100/player_button_volume.png) 1x, 202 url(../assets/100/player_button_volume.png) 1x,
185 url(../assets/200/player_button_volume.png) 2x); 203 url(../assets/200/player_button_volume.png) 2x);
186 margin-left: 0; 204 }
187 margin-right: 8px; 205
206 .media-button.volume > label > .icon {
207 background-image: -webkit-image-set(
208 url(../assets/100/player_button_volume.png) 1x,
209 url(../assets/200/player_button_volume.png) 2x);
188 pointer-events: auto; 210 pointer-events: auto;
189 } 211 }
190 212
191 .media-button.playlist { 213 .media-button.playlist > label > .icon {
192 background-image: -webkit-image-set( 214 background-image: -webkit-image-set(
193 url(../assets/100/player_button_playlist.png) 1x, 215 url(../assets/100/player_button_playlist.png) 1x,
194 url(../assets/200/player_button_playlist.png) 2x); 216 url(../assets/200/player_button_playlist.png) 2x);
195 pointer-events: auto; 217 pointer-events: auto;
196 } 218 }
197 219
220 .media-button files-toggle-ripple {
221 position: absolute;
222 height: 28px;
223 left: 2px;
224 top: 2px;
225 width: 28px;
226 pointer-events: none;
227 }
228
229 .media-button files-toggle-ripple::shadow .ripple.activated {
230 opacity: 0.1;
231 }
232
198 /* Invisible div used to compute the width required for the elapsed time. */ 233 /* Invisible div used to compute the width required for the elapsed time. */
199 .time-controls > .time > .current { 234 .time-controls > .time > .current {
200 align-items: center; 235 align-items: center;
201 display: flex; 236 display: flex;
202 flex-direction: row; 237 flex-direction: row;
203 height: 100%; 238 height: 100%;
204 justify-content: flex-end; 239 justify-content: flex-end;
205 position: absolute; 240 position: absolute;
206 top: -1px; 241 top: -1px;
207 } 242 }
208 243
209 .volume-controls { 244 .volume-controls {
210 align-items: center; 245 align-items: center;
211 background-color: rgb(235, 235, 235); 246 background-color: rgb(235, 235, 235);
212 display: flex; 247 display: flex;
213 flex-direction: row; 248 flex-direction: row;
214 } 249 }
215 250
216 .volume-controls paper-slider { 251 .volume-controls paper-slider {
217 width: 100%; 252 width: 100%;
218 } 253 }
OLDNEW
« no previous file with comments | « ui/file_manager/audio_player/elements/audio_player.js ('k') | ui/file_manager/audio_player/elements/control_panel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698