OLD | NEW |
---|---|
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 Loading... | |
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 | |
72 /* Custom sliders for progress and volume. */ | 65 /* Custom sliders for progress and volume. */ |
73 | 66 |
74 /* Customize the standard input[type='range']. */ | 67 /* Customize the standard input[type='range']. */ |
75 | 68 |
76 /* Time controls: a slider and a text time display. */ | 69 /* Time controls: a slider and a text time display. */ |
77 | 70 |
78 .time-controls { | 71 .time-controls { |
79 align-items: center; | 72 align-items: center; |
80 display: flex; | 73 display: flex; |
81 flex-direction: row; | 74 flex-direction: row; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 justify-content: center; | 120 justify-content: center; |
128 } | 121 } |
129 | 122 |
130 /* Play/pause button. */ | 123 /* Play/pause button. */ |
131 | 124 |
132 .media-button.toggle input { | 125 .media-button.toggle input { |
133 position: absolute; | 126 position: absolute; |
134 visibility: hidden; | 127 visibility: hidden; |
135 } | 128 } |
136 | 129 |
137 .media-button.shuffle-mode > label > .icon { | 130 .media-button.shuffle-mode { |
138 background-image: -webkit-image-set( | 131 background-image: -webkit-image-set( |
yawano
2015/11/06 05:38:37
If you set icon as a background image of files-ico
fukino
2015/11/06 10:13:21
It is intentional, since it is same as paper-icon-
| |
139 url(../assets/100/player_button_shuffle.png) 1x, | 132 url(../assets/100/player_button_shuffle.png) 1x, |
140 url(../assets/200/player_button_shuffle.png) 2x); | 133 url(../assets/200/player_button_shuffle.png) 2x); |
141 pointer-events: auto; | 134 pointer-events: auto; |
142 } | 135 } |
143 | 136 |
144 .media-button.repeat { | 137 .media-button.repeat { |
145 margin-left: 8px; | 138 margin-left: 8px; |
146 margin-right: 0; | 139 margin-right: 0; |
147 } | 140 } |
148 | 141 |
149 .media-button.repeat > label > .icon { | 142 .media-button.repeat { |
150 background-image: -webkit-image-set( | 143 background-image: -webkit-image-set( |
151 url(../assets/100/player_button_repeat.png) 1x, | 144 url(../assets/100/player_button_repeat.png) 1x, |
152 url(../assets/200/player_button_repeat.png) 2x); | 145 url(../assets/200/player_button_repeat.png) 2x); |
153 pointer-events: auto; | 146 pointer-events: auto; |
154 } | 147 } |
155 | 148 |
156 .media-button.play { | 149 .media-button.play { |
157 margin-left: 4px; | 150 margin-left: 4px; |
158 margin-right: 4px; | 151 margin-right: 4px; |
159 } | 152 } |
160 | 153 |
161 .media-button.play > .ended { | 154 .media-button.play { |
162 background-image: -webkit-image-set( | 155 background-image: -webkit-image-set( |
163 url(../assets/100/player_button_play.png) 1x, | 156 url(../assets/100/player_button_play.png) 1x, |
164 url(../assets/200/player_button_play.png) 2x); | 157 url(../assets/200/player_button_play.png) 2x); |
165 } | 158 } |
166 | 159 |
167 .media-button.play > .playing { | 160 :host([playing]) .media-button.play { |
168 background-image: -webkit-image-set( | 161 background-image: -webkit-image-set( |
169 url(../assets/100/player_button_pause.png) 1x, | 162 url(../assets/100/player_button_pause.png) 1x, |
170 url(../assets/200/player_button_pause.png) 2x); | 163 url(../assets/200/player_button_pause.png) 2x); |
171 } | 164 } |
172 | 165 |
173 .media-button.previous { | 166 .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); | |
174 margin-left: 8px; | 170 margin-left: 8px; |
175 margin-right: 0; | 171 margin-right: 0; |
176 } | 172 } |
177 | 173 |
178 .media-button.previous > .normal { | 174 .media-button.next { |
179 background-image: -webkit-image-set( | 175 background-image: -webkit-image-set( |
180 url(../assets/100/player_button_previous.png) 1x, | 176 url(../assets/100/player_button_next.png) 1x, |
181 url(../assets/200/player_button_previous.png) 2x); | 177 url(../assets/200/player_button_next.png) 2x); |
182 } | |
183 | |
184 .media-button.next { | |
185 margin-left: 0; | 178 margin-left: 0; |
186 margin-right: 8px; | 179 margin-right: 8px; |
187 } | 180 } |
188 | 181 |
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 | |
195 .media-button.volume { | 182 .media-button.volume { |
196 margin-left: 0; | |
197 margin-right: 8px; | |
198 } | |
199 | |
200 .media-button.volume > .normal { | |
201 background-image: -webkit-image-set( | 183 background-image: -webkit-image-set( |
202 url(../assets/100/player_button_volume.png) 1x, | 184 url(../assets/100/player_button_volume.png) 1x, |
203 url(../assets/200/player_button_volume.png) 2x); | 185 url(../assets/200/player_button_volume.png) 2x); |
204 } | 186 margin-left: 0; |
205 | 187 margin-right: 8px; |
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); | |
210 pointer-events: auto; | 188 pointer-events: auto; |
211 } | 189 } |
212 | 190 |
213 .media-button.playlist > label > .icon { | 191 .media-button.playlist { |
214 background-image: -webkit-image-set( | 192 background-image: -webkit-image-set( |
215 url(../assets/100/player_button_playlist.png) 1x, | 193 url(../assets/100/player_button_playlist.png) 1x, |
216 url(../assets/200/player_button_playlist.png) 2x); | 194 url(../assets/200/player_button_playlist.png) 2x); |
217 pointer-events: auto; | 195 pointer-events: auto; |
218 } | 196 } |
219 | 197 |
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 | |
233 /* Invisible div used to compute the width required for the elapsed time. */ | 198 /* Invisible div used to compute the width required for the elapsed time. */ |
234 .time-controls > .time > .current { | 199 .time-controls > .time > .current { |
235 align-items: center; | 200 align-items: center; |
236 display: flex; | 201 display: flex; |
237 flex-direction: row; | 202 flex-direction: row; |
238 height: 100%; | 203 height: 100%; |
239 justify-content: flex-end; | 204 justify-content: flex-end; |
240 position: absolute; | 205 position: absolute; |
241 top: -1px; | 206 top: -1px; |
242 } | 207 } |
243 | 208 |
244 .volume-controls { | 209 .volume-controls { |
245 align-items: center; | 210 align-items: center; |
246 background-color: rgb(235, 235, 235); | 211 background-color: rgb(235, 235, 235); |
247 display: flex; | 212 display: flex; |
248 flex-direction: row; | 213 flex-direction: row; |
249 } | 214 } |
250 | 215 |
251 .volume-controls paper-slider { | 216 .volume-controls paper-slider { |
252 width: 100%; | 217 width: 100%; |
253 } | 218 } |
OLD | NEW |