datenspuren style: fixed header and alignment

This commit is contained in:
cosmo 2015-10-24 11:47:31 +02:00 committed by Astro
parent e2f3dc9f80
commit 2b10d06b22
1 changed files with 36 additions and 4 deletions

View File

@ -9,11 +9,12 @@ body {
} }
nav { nav {
position: absolute; position: absolute;
position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
text-align: center; text-align: center;
z-index: 5; // on top of <article> z-index: 5; /* on top of <article> */
} }
nav ul { nav ul {
list-style-type: none; list-style-type: none;
@ -23,9 +24,8 @@ nav ul {
font-size: 80%; font-size: 80%;
} }
nav li { nav li {
min-width: 8em; min-width: 5em;
display: inline-block; display: inline-block;
margin: 0 0 1em;
border-left: 2px solid black; border-left: 2px solid black;
border-right: 2px solid black; border-right: 2px solid black;
border-bottom: 2px solid black; border-bottom: 2px solid black;
@ -36,7 +36,8 @@ nav li a {
display: inline-block; display: inline-block;
color: black; color: black;
font-wieght: bold; font-wieght: bold;
padding: 0.3em 2em 0.5em; padding: 0.3em 0.5em 0.5em;
line-height: 1.65;
} }
nav li a:hover { nav li a:hover {
color: #cfc; color: #cfc;
@ -252,3 +253,34 @@ a[href$="mitschnitte-rss.xml"]:before {
padding: 0 1em 0 0.4em; padding: 0 1em 0 0.4em;
color: #777; color: #777;
} }
/* *** NEW *** */
article {
padding: 1em;
}
@media (min-width: 768px) {
article {
padding: 16px 170px 16px;
}
nav li {
min-width: 8em;
margin: 0 0 1em;
}
nav li a {
padding: 0.3em 2em 0.5em;
}
}
article .center a img {
width: 100%;
}
article dl dd a {
word-wrap: break-word;
}