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

Unified Diff: third_party/WebKit/Source/core/css/mediaControls.css

Issue 2767823002: Media Remoting: Add interstitial elements to media element shadow dom. (Closed)
Patch Set: Modified disable button. Added cast icon and message. Created 3 years, 9 months 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 side-by-side diff with in-line comments
Download patch
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..bc3c37de2f00dc8c4bc6c6495ef15a50c40506f7 100644
--- a/third_party/WebKit/Source/core/css/mediaControls.css
+++ b/third_party/WebKit/Source/core/css/mediaControls.css
@@ -145,6 +145,114 @@ video::-webkit-media-controls-overlay-play-button {
padding: 0;
}
+audio::-internal-media-remoting-interstitial,
+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;
+}
+
+video::-internal-media-remoting-background-image {
+ -webkit-appearance: media-remoting-background-image;
+ display: flex;
+ position: absolute;
+ border: none;
+ margin: 0;
+ top: 0px;
+ left: 0px;
+ width: 100%;
+ height: 100%;
+ border-width: 0px;
+ background-color: #0E0E0E;
+ padding: 0;
+ filter: grayscale(100%) blur(5px);
+ transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
+}
+
+video::-internal-media-remoting-interstitial-elements {
+ -webkit-appearance: media-remoting-interstitial-elements;
+ display: flex;
+ position: absolute;
+ margin: 0;
+ top: 50%;
+ left: 50%;
+ border-width: 0px;
+ background-color: transparent;
+ width: 30vh;
+ height: 30%;
+ max-height: 200px;
+ max-width: 200px;
+ min-height: 64px;
+ min-width: 64px;
+ padding: 0;
+ transform: translate(-50%, -50%);
+}
+
+video::-internal-media-remoting-cast-icon {
+ -webkit-appearance: media-remoting-cast-icon;
+ display: flex;
+ position: absolute;
+ margin: 0;
+ top: 5%;
+ left: 50%;
+ border-width: 0px;
+ background-color: transparent;
+ height: 36%;
+ width: 44%;
+ padding: 0;
+ transform: translate(-50%);
+ transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
+}
+
+video::-internal-media-remoting-cast-text {
+ -webkit-appearance: media-remoting-cast-text;
+ display: flex;
+ position: absolute;
+ border: none;
+ color: LightGray;
+ margin: 0;
+ text-align: center;
+ top: 51%;
+ left: 50%;
+ height: 18%;
+ border-width: 0px;
+ background-color: transparent;
+ padding: 0;
+ font-size: 12px;
+ font-size: 2vw;
+ font-family: Arial, Sans-serif, Segoe, Serif, Roboto, Helvetica;
+ transform: translate(-50%);
+ transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
+}
+
+video::-internal-media-remoting-disable-button {
+ -webkit-appearance: media-remoting-disable-button;
+ display: flex;
+ position: absolute;
+ border: 1.5px solid rgba(255,255,255,.54);
+ margin: 0;
+ top: 80%;
+ left: 50%;
+ width: 40%;
+ height: 16%;
+ background-color: transparent;
+ color: LightGray;
+ text-align: center;
+ padding: 0;
+ font-size: 11px;
+ font-size: 1vw;
+ font-family: Arial, Sans-serif, Segoe, Serif, Roboto, Helvetica;
+ transform: translate(-50%);
+ transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
+}
+
video::-internal-media-controls-overlay-cast-button {
-webkit-appearance: -internal-media-overlay-cast-off-button;
display: flex;

Powered by Google App Engine
This is Rietveld 408576698