You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
504 lines
8.9 KiB
SCSS
504 lines
8.9 KiB
SCSS
$header-color: #2e2e2e;
|
|
$text: #3a4145;
|
|
$link-text: #4a4a4a;
|
|
$highlighted-link-text: #111;
|
|
$bg: #3a4145;
|
|
$arrow-bg: rgba(255, 255, 255, .7);
|
|
$white: #fff;
|
|
$page-bg: #3498db;
|
|
$header-link-color: #ccc;
|
|
$subtext-color: #666;
|
|
|
|
html {
|
|
box-sizing: border-box;
|
|
font-size: 62.5%;
|
|
height: 100%;
|
|
max-height: 100%;
|
|
}
|
|
|
|
* {
|
|
&:before,
|
|
&:after {
|
|
box-sizing: inherit;
|
|
}
|
|
}
|
|
|
|
|
|
body {
|
|
color: $text;
|
|
font-family: 'Lato', sans-serif;
|
|
font-size: 1.8rem;
|
|
height: 100%;
|
|
letter-spacing: .01rem;
|
|
line-height: 1.75em;
|
|
max-height: 100%;
|
|
|
|
.post-title {
|
|
&:not(.post-template) {
|
|
font-size: 3.6rem;
|
|
}
|
|
}
|
|
|
|
&.page-template {
|
|
.post-title {
|
|
font-size: 5rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-family: 'Oxygen', sans-serif;
|
|
line-height: 2em;
|
|
margin: 0 0 .4em;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 5rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 3.6rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 3rem;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
h6 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
a {
|
|
color: $link-text;
|
|
transition: color .3s ease;
|
|
|
|
&:hover {
|
|
color: $highlighted-link-text;
|
|
}
|
|
}
|
|
|
|
$front-page-picture-header: 120vh;
|
|
$front-page-bg-header: 95vh;
|
|
|
|
|
|
// Big cover on the frontpage
|
|
.header-bg {
|
|
background: url('http://christiaangoossens.nl/bg.png');
|
|
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
height: $front-page-picture-header;
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.header-overlay {
|
|
background: linear-gradient(180deg, transparent, $page-bg 85%);
|
|
height: $front-page-picture-header;
|
|
left: 0;
|
|
opacity: 1;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
}
|
|
|
|
.below-header {
|
|
background: $page-bg;
|
|
height: $front-page-bg-header;
|
|
position: relative;
|
|
|
|
&:before {
|
|
border-right: 130vw solid $white;
|
|
border-top: 32vh solid $page-bg;
|
|
bottom: 0;
|
|
content: '';
|
|
position: absolute;
|
|
right: 0;
|
|
width: 0;
|
|
}
|
|
}
|
|
|
|
// Bouncing arrow
|
|
.scroll-down {
|
|
animation: bounce 4s 2s infinite;
|
|
color: $arrow-bg;
|
|
|
|
display: block;
|
|
font-size: 24px;
|
|
height: 24px;
|
|
left: 50%;
|
|
margin-left: -12px;
|
|
position: relative;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
transform: rotate(-90deg);
|
|
transition: translateZ(0);
|
|
width: 24px;
|
|
z-index: 100;
|
|
|
|
// Stop the bouncing while hovered
|
|
&:hover {
|
|
animation: none;
|
|
color: $white;
|
|
}
|
|
}
|
|
|
|
|
|
.header-text {
|
|
height: ($front-page-bg-header + $front-page-picture-header);
|
|
left: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 50;
|
|
|
|
.top-content {
|
|
color: $white;
|
|
padding-top: 35vh;
|
|
text-align: center;
|
|
|
|
h1 {
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
font-size: 90px;
|
|
font-weight: 300;
|
|
line-height: 1.1em;
|
|
margin: 0;
|
|
}
|
|
|
|
h2 {
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
font-size: 24px;
|
|
font-weight: 300;
|
|
line-height: 1.1em;
|
|
margin-bottom: 10px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
h4 {
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
font-size: 18px;
|
|
font-weight: 300;
|
|
line-height: 1.4em;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
a {
|
|
margin-top: 60px;
|
|
}
|
|
}
|
|
|
|
$top-layer-effect: rgba(0, 0, 0, .15);
|
|
$layer-effect: #eee;
|
|
|
|
.hidden-content {
|
|
margin: auto;
|
|
margin-top: 10vh;
|
|
max-width: 1140px;
|
|
transition: translateZ(0);
|
|
width: 60vw;
|
|
}
|
|
|
|
.cv-box {
|
|
background: $white;
|
|
box-shadow:
|
|
// Top layer
|
|
0 1px 1px $top-layer-effect,
|
|
// Second layer
|
|
0 10px 0 -5px $layer-effect,
|
|
// Second layer shadow
|
|
0 10px 1px -4px $top-layer-effect,
|
|
// Third layer
|
|
0 20px 0 -10px $layer-effect,
|
|
// Third layer shadow
|
|
0 20px 1px -9px $top-layer-effect;
|
|
padding: 30px;
|
|
transition: translateZ(0);
|
|
|
|
p {
|
|
font-size: .9em;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
.right {
|
|
display: inline-block;
|
|
float: right;
|
|
}
|
|
|
|
.subtext {
|
|
color: $subtext-color;
|
|
display: block;
|
|
font-size: .8em;
|
|
line-height: 1.3em;
|
|
width: 80%;
|
|
}
|
|
|
|
.languages {
|
|
p {
|
|
font-size: .8em;
|
|
line-height: 1.5em;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.profile {
|
|
h6 {
|
|
font-size: 1.2em;
|
|
font-weight: 300;
|
|
margin: 1em 0 .4em;
|
|
}
|
|
|
|
p {
|
|
font-size: .8em;
|
|
line-height: 1.5em;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.full-width {
|
|
clear: both;
|
|
margin-top: 5vh;
|
|
width: 100%;
|
|
}
|
|
|
|
.small-footer {
|
|
color: $subtext-color;
|
|
}
|
|
|
|
.links {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
|
|
li {
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
font-size: 16px;
|
|
height: 22px;
|
|
line-height: 18px;
|
|
padding: 2px 0 0;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.profile-picture {
|
|
float: left;
|
|
margin: 0 20px 20px 0;
|
|
}
|
|
|
|
h5 {
|
|
font-family: 'Lato', sans-serif;
|
|
font-size: 1.8rem;
|
|
font-weight: 600;
|
|
line-height: 3rem;
|
|
margin-bottom: 2vh;
|
|
}
|
|
|
|
h6 {
|
|
font-family: 'Lato', sans-serif;
|
|
font-size: 1.6rem;
|
|
line-height: 2rem;
|
|
}
|
|
}
|
|
|
|
$tag-bg: rgba(255, 255, 255, .3);
|
|
|
|
.tags {
|
|
color: $white;
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
|
|
line-height: 1.1em;
|
|
margin-top: 10vh;
|
|
text-align: center;
|
|
|
|
small {
|
|
font-size: .8em;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
background: $tag-bg;
|
|
border-radius: 5px;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
line-height: 1.5em;
|
|
margin: 0 .5vw;
|
|
padding: 4px 10px;
|
|
|
|
&:hover {
|
|
opacity: .8;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: $white;
|
|
}
|
|
}
|
|
}
|
|
|
|
.profile-picture {
|
|
border-radius: 48px;
|
|
height: 96px;
|
|
width: 96px;
|
|
}
|
|
|
|
.main-header {
|
|
background: $bg no-repeat center center;
|
|
background-size: cover;
|
|
|
|
display: table;
|
|
height: 100vh;
|
|
margin-bottom: 5rem;
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
text-align: center;
|
|
width: 100%;
|
|
|
|
.inner {
|
|
width: 80%;
|
|
}
|
|
}
|
|
|
|
$post-bg: $white;
|
|
$post-border: #ebf2f6;
|
|
$post-after-border: #e7eef2;
|
|
$post-meta: #9eabb3;
|
|
$post-meta-link: #9eabb3;
|
|
|
|
// This class is applied to all posts
|
|
.post {
|
|
border-bottom: $post-border 1px solid;
|
|
margin: 4rem auto;
|
|
max-width: 710px;
|
|
padding-bottom: 4rem;
|
|
position: relative;
|
|
width: 80%;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.post-title {
|
|
a {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.post-excerpt {
|
|
p {
|
|
font-size: .9em;
|
|
line-height: 1.7em;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.read-more {
|
|
text-decoration: none;
|
|
}
|
|
|
|
.post-meta {
|
|
color: $post-meta;
|
|
display: block;
|
|
font-family: 'Lato', sans-serif;
|
|
font-size: 1.5rem;
|
|
line-height: 2.2rem;
|
|
margin: 1.75rem 0;
|
|
word-spacing: .2rem;
|
|
|
|
a {
|
|
color: $post-meta-link;
|
|
text-decoration: none;
|
|
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
$post-date-border: #d5dbde;
|
|
|
|
.post-date {
|
|
border-left: $post-date-border 1px solid;
|
|
display: inline-block;
|
|
font-size: 1.3rem;
|
|
margin-left: 8px;
|
|
padding-left: 12px;
|
|
text-transform: uppercase;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.author-thumb {
|
|
border-radius: 100%;
|
|
float: left;
|
|
height: 24px;
|
|
margin-right: 9px;
|
|
width: 24px;
|
|
}
|
|
|
|
.user-meta {
|
|
min-height: 77px;
|
|
padding: .3rem 40px 0 100px;
|
|
position: relative;
|
|
}
|
|
|
|
.user-image {
|
|
left: 0;
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
.user-name {
|
|
display: block;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.user-bio {
|
|
display: block;
|
|
font-size: 1.4rem;
|
|
line-height: 1.5rem;
|
|
max-width: 440px;
|
|
}
|
|
|
|
.publish-meta {
|
|
padding: 4.3rem 0 4rem;
|
|
position: absolute;
|
|
right: 0;
|
|
text-align: right;
|
|
top: 0;
|
|
}
|
|
|
|
.publish-heading {
|
|
display: block;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.publish-date {
|
|
display: block;
|
|
font-size: 1.4rem;
|
|
line-height: 1.5rem;
|
|
}
|