Merge pull request #32 from emmawinston/remove-mastodon-logo-admin

Replace mastodon logos in admin area with name of instance
This commit is contained in:
Darius Kazemi 2019-11-07 10:43:37 -08:00 committed by GitHub
commit d4ba877266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'