.main-navigation { display: block; width: 100%; ul { display: none; list-style: none; margin: 0; padding-left: 0; ul { box-shadow: 0 0 15px rgba(0,0,0,.1); float: left; position: absolute; transition: ease transform 300ms, ease opacity 300ms; left: -999em; z-index: 99999; display: block; @media(min-width: 1025px) { transform: translate3d(0, 15px, 0); opacity: 0; } ul { left: -999em; top: 0; } li { background: #fff; padding: 0 15px; display: flex; margin-right: 0; &:hover > ul, &.focus > ul { display: block; left: 100%; } .dropdown-symbol { margin-top: 10px; svg { transform: rotate(-90deg); } } } &.toggled { li { background-color: transparent; } } a { width: 187px; display: inline-block; text-transform: none; } :hover > a, .focus > a { } a:hover, a.focus { } } li:hover > ul, li.focus > ul { left: auto; top: 100%; opacity: 1; transform: translate3d( 0, 0, 0 ); ul { top: 0; } } } li { position: relative; margin-right: 35px; padding-bottom: 0; &:hover > a, &.focus > a { } &:last-of-type { margin-right: 0; } } a { padding: 10px 0; display: inline-block; text-decoration: none; } .current_page_item > a, .current-menu-item > a, .current_page_ancestor > a, .current-menu-ancestor > a { } } .bottom-header-row, .site-header { .dropdown-symbol { margin-left: 10px; cursor: pointer; .ws-svg-icon { width: 0.8em; height: 0.8em; margin-top: -2px; svg { transition: ease all 300ms; } } } } /* Small menu. */ .main-navigation.toggled ul { display: block; } @media screen and (min-width: 37.5em) { .main-navigation ul { display: flex; flex-wrap: wrap; } } .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%; } } // Pagination .navigation.pagination { text-align: center; margin-top: 40px; .page-numbers { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; transition: background-color 0.3s; margin-right: 7px; border-radius: 50%; background: transparent; color: inherit; &:last-child { margin-right: 0; } } } .woocommerce-pagination { text-align: center; margin-top: 40px; ul { list-style: none; margin: 0; padding: 0; } li { display: inline-block; margin-right: 7px; &:last-child { margin-right: 0; } .page-numbers { display: block; width: 36px; height: 36px; line-height: 36px; text-align: center; background: transparent; transition: background-color 0.3s; border-radius: 50%; color: inherit; } } } // Pagination Button (load more / infinite scroll) .botiga-pagination-load-more { .navigation.pagination, .woocommerce-pagination { display: none; } } .botiga-pagination-wrapper { text-align: center; margin-top: 60px; } .botiga-pagination-button { position: relative; display: inline-flex !important; align-items: center; .botiga-pagination-button__label { display: inline-block; font-size: 0.9em; text-transform: uppercase; transition: ease all 300ms; } .botiga-pagination-button__loader { position: absolute; top: 50%; left: 50%; transform: translate3d(-50%, -50%, 0); } svg { opacity: 0; animation-name: rotateAnim; animation-duration: 1.5s; animation-timing-function: linear; animation-iteration-count: infinite; transition: ease all 300ms; } &.loading, &.loading-anim { .botiga-pagination-button__label { opacity: 0; visibility: hidden; } svg { display: block; opacity: 0.7; } } &.loading-anim { .botiga-pagination-button__label { display: none; } } } // Offcanvas menu .botiga-offcanvas-menu { position: fixed; left: -100%; opacity: 0; transition: all 0.4s; top: 0; box-shadow: 0 5px 15px 3px rgba(0, 0, 0, 0.07); padding: 30px; margin: 0; z-index: 99999; background-color: #fff; width: 100%; max-width: 300px; height: 100%; overflow-y: auto; .mobile-header-item { visibility: hidden; } .admin-bar & { top: 32px; } &.toggled { left: 0; opacity: 1; .mobile-header-item { visibility: visible; } } .main-navigation { a { width: 100%; } .menu-item-has-children { a { width: calc(100% - 23px); } } ul ul { a { width: calc(100% - 23px); } li { display: block; padding: 0; } } ul li { margin-right: 0; } ul ul ul { position: static; } ul ul li:hover>ul { display: none; } .sub-menu { display: none; margin: 0; list-style: none; padding-left: 10px; position: static; float: none; box-shadow: none; &.toggled { display: block; } } } } .botiga-offcanvas-menu.toggled { .menu { display: block; } } body.mobile-menu-visible { overflow-y: hidden; } .menu-toggle { width: 28px; position: relative; cursor: pointer; display: inline-block; i, svg { width: 28px !important; height: 20px !important; } } /* Secondary & Footer copyright navigation */ .secondary-navigation, .botiga-footer-copyright-navigation { display: block; ul { display: flex; list-style: none; margin: 0; padding-left: 0; li { padding-bottom: 0; a { padding: 0 10px; text-decoration: none; } } } } .header-elements, .footer-copyright-elements { &:nth-child(1) { ul { li:first-child { a { padding-left: 0; } } } } &:nth-child(2) { ul { li:last-child { a { padding-right: 0; } } } } } .footer-copyright-elements { &:nth-child(2) { ul { justify-content: flex-end; } } }