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

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

Issue 1780043002: Add download button to MediaDocument on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moving styles to css files Created 4 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/html.css
diff --git a/third_party/WebKit/Source/core/css/html.css b/third_party/WebKit/Source/core/css/html.css
index 9b6161af2510587ee121e9c0b900538db1378156..fc2e4ad539bb3e51dc2ef2292b3d25ce055797e9 100644
--- a/third_party/WebKit/Source/core/css/html.css
+++ b/third_party/WebKit/Source/core/css/html.css
@@ -63,6 +63,33 @@ body:-webkit-full-page-media {
background-color: rgb(0, 0, 0)
}
+body:-webkit-full-page-media > div > a {
esprehn 2016/03/15 17:33:07 We can't do this. It adds rules for every <a> in e
qinmin 2016/03/15 17:52:16 Done. Moved the style back into MediaDocument
+ display: block;
+ width: 120px;
+ height: 36px;
+ background: #4285F4;
+ font-family: Roboto;
+ font-size: 14px;
+ border-radius: 5px;
+ color: white;
+ font-weight: bold;
+ text-decoration: none;
+ text-transform: uppercase;
+ text-align: center;
+ line-height: 36px;
+ margin: 32px auto 0 auto;
+}
+
+body:-webkit-full-page-media > div {
esprehn 2016/03/15 17:33:07 Ditto, you can't put generic rules or use combinat
qinmin 2016/03/15 17:52:16 Done.
+ max-height: 100%;
+ max-width: 100%;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ margin-right: -50%;
+ transform: translate(-50%, -50%);
+}
+
p {
display: block;
-webkit-margin-before: 1__qem;

Powered by Google App Engine
This is Rietveld 408576698