126 lines
1.5 KiB
SCSS
126 lines
1.5 KiB
SCSS
.main-navigation,.secondary-navigation {
|
|
//display: block;
|
|
//width: 100%;
|
|
|
|
ul {
|
|
display: none;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding-left: 0;
|
|
|
|
ul {
|
|
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
|
|
float: left;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: -999em;
|
|
z-index: 99999;
|
|
|
|
ul {
|
|
left: -999em;
|
|
top: 0;
|
|
}
|
|
|
|
li {
|
|
|
|
&:hover > ul,
|
|
&.focus > ul {
|
|
display: block;
|
|
left: auto;
|
|
}
|
|
}
|
|
|
|
a {
|
|
width: 200px;
|
|
}
|
|
|
|
:hover > a,
|
|
.focus > a {
|
|
}
|
|
|
|
a:hover,
|
|
a.focus {
|
|
}
|
|
}
|
|
|
|
li:hover > ul,
|
|
li.focus > ul {
|
|
left: auto;
|
|
}
|
|
}
|
|
|
|
li {
|
|
position: relative;
|
|
|
|
&:hover > a,
|
|
&.focus > a {
|
|
}
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.current_page_item > a,
|
|
.current-menu-item > a,
|
|
.current_page_ancestor > a,
|
|
.current-menu-ancestor > a {
|
|
}
|
|
}
|
|
|
|
/* Small menu. */
|
|
.menu-toggle,
|
|
.main-navigation.toggled ul {
|
|
display: block;
|
|
}
|
|
/* secondary navigation */
|
|
.secondary-navigation ul {
|
|
display: flex;
|
|
}
|
|
|
|
@media screen and (min-width: 37.5em) {
|
|
.site-branding {
|
|
// display: inline-block;
|
|
// float: left;
|
|
}
|
|
.custom-logo {
|
|
max-width: 11rem;
|
|
margin: 1rem;
|
|
}
|
|
.menu-primary-menu-container,
|
|
.menu-secondary-menu-container {
|
|
display: flex;
|
|
justify-content: end;
|
|
}
|
|
.menu-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.main-navigation ul {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
.comment-navigation,
|
|
.posts-navigation,
|
|
.post-navigation {
|
|
|
|
.site-main & {
|
|
margin: 0 0 1.5em;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-previous {
|
|
flex: 1 0 50%;
|
|
}
|
|
|
|
.nav-next {
|
|
text-align: end;
|
|
flex: 1 0 50%;
|
|
}
|
|
}
|