Skip to content

Commit

Permalink
small CSS tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 3, 2012
1 parent dd5ad47 commit e8f7e7f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
5 changes: 1 addition & 4 deletions lib/Mojolicious.pm
Expand Up @@ -148,10 +148,7 @@ sub dispatch {
return if $res->code;
if (my $code = ($tx->req->error)[1]) { $res->code($code) }
elsif ($tx->is_websocket) { $res->code(426) }
unless ($self->routes->dispatch($c)) {
$c->render_not_found
unless $res->code;
}
$c->render_not_found unless $self->routes->dispatch($c) || $res->code;
}

# "Bite my shiny metal ass!"
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/templates/exception.development.html.ep
Expand Up @@ -12,13 +12,13 @@
body {
background-color: #f5f6f8;
color: #445555;
font: 0.9em 'Helvetica Neue', 'Helvetica', sans-serif;
font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
font-weight: normal;
line-height: 1.5;
margin: 0;
}
pre {
font: 0.8em 'Consolas', 'Menlo', 'Monaco', Courier, monospace;
font: 0.8em Consolas, Menlo, Monaco, Courier, monospace;
margin: 0;
white-space: pre-wrap;
}
Expand Down Expand Up @@ -71,7 +71,7 @@
margin-right: 5em;
}
#showcase > pre {
font: 1.5em 'Helvetica Neue', 'Helvetica', sans-serif;
font: 1.5em 'Helvetica Neue', Helvetica, sans-serif;
font-weight: 300;
margin: 0;
text-shadow: #333 0 1px 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/templates/mojobar.html.ep
Expand Up @@ -41,7 +41,7 @@
}
#mojobar-links a {
color: #ccc;
font: 1em 'Helvetica Neue', 'Helvetica', sans-serif;
font: 1em 'Helvetica Neue', Helvetica, sans-serif;
font-weight: 300;
margin-left: 0.5em;
padding-bottom: 1em;
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/templates/not_found.development.html.ep
Expand Up @@ -8,7 +8,7 @@
body {
background-color: #f5f6f8;
color: #445555;
font: 0.9em 'Helvetica Neue', 'Helvetica', sans-serif;
font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
font-weight: normal;
line-height: 1.5;
margin: 0;
Expand All @@ -19,7 +19,7 @@
-moz-border-radius: 5px;
border-radius: 5px;
color: #333;
font: 0.8em 'Consolas', 'Menlo', 'Monaco', Courier, monospace;
font: 0.8em Consolas, Menlo, Monaco, Courier, monospace;
padding: 0.4em;
}
h1 {
Expand All @@ -28,7 +28,7 @@
margin: 0;
}
pre {
font: 0.8em 'Consolas', 'Menlo', 'Monaco', Courier, monospace;
font: 0.8em Consolas, Menlo, Monaco, Courier, monospace;
margin: 0;
white-space: pre-wrap;
}
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/templates/perldoc.html.ep
Expand Up @@ -11,7 +11,7 @@
body {
background-color: #f5f6f8;
color: #445555;
font: 0.9em 'Helvetica Neue', 'Helvetica', sans-serif;
font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
font-weight: normal;
line-height: 1.5;
margin: 0;
Expand All @@ -28,7 +28,7 @@
-moz-border-radius: 5px;
border-radius: 5px;
color: #eee;
font: 0.8em 'Consolas', 'Menlo', 'Monaco', Courier, monospace;
font: 0.8em Consolas, Menlo, Monaco, Courier, monospace;
text-align: left;
text-shadow: #333 0 1px 0;
padding-bottom: 1.5em;
Expand Down

0 comments on commit e8f7e7f

Please sign in to comment.