redacted.life/scss/index.scss

186 lines
3.1 KiB
SCSS
Raw Normal View History

2020-01-20 09:10:37 +01:00
$cloud_width: 200px;
$top-height: 70vh;
$top-height-phone: 64vh;
2020-01-20 09:10:37 +01:00
2020-01-20 21:06:39 +01:00
@import 'fonts';
* {
box-sizing: border-box;
}
2020-01-20 09:10:37 +01:00
body {
margin: 0;
padding: 0;
2020-01-20 22:45:35 +01:00
overflow-x: hidden;
2020-01-20 09:10:37 +01:00
2020-01-20 21:06:39 +01:00
@include body-font;
2020-01-20 09:10:37 +01:00
.clouds {
z-index: 50;
position: fixed;
2020-01-20 09:10:37 +01:00
width: $cloud_width;
animation-name: move_right;
animation-direction: alternate;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
#cloud1 {
top: $cloud_width / 466 * 70; // 1 cloud worth of gap
left: 0;
animation-duration: 17s;
}
#cloud2 {
top: $cloud_width / 466 * 70 * 4; // 4 clouds worth of gap
left: 0;
animation-delay: -2s;
animation-duration: 15s;
transform: rotateY(180deg);
}
.top_bg {
2020-01-20 21:06:39 +01:00
background-image: linear-gradient(#24d3ff, #aaeeff);
height: $top-height;
width: 100vw;
position: fixed;
}
.bottom_bg {
background-image: linear-gradient(#26a4c4, #afdde9);
height: 100 - $top-height;
width: 100vw;
position: fixed;
top: $top-height;
}
.top {
min-height: $top-height;
2020-01-20 21:06:39 +01:00
display: flex;
align-items: end;
.wrapper {
min-height: $top-height;
2020-01-20 21:06:39 +01:00
align-items: flex-end;
2020-01-20 22:45:35 +01:00
padding-bottom: 2em;
.player {
margin: auto;
width: 80%;
.plyr {
border-radius: 1em;
2020-01-20 22:45:35 +01:00
border-color: #000;
border-width: 4px;
border-style: solid;
border-radius: 2em;
}
}
.shownotes {
padding: 1em;
margin: auto;
width: 80%;
}
2020-01-20 21:06:39 +01:00
}
}
.bottom {
min-height: 100vh - $top-height;
2020-01-20 21:06:39 +01:00
.wrapper {
min-height: 100vh - $top-height;
2020-01-20 21:30:40 +01:00
align-items: center;
justify-content: space-around;
2020-01-20 21:30:40 +01:00
flex-direction: column;
2020-01-20 22:45:35 +01:00
padding-top: 2em;
2020-01-20 21:30:40 +01:00
height: 100%;
2020-01-20 21:06:39 +01:00
.content {
display: flex;
width: 100%;
justify-content: space-evenly;
.button {
font-size: 1.5em;
color: #000;
padding: 1em;
border-color: #000;
border-width: 3px;
border-style: solid;
border-radius: 1.5em;
text-decoration: none;
}
.button:hover, .button:active {
background-color: #000;
color: #FFF;
}
}
2020-01-20 21:30:40 +01:00
footer {
margin-top: 1em;
2020-01-20 21:30:40 +01:00
padding: 0 1em;
text-align: center;
color: #292929;
a {
color: #292929;
padding: 0.3em;
border-radius: 1.6em;
}
a:hover {
color: #FFF;
background-color: #000;
text-decoration: none;
}
}
2020-01-20 21:06:39 +01:00
}
}
.wrapper {
position: relative;
width: 100vw;
box-sizing: border-box;
z-index: 100;
display: flex;
justify-content: center;
.content {
box-sizing: border-box;
max-width: 800px;
width: 80%;
}
}
2020-01-20 09:10:37 +01:00
}
2020-01-20 21:06:39 +01:00
h1 {
@include title-font;
font-size: 4em;
text-align: center;
}
2020-01-20 09:10:37 +01:00
@media (max-width: 600px) {
body {
2020-01-20 22:45:35 +01:00
.top {
min-height: $top-height-phone;
2020-01-20 22:45:35 +01:00
.wrapper {
min-height: $top-height-phone;
2020-01-20 22:45:35 +01:00
.player {
width: 100%;
}
}
}
.bottom {
min-height: 100vh - $top-height-phone;
.wrapper {
min-height: 100vh - $top-height-phone;
.content {
.button {
font-size: 1em;
padding: 0.5em;
}
}
}
}
}
2020-01-20 22:45:35 +01:00
h1 {
font-size: 3em;
}
}
2020-01-20 09:10:37 +01:00
@keyframes move_right {
from {left: 0}
to {left: calc(100vw - #{$cloud_width})}
}
@keyframes move_left {
from {right: 0}
to {right: calc(100vw - #{$cloud_width})}
}