Modify basic styles for the layout

This commit is contained in:
Guillaume DOTT 2013-01-30 13:51:31 +01:00 committed by Guillaume DOTT
parent 44cf23207e
commit 0e8be5ed5f
2 changed files with 76 additions and 45 deletions

View File

@ -38,6 +38,9 @@
</p> </p>
</div> </div>
</header> </header>
<section>
<%= yield %> <%= yield %>
</section>
</body> </body>
</html> </html>

View File

@ -1,55 +1,83 @@
@charset "utf-8"; @charset "utf-8";
body { body {
background: #d4d4d4 url("../images/background.png"); font: 14px Verdana, sans-serif;
text-align: center; background: #99a;
font-family: sans-serif; } color: #eee;
& > section {
margin: 0 4em;
margin-top: 220px;
}
}
a {
color: #bbb;
&:hover {
color: white;
}
}
#lang {
padding: 0;
position: absolute;
top: 0;
right: 4em;
margin: 0;
list-style-type: none;
li {
display: inline-block;
padding: 6px;
margin-left: 10px;
background: rgba(0, 0, 0, 0.6);
border: 2px solid white;
border-top: none;
a {
text-decoration: none;
text-transform: uppercase;
}
}
}
header {
width: 18em;
padding: 20px;
background-color: rgba(0,0,0,0.9);
border: 2px solid white;
border-top: none;
position: absolute;
top: 0;
left: 4em;
h1 { h1 {
color: rgba(0, 0, 0, .3); font-size: 2.0em;
font-weight: bold; font-weight: normal;
font-size: 32px; font-family: 'Times New Roman', Times, serif;
letter-spacing: -1px; margin: 5px 0;
text-transform: uppercase;
text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
background: url("../images/middleman.png") no-repeat center 100px;
padding: 350px 0 10px;
margin: 0; }
.doc {
font-size: 14px;
margin: 0; }
.doc:before,
.doc:after {
opacity: .2;
padding: 6px;
font-style: normal;
position: relative;
content: ""; }
.doc a {
color: rgba(0, 0, 0, 0.3); }
.doc a:hover {
color: #666; }
.welcome {
-webkit-animation-name: welcome;
-webkit-animation-duration: .9s; }
@-webkit-keyframes welcome {
from {
-webkit-transform: scale(0);
opacity: 0;
} }
50% { h2 {
-webkit-transform: scale(0); font-size: 1.2em;
opacity: 0; font-weight: normal;
margin: 2px 0;
} }
82.5% { #download_cv {
-webkit-transform: scale(1.03); margin-top: 20px;
-webkit-animation-timing-function: ease-out; img {
opacity: 1; float: left;
margin-right: 10px;
}
p {
padding-top: 4px;
font-size: 1.1em;
font-weight: normal;
}
a {
text-decoration: none;
}
.st {
font-size: 0.8em;
font-weight: normal;
} }
to {
-webkit-transform: scale(1);
} }
} }