Improve topnav logo code
This commit is contained in:
parent
be13bc040c
commit
eef41485c1
2 changed files with 10 additions and 6 deletions
|
@ -66,7 +66,8 @@ class TabsBar extends React.PureComponent {
|
|||
let links = [];
|
||||
if (logo) {
|
||||
links.push(
|
||||
<Link key='logo' className='tabs-bar__link--logo' to='/' data-preview-title-id='column.home' style={{ padding: '0', backgroundImage: `url(${logo})` }}>
|
||||
<Link key='logo' className='tabs-bar__link--logo' to='/' data-preview-title-id='column.home'>
|
||||
<img alt='Logo' src={logo} />
|
||||
<FormattedMessage id='tabs_bar.home' defaultMessage='Home' />
|
||||
</Link>);
|
||||
}
|
||||
|
|
|
@ -223,16 +223,19 @@ $nav-ui-background-color: $gab-brand-default !default;
|
|||
|
||||
&--logo {
|
||||
display: block;
|
||||
width: 80px;
|
||||
height: 50px;
|
||||
margin-right: 30px;
|
||||
border: 0;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 100% calc(100% - 25px);
|
||||
height: 50px;
|
||||
overflow: hidden;
|
||||
padding: 10px 0;
|
||||
box-sizing: border-box;
|
||||
filter: brightness(0%) grayscale(100%) invert(100%);
|
||||
& span {display: none !important;}
|
||||
|
||||
img {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue