.main-navigation { clear: both; display: block; width: 100%; border-top: 1px solid $color__background-hr; border-bottom: 1px solid $color__background-hr; background: #fff; text-align: center; ul { display: none; list-style: none; margin: 0; padding-left: 0; ul { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); position: absolute; top: 120%; visibility: hidden; opacity: 0; z-index: 99999; transition: 200ms linear; transition-property: top, opacity, visibility; background: #fafafa; padding: 10px 0; margin: 1px 0 0 0; left: -9999px; @media (max-width: 600px) { position: static; opacity: 1; visibility: visible; box-shadow: none; background: none; padding: 0 0 0 15px; margin: 0; li:before { content: "-"; display: inline-block; } } li { > ul { top: 20%; background: #fff; @media (max-width: 600px) { background: none; } } &:hover > ul, &.focus > ul, &.menu-hover > ul { top: -11px; left: 100%; } > ul.in-transition { left: 100%; } } a { width: 200px; text-align: left; padding: 12px 15px 12px 20px; color: $color__text-headings; position: relative; @media (max-width: 600px) { @include font-size(1); padding: 10px 15px; width: 100%; } &:before { top: 50%; bottom: 50%; width: 5px; opacity: 0; content: ""; left: 0; background: $color__link; position: absolute; transition: all 200ms ease-out; @media (max-width: 600px) { display: none; } } } :hover > a, .focus > a, .menu-hover > a, .current_page_item > a, .current-menu-item > a, .current_page_ancestor > a { color: $color__link; &:before { top: 0; bottom: 0; opacity: 1; } } .page_item_has_children, .menu-item-has-children { > a { &:after { content: "\f105"; font-family: FontAwesome; position: absolute; right: 8px; @include font-size(1.2); line-height: 1; @media (max-width: 600px) { content: "\f107"; position: static; display: inline-block; margin: 0 0 0 5px; vertical-align: middle; } } } } } li:hover > ul, li.focus > ul, li.menu-hover > ul { top: 100%; left: 0; visibility: visible; opacity: 1; } li > ul.in-transition { left: 0; } } ul.menu, div.menu > ul { text-align: center; font-size: 0; line-height: 0; > li { display: inline-block; @media (max-width: 600px) { display: block; text-align: left; } @media (max-width: 600px) { > ul { border-top: 1px solid #d3d3d3; } } &:after { content: ""; width: 1px; top: 50%; margin: -7px 0 0 0; position: absolute; height: 14px; left: 0; background: #d3d3d3; pointer-events: none; @media (max-width: 600px) { height: 1px; top: 0; margin: 0; left: 0; right: 0; width: auto; } } &:first-child { &:after { display: none; @media (max-width: 600px) { display: block; } } } > a { display: block; padding: 23px 20px; color: $color__text-headings; position: relative; @media (max-width: 600px) { padding: 15px 20px; text-transform: uppercase; font-weight: bold; } &:before { left: 50%; right: 50%; content: ""; height: 5px; background: $color__link; position: absolute; top: 0; transition: all 200ms ease-out; opacity: 0; @media (max-width: 600px) { top: 50%; bottom: 50%; width: 5px; left: 0; height: auto; } } } &:hover, &.menu-hover, &.current_page_item, &.current-menu-item, &.current_page_ancestor { > a { color: $color__link; &:before { left: 9px; right: 9px; width: auto; opacity: 1; @media (max-width: 600px) { top: 0; bottom: 0; width: 5px; left: 0; right: auto; } } } } &.page_item_has_children, &.menu-item-has-children { > a { &:after { display: inline-block; content: '+'; margin: 0 -7px 0 5px; } } } } } li { position: relative; } a { display: block; text-decoration: none; @include font-size(1.08); line-height: 1; } } /* Small menu. */ .main-navigation.toggled ul, .main-navigation ul { display: block; } button.menu-toggle { display: none; background: none; border: none; box-shadow: none; text-shadow:none; @include font-size(1.5); padding: 15px 20px; margin: 0; color: $color__text-main; text-align: center; width: 100%; &:before { content: "\f0c9"; font-family: FontAwesome; display: inline-block; padding: 0 10px 0 0; } &:hover, &:active, &:focus { box-shadow: none; background: none; color: $color__link; outline: none; } &[aria-expanded="true"] { &:before { content: "\f00d"; } } } @media (max-width: 600px) { button.menu-toggle { display: block; } .main-navigation ul { display: none; } } .comment-navigation, .posts-navigation, .post-navigation { .site-main & { margin: 0 0 1.5em; overflow: hidden; } & .nav-previous { float: left; width: 50%; } & .nav-next { float: right; text-align: right; width: 50%; } } .navigation { &.pagination { text-align: center; font-size: 0; line-height: 0; .page-numbers { display: inline-block; background: #cacaca; height: 42px; line-height: 42px; width: 42px; color: #fff; text-align: center; font-size: 20px; font-family: $font__alt; font-weight: bold; text-decoration: none; margin: 0 5px; &:hover { background: $color__link-hover; } &.dots { background: none; color: #cacaca; cursor: default; } &.current { background: $color__link; cursor: default; } } } &.post-navigation { padding: 20px 0 0 0; margin: 0 -30px; &:after { clear: both; width: 100%; display: block; content: ""; } a { display: inline-block; position: relative; } .post-nav-label { position: relative; z-index: 2; } .nav-previous { .post-nav-label { overflow: hidden; &:after { float: left; margin: 0 0 0 -7px; padding: 0 7px 0 0; content: "\f104"; } } } .post-nav-title { pointer-events:none; position: absolute; top: 0; line-height: 20px; padding: 10px; background: $color__link-hover; color: #fff; text-decoration: none; white-space: nowrap; transition:all 200ms ease-out; max-width: 600px; overflow: hidden; opacity: 0; z-index: 1; @media (max-width: 480px) { display: none; } } .nav-previous { .post-nav-title { left: 80%; } a:hover { .post-nav-title { left: 100%; opacity: 1; } } } .nav-next { .post-nav-title { right: 80%; text-align: right; } a:hover { .post-nav-title { right: 100%; opacity: 1; } } } } }