Fix h1-h6 styles

This commit is contained in:
takezoe
2014-05-11 02:01:46 +09:00
parent 259637ce3c
commit ff2e55e82c
2 changed files with 58 additions and 7 deletions

View File

@@ -12,6 +12,9 @@
<ul class="nav nav-tabs fill-width pull-left"> <ul class="nav nav-tabs fill-width pull-left">
<li> <li>
<h1 class="wiki-title">@pageName</h1> <h1 class="wiki-title">@pageName</h1>
<div class="small">
<span class="muted"><strong>@page.committer</strong> edited this page at @datetime(page.time)</span>
</div>
</li> </li>
<li class="pull-right"> <li class="pull-right">
<div class="btn-group"> <div class="btn-group">
@@ -50,13 +53,10 @@
</div> </div>
} }
</div> </div>
<div style="margin-right: 200px;"> <div style="margin-right: 220px;">
<div class="markdown-body"> <div class="markdown-body">
@markdown(page.content, repository, true, false) @markdown(page.content, repository, true, false)
</div> </div>
<div class="small">
<span class="muted">Last edited by @page.committer at @datetime(page.time)</span>
</div>
</div> </div>
} }
} }

View File

@@ -10,6 +10,37 @@ li p {
margin: 0px; margin: 0px;
} }
h1 {
font-size: 30px;
line-height: 32px;
}
h2 {
font-size: 28px;
line-height: 30px;
}
h3 {
font-size: 26px;
line-height: 28px;
}
h4 {
font-size: 24px;
}
h5 {
font-size: 22px;
}
h6 {
font-size: 18px;
}
h7 {
font-size: 14px;
}
/* ======================================================================== */ /* ======================================================================== */
/* Global Header */ /* Global Header */
/* ======================================================================== */ /* ======================================================================== */
@@ -554,7 +585,7 @@ pre.blob {
} }
#readme .box-content { #readme .box-content {
padding: 30px; padding: 20px;
} }
li.highlight { li.highlight {
@@ -977,6 +1008,26 @@ a.markdown-anchor-link {
display: none; display: none;
} }
h1 a.markdown-anchor-link, h2 a.markdown-anchor-link, h3 a.markdown-anchor-link { h1 a.markdown-anchor-link {
top: 10px; top: 8px;
}
h2 a.markdown-anchor-link {
top: 6px;
}
h3 a.markdown-anchor-link {
top: 6px;
}
h4 a.markdown-anchor-link {
top: 2px;
}
h5 a.markdown-anchor-link {
top: 2px;
}
h6 a.markdown-anchor-link {
top: 2px;
} }