//-------------------------------------------------------------- // Copyright (C) joomla-monster.com // License: http://www.joomla-monster.com/license.html Joomla-Monster Proprietary Use License // Website: http://www.joomla-monster.com // Support: info@joomla-monster.com //--------------------------------------------------------------- // VARIABLES import //--------------------------------------------------------------- @import "bootstrap_variables.less"; @import "template_variables.less"; // MIXINS import //--------------------------------------------------------------- @import "template_mixins.less"; // MEGAMENU //--------------------------------------------------------------- .jm-module-raw > .dj-megamenu-override { margin: 0 -(@JMtopmenuItemWidth); } .dj-megamenu-override { position: relative; z-index: 500; text-align: left; .cf(); } .dj-megamenu-override li.dj-up { background-image: none; position: relative; display: block; float: left; padding: 0; margin: 0; z-index: 1; a.dj-up_a { font-size: @JMtopmenuFontSize; font-family: @JMtopmenuFontFamily; font-weight: @JMtopmenuFontWeight; display: block; text-decoration: none; text-transform: uppercase; padding: @JMtopmenuItemHeight 0; margin: 0 @JMtopmenuItemWidth; line-height: 20px; cursor: pointer; color: @JMtopmenuFontColor; span { display: block; } small.subtitle { display: block; font-size: 10px; text-transform: none; line-height: 1.2; .opacity(80); } } &.active, &:hover, &.hover { a.dj-up_a { color: @JMtopmenuFontColorHover; position: relative; &:after { content: ''; position: absolute; bottom: 0; width: 100%; height: 1px; left: 0; right: auto; background: @JMtopSubmenuTopBorder; } } } } .dj-megamenu-override li.separator > a { cursor: default; } // sticky // -------------------------- .dj-megamenu-override.dj-megamenu-sticky { margin: 0!important; background: @JMtopmenuBackground; padding-top: @JMtopmenuPadding; padding-bottom: @JMtopmenuPadding; ul.dj-megamenu { margin: 0!important; } } .dj-megamenu-override .dj-stickylogo { &.dj-align-center { text-align: center; margin: 10px; } &.dj-align-left { text-align: left; margin: 10px; } &.dj-align-right { text-align: right; margin: 10px; } } // mobile // -------------------------- .dj-megamenu-offcanvas, .dj-megamenu-accordion, .dj-megamenu-select { .dj-mobile-open-btn { background: none !important; .border-radius(0); color: @JMtopmenuFontColor; &:hover { color: @JMstyle; } } } // select // -------------------------- #jm-allpage .select-input .dj-select { vertical-align: top; max-width: none; margin: 10px 0; font-family: inherit; font-size: @JMinputFontSize; font-weight: normal; padding: 8px; vertical-align: middle; border: 1px solid @JMinputBorder; color: @JMinputFontColor; background: @JMinputBackground; height: 38px; line-height: 38px; } // submenu // -------------------------- .dj-megamenu-override li.dj-up:hover, .dj-megamenu-override li.dj-up.hover, .dj-megamenu-override .dj-submenu > li:hover, .dj-megamenu-override .dj-subtree > li:hover { position: relative; z-index: 200; } //hide submenus .dj-megamenu-override li div.dj-subwrap { position: absolute; left: auto; right: auto; top: -9999px; visibility: hidden; } //first level submenu .dj-megamenu-override { li:hover, li.hover { div.dj-subwrap { left: 0; right: auto; top: 100%; visibility: visible; z-index: 300; .box-sizing(border-box); div.dj-subwrap-in { background: @JMtopSubmenuBackground; } } } } //higher level submenu .dj-megamenu-override { li:hover, li.hover { div.dj-subwrap div.dj-subwrap { left: 100%; right: auto; top: -15px; z-index: 400; border-left: 5px solid transparent; border-right: 5px solid transparent; } } } //submenu elements styles .dj-megamenu-override .dj-subcol { display: inline-block; vertical-align: top; font-size: @JMtopmenuFontSize; .box-sizing(border-box); margin: 30px 0; } .dj-megamenu-override .dj-submenu { > li { display: block; position: relative; padding: 0 25px; background: none; > a { color: @JMtopSubmenuFontColor; display: block; line-height: 20px; text-decoration: none; padding: 5px 0; small.subtitle { display: block; font-size: 11px; } } } > li:hover > a, > li.hover > a, > li.active > a { color: @JMtopSubmenuFontColorHover; } > li.parent > a { position: relative; } } //image / icon in menu element .dj-megamenu-override { li.dj-up a { span { display: block; } .arrow, img { vertical-align: middle; } span.image-title { margin: 0 0 0 15px; display: inline-block; vertical-align: middle; } } } // submenu tree // -------------------------- .dj-megamenu-override .dj-subtree { padding-left: 8px; > li > a { display: block; color: @JMmenuItemFontColor; line-height: @baseLineHeight; // 20px font-weight: @JMbaseFontWeight; padding-top: 5px; padding-bottom: 5px; padding-left: 12px; padding-right: 0; text-decoration: none; position: relative; &:hover { color: @JMmenuItemFontColorHover; } &:before { content: ''; position: absolute; top: 13px; left: 0px; height: 3px; width: 2px; border: 1px solid @JMtopSubmenuFontColor; border-width: 0 0 1px 1px; .transition(all 0.2s ease-in); } &:hover:before { border-color: @JMtopSubmenuFontColorHover; } } > li > a small.subtitle { display: block; font-size: 0.9em; line-height: 1; } > li:hover > a, > li.hover > a, > li.active > a { color: @JMtopSubmenuFontColorHover; } > li.parent > a { position: relative; } } // columns border // -------------------------- .dj-megamenu-override .multiple_cols .dj-subcol + .dj-subcol { &:after { content: ''; position: absolute; overflow: hidden; height: 80%; top: 10%; border-left: 1px solid jmlighten(@JMtopSubmenuBackground, 20%); } } // modules // -------------------------- .dj-megamenu-override .modules-wrap { color: @JMtopSubmenuFontColor; padding: 10px 0; p { display: block; padding: 0; } .moduletable { clear: both; margin: @JMbaseSpace 0 0; position: relative; > h3 { color: @JMtopSubmenuFontColor; font-weight: @JMtopmenuFontWeight; font-size: @JMtopmenuFontSize; text-transform: uppercase; line-height: 1.1; position: relative; margin: 0 0 20px; } &:first-child { margin: 0; } } } // menus module // -------------------------- // megamenu .dj-megamenu-override { .nav.menu { > li > a, > li > span.separator { background: none; border: none; padding-top: 6px; padding-bottom: 6px; font-size: @JMtopmenuFontSize; } > li.parent > ul, > li.parent > ul { margin: 0; } } }