Skip to content

Commit

Permalink
docs: improve left padding when window between 1005 and 1130 (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore authored and fengmk2 committed Mar 22, 2017
1 parent c22e005 commit e9428ba
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/source/zh-cn/tutorials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ title: 教程
- [egg-view-ejs]
- [egg-view-handlebars]
- [egg-view-pug]
- [egg-view-xtpl]

## 数据库

Expand All @@ -32,4 +33,5 @@ title: 教程
[egg-view-nunjucks]: https://github.com/eggjs/egg-view-nunjucks
[egg-view-ejs]: https://github.com/eggjs/egg-view-ejs
[egg-view-handlebars]: https://github.com/eggjs/egg-view-handlebars
[egg-view-pug]: https://github.com/eggjs/egg-view-pug
[egg-view-pug]: https://github.com/chrisyip/egg-view-pug
[egg-view-xtpl]: https://github.com/eggjs/egg-view-xtpl
2 changes: 1 addition & 1 deletion docs/themes/egg/layout/index.swig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="index">
<div class="banner block index-bg-light">
<div class="banner-logo"><img src="https://zos.alipayobjects.com/rmsportal/JFKAMfmPehWfhBPdCjrw.svg"/></div>
<div class="banner-info">
<div class="banner-info leftpadding">
<h1><p style="font-weight:bold;font-size:48px;">Born to build</p>better enterprise frameworks and apps with Node.js & Koa</h1>
<p style="font-size: 22px;">为企业级框架和应用而生</p>
<p class="banner-button">
Expand Down
2 changes: 1 addition & 1 deletion docs/themes/egg/layout/partial/footer.swig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="footer">
<footer>
<footer class="leftpadding">
<ul>
<li>Latest: <strong>{{ site.data.versions.egg }}</strong></li>
<li>Node.js <strong>{{ site.data.versions.node }}</strong></li>
Expand Down
2 changes: 1 addition & 1 deletion docs/themes/egg/layout/partial/header.swig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="nav" >
<header>
<a href="{{ index_link() }}" class="nav-logo" alt="egg"><img src="https://zos.alipayobjects.com/rmsportal/VTcUYAaoKqXyHJbLAPyF.svg"></a>
<a href="{{ index_link() }}" class="nav-logo leftpadding" alt="egg"><img src="https://zos.alipayobjects.com/rmsportal/VTcUYAaoKqXyHJbLAPyF.svg"></a>
<ul class="nav-item">
<li>
<form id="search-form">
Expand Down
4 changes: 4 additions & 0 deletions docs/themes/egg/source/css/partial/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ p {
letter-spacing: 1px;
line-height: 2.5em;
}

.leftpadding {
padding-left: 20px;
}
3 changes: 2 additions & 1 deletion docs/themes/egg/source/css/partial/toc.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
aside {
width: 220px;
padding-left: 20px;
width: 200px;
height: 100%;
position: fixed;
top: 56px;
Expand Down

0 comments on commit e9428ba

Please sign in to comment.