Skip to content
Snippets Groups Projects
Commit 56b431da authored by Ray Schamp's avatar Ray Schamp
Browse files

Highlight on hover/active

parent d47a0650
Branches
Tags
No related merge requests found
......@@ -39,8 +39,7 @@
}
.scratch-logo {
height: $menu-bar-height;
padding: 0.8rem 0;
height: 1.4rem;
vertical-align: middle;
}
......@@ -53,11 +52,11 @@
.menu {
/* blocklyToolboxDiv is 40 */
z-index: 50;
top: 31px;
top: $menu-bar-height;
}
.menu-bar-item {
display: block;
display: flex;
padding: 0 0.25rem;
cursor: pointer;
text-decoration: none;
......@@ -65,6 +64,13 @@
user-select: none;
align-self: center;
position: relative;
align-items: center;
height: $menu-bar-height;
}
.menu-bar-item.active,
.menu-bar-item:hover {
background-color: $ui-black-transparent;
}
.file-group {
......
......@@ -102,7 +102,9 @@ const MenuBar = props => (
</MenuBarItemTooltip>
</div>
<div
className={classNames(styles.menuBarItem)}
className={classNames(styles.menuBarItem, {
[styles.active]: props.fileMenuOpen
})}
onMouseUp={props.onClickFile}
>
<div className={classNames(styles.fileMenu)}>File</div>
......
......@@ -5,12 +5,12 @@
border: 1px solid $ui-black-transparent;
border-radius: 0 0 4px 4px;
background-color: $motion-primary;
padding: 10px;
padding: 0;
margin: 0;
max-width: 260px;
overflow: visible;
color: $ui-white;
font-weight: normal;
margin: 0;
}
.menu.left {
......@@ -25,6 +25,12 @@
display: block;
line-height: 34px;
white-space: nowrap;
padding: 0 10px;
}
.menu-item.active,
.menu-item:hover {
background-color: $ui-black-transparent;
}
.divider {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment