diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -94,6 +94,8 @@ async fn fetch(req: Request, env: Env, _ctx: Context) -> Result<Response> { ". Source available " a href="https://git.neetlo.li/ataxia/tree" { "here" } "." + br; br; + "I may be contacted by shouting loudly on the Internet, though I doubt there would be a need to." } }) }) @@ -198,7 +200,12 @@ body { max-width: 960px; margin-left: auto; margin-right: auto; -}"; +} +.f,.f *{position:fixed;height:100%;top:0;left:50%} +.f *{transform:translate(-50%,0)} +.f{display:none;left:0;width:100%;background:rgba(0,0,0,0.8)} +*:focus+.f{display:block} +"; html! { (DOCTYPE) style { (PreEscaped(css)) } |
