// menu top
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -364,7 +364,6 @@ html, body
|
|||||||
|
|
||||||
#nav-topbar
|
#nav-topbar
|
||||||
height: 28px
|
height: 28px
|
||||||
position: fixed
|
|
||||||
top: 36px
|
top: 36px
|
||||||
left: 80
|
left: 80
|
||||||
width: 100%
|
width: 100%
|
||||||
@@ -379,13 +378,14 @@ html, body
|
|||||||
display: block
|
display: block
|
||||||
list-style: none
|
list-style: none
|
||||||
> li
|
> li
|
||||||
border-right: solid 1px black
|
border-right: solid 1px #aaa
|
||||||
height: 26px
|
height: 26px
|
||||||
padding: 0
|
padding: 0
|
||||||
margin: 0
|
margin: 0
|
||||||
list-style: none
|
list-style: none
|
||||||
position: relative
|
position: relative
|
||||||
float: left
|
float: left
|
||||||
|
@include box-shadow(#ccc 0 -2px 0 inset)
|
||||||
> a
|
> a
|
||||||
display: block
|
display: block
|
||||||
line-height: 26px
|
line-height: 26px
|
||||||
@@ -403,19 +403,30 @@ html, body
|
|||||||
color: white
|
color: white
|
||||||
i
|
i
|
||||||
color: white!important
|
color: white!important
|
||||||
|
&.active
|
||||||
|
border-right: solid 1px black
|
||||||
|
> a
|
||||||
|
color: contrast-color($main-color, white, #333, 10%)
|
||||||
|
background-color: $main-color
|
||||||
|
i
|
||||||
|
color: white!important
|
||||||
.menu-collapse
|
.menu-collapse
|
||||||
display: none
|
display: none
|
||||||
ul.submenu
|
ul.submenu
|
||||||
display: none!important
|
display: none!important
|
||||||
@include box-shadow(rgba(black,0.2) 0 0 0 1px,rgba(black,0.3) 2px 2px 4px)
|
@include box-shadow(rgba(black,0.3) 0 2px 4px)
|
||||||
> ul > li:hover
|
> ul.menu > li
|
||||||
ul.submenu
|
ul.submenu.expanded
|
||||||
display: block!important
|
display: block!important
|
||||||
|
> ul.menu > li
|
||||||
|
ul.submenu
|
||||||
|
display: none
|
||||||
position: absolute
|
position: absolute
|
||||||
margin: 0
|
margin: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
left: 0
|
left: 0
|
||||||
top: 27px
|
top: 26px
|
||||||
|
border-top: solid 1px darken($main-color,10%)
|
||||||
width: 200px!important
|
width: 200px!important
|
||||||
li
|
li
|
||||||
width: 200px
|
width: 200px
|
||||||
@@ -425,20 +436,18 @@ html, body
|
|||||||
display: block
|
display: block
|
||||||
padding: 4px 5px 4px 10px
|
padding: 4px 5px 4px 10px
|
||||||
font-size: 12px
|
font-size: 12px
|
||||||
border: none
|
|
||||||
border-bottom: solid 1px #eee
|
|
||||||
background-color: white
|
background-color: white
|
||||||
|
border-bottom: solid 1px #eee
|
||||||
&:hover
|
&:hover
|
||||||
color: $main-color
|
color: $main-color
|
||||||
background-color: mix(white, $main-color, 90%)
|
background-color: mix(white, $main-color, 90%)
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
&:last-child a
|
&:last-child a
|
||||||
border-bottom: none
|
border-bottom: none
|
||||||
&.active
|
&.active a
|
||||||
a
|
color: contrast-color($main-color, white, #333, 10%)
|
||||||
color: contrast-color($secondary-color, white, #333, 10%)
|
background-color: $main-color
|
||||||
background-color: $secondary-color
|
border-bottom: solid 1px darken($main-color,10%)
|
||||||
border-bottom: solid 1px darken($secondary-color,10%)
|
|
||||||
|
|
||||||
.page-topbar
|
.page-topbar
|
||||||
#main
|
#main
|
||||||
|
|||||||
@@ -47,19 +47,20 @@ $( document ).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//nav top bar
|
//nav top bar
|
||||||
|
|
||||||
$(window).on("resize", function() {
|
$(window).on("resize", function() {
|
||||||
|
|
||||||
var h = $("#nav-topbar").height();
|
|
||||||
|
|
||||||
$("#nav-topbar ul.menu").find("li.maintab").each(function(){
|
$("#nav-topbar ul.menu").find("li.maintab").each(function(){
|
||||||
|
|
||||||
if ($(this).position().top > 0) {
|
if ($(this).position().top > 0) {
|
||||||
$(this).addClass("tab-elipsed").addClass("hide");
|
$(this).addClass("hide");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#nav-topbar li.maintab.has_submenu").hover(function(){
|
||||||
|
$(this).find("ul.submenu").fadeIn("fast").addClass("expanded");
|
||||||
|
}, function(){
|
||||||
|
//$(this).removeClass("expanded");
|
||||||
|
$(this).find("ul.submenu").fadeOut("fast").removeClass("expanded");
|
||||||
|
});
|
||||||
|
|
||||||
//tooltip
|
//tooltip
|
||||||
$('.label-tooltip').tooltip();
|
$('.label-tooltip').tooltip();
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<nav id="nav-topbar" role="navigation">
|
<nav id="nav-topbar" data-spy="affix" data-offset-top="34px" role="navigation">
|
||||||
{if !$tab}
|
{if !$tab}
|
||||||
<div class="mainsubtablist" style="display:none"></div>
|
<div class="mainsubtablist" style="display:none"></div>
|
||||||
{/if}
|
{/if}
|
||||||
|
<span class="menu-collapse">
|
||||||
|
<i class="icon-align-justify"></i>
|
||||||
|
</span>
|
||||||
{if $controller_name != 'AdminLogin'}
|
{if $controller_name != 'AdminLogin'}
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li class="maintab {if $smarty.get.controller == 'AdminDashboard'}active{/if}">
|
<li class="maintab {if $smarty.get.controller == 'AdminDashboard'}active{/if}">
|
||||||
|
|||||||
Reference in New Issue
Block a user