fix logo styling, add link to keybaord shortcuts
This commit is contained in:
parent
087f319a8a
commit
5cadf8986c
3 changed files with 16 additions and 3 deletions
|
@ -81,7 +81,7 @@ class Nav extends React.PureComponent {
|
|||
return (
|
||||
<nav className="nav" role="navigation" title="main-navigation">
|
||||
<ul className="nav__items-left" title="project-menu">
|
||||
<li>
|
||||
<li className="nav__item-logo">
|
||||
<InlineSVG src={logoUrl} alt="p5.js logo" />
|
||||
</li>
|
||||
<li className={navDropdownState.file}>
|
||||
|
@ -239,7 +239,9 @@ class Nav extends React.PureComponent {
|
|||
<InlineSVG src={triangleUrl} />
|
||||
</li>
|
||||
<li className="nav__dropdown-item">
|
||||
<button onClick={this.props.showKeyboardShortcutModal}>
|
||||
Keyboard Shortcuts
|
||||
</button>
|
||||
</li>
|
||||
<li className="nav__dropdown-item">
|
||||
<a
|
||||
|
@ -366,7 +368,8 @@ Nav.propTypes = {
|
|||
showShareModal: PropTypes.func.isRequired,
|
||||
showErrorModal: PropTypes.func.isRequired,
|
||||
unsavedChanges: PropTypes.bool.isRequired,
|
||||
warnIfUnsavedChanges: PropTypes.func.isRequired
|
||||
warnIfUnsavedChanges: PropTypes.func.isRequired,
|
||||
showKeyboardShortcutModal: PropTypes.func.isRequired
|
||||
};
|
||||
|
||||
Nav.defaultProps = {
|
||||
|
|
|
@ -218,6 +218,7 @@ class IDEView extends React.Component {
|
|||
showErrorModal={this.props.showErrorModal}
|
||||
unsavedChanges={this.props.ide.unsavedChanges}
|
||||
warnIfUnsavedChanges={this.warnIfUnsavedChanges}
|
||||
showKeyboardShortcutModal={this.props.showKeyboardShortcutModal}
|
||||
/>
|
||||
<Toolbar
|
||||
className="Toolbar"
|
||||
|
|
|
@ -170,3 +170,12 @@
|
|||
z-index: 0;
|
||||
}
|
||||
|
||||
.nav__item-logo {
|
||||
position: relative;
|
||||
height: #{42 / $base-font-size}rem;
|
||||
width: #{56 / $base-font-size}rem;
|
||||
& span {
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue