From 3f94771d320385e8100f1f6b4e76f58d1e4fa650 Mon Sep 17 00:00:00 2001 From: Keichi Takahashi Date: Mon, 9 Feb 2015 18:50:01 +0900 Subject: [PATCH] Add back to home button --- layouts/partials/header.html | 8 +++++++- static/css/main.css | 13 ++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 30b8d6b..7f020af 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -42,8 +42,14 @@ {{ end }} {{ partial "link.html" . }} + {{ if ne .Url "/" }} + + {{ end }} {{ with .RSSLink }} - diff --git a/static/css/main.css b/static/css/main.css index 8f81275..8f4b823 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -61,10 +61,9 @@ main { text-decoration: none; } -a.btn-subscribe { +a.btn-header { position: absolute; top: 20px; - right: 20px; padding: 7px 16px; border: 1px solid rgba(255, 255, 255, 1.0); border-radius: 3px; @@ -75,11 +74,19 @@ a.btn-subscribe { transition: color,background-color 0.1s linear; } -a.btn-subscribe:hover { +a.btn-header:hover { background-color: rgba(255, 255, 255, 1.0); color: rgba(0, 0, 0, 1.0); } +a.btn-subscribe { + right: 20px; +} + +a.btn-back { + left: 20px; +} + /* Footer */ .global-footer {