| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097 |
- // ------------------------- DO NOT EDIT THIS FILE ----------------------------
- // ****** This file will be overwritten each time the plugin is updated *******
- //
- // This file is a major component of Max Mega Menu. The styling below works in
- // perfect harmony with the current version of the plugin. The menu HTML
- // will change as features are added to the plugin. Likewise, this CSS will be
- // updated as new features are added to Max Mega Menu.
- //
- // If you need to apply custom styling to your menu go to Mega Menu > Menu Themes
- // and enter your custom CSS into the Custom Styling area. Use the same (or more
- // specific) selectors to ensure your custom CSS overrides the default CSS.
- #{$wrap},
- #{$wrap} #{$menu},
- #{$wrap} #{$menu} ul.mega-sub-menu,
- #{$wrap} #{$menu} li.mega-menu-item,
- #{$wrap} #{$menu} li.mega-menu-row,
- #{$wrap} #{$menu} li.mega-menu-column,
- #{$wrap} #{$menu} a.mega-menu-link {
- -moz-transition: none;
- -o-transition: none;
- -webkit-transition: none;
- transition: none;
- @include border-radius(0, 0, 0, 0);
- @include box-shadow(none);
- background: none;
- border: 0;
- bottom: auto;
- box-sizing: border-box;
- clip: auto;
- color: $panel_font_color;
- display: block;
- float: none;
- font-family: $panel_font_family;
- font-size: $panel_font_size;
- height: auto;
- left: auto;
- line-height: $line_height;
- list-style-type: none;
- margin: 0;
- min-height: auto;
- max-height: none;
- opacity: 1;
- outline: none;
- overflow: visible;
- padding: 0;
- position: relative;
- pointer-events: auto;
- right: auto;
- text-align: left;
- text-decoration: none;
- text-transform: none;
- transform: none;
- top: auto;
- vertical-align: baseline;
- visibility: inherit;
- width: auto;
- word-wrap: break-word;
- &:before,
- &:after {
- display: none;
- }
- }
- #{$wrap} {
- @include background($container_background_from, $container_background_to);
- @include border-radius($container_border_radius_top_left, $container_border_radius_top_right, $container_border_radius_bottom_right, $container_border_radius_bottom_left);
- &.mega-keyboard-navigation .mega-menu-toggle:focus,
- &.mega-keyboard-navigation #{$menu} a:focus,
- &.mega-keyboard-navigation #{$menu} input:focus {
- @include box-shadow(inset 0px 0px 3px 1px #00FFFF);
- }
- #{$menu} {
- visibility: visible;
- text-align: $menu_item_align;
- padding: $container_padding_top $container_padding_right $container_padding_bottom $container_padding_left;
- @if $container_background_from != $mobile_background_from {
- @include mobile {
- @include background($mobile_background_from, $mobile_background_to);
- }
- }
- @include mobile {
- padding: 0;
- }
- a.mega-menu-link {
- cursor: pointer;
- display: inline;
- @if $transitions == 'on' {
- -webkit-transition: background 200ms linear, color 200ms linear;
- -moz-transition: background 200ms linear, color 200ms linear;
- -o-transition: background 200ms linear, color 200ms linear;
- transition: background 200ms linear, color 200ms linear;
- }
- .mega-description-group {
- vertical-align: middle;
- display: inline-block;
- transition: none;
- .mega-menu-title,
- .mega-menu-description {
- transition: none;
- line-height: 1.5;
- display: block;
- }
- .mega-menu-description {
- font-style: italic;
- font-size: 0.8em;
- text-transform: none;
- font-weight: normal;
- }
- }
- }
- li.mega-menu-item.mega-icon-top > a.mega-menu-link {
- display: table-cell;
- vertical-align: middle;
- line-height: initial;
-
- &:before {
- display: block;
- margin: 0 0 6px 0;
- text-align: center;
- }
- > span.mega-title-below {
- display: inline-block;
- transition: none;
- }
- }
- @include mobile {
- > li.mega-menu-item.mega-icon-top > a.mega-menu-link {
- display: block;
- line-height: $mobile_menu_item_height;
-
- &:before {
- display: inline-block;
- margin: 0 6px 0 0;
- text-align: left;
- }
- }
- }
- li.mega-menu-item.mega-icon-right > a.mega-menu-link {
- &:before {
- float: right;
- margin: 0 0 0 6px;
- }
- }
- > li.mega-animating > ul.mega-sub-menu {
- pointer-events: none;
- }
- li.mega-disable-link > a.mega-menu-link,
- li.mega-menu-megamenu li.mega-disable-link > a.mega-menu-link {
- cursor: default;
- }
- li.mega-menu-item-has-children.mega-disable-link > a.mega-menu-link {
- cursor: pointer;
- }
- p {
- margin-bottom: 10px;
- }
- input,
- img {
- max-width: 100%;
- }
- li.mega-menu-item > ul.mega-sub-menu {
- display: block;
- visibility: hidden;
- opacity: 1;
- pointer-events: auto;
- }
- @include desktop {
- &[data-effect="fade"] {
- li.mega-menu-item > ul.mega-sub-menu {
- opacity: 0;
- transition-duration: $effect_speed;
- transition-timing-function: ease-in;
- transition-property: opacity, visibility;
- }
- &.mega-no-js li.mega-menu-item:hover > ul.mega-sub-menu,
- &.mega-no-js li.mega-menu-item:focus > ul.mega-sub-menu,
- li.mega-menu-item.mega-toggle-on > ul.mega-sub-menu,
- li.mega-menu-item.mega-menu-megamenu.mega-toggle-on ul.mega-sub-menu {
- opacity: 1;
- }
- }
- &[data-effect="fade_up"] {
- li.mega-menu-item.mega-menu-megamenu > ul.mega-sub-menu,
- li.mega-menu-item.mega-menu-flyout ul.mega-sub-menu {
- opacity: 0;
- margin-top: 10px;
- transition-duration: $effect_speed;
- transition-timing-function: ease-in;
- transition-property: opacity, margin-top, visibility;
- }
- &.mega-no-js li.mega-menu-item:hover > ul.mega-sub-menu,
- &.mega-no-js li.mega-menu-item:focus > ul.mega-sub-menu,
- li.mega-menu-item.mega-toggle-on > ul.mega-sub-menu,
- li.mega-menu-item.mega-menu-megamenu.mega-toggle-on ul.mega-sub-menu {
- opacity: 1;
- margin-top: 0;
- }
- }
- &[data-effect="slide_up"] {
- li.mega-menu-item.mega-menu-megamenu > ul.mega-sub-menu,
- li.mega-menu-item.mega-menu-flyout ul.mega-sub-menu {
- margin-top: 10px;
- transition-duration: $effect_speed;
- transition-timing-function: ease-in;
- transition-property: margin-top, visibility;
- }
- &.mega-no-js li.mega-menu-item:hover > ul.mega-sub-menu,
- &.mega-no-js li.mega-menu-item:focus > ul.mega-sub-menu,
- li.mega-menu-item.mega-toggle-on > ul.mega-sub-menu,
- li.mega-menu-item.mega-menu-megamenu.mega-toggle-on ul.mega-sub-menu {
- margin-top: 0;
- }
- }
- }
- &.mega-no-js li.mega-menu-item:hover > ul.mega-sub-menu,
- &.mega-no-js li.mega-menu-item:focus > ul.mega-sub-menu,
- li.mega-menu-item.mega-toggle-on > ul.mega-sub-menu {
- visibility: visible;
- }
- li.mega-menu-item.mega-menu-megamenu ul.mega-sub-menu ul.mega-sub-menu {
- visibility: inherit;
- opacity: 1;
- }
- li.mega-menu-item a[class^='dashicons']:before {
- font-family: dashicons;
- }
- li.mega-menu-item a.mega-menu-link:before {
- display: inline-block;
- font: inherit;
- font-family: dashicons;
- position: static;
- margin: 0 6px 0 0px;
- vertical-align: top;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- color: inherit;
- background: transparent;
- height: auto;
- width: auto;
- top: auto;
- }
- li.mega-menu-item.mega-hide-text a.mega-menu-link:before {
- margin: 0;
- }
- li.mega-menu-item.mega-hide-text li.mega-menu-item a.mega-menu-link:before {
- margin: 0 6px 0 0;
- }
- li.mega-align-bottom-left {
- > ul.mega-sub-menu {
- }
- &.mega-toggle-on > a.mega-menu-link {
- @include border-radius($menu_item_link_border_radius_top_left, $menu_item_link_border_radius_top_right, 0, 0);
- }
- }
- li.mega-align-bottom-right {
- > ul.mega-sub-menu {
- right: 0;
- }
- &.mega-toggle-on > a.mega-menu-link {
- @include border-radius($menu_item_link_border_radius_top_left, $menu_item_link_border_radius_top_right, 0, 0);
- }
- }
- @if unit($panel_width) == '%' {
- > li.mega-menu-megamenu.mega-menu-item {
- position: static;
- }
- }
- // top level items
- > li.mega-menu-item {
- margin: 0 $menu_item_spacing 0 0;
- display: inline-block;
- height: auto;
- vertical-align: middle;
- @if $menu_item_divider == 'on' {
- @include desktop {
- border-left: 1px solid $menu_item_divider_color;
- @include box-shadow(inset 1px 0 0 0 rgba(255,255,255,$menu_item_divider_glow_opacity));
- /* Hide divider on first menu item */
- &:first-of-type {
- border-left: 0;
- @include box-shadow(none);
- }
- }
- }
- &.mega-item-align-right {
- float: right;
- @include desktop {
- margin: 0 0 0 $menu_item_spacing;
- }
- }
- &.mega-item-align-float-left {
- @include desktop {
- float: left;
- }
- }
- &.mega-toggle-on > a.mega-menu-link,
- > a.mega-menu-link:hover,
- > a.mega-menu-link:focus {
- @include background($menu_item_background_hover_from, $menu_item_background_hover_to);
- color: $menu_item_link_color_hover;
- font-weight: $menu_item_link_weight_hover;
- text-decoration: $menu_item_link_text_decoration_hover;
- border-color: $menu_item_border_color_hover;
- @include mobile {
- color: $mobile_menu_item_link_color_hover;
- @include background($mobile_menu_item_background_hover_from, $mobile_menu_item_background_hover_to);
- }
- }
- @if $menu_item_highlight_current == 'on' {
- &.mega-current-menu-item,
- &.mega-current-menu-ancestor,
- &.mega-current-page-ancestor {
- > a.mega-menu-link {
- @include background($menu_item_background_hover_from, $menu_item_background_hover_to);
- color: $menu_item_link_color_hover;
- font-weight: $menu_item_link_weight_hover;
- text-decoration: $menu_item_link_text_decoration_hover;
- border-color: $menu_item_border_color_hover;
- @include mobile {
- color: $mobile_menu_item_link_color_hover;
- @include background($mobile_menu_item_background_hover_from, $mobile_menu_item_background_hover_to);
- }
- }
- }
- }
- > a.mega-menu-link {
- border-top: $menu_item_border_top solid $menu_item_border_color;
- border-left: $menu_item_border_left solid $menu_item_border_color;
- border-right: $menu_item_border_right solid $menu_item_border_color;
- border-bottom: $menu_item_border_bottom solid $menu_item_border_color;
- outline: none;
- text-decoration: none;
- padding: $menu_item_link_padding_top $menu_item_link_padding_right $menu_item_link_padding_bottom $menu_item_link_padding_left;
- line-height: $menu_item_link_height;
- font-weight: $menu_item_link_weight;
- height: $menu_item_link_height;
- vertical-align: baseline;
- text-align: $menu_item_link_text_align;
- width: auto;
- display: block;
- color: $menu_item_link_color;
- text-transform: $menu_item_link_text_transform;
- text-decoration: $menu_item_link_text_decoration;
- @include background($menu_item_background_from, $menu_item_background_to);
- @include border-radius($menu_item_link_border_radius_top_left, $menu_item_link_border_radius_top_right, $menu_item_link_border_radius_bottom_right, $menu_item_link_border_radius_bottom_left);
- font-family: $menu_item_link_font;
- font-size: $menu_item_link_font_size;
- }
- // support for multi line links
- &.mega-multi-line > a.mega-menu-link {
- @include desktop {
- line-height: inherit;
- display: table-cell;
- vertical-align: middle;
- }
- @include mobile {
- br {
- display: none;
- }
- }
- }
- @include mobile {
- display: list-item;
- margin: 0;
- clear: both;
- border: 0;
- &.mega-item-align-right {
- float: none;
- }
- > a.mega-menu-link {
- @include border-radius(0);
- border: 0;
- margin: 0;
- line-height: $mobile_menu_item_height;
- height: $mobile_menu_item_height;
- padding: 0 10px;
- background: transparent;
- text-align: $mobile_menu_item_link_text_align;
- color: $mobile_menu_item_link_color;
- font-size: $mobile_menu_item_link_font_size;
- }
- }
- }
- // sub menu items (grid)
- li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row {
- width: 100%;
- float: left;
- .mega-menu-column {
- float: left;
- min-height: 1px;
- }
- @include desktop {
- @for $of from 1 through 12 {
- @for $cols from 1 through $of {
- > ul.mega-sub-menu > li.mega-menu-columns-#{$cols}-of-#{$of} {
- width: (100% / $of) * $cols;
- }
- }
- }
- }
- @include mobile {
- @if $mobile_columns == 2 {
- > ul.mega-sub-menu > li.mega-menu-column {
- width: 50%;
- }
- > ul.mega-sub-menu > li.mega-menu-column.mega-menu-clear {
- clear: left;
- }
- } @else {
- > ul.mega-sub-menu > li.mega-menu-column {
- width: 100%;
- clear: both;
- }
- }
- }
- .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
- padding: $panel_widget_padding_top $panel_widget_padding_right $panel_widget_padding_bottom $panel_widget_padding_left;
- width: 100%;
- }
- }
- // sub menu items (megamenu)
- > li.mega-menu-megamenu > ul.mega-sub-menu {
- z-index: $z_index;
- @include border-radius($panel_border_radius_top_left, $panel_border_radius_top_right, $panel_border_radius_bottom_right, $panel_border_radius_bottom_left);
- @include background($panel_background_from, $panel_background_to);
- padding: $panel_padding_top $panel_padding_right $panel_padding_bottom $panel_padding_left;
- position: absolute;
- width: $panel_width;
- border-top: $panel_border_top solid $panel_border_color;
- border-left: $panel_border_left solid $panel_border_color;
- border-right: $panel_border_right solid $panel_border_color;
- border-bottom: $panel_border_bottom solid $panel_border_color;
- max-width: none;
- @if unit($panel_width) == '%' {
- left: 0;
- }
- @if unit($panel_inner_width) == '%' and $panel_inner_width < 100% {
- padding-left: (100 - $panel_inner_width) / 2;
- padding-right: (100 - $panel_inner_width) / 2;
- }
- @if $shadow == 'on' {
- @include box-shadow($shadow_horizontal $shadow_vertical $shadow_blur $shadow_spread $shadow_color);
- }
- @include mobile {
- float: left;
- position: static;
- width: 100%;
- }
- @include desktop {
- @for $of from 1 through 9 {
- @for $cols from 1 through $of {
- li.mega-menu-columns-#{$cols}-of-#{$of} {
- width: (100% / $of) * $cols;
- }
- }
- }
- }
- .mega-description-group .mega-menu-description {
- margin: 5px 0;
- }
- > li.mega-menu-item ul.mega-sub-menu {
- clear: both;
- li.mega-menu-item ul.mega-sub-menu {
- margin-left: 10px;
- }
- }
- li.mega-menu-column > ul.mega-sub-menu ul.mega-sub-menu ul.mega-sub-menu {
- margin-left: 10px;
- }
- > li.mega-menu-item,
- li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
- color: $panel_font_color;
- font-family: $panel_font_family;
- font-size: $panel_font_size;
- display: block;
- float: left;
- clear: none;
- padding: $panel_widget_padding_top $panel_widget_padding_right $panel_widget_padding_bottom $panel_widget_padding_left;
- vertical-align: top;
- &.mega-menu-clear {
- clear: left;
- }
- // Widget titles
- h4.mega-block-title {
- color: $panel_header_color;
- font-family: $panel_header_font;
- font-size: $panel_header_font_size;
- text-transform: $panel_header_text_transform;
- text-decoration: $panel_header_text_decoration;
- font-weight: $panel_header_font_weight;
- margin: $panel_header_margin_top $panel_header_margin_right $panel_header_margin_bottom $panel_header_margin_left;
- padding: $panel_header_padding_top $panel_header_padding_right $panel_header_padding_bottom $panel_header_padding_left;
- vertical-align: top;
- display: block;
- visibility: inherit;
- border-top: $panel_header_border_top solid $panel_header_border_color;
- border-left: $panel_header_border_left solid $panel_header_border_color;
- border-right: $panel_header_border_right solid $panel_header_border_color;
- border-bottom: $panel_header_border_bottom solid $panel_header_border_color;
- }
- // Second level menu items
- > a.mega-menu-link {
- color: $panel_second_level_font_color; /* Mega Menu > Menu Themes > Mega Menus > Second Level Menu Items */
- font-family: $panel_second_level_font;
- font-size: $panel_second_level_font_size;
- text-transform: $panel_second_level_text_transform;
- text-decoration: $panel_second_level_text_decoration;
- font-weight: $panel_second_level_font_weight;
- margin: $panel_second_level_margin_top $panel_second_level_margin_right $panel_second_level_margin_bottom $panel_second_level_margin_left;
- padding: $panel_second_level_padding_top $panel_second_level_padding_right $panel_second_level_padding_bottom $panel_second_level_padding_left;
- vertical-align: top;
- display: block;
- border-top: $panel_second_level_border_top solid $panel_second_level_border_color;
- border-left: $panel_second_level_border_left solid $panel_second_level_border_color;
- border-right: $panel_second_level_border_right solid $panel_second_level_border_color;
- border-bottom: $panel_second_level_border_bottom solid $panel_second_level_border_color;
- }
- > a.mega-menu-link:hover,
- > a.mega-menu-link:focus {
- color: $panel_second_level_font_color_hover; /* Mega Menu > Menu Themes > Mega Menus > Second Level Menu Items (Hover) */
- font-weight: $panel_second_level_font_weight_hover;
- text-decoration: $panel_second_level_text_decoration_hover;
- @include background($panel_second_level_background_hover_from, $panel_second_level_background_hover_to);
- }
- li.mega-menu-item {
- > a.mega-menu-link {
- color: $panel_third_level_font_color; /* Mega Menu > Menu Themes > Mega Menus > Third Level Menu Items */
- font-family: $panel_third_level_font;
- font-size: $panel_third_level_font_size;
- text-transform: $panel_third_level_text_transform;
- text-decoration: $panel_third_level_text_decoration;
- font-weight: $panel_third_level_font_weight;
- margin: 0;
- padding: $panel_third_level_padding_top $panel_third_level_padding_right $panel_third_level_padding_bottom $panel_third_level_padding_left;
- vertical-align: top;
- display: block;
- }
- }
- // Third level menu items hover
- li.mega-menu-item > a.mega-menu-link:hover,
- li.mega-menu-item > a.mega-menu-link:focus {
- color: $panel_third_level_font_color_hover; /* Mega Menu > Menu Themes > Mega Menus > Third Level Menu Items (Hover) */
- font-weight: $panel_third_level_font_weight_hover;
- text-decoration: $panel_third_level_text_decoration_hover;
- @include background($panel_third_level_background_hover_from, $panel_third_level_background_hover_to);
- }
- }
- @include mobile {
- border: 0;
- padding: 10px;
- @include border-radius(0,0,0,0);
- @if $mobile_columns == 2 {
- > li.mega-menu-item {
- width: 50%;
- }
- > li:nth-child(odd) {
- clear: left;
- }
- } @else {
- > li.mega-menu-item {
- width: 100%;
- clear: both;
- }
- }
- }
- }
- > li.mega-menu-megamenu.mega-no-headers > ul.mega-sub-menu {
- > li.mega-menu-item > a.mega-menu-link {
- color: $panel_third_level_font_color;
- font-family: $panel_third_level_font;
- font-size: $panel_third_level_font_size;
- text-transform: $panel_third_level_text_transform;
- text-decoration: $panel_third_level_text_decoration;
- font-weight: $panel_third_level_font_weight;
- margin: 0;
- border: 0;
- padding: $panel_third_level_padding_top $panel_third_level_padding_right $panel_third_level_padding_bottom $panel_third_level_padding_left;
- vertical-align: top;
- display: block;
- }
- > li.mega-menu-item > a.mega-menu-link:hover,
- > li.mega-menu-item > a.mega-menu-link:focus {
- color: $panel_third_level_font_color_hover;
- font-weight: $panel_third_level_font_weight_hover;
- text-decoration: $panel_third_level_text_decoration_hover;
- @include background($panel_third_level_background_hover_from, $panel_third_level_background_hover_to);
- }
- }
- // Sub menu items (flyout)
- > li.mega-menu-flyout ul.mega-sub-menu {
- z-index: $z_index;
- position: absolute;
- width: $flyout_width;
- border-top: $flyout_border_top solid $flyout_border_color;
- border-left: $flyout_border_left solid $flyout_border_color;
- border-right: $flyout_border_right solid $flyout_border_color;
- border-bottom: $flyout_border_bottom solid $flyout_border_color;
- padding: $flyout_padding_top $flyout_padding_right $flyout_padding_bottom $flyout_padding_left;
- @include background($flyout_menu_background_from, $flyout_menu_background_to);
- max-width: none;
- @if $shadow == 'on' {
- @include box-shadow($shadow_horizontal $shadow_vertical $shadow_blur $shadow_spread $shadow_color);
- }
- @include mobile {
- float: left;
- position: static;
- width: 100%;
- padding: 0;
- border: 0;
- }
- li.mega-menu-item {
- @if $flyout_width == 'auto' {
- @include desktop {
- > a.mega-menu-link {
- white-space: nowrap;
- min-width: 150px;
- }
- &.mega-has-description {
- > a.mega-menu-link {
- white-space: normal;
- > .mega-description-group > .mega-menu-title {
- white-space: nowrap;
- }
- }
- }
- }
- }
- @if $flyout_menu_item_divider == 'on' {
- border-bottom: 1px solid $flyout_menu_item_divider_color;
- /* Hide divider on last menu item */
- &:last-child {
- border-bottom: 0;
- @include box-shadow(none);
- }
- }
- @include mobile {
- clear: both;
- }
- a.mega-menu-link {
- display: block;
- @include background($flyout_background_from, $flyout_background_to);
- color: $flyout_link_color;
- font-family: $flyout_link_family;
- font-size: $flyout_link_size;
- font-weight: $flyout_link_weight;
- padding: $flyout_link_padding_top $flyout_link_padding_right $flyout_link_padding_bottom $flyout_link_padding_left;
- line-height: $flyout_link_height;
- text-decoration: $flyout_link_text_decoration;
- text-transform: $flyout_link_text_transform;
- vertical-align: baseline;
- }
- &:first-child > a.mega-menu-link {
- border-top-left-radius: $flyout_border_radius_top_left;
- border-top-right-radius: $flyout_border_radius_top_right;
- @include mobile {
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- }
- }
- &:last-child > a.mega-menu-link {
- border-bottom-right-radius: $flyout_border_radius_bottom_right;
- border-bottom-left-radius: $flyout_border_radius_bottom_left;
- @include mobile {
- border-bottom-right-radius: 0;
- border-bottom-left-radius: 0;
- }
- }
- a.mega-menu-link:hover,
- a.mega-menu-link:focus {
- @include background($flyout_background_hover_from, $flyout_background_hover_to);
- font-weight: $flyout_link_weight_hover;
- text-decoration: $flyout_link_text_decoration_hover;
- color: $flyout_link_color_hover;
- }
- ul.mega-sub-menu {
- position: absolute;
- left: 100%;
- top: 0;
- }
- @include mobile {
- ul.mega-sub-menu {
- position: static;
- left: 0;
- width: 100%;
- a.mega-menu-link {
- padding-left: 20px;
- }
- }
- }
- }
- }
- // Arrows
- li.mega-menu-item-has-children {
- > a.mega-menu-link:after,
- > a.mega-menu-link span.mega-indicator:after {
- content: $arrow_down;
- display: inline-block;
- font-family: dashicons;
- margin: 0 0 0 6px;
- vertical-align: top;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- transform: rotate(0);
- color: inherit;
- position: relative;
- background: transparent;
- height: auto;
- width: auto;
- }
- > a.mega-menu-link > span.mega-indicator {
- display: none;
- float: right;
- height: auto;
- width: auto;
- background: transparent;
- position: relative;
- pointer-events: auto;
- &:after {
- content: $arrow_up;
- }
- }
- @include mobile {
- a.mega-menu-link:after {
- float: right;
- }
- &.mega-toggle-on > a.mega-menu-link {
- &:after {
- display: none;
- }
- > span.mega-indicator {
- display: inline-block;
- }
- }
- &.mega-hide-sub-menu-on-mobile > a.mega-menu-link:after {
- display: none;
- }
- }
- }
- // Hide arrows
- li.mega-menu-megamenu:not(.mega-menu-tabbed) li.mega-menu-item-has-children > a.mega-menu-link:after,
- li.mega-menu-item-has-children.mega-hide-arrow > a.mega-menu-link:after {
- display: none;
- }
- li.mega-menu-item li.mega-menu-item-has-children > a.mega-menu-link:after {
- content: $arrow_right;
- float: right;
- @include mobile {
- content: $arrow_down;
- }
- }
- // Right aligned flyout menus
- li.mega-menu-flyout.mega-align-bottom-right {
- li.mega-menu-item a.mega-menu-link {
- text-align: right;
- @include mobile {
- text-align: left;
- }
- }
- li.mega-menu-item a.mega-menu-link:before {
- float: right;
- margin: 0 0 0 6px;
- @include mobile {
- float: left;
- margin: 0 6px 0 0;
- }
- }
- li.mega-menu-item-has-children {
- > a.mega-menu-link:after {
- content: $arrow_left;
- float: left;
- margin: 0;
- @include mobile {
- content: $arrow_down;
- float: right;
- }
- }
- }
- ul.mega-sub-menu li.mega-menu-item ul.mega-sub-menu {
- left: -100%;
- top: 0;
- }
- }
- // PolyLang Language Switcher
- li[class^='mega-lang-item'] > a.mega-menu-link > img {
- display: inline;
- }
- // WPML Flags
- a.mega-menu-link > img.wpml-ls-flag,
- a.mega-menu-link > img.iclflag {
- display: inline;
- margin-right: 8px;
- }
- @include mobile {
- li.mega-hide-on-mobile,
- > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-hide-on-mobile {
- display: none;
- }
- }
- @include desktop {
- li.mega-hide-on-desktop,
- > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-hide-on-desktop {
- display: none;
- }
- }
- }
- @include mobile {
- &:after {
- content: "";
- display: table;
- clear: both;
- }
- @if $disable_mobile_toggle == off and $mobile_menu_overlay == on {
- #{$menu} {
- position: absolute;
- width: 100%;
- z-index: 9999999;
- @include background($mobile_background_from, $mobile_background_to);
- }
- }
- }
- .mega-menu-toggle {
- display: none;
- z-index: 1;
- cursor: pointer;
- @include background($toggle_background_from, $toggle_background_to);
- @include border-radius(2px, 2px, 2px, 2px);
- line-height: $toggle_bar_height;
- height: $toggle_bar_height;
- text-align: left;
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- -webkit-tap-highlight-color: transparent;
- outline: none;
- white-space: nowrap;
- img {
- max-width: 100%;
- padding: 0;
- }
- @include mobile {
- @if $disable_mobile_toggle == on {
- display: none;
- } @else {
- display: -webkit-box;
- display: -ms-flexbox;
- display: -webkit-flex;
- display: flex;
- }
- }
- .mega-toggle-blocks-left,
- .mega-toggle-blocks-center,
- .mega-toggle-blocks-right {
- display: -webkit-box;
- display: -ms-flexbox;
- display: -webkit-flex;
- display: flex;
- -ms-flex-preferred-size: 33.33%;
- -webkit-flex-basis: 33.33%;
- flex-basis: 33.33%;
- }
- .mega-toggle-blocks-left {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- -webkit-flex: 1;
- flex: 1;
- -webkit-box-pack: start;
- -ms-flex-pack: start;
- -webkit-justify-content: flex-start;
- justify-content: flex-start;
- .mega-toggle-block {
- margin-left: 6px;
- }
- }
- .mega-toggle-blocks-center {
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
- .mega-toggle-block {
- margin-left: 3px;
- margin-right: 3px;
- }
- }
- .mega-toggle-blocks-right {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- -webkit-flex: 1;
- flex: 1;
- -webkit-box-pack: end;
- -ms-flex-pack: end;
- -webkit-justify-content: flex-end;
- justify-content: flex-end;
- .mega-toggle-block {
- margin-right: 6px;
- }
- }
- .mega-toggle-block {
- display: -webkit-box;
- display: -ms-flexbox;
- display: -webkit-flex;
- display: flex;
- height: 100%;
- -webkit-align-self: center;
- -ms-flex-item-align: center;
- align-self: center;
-
- -ms-flex-negative: 0;
- -webkit-flex-shrink: 0;
- flex-shrink: 0;
- }
- @include mobile {
- + #{$menu} {
- @if $disable_mobile_toggle == on {
- display: block;
- } @else {
- display: none;
- }
- li.mega-menu-item > ul.mega-sub-menu {
- display: none;
- visibility: visible;
- opacity: 1;
- }
- li.mega-menu-item.mega-toggle-on > ul.mega-sub-menu,
- li.mega-menu-megamenu.mega-menu-item.mega-toggle-on ul.mega-sub-menu {
- display: block;
- }
- }
- &.mega-menu-open + #{$menu} {
- display: block;
- }
- }
- }
- }
|