Skip to content

Commit

Permalink
More progress on sticky bar styling
Browse files Browse the repository at this point in the history
  • Loading branch information
L8D committed Mar 28, 2016
1 parent 801bbbf commit a1ea82d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/components/restaurant/menu/bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ export class RestaurantMenuBarWrapperComponent extends Component {
};

window.addEventListener('scroll', this.handleScroll);
window.addEventListener('resize', this.handleScroll);
}

componentWillUnmount() {
window.removeEventListener('scroll', this.handleScroll);
window.removeEventListener('resize', this.handleScroll);
}

render() {
Expand Down
19 changes: 19 additions & 0 deletions app/styles/restaurant/menu/bar.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,30 @@
right: 0;
background: @gb-white;
border-bottom: 1px solid @gb-shadow-tide;
height: 52px;

.gb-restaurant-menu-bar-content {
.gb-body;

position: relative;
}

.gb-restaurant-menu-tab-title-catering,
.gb-restaurant-menu-tab-title-individual {
border-top-radius: none;
border: 0;

&:before {
display: none;
}

&.active .gb-restaurant-menu-tab-title-content:after {
display: block;
}
}

.gb-restaurant-menu-searchbox {
display: none;
}
}
}

0 comments on commit a1ea82d

Please sign in to comment.