Submit
Path:
~
/
home
/
getwphos
/
public_html
/
srlgroup
/
wp-content
/
themes
/
adsett
/
assets
/
scss
/
menu
/
File Content:
_main.scss
$menu_item_space: 44px; $sub_menu_w: 240px; @media (min-width: $xl_min){ .pxl-primary-menu{ padding: 0; margin: 0; list-style: none; margin-left: $menu_item_space / -2; margin-right: $menu_item_space / -2; display: flex; flex-wrap: wrap; ul, ol{ list-style: none; padding: 0; margin: 0; } li{ position: relative; padding: 0; flex: 0 0 100%; width: 100%; max-width: 100%; &:hover{ > .sub-menu{ z-index: 9; visibility: visible; opacity: 1; @include transform(translate(0, 0)); } } } > li { flex: 0 0 auto; width: auto; margin: 0 $menu_item_space / 2; display: inline-flex; > a{ color: $menu_regular; font-size: $menu_font_size; font-weight: $menu_font_weight; font-family: $menu_font_family; line-height: $header_height; text-transform: uppercase; display: inline-block; letter-spacing: $menu_letter_spacing; span{ position: relative; &:before{ content: ""; width: 100%; height: 1px; position: absolute; bottom: -1px; left: 50%; background-color: #494949; opacity: 0; @include transform(translateX(-50%) scale(0)); @include transition(transform .3s linear, opacity .3s linear); } } &:hover{ color: $menu_hover; } } &.active, &.current-menu-item, &.current-menu-ancestor, &:hover{ > a, > .main-menu-toggle{ color: $menu_active; } > a span:before{ opacity: 1; @include transform(translateX(-50%) scale(1)); } } &.pxl-megamenu{ &.current-menu-item, &.current-menu-ancestor{ &:before{ width: 0; height: 0; @include transition(width .8s ease 0s, height .3s ease 0.3s); } &:hover{ &:before{ width: 100%; height: 4px; } } } } > .main-menu-toggle{ display: inline-block; line-height: 1; align-self: center; margin-left: 8px; font-weight: 400; color: $menu_regular; font-size: 15px; @include transition(); &:before{ font-family: "pxli"; content: $menu_arrows_down; } [dir="rtl"] &{ margin-left: 0; margin-right: 6px; } } > .sub-menu{ left: -25px; [dir="rtl"] &{ left: auto; right: -25px; } } &.active, &:hover{ > a, > .main-menu-toggle{ color: $menu_hover; .pxl-menu-title:after{ background: $menu_hover; } } &:before{ background-color: $menu_hover; } } } // Level 2 .sub-menu{ width: $sub_menu_w; color: $submenu_regular; background-color: $submenu_bg; background-repeat: repeat-x; background-position: top left; position: absolute; top: 100%; left: 100%; padding: 15px 25px; z-index: -1; opacity: 0; visibility: hidden; @include border-radius(0); @include transform(translate(0, 20px)); @include box-shadow($submenu_shadow); @include transition(transform .3s linear 0s, opacity .3s linear 0s, visibility .3s linear 0s); &.back{ left: auto; right: -20px; } [dir="rtl"] &{ left: auto; right: 100%; &.back{ right: auto; left: -20px; } } } .sub-menu{ li{ padding: 0; &:last-child{ a{ border-bottom: 0; } } > .main-menu-toggle{ display: inline-block; line-height: 1; align-self: center; position: absolute; top: 50%; right: 0; font-size: 15px; color: $submenu_regular; opacity: 1; @include transform(translate(0,-50%)); @include transition(transform .3s ease, opacity .3s ease); &:before{ font-size: 18px; font-family: "pxli"; content: "\e971"; } } &:hover{ > .sub-menu{ top: -15px; } > .main-menu-toggle{ color: $submenu_hover; opacity: 0; @include transform(translate(10px,-50%)); } } &.active, &.current-menu-item, &.current-menu-ancestor{ > .main-menu-toggle{ color: $submenu_hover; } a{ color: $submenu_hover; .pxl-menu-title{ &:before{ left: 1px; } } } } } a{ display: block; font-size: $submenu_font_size; line-height: 1.5; font-weight: $submenu_font_weight; padding: 8px 0; color: $submenu_regular; background-color: $submenu_item_bg; position: relative; .pxl-menu-title{ display: inline-flex; position: relative; overflow: hidden; &:before{ content: ""; width: 100%; height: 1px; position: absolute; bottom: 2px; left: -130%; background-color: $submenu_hover; @include transition(left 0.6s cubic-bezier(0.4, 0, 1, 1) .2s); } &:after{ content: ""; width: 100%; height: 1px; position: absolute; bottom: 2px; left: -102%; background-color: $submenu_hover; @include transition(left 0.5s cubic-bezier(0.4, 0, 1, 1)); } } &:hover{ color: $submenu_hover; background-color: $submenu_item_bg_hover; .pxl-menu-title{ &:before{ left: 0; } &:after{ left: 102%; } } } } .current-menu-item, .current-menu-ancestor{ > a{ color: $submenu_active; background-color: $submenu_item_bg_hover; } } } .pxl-parent-menu-icon{ float: right; &:before{ margin-left: 5px; @include font-pxli("\6a", 12px); [dir="rtl"] &{ margin-left: 0; margin-right: 5px; } } [dir="rtl"] &{ float: left; } } } .pxl-nav-menu ul, .pxl-nav-menu ol { list-style: none; } .style-vr{ .pxl-primary-menu{ margin-left: 0; margin-right: 0; padding: 0 30px; >li{ margin: 0; flex: 0 0 100%; width: 100%; @include d-flex(); >.main-menu-toggle{ position: absolute; top: 50%; margin-top: -10px; right: 30px; font-size: 16px; &:before{ content: "\e9a0"; } } >a{ font-weight: 400; line-height: 60px; letter-spacing: 0.04em; text-transform: uppercase; } &.active, &.current-menu-item, &.current-menu-ancestor, &:hover{ > a, > .main-menu-toggle{ color: $menu_active; font-weight: 700; } } > .sub-menu{ left: 0; right: 0; [dir="rtl"] &{ left: 0; } } } .sub-menu{ top: 100%; left: 0; right: 0; width: 100%; text-align: center; padding: 30px 30px; a:hover{ padding-left: 0; } } } } } .pxl-nav-menu:not(.is-arrow){ .main-menu-toggle{ display: none; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
_inner.scss
985 bytes
0644
_main.scss
7281 bytes
0644
_mobile.scss
3022 bytes
0644
menu.scss
148 bytes
0644
N4ST4R_ID | Naxtarrr