diff options
author | Greg Aker <greg.aker@ellislab.com> | 2011-04-20 18:11:47 +0200 |
---|---|---|
committer | Greg Aker <greg.aker@ellislab.com> | 2011-04-20 18:11:47 +0200 |
commit | 1cdb0fd21e0c5ac38a75712806ed10b08f0909cc (patch) | |
tree | 825a8de037d9a02c805cb6c5f601ef584a5259ef | |
parent | e08c527aa0a8a05836b05763d859eb3d2970f62f (diff) |
Visual updates to the welcome_message view file and default error templates. Thanks to danijelb for the pull request.
-rw-r--r-- | application/errors/error_404.php | 58 | ||||
-rw-r--r-- | application/errors/error_db.php | 58 | ||||
-rw-r--r-- | application/errors/error_general.php | 58 | ||||
-rw-r--r-- | application/views/welcome_message.php | 108 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
5 files changed, 196 insertions, 87 deletions
diff --git a/application/errors/error_404.php b/application/errors/error_404.php index a304f4561..792726a67 100644 --- a/application/errors/error_404.php +++ b/application/errors/error_404.php @@ -1,32 +1,60 @@ -<html> +<!DOCTYPE html> +<html lang="en"> <head> <title>404 Page Not Found</title> <style type="text/css"> +::selection{ background-color: #E13300; color: white; } +::moz-selection{ background-color: #E13300; color: white; } +::webkit-selection{ background-color: #E13300; color: white; } + body { -background-color: #fff; -margin: 40px; -font-family: Lucida Grande, Verdana, Sans-serif; -font-size: 12px; -color: #000; + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; } -#content { -border: #999 1px solid; -background-color: #fff; -padding: 20px 20px 12px 20px; +a { + color: #003399; + background-color: transparent; + font-weight: normal; } h1 { -font-weight: normal; -font-size: 14px; -color: #990000; -margin: 0 0 4px 0; + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; +} + +code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; +} + +#container { + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; +} + +p { + margin: 12px 15px 12px 15px; } </style> </head> <body> - <div id="content"> + <div id="container"> <h1><?php echo $heading; ?></h1> <?php echo $message; ?> </div> diff --git a/application/errors/error_db.php b/application/errors/error_db.php index 181de960b..b396cda9f 100644 --- a/application/errors/error_db.php +++ b/application/errors/error_db.php @@ -1,32 +1,60 @@ -<html> +<!DOCTYPE html> +<html lang="en"> <head> <title>Database Error</title> <style type="text/css"> +::selection{ background-color: #E13300; color: white; } +::moz-selection{ background-color: #E13300; color: white; } +::webkit-selection{ background-color: #E13300; color: white; } + body { -background-color: #fff; -margin: 40px; -font-family: Lucida Grande, Verdana, Sans-serif; -font-size: 12px; -color: #000; + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; } -#content { -border: #999 1px solid; -background-color: #fff; -padding: 20px 20px 12px 20px; +a { + color: #003399; + background-color: transparent; + font-weight: normal; } h1 { -font-weight: normal; -font-size: 14px; -color: #990000; -margin: 0 0 4px 0; + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; +} + +code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; +} + +#container { + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; +} + +p { + margin: 12px 15px 12px 15px; } </style> </head> <body> - <div id="content"> + <div id="container"> <h1><?php echo $heading; ?></h1> <?php echo $message; ?> </div> diff --git a/application/errors/error_general.php b/application/errors/error_general.php index 7734d34c7..fd63ce2c5 100644 --- a/application/errors/error_general.php +++ b/application/errors/error_general.php @@ -1,32 +1,60 @@ -<html> +<!DOCTYPE html> +<html lang="en"> <head> <title>Error</title> <style type="text/css"> +::selection{ background-color: #E13300; color: white; } +::moz-selection{ background-color: #E13300; color: white; } +::webkit-selection{ background-color: #E13300; color: white; } + body { -background-color: #fff; -margin: 40px; -font-family: Lucida Grande, Verdana, Sans-serif; -font-size: 12px; -color: #000; + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; } -#content { -border: #999 1px solid; -background-color: #fff; -padding: 20px 20px 12px 20px; +a { + color: #003399; + background-color: transparent; + font-weight: normal; } h1 { -font-weight: normal; -font-size: 14px; -color: #990000; -margin: 0 0 4px 0; + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; +} + +code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; +} + +#container { + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; +} + +p { + margin: 12px 15px 12px 15px; } </style> </head> <body> - <div id="content"> + <div id="container"> <h1><?php echo $heading; ?></h1> <?php echo $message; ?> </div> diff --git a/application/views/welcome_message.php b/application/views/welcome_message.php index ca68fc101..0bf5a8d2e 100644 --- a/application/views/welcome_message.php +++ b/application/views/welcome_message.php @@ -4,61 +4,85 @@ <meta charset="utf-8"> <title>Welcome to CodeIgniter</title> -<style type="text/css"> + <style type="text/css"> -body { - background-color: #fff; - margin: 40px; - font-family: Lucida Grande, Verdana, Sans-serif; - font-size: 14px; - color: #4F5155; -} + ::selection{ background-color: #E13300; color: white; } + ::moz-selection{ background-color: #E13300; color: white; } + ::webkit-selection{ background-color: #E13300; color: white; } -a { - color: #003399; - background-color: transparent; - font-weight: normal; -} + body { + background-color: #fff; + margin: 40px; + font: 13px/20px normal Helvetica, Arial, sans-serif; + color: #4F5155; + } -h1 { - color: #444; - background-color: transparent; - border-bottom: 1px solid #D0D0D0; - font-size: 16px; - font-weight: bold; - margin: 24px 0 2px 0; - padding: 5px 0 6px 0; -} + a { + color: #003399; + background-color: transparent; + font-weight: normal; + } -code { - font-family: Monaco, Verdana, Sans-serif; - font-size: 12px; - background-color: #f9f9f9; - border: 1px solid #D0D0D0; - color: #002166; - display: block; - margin: 14px 0 14px 0; - padding: 12px 10px 12px 10px; -} + h1 { + color: #444; + background-color: transparent; + border-bottom: 1px solid #D0D0D0; + font-size: 19px; + font-weight: normal; + margin: 0 0 14px 0; + padding: 14px 15px 10px 15px; + } -</style> + code { + font-family: Consolas, Monaco, Courier New, Courier, monospace; + font-size: 12px; + background-color: #f9f9f9; + border: 1px solid #D0D0D0; + color: #002166; + display: block; + margin: 14px 0 14px 0; + padding: 12px 10px 12px 10px; + } + + #body{ + margin: 0 15px 0 15px; + } + + p.footer{ + text-align: right; + font-size: 11px; + border-top: 1px solid #D0D0D0; + line-height: 32px; + padding: 0 10px 0 10px; + margin: 20px 0 0 0; + } + + #container{ + margin: 10px; + border: 1px solid #D0D0D0; + -webkit-box-shadow: 0 0 8px #D0D0D0; + } + </style> </head> <body> -<h1>Welcome to CodeIgniter!</h1> - -<p>The page you are looking at is being generated dynamically by CodeIgniter.</p> +<div id="container"> + <h1>Welcome to CodeIgniter!</h1> -<p>If you would like to edit this page you'll find it located at:</p> -<code>application/views/welcome_message.php</code> + <div id="body"> + <p>The page you are looking at is being generated dynamically by CodeIgniter.</p> -<p>The corresponding controller for this page is found at:</p> -<code>application/controllers/welcome.php</code> + <p>If you would like to edit this page you'll find it located at:</p> + <code>application/views/welcome_message.php</code> -<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p> + <p>The corresponding controller for this page is found at:</p> + <code>application/controllers/welcome.php</code> + <p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p> + </div> -<p><br />Page rendered in {elapsed_time} seconds</p> + <p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p> +</div> </body> </html>
\ No newline at end of file diff --git a/user_guide/changelog.html b/user_guide/changelog.html index b889152ad..bbdbbbd19 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -71,6 +71,7 @@ Change Log <ul> <li>Added Session Class userdata to the output profiler. Additionally, added a show/hide toggle on HTTP Headers, Session Data and Config Variables.</li> <li>Removed internal usage of the <samp>EXT</samp> constant.</li> + <li>Visual updates to the welcome_message view file and default error templates. Thanks to <a href="https://bitbucket.org/danijelb">danijelb</a> for the pull request.</li> </ul> </li> <li>Helpers |