redacted.life/scss/index.scss

291 lines
5.0 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);
2020-01-26 02:13:02 +01:00
height: 100vh - $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: 2em 1em 1em 1em;
margin: auto;
width: 80%;
}
2020-02-01 23:05:27 +01:00
ul.archives, ul.donate {
list-style-type: none;
width: 100%;
padding: 0;
text-align: center;
li {
a {
text-decoration: none;
color: #000;
transition-duration: 0.2s;
}
a:hover, a:active {
transition-duration: 0.2s;
background-color: #000;
color: #FFF;
padding: 0.3em;
border-radius: 1.6em;
}
margin: 0.5em 1em;
}
}
2020-02-01 10:59:36 +01:00
.subscribe {
display: flex;
width: 600px;
justify-content: space-between;
flex-wrap: wrap;
margin: auto;
a {
color: #000;
font-size: 100px;
text-align: center;
padding: 50px 50px;
transition-duration: 0.2em;
text-decoration: none;
}
a:hover, a:active {
font-size: 0;
text-decoration: none;
transition-duration: 0.2em;
background-color: rgba(0, 0, 0, 0.25);
border-radius: 30px;
2020-02-01 10:59:36 +01:00
}
a:hover::after {
transition-duration: 0.2em;
2020-02-01 10:59:36 +01:00
content: attr(x-text);
position: relative;
top: 50px;
font-size: 1.1rem;
text-decoration: bold;
2020-02-01 10:59:36 +01:00
}
}
2020-01-20 21:06:39 +01:00
}
}
.bottom {
2020-01-26 02:13:02 +01:00
min-height: 95vh - $top-height;
margin-bottom: 5vh;
2020-01-20 21:06:39 +01:00
.wrapper {
2020-01-26 02:13:02 +01:00
min-height: 95vh - $top-height;
2020-01-20 21:30:40 +01:00
align-items: center;
2020-01-26 02:13:02 +01:00
justify-content: space-between;
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: 0.5em;
2020-01-20 21:06:39 +01:00
border-color: #000;
border-width: 3px;
border-style: solid;
border-radius: 1.5em;
text-decoration: none;
transition-duration: 0.4s;
2020-01-20 21:06:39 +01:00
}
.button:hover, .button:active {
2020-01-26 02:13:02 +01:00
transition-duration: 0.4s;
2020-01-20 21:06:39 +01:00
background-color: #000;
color: #FFF;
}
}
2020-02-01 23:05:27 +01:00
a.donate-link {
color: #292929;
padding: 0.3em;
border-radius: 1.6em;
transition-duration: 0.2s;
}
a:hover {
color: #FFF;
background-color: #000;
text-decoration: none;
transition-duration: 0.2s;
}
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;
transition-duration: 0.2s;
2020-01-20 21:30:40 +01:00
}
a:hover {
color: #FFF;
background-color: #000;
text-decoration: none;
transition-duration: 0.2s;
2020-01-20 21:30:40 +01:00
}
}
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;
a {
color: #000;
text-decoration: none;
}
2020-01-20 21:06:39 +01:00
}
2020-01-20 09:10:37 +01:00
2020-02-01 10:59:36 +01:00
@media (max-width: 800px) {
body {
.top {
.wrapper {
.subscribe {
width: 400px;
}
}
}
}
}
@media (max-width: 600px) {
body {
2020-01-26 02:13:02 +01:00
.top_bg {
height: $top-height-phone;
}
.bottom_bg {
height: 100vh - $top-height-phone;
top: $top-height-phone;
}
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%;
}
.shownotes {
width: 90%;
padding: 2em 0 1em 0;
}
2020-01-20 22:45:35 +01:00
}
}
.bottom {
2020-01-26 02:13:02 +01:00
min-height: 95vh - $top-height-phone;
.wrapper {
2020-01-26 02:13:02 +01:00
min-height: 95vh - $top-height-phone;
.content {
.button {
font-size: 1em;
padding: 0.5em;
}
}
}
}
}
2020-01-20 22:45:35 +01:00
h1 {
font-size: 3em;
}
}
2020-02-01 10:59:36 +01:00
@media (max-width: 480px) {
body {
.top {
.wrapper {
.subscribe {
width: 200px;
}
}
}
}
}
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})}
}