Personal-Website/sass/style.scss
2017-04-13 10:08:00 -07:00

281 lines
5.9 KiB
SCSS

//setup
@import 'responsive';
@import 'animations';
$width: 800px;
$grey: #ccc;
$pink: #ed1a76;
$greybg: rgba(0, 0, 0, .5);
.reset {
padding: 0;
margin: 0;
text-indent: 0;
}
.widthCenter {
max-width: $width;
margin: auto;
}
/*
* Covers for projects section
*/
@import 'covers';
/*
* sections
*/
body {
@extend .reset;
font-family: serif;
font-size: 1em;
line-height: 1.6;
}
#top {
padding-top: 10px;
width: 100%;
position: fixed;
background: black;
z-index: 999;
div {
margin: auto;
max-width: $width;
}
h2 {
font-weight: normal;
}
}
#mast {
margin-top: 10px;
background: none;
line-height: 1.2;
color: white;
a {
color: white;
font-style: italic;
}
a:hover {
color: $pink;
}
.sub {
font-style: italic;
color: $grey;
}
img {
transition-duration: .2s;
}
h2 {
transition-property: size;
transition-duration: .2s;
}
}
//small and large classes are applied to #top
.small {
.hideable {
display: none;
opacity: 0;
}
img {
max-width: 200px;
}
h2 {
font-size: 1em;
}
}
.large {
img {
width: 100%;
max-width: 380px;
}
.hideable {
opacity: 1;
}
}
.nojs {
body {
background: white;
}
#mast {
background: black;
}
}
/*
* standalone elements
*/
// the standard section element
.slide {
@extend .reset;
padding: 0px;
width: 100%;
/* width wrapping */
div {
@extend .widthCenter;
/* Project bits */
.project {
width: $width/2 - 10;
padding: 0 0 1em 0;
border: 1px solid #aaa;
border-radius: 5px;
overflow: hidden;
box-shadow: 1px 1px 4px #888;
background: white;
.cover {
height: 15em;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
margin: 0px;
padding: 1em;
}
.details {
padding: 1em 1em 0 1em;
h2 {
@extend .reset;
line-height: 1;
margin: 0 0 .5em 0;
}
p {
@extend .reset;
margin: 0 0 .5em 0;
}
.tag {
float: left;
padding: 0 .3em 0 .3em;
background: #eee;
border: 1px solid #ccc;
margin: .2em;
border-radius: 5px;
}
.cat {
background: #B7EEFF;
border: 1px solid #8AC9DD;
}
.award {
float: right;
background: none;
border: none;
margin: 0 0 .5em .5em;
div {
display: inline-block;
text-align: center;
vertical-align: middle;
padding: 0;
h3 {
margin: 0;
padding: 0;
font-size: 1.4em;
line-height: 1;
font-weight: normal;
font-style: italic;
}
p {
@extend .reset;
font-size: .8em;
}
}
}
.award::before,
.award::after {
vertical-align: middle;
background-image: url(../images/laurelleft.png);
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
display: inline-block;
content: "";
width: 1.6em;
height: 3em;
position: relative
}
.award::before {
background-image: url(../images/laurelleft.png);
left: .09em;
}
.award::after {
background-image: url(../images/laurelright.png);
right: .11em;
}
}
}
}
table {
line-height: 1.3;
margin: 0;
padding: 2px;
border-spacing: 0;
border-collapse: collapse;
vertical-align: text-top;
}
ul {
margin: 5px;
}
p {
text-indent: 2em;
}
h1 {
font-size: 2em;
font-style: italic;
margin-top: 1.7em;
}
@include textElements() {
@extend .widthCenter;
}
@include respond-to($width) {
.widthCenter {
margin-left: 12px;
margin-right: 12px;
}
div {
// margin: auto;
// padding: 0;
.project {
width: 90%;
float: none;
display: block;
margin: 0 0 .5em 5%;
;
}
}
@include textElements() {
// margin-right: .8em;
// margin-left: .8em;
}
}
}
#skilltablebutton {
text-decoration: underline;
font-size: 1.1em;
font-style: italic;
font-weight: normal;
}
#scrollprompt {
// @include prefix(animation, 1s 1.1s 1 prompt)
@include prefix(animation, 2s ease fadeIn)
}
@include respond-to($width) {
#mast {
padding-left: 1em;
}
}
h2 {
// font-weight: normal;
font-style: italic;
}
a {
transition-duration: .2s;
}