From 9824fe00df0609e68b31086f7d382a674a03dd8c Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Wed, 29 Apr 2015 00:10:03 +0300 Subject: [PATCH] Better nav --- index.html | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++--- per.css | 19 ++++++++++++++---- 2 files changed, 69 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index d479d84..83ed29c 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,45 @@ @@ -82,7 +134,7 @@ $(document).ready(function() {
diff --git a/per.css b/per.css index dc15912..2371a09 100644 --- a/per.css +++ b/per.css @@ -20,7 +20,14 @@ header { top: 0; left: 0; right: 0; + transition: all 1s ease; background: rgba(0,0,0,0.5); + padding: 1em 0; +} + +header.small { + background: rgba(0,0,0,1); + padding: 0; } h1 { @@ -119,9 +126,8 @@ section { } footer { - padding: 150px 20px; - background: #fff url(illusions/london-skyline.svg) repeat-x center 0; - //background-size: cover; + padding: 105px 20px; + background: #fff url(illusions/london-skyline.svg) repeat-x center -130px; } a { @@ -129,7 +135,12 @@ a { text-decoration: none; } -a:hover { +a:hover, a.active { + color: #C262D3; +} + +header a:focus { + outline: none; color: #C262D3; }