Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mesa
mesa3d.org
Commits
dc0c089b
Commit
dc0c089b
authored
May 19, 2021
by
Erik Faye-Lund
Browse files
404: use inline style-tag instead of per-element styles
parent
964d566c
Changes
1
Hide whitespace changes
Inline
Side-by-side
layouts/404.html
View file @
dc0c089b
{{ define "main"}}
<main
class=
"container my-3 text-light"
>
<div
class=
"text-center"
style=
"text-shadow: 0 0 0.25em #111, 0 0 0.5em #111, 0 0 1em #111, 0 0 2em #111, 0 0 4em #111;"
>
<div
class=
"text-center"
>
<h1
class=
"display-2"
>
404
</h1>
<p
class=
"lead"
>
Page not found :(
</p>
<p>
The requested page could not be found.
</p>
...
...
@@ -15,9 +15,22 @@
believe this is a mistake.
</div>
</main>
<div
class=
"position-fixed w-100 user-select-none"
style=
"background-color: #111; z-index:-1"
>
<pre
style=
"color: #333"
>
<div
id=
"bg"
class=
"position-fixed w-100 user-select-none"
>
<pre>
{{readFile "/layouts/404-panic.txt"}}
</pre>
</div>
<style>
main
div
:first-child
{
text-shadow
:
0
0
0.25em
#111
,
0
0
0.5em
#111
,
0
0
1em
#111
,
0
0
2em
#111
,
0
0
4em
#111
;
}
#bg
{
background-color
:
#111
;
z-index
:
-1
;
}
pre
{
color
:
#333
;
}
</style>
{{ end }}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment