1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00

Fix up header markup and CSS.

Works better in Firefox now.
This commit is contained in:
Dan Barber 2014-05-18 20:22:58 +01:00
parent 2556a595a1
commit 8ea653ed3e
3 changed files with 18 additions and 14 deletions

View File

@ -2,15 +2,19 @@ $max-width: 800px !default
$pad-min: 8.5% !default $pad-min: 8.5% !default
header[role=banner] header[role=banner]
padding: 0.52em 0 0.42em
h1 h1
font-size: 3.43em font-size: 3.43em
line-height: 0 margin: 0
color: white a
margin: 0.52em 0 0.42em color: white
text-shadow: 0 0 10px rgba(0, 0, 0, 0.2) line-height: 0
span text-decoration: none
position: absolute text-shadow: 0 0 10px rgba(0, 0, 0, 0.2)
right: 100% span
width: 0
font-size: 0
overflow: hidden
article img article img
max-width: 100% max-width: 100%
@ -24,7 +28,7 @@ article img.right
float: right float: right
margin-left: 1em margin-left: 1em
#content, hgroup, footer #content, .container, footer
padding: 0 $pad-min padding: 0 $pad-min
margin: 0 auto margin: 0 auto
max-width: $max-width max-width: $max-width

View File

@ -18,11 +18,11 @@ body > header
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 -1px 0px rgba(255, 255, 255, 0.4) box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), inset 0 -1px 0px rgba(255, 255, 255, 0.4)
padding-top: 0.8em padding-top: 0.8em
padding-bottom: 0.9em padding-bottom: 0.9em
h1 h1 a
display: inline-block //display: inline-block
margin-top: 0 margin-top: 0
font-weight: 700 font-weight: 700
line-height: 0 //line-height: 0
a a
+transition(color 0.25s 0s ease) +transition(color 0.25s 0s ease)

View File

@ -1,6 +1,6 @@
<header role="banner"> <header role="banner">
<hgroup> <div class="container">
<a href="/"><h1 class="icon-logomark"><span>Dan Barber</span></h1></a>
<nav role="navigation">{% include navigation.html %}</nav> <nav role="navigation">{% include navigation.html %}</nav>
</hgroup> <h1><a class="icon-logomark" href="/"><span>Dan Barber</span></a></h1>
</div>
</header> </header>