mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 16:22:42 +00:00
Add divider and tool active class
This commit is contained in:
@@ -70,6 +70,7 @@ const Snippetbar = createClass({
|
|||||||
onClick={this.props.redo} >
|
onClick={this.props.redo} >
|
||||||
<i className='fas fa-redo' />
|
<i className='fas fa-redo' />
|
||||||
</div>
|
</div>
|
||||||
|
<div className='divider'></div>
|
||||||
<div className={cx('text', { selected: this.props.view === 'text' })}
|
<div className={cx('text', { selected: this.props.view === 'text' })}
|
||||||
onClick={()=>this.props.onViewChange('text')}>
|
onClick={()=>this.props.onViewChange('text')}>
|
||||||
<i className='fa fa-beer' />
|
<i className='fa fa-beer' />
|
||||||
|
|||||||
@@ -33,10 +33,25 @@
|
|||||||
&.undo{
|
&.undo{
|
||||||
.tooltipLeft('Undo');
|
.tooltipLeft('Undo');
|
||||||
font-size : 0.75em;
|
font-size : 0.75em;
|
||||||
|
color : grey;
|
||||||
|
&.active{
|
||||||
|
color : black;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
&.redo{
|
&.redo{
|
||||||
.tooltipLeft('Redo');
|
.tooltipLeft('Redo');
|
||||||
font-size : 0.75em;
|
font-size : 0.75em;
|
||||||
|
color : grey;
|
||||||
|
&.active{
|
||||||
|
color : black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.divider {
|
||||||
|
background: linear-gradient(#000, #000) no-repeat center/1px 100%;
|
||||||
|
width: 5px;
|
||||||
|
&:hover{
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user