diff options
-rw-r--r-- | chrome/renderer/resources/neterror.html | 43 |
1 files changed, 36 insertions, 7 deletions
diff --git a/chrome/renderer/resources/neterror.html b/chrome/renderer/resources/neterror.html index cd45175..f40ba02 100644 --- a/chrome/renderer/resources/neterror.html +++ b/chrome/renderer/resources/neterror.html @@ -4,22 +4,21 @@ <title i18n-content="title"> </title> <style> -html { - height: 100%; - background-color: #999; -} body { - height: 100%; - background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#BBB), to(#999)); font-family: Helvetica, Arial, sans-serif; margin: 0; + background-color: #CCC; +} +html[high-color-depth] body { + background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#CCC), to(#AAA)); + background-attachment: fixed; } #cell { - border-top: 1px solid #999; padding: 40px; } #box { width: 80%; + min-width: 200px; max-width: 750px; background-color: white; color: black; @@ -34,6 +33,9 @@ ul { margin: 0; padding-bottom: 0; } +li { + padding-top: 2px; +} h1 { font-size: 18pt; line-height: 30px; @@ -72,9 +74,36 @@ a:visited { -webkit-margin-start: 3px; margin-top: 30px; } +.failedUrl { + word-wrap: break-word; +} </style> </head> +<script> +/** + * Sets the classes of elements to match their jscontent values. + * Elements without jscontent values are ignored. + * + * This allows styles to be applied to nested elements from + * within GRD files. To work on these elements, this must be + * called after jscontent substitution. + */ +function setJsContentElementClasses() { + var elements = document.querySelectorAll('[jscontent]'); + for (var i = 0; i < elements.length; ++i) { + elements[i].className = elements[i].getAttribute('jscontent'); + } +} + +document.addEventListener('DOMContentLoaded', + setJsContentElementClasses, + false); + +if (window.screen.colorDepth >= 24) + document.documentElement.setAttribute('high-color-depth', ''); +</script> + <body id="t"> <div id="cell"> <div id="box"> |