resume/html-interactive/resume.scss

134 lines
2.4 KiB
SCSS
Raw Normal View History

2015-09-23 17:48:35 -05:00
@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; }
2015-09-23 17:48:35 -05:00
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; }
2015-09-24 23:57:57 -05:00
h2 {
2015-09-23 17:48:35 -05:00
border-bottom: solid thin $black;
2015-09-24 23:57:57 -05:00
font-variant: small-caps;
2015-09-23 17:48:35 -05:00
width: 100%; }
2015-09-23 18:24:07 -05:00
h4 {
display: inline-block;
font-style: italic;
font-weight: normal;
&:after { content: ":"; } }
& > div { margin-bottom: 2rem; }
2015-09-23 17:48:35 -05:00
&#skills-section {
span {
cursor: pointer;
&:after { content: ","; }
&:last-of-type:after { content: ""; }
}
}
2015-09-24 23:57:57 -05:00
&#jobs-section div.job {
position: relative;
span.duration {
position: absolute;
right: 0;
top: 0.6rem;
}
}
2015-09-23 17:48:35 -05:00
}