Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/mediaControls.css |
| diff --git a/third_party/WebKit/Source/core/css/mediaControls.css b/third_party/WebKit/Source/core/css/mediaControls.css |
| index f13cb3dfcc2d344d7de2377fca0536f78c38af38..4b89cc09cccb0966356b950ba19e259326991ddf 100644 |
| --- a/third_party/WebKit/Source/core/css/mediaControls.css |
| +++ b/third_party/WebKit/Source/core/css/mediaControls.css |
| @@ -145,6 +145,117 @@ video::-webkit-media-controls-overlay-play-button { |
| padding: 0; |
| } |
| +/* TODO(xjz): Move media remoting elements to a separate css file. */ |
| +video::-internal-media-remoting-interstitial { |
| + width: inherit; |
| + height: inherit; |
| + position: relative; |
| + direction: ltr; |
| + display: flex; |
| + flex-direction: column; |
| + font-family: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif; |
| + justify-content: flex-end; |
| + align-items: center; |
| + font-size: 28px; |
| + background-color: black; |
| + -webkit-transition: opacity .2s cubic-bezier (0.4, 0.0, 0.2, 1); |
| + -moz-transition: opacity .2s cubic-bezier (0.4, 0.0, 0.2, 1); |
| + -o-transition: opacity .2s cubic-bezier (0.4, 0.0, 0.2, 1); |
| + transition: opacity .2s cubic-bezier (0.4, 0.0, 0.2, 1); |
| +} |
| + |
| +video::-internal-media-remoting-background-image { |
| + -webkit-appearance: media-remoting-background-image; |
|
liberato (no reviews please)
2017/04/12 21:57:44
do these need to be in CSSValueKeywords.json5?
mi
xjz
2017/04/13 00:08:48
Seems not necessary. Only the cast icon needs to b
|
| + display: flex; |
| + position: absolute; |
| + margin: 0; |
| + top: 0px; |
| + left: 0px; |
| + width: 100%; |
| + height: 100%; |
| + border: none; |
| + border-width: 0px; |
| + background-color: transparent; |
| + padding: 0; |
| + filter: grayscale(100%) blur(5px); |
| +} |
| + |
| +video::-internal-media-remoting-interstitial-elements { |
| + -webkit-appearance: media-remoting-interstitial-elements; |
| + display: flex; |
| + position: absolute; |
| + margin: 0; |
| + top: 0px; |
| + left: 0px; |
| + border: none; |
| + border-width: 0px; |
| + background-color: transparent; |
| + width: 100%; |
| + height: 100%; |
| + padding: 0; |
| +} |
| + |
| +video::-internal-media-remoting-cast-icon { |
| + -webkit-appearance: media-remoting-cast-icon; |
| + display: flex; |
| + position: absolute; |
| + margin: 0px; |
| + border-width: 0px; |
| + background-color: transparent; |
| + height: 36px; |
| + width: 44px; |
| + padding: 0px; |
| + left: calc(50% - 22px); |
| + top: calc(50% - 60px); |
| +} |
| + |
| +video::-internal-media-remoting-cast-text-message { |
| + -webkit-appearance: media-remoting-cast-text-message; |
| + display: flex; |
| + position: absolute; |
| + border: none; |
| + color: #FFFFFF; |
| + opacity: 54% |
| + text-wrap: none; |
| + text-align: center; |
| + background-color: transparent; |
| + font-size: 13pt; |
| + font-face: Roboto-Regular, Sans-serif, Segoe, Serif, Helvetica; |
| + padding: 0px; |
| + margin: 0px; |
| + top: calc(50% - 10px); |
| + width: 100%; |
| +} |
| + |
| +video::-internal-media-remoting-disable-button { |
| + -webkit-appearance: media-remoting-disable-button; |
| + display: flex; |
| + position: absolute; |
| + top: calc(50% + 55pt); |
| + left: calc(50% - 100px); |
| + border: 2pt solid rgba(255,255,255,.54); |
| + border-radius: 2pt; |
| + margin: 0px; |
| + height: 28pt; |
| + background-color: transparent; |
| + color: #FFFFFF; |
| + text-wrap: none; |
| + text-align: center; |
| + vertical-align: middle; |
| + font-size: 13pt; |
| + font-face: Roboto-Medium, Sans-serif, Segoe, Serif, Helvetica; |
| + opacity: 54% |
| + padding: 0px; |
| + -webkit-transition: border .5s ease-out; |
| + -moz-transition: border .5s ease-out; |
| + -o-transition: border .5s ease-out; |
| + transition: border .5s ease-out; |
| +} |
| + |
| +video::-internal-media-remoting-disable-button:hover, video::-internal-media-remoting-cast-icon:hover { |
| + opacity: 70%; |
| +} |
| + |
| video::-internal-media-controls-overlay-cast-button { |
| -webkit-appearance: -internal-media-overlay-cast-off-button; |
| display: flex; |