Skip to content

Commit

Permalink
Faster activation
Browse files Browse the repository at this point in the history
  • Loading branch information
andralex committed Jan 20, 2015
1 parent 82f4348 commit 180bcd0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
12 changes: 11 additions & 1 deletion css/cssmenu.css.dd
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Ddoc
}
/* Sub menu */
#cssmenu ul ul {
display: none;
/*display: none;*/
background: $(submenu_bg);
border-right: 1px solid $(submenu_border);
border-left: 1px solid $(submenu_border);
Expand All @@ -126,6 +126,9 @@ Ddoc
background: -webkit-linear-gradient($(submenu_bg_li) 0%, $(submenu_bg_li2) 100%);
background: linear-gradient($(submenu_bg_li) 0%, $(submenu_bg_li2) 100%);
}
#cssmenu ul ul > li.active {
background: $(submenu_bg_li_active);
}
#cssmenu ul ul li:last-child {
border-bottom: none;
}
Expand All @@ -142,6 +145,12 @@ Ddoc
left: 10px;
color: $(submenu_highlight);
}
#cssmenu ul ul li.active a:after {
content: "►";
position: absolute;
right: 10px;
color: $(submenu_highlight);
}
#cssmenu ul ul a:hover {
color: $(submenu_highlight);
}
Expand Down Expand Up @@ -179,5 +188,6 @@ submenu_a=#676767
submenu_bg=#fff
submenu_bg_li=#f7f7f7
submenu_bg_li2=#ececec
submenu_bg_li_active=#d7b7b7
submenu_border=#a2a194
_=
10 changes: 10 additions & 0 deletions js/cssmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ $( document ).ready(function() {
var menu_ul = $('#cssmenu > ul > li > ul');
menu_ul.hide();

$('#cssmenu > ul > li > ul > li > a').each(function(){
if ($(this)[0].href == window.location.href) {
var p = $(this).parent();
p.addClass('active');
p = p.parent();
p.addClass('active');
p.show();
}
});

$('#cssmenu > ul > li > a').click(function() {
$('#cssmenu li').removeClass('active');
$(this).closest('li').addClass('active');
Expand Down
1 change: 1 addition & 0 deletions latex.ddoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _=*****************************************************************************
_=Macros for LaTeX generation. The following section is ordered alphabeticaly.
_=*****************************************************************************

A=\ref{$1}{$+}
AMP=\&
ASMCODE=\lstinline{$0}
_=
Expand Down
2 changes: 1 addition & 1 deletion std_navbar-2.066.1.ddoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $(DIVID cssmenu, $(UL
$(LIBITEM std, zlib)
)
$(MENU_W_SUBMENU $(T tt, etc))
$(ITEMIZE
$(ITEMIZE
$(LIBITEM etc, c, curl),
$(LIBITEM etc, c, sqlite),
$(LIBITEM etc, c, zlib)
Expand Down
2 changes: 1 addition & 1 deletion std_navbar-prerelease.ddoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $(DIVID cssmenu, $(UL
$(LIBITEM std, zlib)
)
$(MENU_W_SUBMENU $(T tt, etc))
$(ITEMIZE
$(ITEMIZE
$(LIBITEM etc, c, curl),
$(LIBITEM etc, c, sqlite),
$(LIBITEM etc, c, zlib)
Expand Down

0 comments on commit 180bcd0

Please sign in to comment.