150 lines
2.0 KiB
SCSS
150 lines
2.0 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: flex;
|
|
align-items: center;
|
|
min-height: 100%;
|
|
padding: 0 1rem;
|
|
text-decoration: none;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.current_page_item > a,
|
|
.current-menu-item > a,
|
|
.current_page_ancestor > a,
|
|
.current-menu-ancestor > a {
|
|
font-weight: bold;
|
|
}
|
|
.current-menu-item::after {
|
|
border-bottom: 2px solid #000;
|
|
display: block;
|
|
content: "";
|
|
width: 60%;
|
|
margin: 0 20%;
|
|
}
|
|
}
|
|
|
|
.main-navigation {
|
|
}
|
|
.secondary-navigation {
|
|
padding: 1.5rem 0;
|
|
a {
|
|
text-transform: uppercase;
|
|
}
|
|
}
|
|
/* Small menu. */
|
|
.menu-toggle,
|
|
.main-navigation.toggled ul {
|
|
display: block;
|
|
}
|
|
|
|
@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 {
|
|
height: 100%;
|
|
}
|
|
//.menu-primary-menu-container,
|
|
//.menu-secondary-menu-container {
|
|
// display: flex;
|
|
// justify-content: end;
|
|
//}
|
|
.menu-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.main-navigation ul {
|
|
display: flex;
|
|
justify-content: end;
|
|
height:100%;
|
|
}
|
|
.secondary-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%;
|
|
}
|
|
}
|