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

Unified Diff: chrome/renderer/resources/plugins/plugin_placeholders.css

Issue 2155493002: Update missing/downloading/blocked/unsupported/disabled plugin UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Through #28 Created 4 years, 4 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: chrome/renderer/resources/plugins/plugin_placeholders.css
diff --git a/chrome/renderer/resources/plugins/plugin_placeholders.css b/chrome/renderer/resources/plugins/plugin_placeholders.css
index 345ef673f953885d07a5b57f8a3e432093eca7aa..09ea3ee9052259547051a8ad6d909c4acbf5464c 100644
--- a/chrome/renderer/resources/plugins/plugin_placeholders.css
+++ b/chrome/renderer/resources/plugins/plugin_placeholders.css
@@ -13,16 +13,10 @@ html, body {
}
h1 {
+ display: none;
font-size: 10pt;
font-weight: normal;
padding: 0pt 10pt;
-<if expr="not is_android and not chromeos">
- visibility: hidden;
-</if>
-}
-
-#outer:hover h1, #outer:hover #close {
- visibility: visible;
}
p {
@@ -30,46 +24,50 @@ p {
padding: 0pt 14pt;
}
+#t {
+ background-color: #f7f7f7;
+ color: #646464;
+}
+
#outer {
align-items: center;
- border: 1px black solid;
box-sizing: border-box;
display: flex;
height: 100%;
justify-content: center;
position: absolute;
width: 100%;
+ flex-direction: column;
}
-#close {
- background-image: -webkit-image-set(
- url(../../../../ui/resources/default_100_percent/close_2.png) 1x,
- url(../../../../ui/resources/default_200_percent/close_2.png) 2x);
- background-position: right top;
- background-repeat: no-repeat;
- cursor: pointer;
- height: 14px;
- position: absolute;
- right: 3px;
- top: 3px;
-<if expr="not is_android">
- visibility: hidden;
-</if>
- width: 14px;
-}
-
-#close[data-plugin-type='document'] {
- display: none;
+.icon {
+ max-height: 100%;
+ max-width: 100%;
+ opacity: .3;
}
-#close:hover {
- background-image: -webkit-image-set(
- url(../../../../ui/resources/default_100_percent/close_2_hover.png) 1x,
- url(../../../../ui/resources/default_200_percent/close_2_hover.png) 2x);
+@media (orientation: landscape) and (min-height: 2em) and (min-width: 14em) {
+ #outer {
+ flex-direction: row;
+ }
+ .icon {
+ max-height: 100%;
+ max-width: 50%;
+ }
+ h1 {
+ display: block;
+ }
}
-#close:active {
- background-image: -webkit-image-set(
- url(../../../../ui/resources/default_100_percent/close_2_pressed.png) 1x,
- url(../../../../ui/resources/default_200_percent/close_2_pressed.png) 2x);
+@media (min-height: 7em) and (min-width: 6em) {
+ #outer {
+ flex-direction: column;
+ }
+ .icon {
+ max-height: 50%;
+ max-width: 100%;
+ }
+ h1 {
+ display: block;
+ }
}
« no previous file with comments | « chrome/renderer/resources/plugins/plugin_blocked_android.png ('k') | chrome/renderer/resources/plugins/plugin_poster.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698