Replace mastodon logos in admin area with name of instance

This commit is contained in:
Emma Winston 2019-10-10 21:30:15 +01:00
parent b2b108a09a
commit dbaf8e4aed
2 changed files with 32 additions and 6 deletions

View File

@ -46,6 +46,12 @@ $content-width: 840px;
position: relative; position: relative;
bottom: -2px; bottom: -2px;
} }
h2 {
height: 20px;
position: relative;
bottom: -2px;
}
} }
&__icon { &__icon {
@ -68,15 +74,32 @@ $content-width: 840px;
.logo { .logo {
display: block; display: block;
margin: 40px auto; margin: 60px 0 0 20px;
width: 100px;
height: 100px; height: 100px;
h2 .brand {
color: $primary-text-color;
display: block;
font-size: 24px;
line-height: 28px;
font-weight: 400;
padding-bottom: 40px;
border-bottom: 1px solid lighten($ui-base-color, 8%);
}
} }
@media screen and (max-width: $no-columns-breakpoint) { @media screen and (max-width: $no-columns-breakpoint) {
& > a:first-child { & > a:first-child {
display: none; display: none;
} }
.logo,
.logo h2,
.logo h2 .brand {
display: none;
}
} }
ul { ul {

View File

@ -6,13 +6,16 @@
.sidebar-wrapper .sidebar-wrapper
.sidebar-wrapper__inner .sidebar-wrapper__inner
.sidebar .sidebar
= link_to root_path do .logo
= image_pack_tag 'logo.svg', class: 'logo', alt: 'Mastodon' %h2
= link_to root_url, class: 'brand' do
= site_title
.sidebar__toggle .sidebar__toggle
.sidebar__toggle__logo .sidebar__toggle__logo
= link_to root_path do %h2
= svg_logo_full = link_to root_path, class: 'brand' do
= site_title
= link_to '#', class: 'sidebar__toggle__icon' do = link_to '#', class: 'sidebar__toggle__icon' do
= fa_icon 'bars' = fa_icon 'bars'