]> spindle.queued.net Git - midori/commitdiff
Use a stock error icon and a refresh on the button in error pages
authorChristian Dywan <christian@twotoasts.de>
Sat, 9 May 2009 21:40:25 +0000 (23:40 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 9 May 2009 21:40:25 +0000 (23:40 +0200)
data/error.html

index 4f6d43ad3ab14615fb40fe410f3ac1006a027fb8..600a6c827b1906d9ffb6db37e11f26a092e2e7cd 100644 (file)
@@ -23,6 +23,17 @@ body {
    -webkit-border-radius: 1em;
 }
 
+icon {
+   float: left;
+   padding-left: 1%;
+   padding-top: 1%;
+}
+
+#main {
+   float: right;
+   width: 90%;
+}
+
 h1 {
    font-size: 1.4em;
    font-weight: bold;
@@ -33,6 +44,12 @@ h1 {
   z-index: -1;
 }
 
+button span,
+button img {
+    vertical-align: middle;
+    padding: 2px 1px;
+}
+
 message {
    font-size: 1.1em;
 }
@@ -44,22 +61,21 @@ description {
 </style>
 </head>
 <body>
-
-<div id="container">
-
-<img id="logo" src="{res}/logo-shade.png" />
-
-<h1>{title}</h1>
-<div class="message">
- <p>{message}</p>
- <p>{description}</p>
-</div>
-
-<form onsubmit="location.reload()">
-<input type="submit" value="{tryagain}" />
-</form>
-
-</div>
-
-</body>
+    <div id="container">
+        <img id="logo" src="{res}/logo-shade.png" />
+        <img id="icon" src="{stock}/gtk-dialog-error" />
+        <div id="main">
+            <h1>{title}</h1>
+            <p id="message">{message}</p>
+            <p id="description">{description}</p>
+            <form onsubmit="location.reload()">
+                <button>
+                    <img src="{stock}/gtk-refresh"/>
+                    <span>{tryagain}</span>
+                </button>
+            </form>
+        </div>
+        <br style="clear: both;"/>
+    </div>
+  </body>
 </html>