123 lines
2.2 KiB
SCSS
123 lines
2.2 KiB
SCSS
@import url("//fonts.googleapis.com/css?family=Monda|Cantarell|Exo 2");
|
|
|
|
$black: #222;
|
|
|
|
// Simple HTML5 reset. Not comprehensive but sufficient.
|
|
* {
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0; }
|
|
|
|
article,aside,details,figcaption,figure,
|
|
footer,header,hgroup,menu,nav,section {
|
|
display:block; }
|
|
|
|
body {
|
|
font-family: Cantarell;
|
|
font-size: 125%;
|
|
margin: 12rem auto 0 auto;
|
|
width: 50rem;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5 { font-family: Monda; }
|
|
|
|
header {
|
|
background-color: $black;
|
|
color: #EEE;
|
|
|
|
padding-left: calc(50% - 25rem);
|
|
padding-right: calc(50% - 25rem);
|
|
padding-bottom: 2rem;
|
|
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
transition: all 0.2s;
|
|
|
|
h1 {
|
|
font-size: 5rem;
|
|
font-variant: small-caps;
|
|
text-align: center;
|
|
}
|
|
|
|
h2 {
|
|
bottom: 1rem;
|
|
font-family: Cantarell;
|
|
font-size: 1.5rem;
|
|
position: absolute;
|
|
|
|
&:nth-of-type(2) { right: calc(50% - 25rem); }
|
|
|
|
a { color: #888; }
|
|
}
|
|
}
|
|
|
|
header.fixed {
|
|
padding-bottom: 0;
|
|
position: fixed;
|
|
|
|
h1 {
|
|
display: inline-block;
|
|
font-size: 2rem;
|
|
text-align: left;
|
|
}
|
|
|
|
h2 {
|
|
display: inline-block;
|
|
right: calc(50% - 25rem);
|
|
bottom: 0.5rem;
|
|
}
|
|
|
|
h2:last-of-type { display: none; }
|
|
}
|
|
|
|
nav#sectionNav {
|
|
position: fixed;
|
|
left: calc(50% - 45rem);
|
|
text-align: right;
|
|
width: 18rem;
|
|
|
|
ul {
|
|
list-style: none;
|
|
|
|
li a {
|
|
color: $black;
|
|
font-family: Monda;
|
|
font-variant: small-caps;
|
|
font-size: medium;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
section {
|
|
a {
|
|
display: block;
|
|
position: relative;
|
|
top: -3rem;
|
|
visibility: hidden; }
|
|
|
|
h3 {
|
|
border-bottom: solid thin $black;
|
|
width: 100%; }
|
|
|
|
h4 {
|
|
display: inline-block;
|
|
font-style: italic;
|
|
font-weight: normal;
|
|
&:after { content: ":"; } }
|
|
|
|
& > div { margin-bottom: 2rem; }
|
|
|
|
&#skills-section {
|
|
span {
|
|
cursor: pointer;
|
|
&:after { content: ","; }
|
|
&:last-of-type:after { content: ""; }
|
|
}
|
|
}
|
|
}
|