UJHIJL - top redesign
by PhilQ
HTML
<div id="top">
<div id="top-inner">
<a href="#" id="home" class="glyphicons home">Home</a>
<a href="#" id="login" class="glyphicons user">Inloggen</a>
<a href="#" id="promotion"><span>Probeer de GRATIS minitraining!</span></a>
<span id="site-title">Uit Je Hoofd, In Je Lijf</span>
<span id="site-subtitle">Dit is de slogan</span>
</div>
</div>
CSS
*, *:before, *:after {
margin: 0px;
padding: 0px;
box-sizing: border-box;
-o-box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
html {
height: 100%;
overflow: auto;
}
body {
height: 100%;
color: #424242;
font-family: 'MyriadProWeb', Arial, Verdana, Tahoma, Sans-serif;
font-weight: normal;
font-size: 16px;
background-color: #9d9d9d;
background-color: #919861;
background-color: #ffffff;
background: url("./img/back_repeat.jpg") repeat-x left center #ffffff;
background-attachment: fixed;
}
#top {
z-index: 20;
position: fixed;
top: 0px;
left: 0px;
right: 0px;
height: 82px;
background-color: rgba(70,45,90, 1);
border-bottom: 2px solid rgba(255,102,0, 1);
-webkit-box-shadow: 0 -8px 8px 8px rgba(0,0,0,0.8);
box-shadow: 0 -8px 8px 8px rgba(0,0,0,0.8);
}
#top-inner {
width: 964px;
height: 100%;
margin: 0px auto;
border-left: 2px solid #fff;
border-right: 2px solid #fff;
}
#top-inner a {
text-decoration: none;
color: #d0ced2;
}
#top-inner a:hover {
color: #fff;
}
#home {
float: left;
width: 82px;
height: 100%;
border-right: 2px solid #fff;
}
#site-title {
width: 579px;
float: left;
color: #fff;
padding: 15px;
padding-bottom: 0px;
font-weight: bold;
font-size: 26px;
}
#site-subtitle {
width: 579px;
float: left;
padding-left: 15px;
color: rgba(208,206,210, 1);
}
#login {
float: right;
width: 82px;
height: 100%;
border-left: 2px solid #fff;
}
a#promotion {
position: relative;
float: right;
width: 202px;
height: 60px;
margin-top: 10px;
margin-right: 15px;
font-weight: bold;
font-style: normal;
-moz-transform: rotate(5deg);
-webkit-transform: rotate(5deg);
-o-transform: rotate(5deg);
-ms-transform: rotate(5deg);
transform: rotate(5deg);
}
a#promotion {
-webkit-animation: promotion-swing 3s; /* Chrome, Safari, Opera */
animation:...