Skip to content

Commit fbd7a13

Browse files
author
joseph lenton
committed
new fonts and altered styling
It now uses different fonts, giving a cleaner and less heavy look. Some of the spacing has also been changed, to compensate for new font sizes and families.
1 parent 6fd5002 commit fbd7a13

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

src/php_error.php

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,6 +3319,8 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
33193319
$head();
33203320
}
33213321

3322+
echo "<link href='http://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>";
3323+
33223324
?><style>
33233325
html, body {
33243326
margin: 0;
@@ -3355,18 +3357,23 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
33553357
color: #aff;
33563358
}
33573359

3358-
h1,
33593360
h2,
33603361
.background {
3361-
font: 17px monaco, consolas, monospace;
3362+
font-size: 16px;
3363+
font-family: inconsolata, 'Droid Sans Mono', "DejaVu Sans Mono", consolas, monospace;
33623364
}
33633365

3366+
h1,
3367+
h2 {
3368+
font-family: "Segoe UI", "Segoe WP", "Helvetica Neue", Roboto, "sans-serif";
3369+
font-weight: 100;
3370+
}
33643371
h1 {
3365-
font-size: 32px;
3372+
font-size: 42px;
33663373
margin-bottom: 0;
33673374
}
33683375
h2 {
3369-
font-size: 24px;
3376+
font-size: 28px;
33703377
margin-top: 0;
33713378
}
33723379
.background {
@@ -3402,6 +3409,10 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
34023409
overflow: hidden;
34033410
}
34043411

3412+
#ajax-info,
3413+
.ajax-button {
3414+
font-size: 26px;
3415+
}
34053416
#ajax-info {
34063417
display: none;
34073418
position: relative;
@@ -3416,10 +3427,11 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
34163427
display: none;
34173428
}
34183429
.ajax-button {
3419-
padding: 3px 12px;
3430+
padding: 2px 12px 5px 12px;
34203431
margin-top: -3px;
34213432
border-radius: 3px;
34223433
color: #bbb;
3434+
font-weight: 400;
34233435
}
34243436
.ajax-button,
34253437
.ajax-button:visited,
@@ -3436,8 +3448,9 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
34363448

34373449
background: #000;
34383450
color: inherit;
3439-
border: 3px solid #333;
3440-
margin-top: -6px;
3451+
border: 1px solid #333;
3452+
box-shadow: 0 0 2px #222;
3453+
margin-top: -4px;
34413454
}
34423455
.ajax-buttons {
34433456
position: absolute;
@@ -3447,6 +3460,7 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
34473460
#ajax-retry {
34483461
float: right;
34493462
background: #0E4973;
3463+
34503464
margin-right: 12px;
34513465
}
34523466
#ajax-retry:hover {
@@ -3498,7 +3512,7 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
34983512
*/
34993513
?>
35003514
#error-file.has_code {
3501-
margin: 24px 0 0 167px;
3515+
margin: 16px 0 0 167px;
35023516
position: relative;
35033517
}
35043518
#error-linenumber {
@@ -3519,7 +3533,7 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
35193533
font-size: 0;
35203534

35213535
position: relative;
3522-
padding: 3px 0 24px 0;
3536+
padding: 9px 0 36px 0;
35233537

35243538
display: inline-block;
35253539

@@ -3571,6 +3585,7 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
35713585
line-height: 21px;
35723586

35733587
font-size: 16px;
3588+
35743589
color: #ddd;
35753590
list-style-type: none;
35763591
/* needed for empty lines */
@@ -3705,7 +3720,6 @@ function displayHTML( Closure $head, $body=null, $javascript=null ) {
37053720
clear: both;
37063721
}
37073722
.error_dump_header {
3708-
font-size: 24px;
37093723
color: #eb4;
37103724
margin: 0;
37113725
margin-left: -6px;

0 commit comments

Comments
 (0)