mirror of
https://github.com/discourse/discourse-header-submenus.git
synced 2025-03-06 17:59:25 +00:00
* 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
38 lines
529 B
SCSS
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;
|
|
}
|
|
}
|