Merge "Add arrow-up as indicator for the pinned menu"

This commit is contained in:
jenkins-bot 2019-07-11 22:56:59 +00:00 committed by Gerrit Code Review
commit 145379966b
4 changed files with 17 additions and 16 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

View file

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M13 11l-5-5-5 5z" fill="#797979"/></svg>

After

Width:  |  Height:  |  Size: 151 B

View file

@ -378,7 +378,7 @@
$( this ).data( 'context' ), $( this ).data( 'action' ), $( this )
);
// Hide the dropdown
$( this ).parent().removeClass( 'options-shown' );
$( this ).closest( '.tool-select' ).removeClass( 'options-shown' );
e.preventDefault();
return false;
} )
@ -399,7 +399,7 @@
return false;
} )
.on( 'click', function ( e ) {
$( this ).data( 'options' ).toggleClass( 'options-shown' );
$( this ).data( 'options' ).closest( '.tool-select' ).toggleClass( 'options-shown' );
e.preventDefault();
return false;
} )

View file

@ -135,7 +135,10 @@
color: #222;
}
.menu {
&.options-shown .label {
.background-image-svg( 'images/toolbar/arrow-up.svg', 'images/toolbar/arrow-up.png' );
}
.options {
position: absolute;
display: none;
@ -143,15 +146,7 @@
margin-top: 22px;
border: 1px solid #c8ccd1;
background-color: #fff;
}
}
&:hover .options,
.menu .options-shown {
display: block;
}
.options {
.option {
display: block;
padding: 0.5em;
@ -184,6 +179,11 @@
}
}
}
&:hover .options,
&.options-shown .options {
display: block;
}
}
&:last-of-type {