Add back to home button

This commit is contained in:
Keichi Takahashi 2015-02-09 18:50:01 +09:00
parent 3cdfa0bd5b
commit 3f94771d32
2 changed files with 17 additions and 4 deletions

View File

@ -42,8 +42,14 @@
</div> </div>
{{ end }} {{ end }}
{{ partial "link.html" . }} {{ partial "link.html" . }}
{{ if ne .Url "/" }}
<a href="{{ .Site.BaseUrl }}" class="btn-header btn-back hidden-xs">
<i class="fa fa-angle-left"></i>
&nbsp;Home
</a>
{{ end }}
{{ with .RSSLink }} {{ with .RSSLink }}
<a href="{{ . }}" class="btn-subscribe hidden-xs"> <a href="{{ . }}" class="btn-header btn-subscribe hidden-xs">
<i class="fa fa-rss"></i> <i class="fa fa-rss"></i>
Subscribe Subscribe
</a> </a>

View File

@ -61,10 +61,9 @@ main {
text-decoration: none; text-decoration: none;
} }
a.btn-subscribe { a.btn-header {
position: absolute; position: absolute;
top: 20px; top: 20px;
right: 20px;
padding: 7px 16px; padding: 7px 16px;
border: 1px solid rgba(255, 255, 255, 1.0); border: 1px solid rgba(255, 255, 255, 1.0);
border-radius: 3px; border-radius: 3px;
@ -75,11 +74,19 @@ a.btn-subscribe {
transition: color,background-color 0.1s linear; transition: color,background-color 0.1s linear;
} }
a.btn-subscribe:hover { a.btn-header:hover {
background-color: rgba(255, 255, 255, 1.0); background-color: rgba(255, 255, 255, 1.0);
color: rgba(0, 0, 0, 1.0); color: rgba(0, 0, 0, 1.0);
} }
a.btn-subscribe {
right: 20px;
}
a.btn-back {
left: 20px;
}
/* Footer */ /* Footer */
.global-footer { .global-footer {