hackertours-theme/sass/navigation/navbar/_navbar.scss
2018-01-30 14:26:03 +01:00

49 lines
833 B
SCSS

// Dependencies.
@import 'components/visually-hidden/visually-hidden';
// Navbar
//
// A simple method to get navigation links to appear in one line.
.navbar,
%navbar {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
text-align: left;
@include rtl() {
flex-direction: row-reverse;
text-align: right;
}
&__item,
li {
padding: 0 10px 0 0;
list-style-type: none;
list-style-image: none;
@include rtl() {
padding: 0 0 0 10px;
}
}
}
//
// Drupal selectors.
//
.main-navigation {
// Hide the block titles put into the main-navigation area of the page.tpl.php.
.block-menu .block__title,
.block-menu-block .block__title {
@extend %visually-hidden;
}
// Main menu and secondary menu links and menu block links.
.links,
.menu {
@extend %navbar;
}
}