Skip to content

Commit

Permalink
添加导航链接
Browse files Browse the repository at this point in the history
  • Loading branch information
basecss committed Aug 2, 2013
1 parent 7340b74 commit d0bce89
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 30 deletions.
16 changes: 8 additions & 8 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ a:hover {
}
body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
line-height: 180%;
font-size: 12px;
line-height: 150%;
color: #6F5A40;
background-color: #F5F6F6;
}
Expand Down Expand Up @@ -84,14 +84,14 @@ img {
}
.nav dl {
border-top: 1px solid rgba(0,0,0,.1);
line-height: 28px;
line-height: 24px;
margin-top: 5px;
padding: 0 0 20px 0;
}
.nav dl dt {
height: 34px;
line-height: 34px;
font-size: 16px;
height: 26px;
line-height: 26px;
font-size: 12px;
font-weight: 700;
background-color: #F5F6F6;
border-bottom: 1px solid rgba(0,0,0,.1);
Expand All @@ -106,8 +106,8 @@ img {
}
.nav dl dd a {
display: block;
height: 30px;
line-height: 30px;
height: 24px;
line-height: 24px;
text-indent: 20px;
}
.main {
Expand Down
8 changes: 8 additions & 0 deletions assets/js/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$(function(){

$('#nav').on('click', 'dt', function(){
$('#nav dd').hide();
$(this).next('dd').show();
});

});
47 changes: 25 additions & 22 deletions skin/html/article.jade
Original file line number Diff line number Diff line change
Expand Up @@ -21,50 +21,50 @@ html
dd
ul
li
a(href="#") 新手上路
a(href="getting_started.html") 新手上路
li
a(href="#") 配置任务
a(href="configuring_tasks.html") 配置任务
li
a(href="#") Gruntfile范例
a(href="sample_gruntfile.html") Gruntfile范例
li
a(href="#") 创建任务
a(href="creating_tasks.html") 创建任务
li
a(href="#") 创建插件
a(href="creating_plugins.html") 创建插件
dt 高级应用
dd.hide
ul
li
a(href="#") 安装Grunt
a(href="installing_grunt.html") 安装Grunt
li
a(href="#") 常见问题
a(href="frequently_asked_questions.html") 常见问题
li
a(href="#") 项目脚手架
a(href="project_scaffolding.html") 项目脚手架
dt 社区
dd.hide
ul
li
a(href="#") 参考资源
a(href="help_resources.html") 参考资源
li
a(href="#") Grunt用户
a(href="who_use_grunt.html") Grunt用户
li
a(href="#") 参与贡献
a(href="contributing.html") 参与贡献
dt 升级指南
dd.hide
ul
li <a href="#">从0.3升级到0.4</a>
dt Grunt插件
dd.hide
ul
li <a href="#">Grunt插件列表</a>
li <a href="upgrading.html">从0.3升级到0.4</a>
dt API参考
dd.hide
ul
li <a href="#">API列表</a>
dt 其他
dd.hide
ul
li <a href="#">内置任务</a>
li <a href="#">状态码</a>
li <a href="grunt.html">grunt</a>
li <a href="grunt_config.html">grunt config</a>
li <a href="grunt_event.html">grunt event</a>
li <a href="grunt_fail.html">grunt fail</a>
li <a href="grunt_file.html">grunt file</a>
li <a href="grunt_log.html">grunt log</a>
li <a href="grunt_option.html">grunt option</a>
li <a href="grunt_task.html">grunt task</a>
li <a href="grunt_template.html">grunt template</a>
li <a href="grunt_util.html">grunt_util</a>

div.main
| !{content}
Expand All @@ -75,4 +75,7 @@ html
p 贡献: <a href="http://www.toobug.net">Toobug</a> <a href="http://www.basecss.net">Basecss</a>

script(type="text/javascript",src="http://tajs.qq.com/stats?sId=23584984",charset="UTF-8")

script(type="text/javascript",src="#{basePath}/js/jquery-1.9.1.min.js")
script(type="text/javascript",src="#{basePath}/js/page.js")

0 comments on commit d0bce89

Please sign in to comment.