Personal-Website/sass/style.scss

196 lines
3.5 KiB
SCSS

//setup
$width: 800px;
$grey: #ccc;
$pink: #ed1a76;
$greybg: rgba(0, 0, 0, .5);
.reset {
padding: 0px;
margin: 0px;
clear: both;
}
@import 'covers';
/*
* sections
*/
body {
@extend .reset;
font-family: serif;
font-size: 1em;
line-height: 1.6;
transition: none;
}
#top {
padding-top: 10px;
width: 100%;
position: fixed;
background: black;
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;
}
.hideable {
// transition-property: size;
// 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: 400px;
}
.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 {
transition-duration: .2s;
width: $width/2 - 10;
border: 1px solid #aaa;
border-radius: 5px;
padding: 0 0 1em 0;
display: inline-block;
margin: 3px;
overflow: hidden;
.cover {
height: 15em;
background-position: center center;
background-size: cover;
margin: 0px;
padding: 1em;
}
.details {
padding: .5em 1em 0 1em;
h2 {
margin: 0;
padding: 0;
}
p {
margin: 0 0 0 0;
text-indent: 0;
}
.tag {
float: left;
padding: 0 .3em 0 .3em;
background: #eee;
border: 1px solid #ccc;
margin: .2em;
border-radius: .3em;
}
.tag.upper {
margin-top: .5em;
float: right;
}
.tag.award {
background: #FFFCB7;
}
}
}
.project:hover {
box-shadow: 1px 1px 3px #333;
}
}
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;
}
}
h2 {
// font-weight: normal;
font-style: italic;
}
a {
transition-duration: .2s;
}