Skip to content

Commit b94eec7

Browse files
committed
error 500: improved CSS style reset [Closes nette/tracy#581]
1 parent c983e28 commit b94eec7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Application/templates/error.phtml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ $message = $messages[$code] ?? $messages[0];
2727
<title><?= $message[0] ?></title>
2828

2929
<style>
30-
#nette-error { all: initial; position: absolute; top: 0; left: 0; right: 0; height: 70vh; min-height: 400px; display: flex; align-items: center; justify-content: center; z-index: 1000 }
31-
#nette-error div { all: initial; max-width: 550px; background: white; color: #333; display: block }
32-
#nette-error h1 { all: initial; font: bold 50px/1.1 sans-serif; display: block; margin: 40px }
33-
#nette-error p { all: initial; font: 20px/1.4 sans-serif; margin: 40px; display: block }
34-
#nette-error small { color: gray }
30+
#nette-error { all: initial; position: absolute; top: 0; left: 0; right: 0; height: 70vh; min-height: 400px; display: flex; align-items: center; justify-content: center; z-index: 1000; font: 16px/1.4 sans-serif; color: #333 }
31+
#nette-error * { all: initial; background: transparent; color: inherit; font: inherit }
32+
#nette-error div { max-width: 550px; background: white; display: block }
33+
#nette-error h1 { font: bold 50px/1.1 sans-serif; margin: 40px; display: block }
34+
#nette-error p { font: 20px/1.4 sans-serif; margin: 40px; display: block }
35+
#nette-error small { color: gray; font-size: 80% }
3536
</style>
3637

3738
<div id=nette-error>

0 commit comments

Comments
 (0)