Commit 85e84386 authored by newt@chromium.org's avatar newt@chromium.org

Upstream Android-specific tweaks to neterror.html.

BUG=136951


Review URL: https://chromiumcodereview.appspot.com/10834378

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152435 0039d316-1c4b-4281-b951-d872f2087c98
parent e58234cc
<!DOCTYPE html> <!DOCTYPE html>
<html i18n-values="dir:textdirection"> <html i18n-values="dir:textdirection">
<head> <head>
<if expr="pp_ifdef('android')">
<meta name="viewport" content="width=device-width" />
</if>
<title i18n-content="title"> <title i18n-content="title">
</title> </title>
<style> <style>
...@@ -14,13 +17,22 @@ html[main-frame] body { ...@@ -14,13 +17,22 @@ html[main-frame] body {
background-color: #CCC; 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 { html[main-frame][high-color-depth] body {
background: -webkit-linear-gradient(#CCC, #AAA); background: -webkit-linear-gradient(#CCC, #AAA);
background-attachment: fixed; background-attachment: fixed;
} }
</if>
html[main-frame] #cell { html[main-frame] #cell {
<if expr="not pp_ifdef('android')">
padding: 40px; padding: 40px;
</if>
<if expr="pp_ifdef('android')">
padding: 20px;
</if>
} }
#box { #box {
...@@ -37,8 +49,14 @@ html[main-frame] #cell { ...@@ -37,8 +49,14 @@ html[main-frame] #cell {
html[main-frame] #box { html[main-frame] #box {
border-radius: 5px; border-radius: 5px;
-webkit-box-shadow: 2px 5px 12px #555; -webkit-box-shadow: 2px 5px 12px #555;
<if expr="not pp_ifdef('android')">
padding: 20px; padding: 20px;
width: 80%; width: 80%;
</if>
<if expr="pp_ifdef('android')">
padding: 10px;
width: 90%;
</if>
} }
ul { ul {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment