264 lines
5.6 KiB
SCSS
264 lines
5.6 KiB
SCSS
//setup
|
|
@import 'responsive';
|
|
$width: 800px;
|
|
$grey: #ccc;
|
|
$pink: #ed1a76;
|
|
$greybg: rgba(0, 0, 0, .5);
|
|
.reset {
|
|
padding: 0;
|
|
margin: 0;
|
|
text-indent: 0;
|
|
}
|
|
|
|
|
|
/*
|
|
* 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: 340px;
|
|
}
|
|
.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 {
|
|
max-width: $width;
|
|
margin: auto;
|
|
/* 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 {
|
|
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;
|
|
}
|
|
.award::after {
|
|
vertical-align: middle;
|
|
background-image: url(../images/laurelright.png);
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
background-position: center center;
|
|
display: inline-block;
|
|
content: "";
|
|
width: 1.6em;
|
|
height: 3em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
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: 1em;
|
|
max-width: $width;
|
|
margin: auto;
|
|
}
|
|
h1 {
|
|
font-size: 2em;
|
|
font-style: italic;
|
|
max-width: $width;
|
|
margin: auto;
|
|
margin-top: 1.7em;
|
|
}
|
|
@include respond-to($width) {
|
|
div {
|
|
margin: auto;
|
|
padding: 0;
|
|
.project {
|
|
width: 90%;
|
|
float: none;
|
|
display: block;
|
|
margin: 0 0 .5em 5%;
|
|
;
|
|
}
|
|
}
|
|
p,
|
|
h1,
|
|
h2,
|
|
a {
|
|
margin: .5em;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include respond-to($width) {
|
|
#mast {
|
|
padding-left: 1em;
|
|
}
|
|
}
|
|
|
|
h2 {
|
|
// font-weight: normal;
|
|
font-style: italic;
|
|
}
|
|
|
|
a {
|
|
transition-duration: .2s;
|
|
} |