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

Unified Diff: chrome/renderer/resources/neterror.html

Issue 10834378: Upstream Android-specific tweaks to neterror.html. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/neterror.html
diff --git a/chrome/renderer/resources/neterror.html b/chrome/renderer/resources/neterror.html
index 670ee7d7265bb082f878a6858095fcbd4f7b1f67..cba8ef00364bc886e82580ef7d4311e1ccc2e9f2 100644
--- a/chrome/renderer/resources/neterror.html
+++ b/chrome/renderer/resources/neterror.html
@@ -1,6 +1,9 @@
<!DOCTYPE html>
<html i18n-values="dir:textdirection">
<head>
+<if expr="pp_ifdef('android')">
+<meta name="viewport" content="width=device-width" />
+</if>
<title i18n-content="title">
</title>
<style>
@@ -14,13 +17,22 @@ html[main-frame] body {
background-color: #CCC;
}
+/* On Android, gradient is broken due to background-attachment: fixed being
+ currently disabled on Android; see crbug.com/135942 */
+<if expr="not pp_ifdef('android')">
html[main-frame][high-color-depth] body {
background: -webkit-linear-gradient(#CCC, #AAA);
background-attachment: fixed;
}
+</if>
html[main-frame] #cell {
+<if expr="not pp_ifdef('android')">
padding: 40px;
+</if>
+<if expr="pp_ifdef('android')">
+ padding: 20px;
+</if>
}
#box {
@@ -37,8 +49,14 @@ html[main-frame] #cell {
html[main-frame] #box {
border-radius: 5px;
-webkit-box-shadow: 2px 5px 12px #555;
+<if expr="not pp_ifdef('android')">
padding: 20px;
width: 80%;
+</if>
+<if expr="pp_ifdef('android')">
+ padding: 10px;
+ width: 90%;
+</if>
}
ul {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698