Cleanup sidebar button coloring (#956)

This commit is contained in:
Jaco Greeff 2019-04-10 21:27:44 +02:00 committed by GitHub
parent 703ed23d84
commit 33591f9254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 10 deletions

View File

@ -97,7 +97,7 @@
.apps--SideBar-collapse {
align-items: flex-end;
background: #3f3f3f;
bottom: 0px;
bottom: 0;
display: flex;
flex-direction: row wrap;
flex-grow: 1;
@ -106,16 +106,19 @@
position: sticky;
width: 100%;
.ui.basic.secondary.button {
/* aligned with hidden tesxt, don't let button jump - or at least ... less */
&.collapsed {
padding-left: 0.5rem;
}
.ui.circular.button {
bottom: 0.75rem;
background: white !important;
color: #3f3f3f !important;
box-shadow: 0 0 0 1px #eee inset !important;
color: #eee !important;
margin: 0;
position: absolute;
transition: transform 0.15s;
&.rotated {
transform: rotate(180deg);
}
}
}

View File

@ -110,14 +110,13 @@ class SideBar extends React.PureComponent<Props> {
return (
<Responsive
minWidth={SIDEBAR_MENU_THRESHOLD}
className='apps--SideBar-collapse'
className={`apps--SideBar-collapse ${isCollapsed ? 'collapsed' : 'expanded'}`}
>
<Button
icon='angle double right'
icon={`angle double ${isCollapsed ? 'right' : 'left'}`}
isBasic
isCircular
onClick={this.props.collapse}
className={isCollapsed ? '' : 'rotated'}
/>
</Responsive>
);