Fix the header to window top.

This commit is contained in:
Rasmus Kaj 2016-06-05 21:55:44 +02:00
parent 03b33463c1
commit 9086ca0698

View File

@ -1,11 +1,19 @@
body { body {
background: #eee; background: #eee;
margin-top: 2em;
} }
header { header {
border-bottom: 1px solid #aaa; background-color: #eee;
box-shadow: 0 0 1ex #444;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
left: 0;
padding: 0 1ex;
position: fixed;
top: 0;
width: 100%;
width: -moz-available;
& > span { & > span {
flex-grow: 1; flex-grow: 1;