Joe b57ecc4a4d
DEV: Refactor and improvements
* converts some items to flexbox and removes old caret styles

* code refactor

The component now uses template literals for better readability.

This commit also minimizes the dropdown library

* adds scrollable menu feature on mobile

* code formatting and placeholder fix

* removes unwanted styles
2019-01-14 15:38:16 +08:00

38 lines
529 B
SCSS

@import "common/foundation/variables";
.top-menu {
.wrap > a {
font-size: $font-0;
padding: 10px 8px;
}
}
.top-menu .wrap > a:first-of-type {
margin-left: -10px;
.rtl & {
margin-right: -10px;
}
}
.vdo {
display: none;
}
.top-menu .wrap {
overflow-x: scroll;
> a {
white-space: nowrap;
}
}
// handles last menu item dropdown position
.top-menu .wrap > div:last-of-type {
left: unset !important;
right: 0 !important;
.rtl & {
left: 0 !important;
right: unset !important;
}
}