Commit e3e8c5c2 authored by mgabdev's avatar mgabdev

Updated tabs bar styles to remove nav links on small devices, show other buttons

parent 4b1051e7
......@@ -155,6 +155,7 @@ class TabsBar extends React.PureComponent {
const classes = classNames('tabs-bar', {
'tabs-bar--collapsed': collapsed,
'logged-in': !!account,
})
return (
......@@ -191,6 +192,10 @@ class TabsBar extends React.PureComponent {
<button className='tabs-bar__button-compose button' onClick={onOpenCompose} aria-label='Gab'>
<span>Gab</span>
</button>
<NavLink className='tabs-bar__search-btn' to='/search'>
<i className='tabs-bar__link__icon tabs-bar__link__icon--search'/>
<FormattedMessage id='tabs_bar.search' defaultMessage='Search' />
</NavLink>
</div>
}
{
......
......@@ -9,6 +9,7 @@
top: 0;
z-index: 1000;
transition: transform 0.2s ease;
overflow: hidden;
// body.theme-gabsocial-light & {
// background: #fff;
......@@ -17,8 +18,8 @@
&--collapsed {
@media screen and (max-width: 895px) {
margin-top: -46px;
transform: translateY(-46px);
margin-top: -50px;
transform: translateY(-50px);
}
}
......@@ -170,18 +171,26 @@
display: flex;
}
@media (max-width: 895px) {
height: 92px;
&__search-btn {
display: none;
margin-left: auto;
&__search-container,
&__button-compose {
.tabs-bar__link__icon--search {
display: block;
height: 32px;
width: 32px;
background-position: -995px 5px !important;
}
> span {
display: none;
}
}
&__container {
max-width: 560px;
flex-direction: column-reverse;
padding: 0;
@media (max-width: 895px) {
&__search-container,
&__button-compose {
display: none;
}
&__profile {
......@@ -194,13 +203,41 @@
&--left {
margin: 0;
width: 100%;
width: 80px;
}
&--right {
padding: 6px 0 6px 20px;
margin-left: 0;
margin-right: auto;
padding: 8px 0 6px 20px;
}
}
&__link {
display: none !important;
&--logo {
display: flex !important;
}
}
&.logged-in & {
&__split {
&--left {
display: none !important;
}
&--right {
padding-top: 10px;
margin-left: 0 !important;
width: 100% !important;
.flex {
width: 100%;
}
}
}
&__search-btn {
display: block;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment