resume/html-interactive/resume.scss

186 lines
3.6 KiB
SCSS

@import url("//fonts.googleapis.com/css?family=Monda|Cantarell|Exo 2");
$white: #EEE;
$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; }
html { background-color: $white; }
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;
z-index: 3;
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.anchor {
display: block;
position: relative;
top: -3rem;
visibility: hidden; }
h2 {
border-bottom: solid thin $black;
font-variant: small-caps;
width: 100%; }
h4 {
display: inline-block;
font-style: italic;
font-weight: normal;
&:after { content: ":"; } }
& > div { margin-bottom: 2rem; }
&#skills-section {
a.nojs {
color: $black;
text-decoration: none;
&:after { content: ","; }
&:last-of-type:after { content: ""; }
}
div.skill {
display: inline-block;
cursor: pointer;
position: relative;
&:after { content: ","; }
&:last-of-type:after { content: ""; }
div.links {
background-color: $white;
border: solid thin $black;
border-radius: 3px;
display: none;
position: absolute;
left: calc(-0.2rem - 1px);
top: calc(-0.2rem - 1px);
z-index: 2;
div.name {
background-color: $black;
color: $white;
font-weight: bold;
font-variant: small-caps;
padding: 0.2rem;
}
ul {
padding: 0.2rem;
list-style: none;
white-space: nowrap;
}
}
}
}
&#jobs-section div.job {
position: relative;
span.duration {
position: absolute;
right: 0;
top: 0.6rem;
}
}
}
#glass-pane {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
}