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

Side by Side Diff: third_party/WebKit/Source/core/css/mediaControls.css

Issue 2830443004: Media Remoting: Style fix for UI. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/public/default_100_percent/blink/mediaremoting_cast.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2015 Google Inc. 3 * Copyright (C) 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
147 147
148 /* TODO(xjz): Move media remoting elements to a separate css file. */ 148 /* TODO(xjz): Move media remoting elements to a separate css file. */
149 video::-internal-media-remoting-interstitial { 149 video::-internal-media-remoting-interstitial {
150 width: inherit; 150 width: inherit;
151 height: inherit; 151 height: inherit;
152 position: relative; 152 position: relative;
153 direction: ltr; 153 direction: ltr;
154 display: flex; 154 display: flex;
155 flex-direction: column; 155 flex-direction: column;
156 font-family: Segoe, "Helvetica Neue", Roboto, Arial, Helvetica, sans-serif;
157 justify-content: flex-end; 156 justify-content: flex-end;
158 align-items: center; 157 align-items: center;
159 font-size: 28px; 158 font-size: 16px;
160 background-color: black; 159 background-color: black;
161 transition: opacity .2s cubic-bezier (0.4, 0.0, 0.2, 1); 160 transition: opacity .2s ease-in-out;
162 } 161 }
163 162
164 video::-internal-media-remoting-background-image { 163 video::-internal-media-remoting-background-image {
165 display: flex; 164 display: flex;
166 position: absolute; 165 position: absolute;
167 margin: 0; 166 margin: 0;
168 top: 0px; 167 top: 0px;
169 left: 0px; 168 left: 0px;
170 width: 100%; 169 width: 100%;
171 height: 100%; 170 height: 100%;
172 border: none; 171 border: none;
173 border-width: 0px; 172 border-width: 0px;
174 background-color: transparent; 173 background-color: transparent;
175 padding: 0; 174 padding: 0;
176 filter: grayscale(100%) blur(5px); 175 filter: grayscale(100%) blur(5px);
177 } 176 }
178 177
179 video::-internal-media-remoting-cast-icon { 178 video::-internal-media-remoting-cast-icon {
180 -webkit-appearance: -internal-media-remoting-cast-icon; 179 -webkit-appearance: -internal-media-remoting-cast-icon;
181 display: flex; 180 display: flex;
182 position: absolute; 181 position: absolute;
183 margin: 0px; 182 margin: 0px;
184 border-width: 0px; 183 border-width: 0px;
185 background-color: transparent; 184 background-color: transparent;
186 height: 36px; 185 height: 18px;
187 width: 44px; 186 width: 22px;
188 padding: 0px; 187 padding: 0px;
189 left: calc(50% - 22px); 188 left: calc(50% - 11px);
190 top: calc(50% - 60px); 189 top: calc(50% - 40px);
191 } 190 }
192 191
193 video::-internal-media-remoting-cast-text-message { 192 video::-internal-media-remoting-cast-text-message {
194 display: inline; 193 display: inline;
195 position: absolute; 194 position: absolute;
196 top: calc(50% - 10px); 195 top: calc(50% - 10px);
197 border: none; 196 border: none;
198 color: #FFFFFF; 197 color: rgba(255,255,255,.54);
199 opacity: 54%
200 width: 100%; 198 width: 100%;
201 text-wrap: none; 199 text-wrap: none;
202 text-align: center; 200 text-align: center;
203 background-color: transparent; 201 background-color: transparent;
204 font-size: 13pt; 202 font-size: 81.25%;
205 font-face: Roboto-Regular, Sans-serif, Segoe, Serif, Helvetica; 203 font-family: Roboto-Regular, Sans-serif, Segoe, Serif, Helvetica;
206 padding: 0px; 204 padding: 0px;
207 margin: 0px; 205 margin: 0px;
208 } 206 }
209 207
210 video::-internal-media-remoting-disable-button { 208 video::-internal-media-remoting-disable-button {
211 display: flex; 209 display: flex;
212 position: absolute; 210 position: absolute;
213 top: calc(50% + 55pt); 211 top: calc(50% + 60px);
214 left: calc(50% - 102px); 212 left: calc(50% - 74px);
215 height: 28pt; 213 height: 28px;
216 border: 2pt solid rgba(255,255,255,.54); 214 border: 1pt solid rgba(255,255,255,.54);
217 border-radius: 2pt; 215 border-radius: 2pt;
218 background-color: transparent; 216 background-color: transparent;
219 color: #FFFFFF; 217 color: rgba(255,255,255,.54);
220 margin: 0px; 218 margin: 0px;
221 padding: 8pt 16pt 0pt 16pt; 219 padding: 5.5px 16px 0px 16px;
222 text-wrap: none; 220 text-wrap: none;
223 font-size: 13pt; 221 font-size: 75%;
224 font-face: Roboto-Medium, Sans-serif, Segoe, Serif, Helvetica; 222 font-weight: 500;
225 opacity: 54% 223 font-family: Roboto-Medium, Sans-serif, Segoe, Serif, Helvetica;
226 transition: border .5s ease-out; 224 box-sizing: border-box;
225 transition: border,color .5s ease-out;
226 z-index: 1; /* Set this z-index to make the hover effect work. */
227 }
228
229 video::-internal-media-remoting-disable-button:hover {
230 border: 1pt solid rgba(255,255,255,.70);
231 color: rgba(255,255,255,.70);
232 cursor: pointer;
227 } 233 }
228 234
229 video::-internal-media-controls-overlay-cast-button { 235 video::-internal-media-controls-overlay-cast-button {
230 -webkit-appearance: -internal-media-overlay-cast-off-button; 236 -webkit-appearance: -internal-media-overlay-cast-off-button;
231 display: flex; 237 display: flex;
232 position: absolute; 238 position: absolute;
233 top: 8px; 239 top: 8px;
234 left: 8px; 240 left: 8px;
235 margin-left: 0px; 241 margin-left: 0px;
236 margin-top: 0px; 242 margin-top: 0px;
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 font-weight: bold; 601 font-weight: bold;
596 } 602 }
597 603
598 video::cue(u) { 604 video::cue(u) {
599 text-decoration: underline; 605 text-decoration: underline;
600 } 606 }
601 607
602 video::cue(i) { 608 video::cue(i) {
603 font-style: italic; 609 font-style: italic;
604 } 610 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/public/default_100_percent/blink/mediaremoting_cast.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698