UX: Make hamburger shadow more subtle, don't use active when in full
This commit is contained in:
parent
e66f111348
commit
3998f729da
|
@ -21,6 +21,9 @@ export default Ember.Component.extend({
|
|||
const posLeft = parseInt(buttonPanelPos.left + $buttonPanel.width() - myWidth);
|
||||
|
||||
return `left: ${posLeft}px; top: ${posTop}px`.htmlSafe();
|
||||
} else {
|
||||
const headerHeight = parseInt($('header.d-header').height() + 3);
|
||||
return `top: ${headerHeight}px`.htmlSafe();
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -34,8 +37,12 @@ export default Ember.Component.extend({
|
|||
|
||||
@observes('visible')
|
||||
_visibleChanged() {
|
||||
const isDropdown = (this.get('viewMode') === 'drop-down');
|
||||
if (this.get('visible')) {
|
||||
|
||||
if (isDropdown) {
|
||||
$('.hamburger-dropdown').addClass('active');
|
||||
}
|
||||
|
||||
if ($(window).width() < 1024) {
|
||||
this.set('viewMode', 'slide-in');
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
right: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
box-shadow: 0 4px 4px 4px rgba(0,0,0, .25);
|
||||
|
||||
.hamburger-body {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
|
@ -13,12 +11,12 @@
|
|||
}
|
||||
|
||||
#hamburger-menu.drop-down {
|
||||
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
||||
box-shadow: 0 2px 2px rgba(0,0,0, .25);
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
#hamburger-menu {
|
||||
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
||||
box-shadow: 0 2px 2px rgba(0,0,0, .25);
|
||||
background-color: $secondary;
|
||||
z-index: 1100;
|
||||
overflow: none;
|
||||
|
|
Loading…
Reference in New Issue