Update error screens with the new visual design:

* Bring in new styles for backgrounds/text/link/borders/buttons
* Switch to device-width for the viewport and tweak margins etc so the layout works nicely on all device sizes

Fixes #25956, props johnbillion.


Built from https://develop.svn.wordpress.org/trunk@26299


git-svn-id: http://core.svn.wordpress.org/trunk@26204 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Matt Thomas 2013-11-21 00:25:10 +00:00
parent 5d5114daf9
commit c0f4798af9
1 changed files with 17 additions and 35 deletions

View File

@ -2194,24 +2194,23 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
<title><?php echo $title ?></title> <title><?php echo $title ?></title>
<style type="text/css"> <style type="text/css">
html { html {
background: #f9f9f9; background: #eee;
} }
body { body {
background: #fff; background: #fff;
color: #333; color: #333;
font-family: sans-serif; font-family: "Open Sans", sans-serif;
margin: 2em auto; margin: 2em auto;
padding: 1em 2em; padding: 1em 2em;
-webkit-border-radius: 3px;
border-radius: 3px;
border: 1px solid #dfdfdf;
max-width: 700px; max-width: 700px;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13);
box-shadow: 0 1px 3px rgba(0,0,0,0.13);
} }
h1 { h1 {
border-bottom: 1px solid #dadada; border-bottom: 1px solid #dadada;
clear: both; clear: both;
color: #666; color: #666;
font: 24px Georgia, "Times New Roman", Times, serif; font: 24px "Open Sans", sans-serif;
margin: 30px 0 0 0; margin: 30px 0 0 0;
padding: 0; padding: 0;
padding-bottom: 7px; padding-bottom: 7px;
@ -2239,31 +2238,28 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
color: #D54E21; color: #D54E21;
} }
.button { .button {
background: #f7f7f7;
border: 1px solid #cccccc;
color: #555;
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
font-size: 14px; font-size: 13px;
line-height: 23px; line-height: 26px;
height: 24px; height: 28px;
margin: 0; margin: 0;
padding: 0 10px 1px; padding: 0 10px 1px;
cursor: pointer; cursor: pointer;
border-width: 1px;
border-style: solid;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-webkit-appearance: none;
border-radius: 3px; border-radius: 3px;
white-space: nowrap; white-space: nowrap;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
background: #f3f3f3;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#f4f4f4)); -webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
background-image: -webkit-linear-gradient(top, #fefefe, #f4f4f4); box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
background-image: -moz-linear-gradient(top, #fefefe, #f4f4f4); vertical-align: top;
background-image: -o-linear-gradient(top, #fefefe, #f4f4f4);
background-image: linear-gradient(to bottom, #fefefe, #f4f4f4);
border-color: #bbb;
color: #333;
text-shadow: 0 1px 0 #fff;
} }
.button.button-large { .button.button-large {
@ -2274,13 +2270,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
.button:hover, .button:hover,
.button:focus { .button:focus {
background: #f3f3f3; background: #fafafa;
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#f3f3f3));
background-image: -webkit-linear-gradient(top, #fff, #f3f3f3);
background-image: -moz-linear-gradient(top, #fff, #f3f3f3);
background-image: -ms-linear-gradient(top, #fff, #f3f3f3);
background-image: -o-linear-gradient(top, #fff, #f3f3f3);
background-image: linear-gradient(to bottom, #fff, #f3f3f3);
border-color: #999; border-color: #999;
color: #222; color: #222;
} }
@ -2291,17 +2281,9 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
} }
.button:active { .button:active {
outline: none;
background: #eee; background: #eee;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#fefefe));
background-image: -webkit-linear-gradient(top, #f4f4f4, #fefefe);
background-image: -moz-linear-gradient(top, #f4f4f4, #fefefe);
background-image: -ms-linear-gradient(top, #f4f4f4, #fefefe);
background-image: -o-linear-gradient(top, #f4f4f4, #fefefe);
background-image: linear-gradient(to bottom, #f4f4f4, #fefefe);
border-color: #999; border-color: #999;
color: #333; color: #333;
text-shadow: 0 -1px 0 #fff;
-webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
} }