142 lines
4.7 KiB
SCSS
142 lines
4.7 KiB
SCSS
/* Welcome to Compass.
|
|
* In this file you should write your main styles. (or centralize your imports)
|
|
* Import this file using the following HTML or equivalent:
|
|
* <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */
|
|
|
|
$bg: #eee;
|
|
$text: #444;
|
|
$strong: #111;
|
|
$dim: #999;
|
|
$links: #55f;
|
|
$rule: #999;
|
|
$tr-rule: #ccc;
|
|
$highlight: #ccc;
|
|
|
|
$width: 800px;
|
|
$margin: 17px;
|
|
$in_width: $width - $margin;
|
|
$small-width: 500px;
|
|
|
|
@import "compass/reset";
|
|
@import "compass/css3";
|
|
|
|
@include font-face("OpenSans", font-files("OpenSans.woff"));
|
|
@include font-face("OpenSansLight", font-files("OpenSans-Light.woff"));
|
|
@include font-face("OpenSans", font-files("OpenSans-Italic.woff"), $style:italic);
|
|
|
|
html, body { height: 100%; text-align: justify;
|
|
background-color: $bg; color: $text;
|
|
font-family: "OpenSans", sans;
|
|
line-height: 1.4em; }
|
|
|
|
a { text-decoration: none; color: $links; }
|
|
a:hover { text-decoration: underline; }
|
|
|
|
strong { font-weight: bold; }
|
|
|
|
hr { height: 1px; border: none; background-color: $rule; margin-top: 1em; }
|
|
|
|
section h1 { font-size: 150%; border-left: 4px solid $links;
|
|
padding-left: 11px; margin-left: -$margin; }
|
|
|
|
section h2 { font-size: 120%; font-weight: bold; }
|
|
|
|
section h3 { font-size: 100%; font-weight: bold; }
|
|
|
|
h1, h2, h3, h4, h5 { margin: 0.7em 0 0.5em 0; }
|
|
|
|
header { text-align: center; font-family: "OpenSansLight", sans;
|
|
line-height: 1.3em; font-weight: 400; font-size: 1.2em;
|
|
padding-top: 1em; }
|
|
|
|
header h1 { font-size: 1.5em; margin:0 0 0.3em 0; }
|
|
|
|
header a { color: $text; }
|
|
|
|
pre { background-color: #f5f5f5; padding: 0.5em; margin: 0.5em 0; }
|
|
code { font-family: mono; }
|
|
|
|
nav { text-align: center; font-size: 120%; margin: 1em 0; }
|
|
nav ul li { display: inline; margin: 0; clear: both; padding: 0 10px 0 11px; }
|
|
nav ul li:nth-child(n+2) { border-left: 1px solid $rule; }
|
|
|
|
footer { font-size: 75%; padding-bottom: 175px; }
|
|
|
|
em { font-style: italic; }
|
|
|
|
table { width: 100%; }
|
|
thead { color: $dim; }
|
|
th, td { padding: 0.3em; }
|
|
tr { border-bottom: 1px dotted $tr-rule; }
|
|
|
|
.publi_table td:nth-child(1) { width: 30%; }
|
|
.publi_table td:nth-child(2) { width: 60%; }
|
|
.publi_table td:nth-child(3) { width: 10%; }
|
|
|
|
ul { list-style-image: url('/images/bullet_dark.png'); }
|
|
ul li { margin-left: 1em; }
|
|
|
|
ol { list-style-type: decimal; }
|
|
ol li { padding: 0.5em 10px 0.5em 0; }
|
|
ol li:nth-child(n+2) { border-top: 1px solid #ddd; }
|
|
ol li:hover { border-right: 3px solid $links; padding-right: 7px; }
|
|
|
|
.float-left { float: left; }
|
|
.right, .float-right { float: right; }
|
|
.clear { clear: both; }
|
|
|
|
.switcher { float: left; }
|
|
|
|
.credits { color: $dim; }
|
|
|
|
.centered_img { display: block; margin: 1em auto; }
|
|
|
|
#wrapper { max-width: $in_width; margin: auto; }
|
|
#outter-wrapper { width: 100%; height: auto; min-height: 100%; position: relative; }
|
|
#foot_image { height: 150px; background: linear-gradient(to top, #FFFFFF 0%, #FFFFFF 50%, #EEEEEE 100%);
|
|
position: absolute; bottom: 0px; width: 100%; text-align: center; overflow: hidden; }
|
|
#clouds { background-image: url('../images/clouds.png'); height: 150px; width: 200%;
|
|
position: relative; top: -150px; margin-bottom: -150px; }
|
|
#foot_image:active #ski { visibility: visible; animation: ski 3s linear; }
|
|
#clouds:hover { animation: clouds 100s infinite linear; }
|
|
#ski { position: relative; visibility: hidden; top: -107px; left: -210px; }
|
|
|
|
#portrait { margin: 0 15px 15px 0; width: 150px; display: inline-block; vertical-align:middle; }
|
|
|
|
#info span { display: inline-block; width: 100%; max-width: 618px; vertical-align: middle; }
|
|
|
|
#cv_title { font-family: "OpenSansLight",sans; font-size: 2em; margin: 1em; }
|
|
|
|
#http_code { text-align: center; font-size: 10em; line-height: 1em; }
|
|
|
|
@media (max-width: $small-width) {
|
|
body { font-size: 80%; }
|
|
.switcher { float: none; }
|
|
}
|
|
|
|
@media (max-width: $width) {
|
|
#outter-wrapper { width: 100%; }
|
|
header h1 { font-size: 1.2em; }
|
|
header { font-size: 1em; }
|
|
body { padding: 0 $margin; }
|
|
#foot_image { display: none; }
|
|
footer { display: none; }
|
|
}
|
|
|
|
@keyframes clouds {
|
|
0% { transform: translate(0, 0); }
|
|
100% { transform: translate(-774px, 0); }
|
|
}
|
|
|
|
@keyframes ski {
|
|
0% { transform: translate(0, 0) rotate(0deg); }
|
|
10% { transform: translate(10px, 0) rotate(0deg); }
|
|
20% { transform: translate(10px, 8px) rotate(45deg); }
|
|
25% { transform: translate(25px, 16px) rotate(15deg); }
|
|
30% { transform: translate(55px, 32px) rotate(0deg); }
|
|
40% { transform: translate(90px, 20px) rotate(-20deg); }
|
|
50% { transform: translate(110px, 15px) rotate(-200deg); }
|
|
60% { transform: translate(130px, 35px) rotate(-380deg); }
|
|
68% { transform: translate(164px, 27px) rotate(-360deg); }
|
|
100% { transform: translate(300px, 66px) rotate(20deg); }
|
|
}
|