From 08f61483346025d41cf79b0a74fd43d00bc70d8f Mon Sep 17 00:00:00 2001 From: Emma Winston Date: Tue, 1 Oct 2019 18:44:35 +0100 Subject: [PATCH] Remove keysmash elephant from 404 page and replace with the name of the instance --- app/javascript/styles/mastodon/basics.scss | 6 ++++++ app/views/layouts/error.html.haml | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/javascript/styles/mastodon/basics.scss b/app/javascript/styles/mastodon/basics.scss index b5a77ce94..64ee7bae1 100644 --- a/app/javascript/styles/mastodon/basics.scss +++ b/app/javascript/styles/mastodon/basics.scss @@ -109,6 +109,12 @@ body { height: auto; margin-top: -120px; } + + h1 { + a.brand { + font-size: 36px; + } + } } h1 { diff --git a/app/views/layouts/error.html.haml b/app/views/layouts/error.html.haml index 25c85abf9..414ac9c72 100644 --- a/app/views/layouts/error.html.haml +++ b/app/views/layouts/error.html.haml @@ -8,10 +8,11 @@ = stylesheet_pack_tag 'common', media: 'all' = stylesheet_pack_tag Setting.default_settings['theme'], media: 'all' = javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous' - = javascript_pack_tag 'error', integrity: true, crossorigin: 'anonymous' %body.error .dialog .dialog__illustration - %img{ alt: Setting.default_settings['site_title'], src: '/oops.png' }/ + %h1 + = link_to root_url, class: 'brand' do + = site_title .dialog__message %h1= yield :content