Skip to content

Commit

Permalink
Merge pull request #788 from CyberShadow/cssmenu
Browse files Browse the repository at this point in the history
CSS menu stuff
  • Loading branch information
andralex committed Jan 20, 2015
2 parents dcdc4ce + ae4ca0d commit e63e39e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -24,6 +24,7 @@ dlangspec.d
/web
/2.*.ddoc
Makefile
css/cssmenu.css

deleteme.*
docs-prerelease.json
Expand Down
4 changes: 3 additions & 1 deletion css/cssmenu.css.dd
Expand Up @@ -111,11 +111,13 @@ Ddoc
}
/* Sub menu */
#cssmenu ul ul {
/*display: none;*/
background: $(submenu_bg);
border-right: 1px solid $(submenu_border);
border-left: 1px solid $(submenu_border);
}
body.have-javascript #cssmenu ul ul {
display: none;
}
#cssmenu ul ul li {
padding: 0;
border-bottom: 1px solid $(bottom_submenu_li);
Expand Down
2 changes: 1 addition & 1 deletion dlang.org.ddoc
Expand Up @@ -134,7 +134,7 @@ _=

MDASH=$(T nobr,  — )
METACODE=$(SPANC metacode, $0)
MENU = <li class='active'><a href='$1'><span>$+</span></a></li>
MENU = <li><a href='$1'><span>$+</span></a></li>
MENU_W_SUBMENU = <li class='has-sub'><a href='#'><span>$0</span></a>
META_KEYWORDS=D programming language
META_DESCRIPTION=D Programming Language
Expand Down
1 change: 1 addition & 0 deletions doc.ddoc
Expand Up @@ -39,6 +39,7 @@ function bodyLoad()
)
</head>
<body id='$(TITLE)' onLoad='bodyLoad()'>
$(SCRIPT document.body.className += ' have-javascript';)
$(DIVID top,
$(DIVID search-box,
<form method="get" action="http://google.com/search">
Expand Down
2 changes: 2 additions & 0 deletions js/cssmenu.js
Expand Up @@ -10,6 +10,8 @@ $('#cssmenu > ul > li > ul > li > a').each(function(){
p = p.parent();
p.addClass('active');
p.show();
p = p.parent();
p.addClass('active');
}
});

Expand Down
1 change: 1 addition & 0 deletions std.ddoc
Expand Up @@ -20,6 +20,7 @@ $(SCRIPTLOAD ../js/cssmenu.js)
$(SCRIPT jQuery(document).ready(listanchors);)
</head>
<body id="$(TITLE)" class='hyphenate'>
$(SCRIPT document.body.className += ' have-javascript';)
$(DIVID top,
$(divid search-box,
<form method="get" action="http://google.com/search">
Expand Down
7 changes: 5 additions & 2 deletions win32.mak
Expand Up @@ -14,7 +14,7 @@ SRC= $(SPECSRC) cpptod.dd ctod.dd pretod.dd cppcontracts.dd index.dd overview.dd
tuple.dd template-comparison.dd COM.dd hijack.dd features2.dd safed.dd \
const-faq.dd concepts.dd d-floating-point.dd migrate-to-shared.dd \
D1toD2.dd intro-to-datetime.dd simd.dd deprecate.dd download.dd \
32-64-portability.dd dll-linux.dd bugstats.php.dd
32-64-portability.dd dll-linux.dd bugstats.php.dd css\cssmenu.css.dd

SPECSRC=spec.dd intro.dd lex.dd grammar.dd module.dd declaration.dd type.dd property.dd \
attribute.dd pragma.dd expression.dd statement.dd arrays.dd \
Expand Down Expand Up @@ -51,7 +51,7 @@ TARGETS=cpptod.html ctod.html pretod.html cppcontracts.html index.html overview.
memory-safe-d.html d-floating-point.html migrate-to-shared.html \
D1toD2.html unittest.html hash-map.html intro-to-datetime.html \
simd.html deprecate.html download.html 32-64-portability.html \
d-array-article.html dll-linux.html bugstats.php.html
d-array-article.html dll-linux.html bugstats.php.html css/cssmenu.css


CHMTARGETS=d.hhp d.hhc d.hhk d.chm
Expand Down Expand Up @@ -254,6 +254,9 @@ windbg.html : $(DDOC) windows.ddoc windbg.dd

windows.html : $(DDOC) windows.ddoc windows.dd

css/cssmenu.css : $(DDOC) css/cssmenu.css.dd
$(DMD) -o- -c -Df$@ $(DDOC) css/cssmenu.css.dd

################ Ebook ########################

dlangspec.d : $(SPECSRC) win32.mak
Expand Down

0 comments on commit e63e39e

Please sign in to comment.