lbry-sec/styles/globals.scss
2021-03-28 12:36:14 -04:00

406 lines
5.8 KiB
SCSS

$breakpoint-small: 900px;
$spacing-small: 1rem;
$spacing-medium: 1.8rem;
$border-radius: 10px;
html,
body {
font-size: 16px;
padding: 0;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}
* {
box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
iframe {
border: none;
}
p {
font-size: 24px;
line-height: 2rem;
}
input,
button {
border: none;
}
a {
color: inherit;
text-decoration: none;
}
header {
height: 8vh;
background-color: white;
color: black;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 0.75rem;
a:not(:last-of-type) {
margin-right: $spacing-small;
}
@media (min-width: $breakpoint-small) {
padding: 0 1rem;
}
}
main {
overflow: hidden;
}
.title {
font-weight: bolder;
font-size: 1.5rem;
@media (min-width: $breakpoint-small) {
font-size: 2rem;
}
}
.link {
color: #e2048e;
font-weight: 900;
border-bottom: 1px solid #e2048e;
}
.landing__img-container {
position: relative;
z-index: -1;
position: relative;
height: auto;
background-color: #111111;
color: #ffffff;
overflow: visible;
img {
width: 110vw;
object-fit: cover;
filter: brightness(30%);
}
@media (min-width: $breakpoint-small) {
height: 70vh;
}
}
.landing__text {
margin-top: -2rem;
margin-bottom: 3rem;
margin-left: $spacing-small;
margin-right: $spacing-small;
background-color: #31afa1;
color: white;
padding: $spacing-small;
padding-bottom: 2rem;
@media (min-width: $breakpoint-small) {
position: absolute;
margin: 0 10rem;
top: 20vh;
width: 40rem;
padding: $spacing-medium;
}
}
.landing__title {
font-size: 2.5rem;
font-weight: 900;
@media (min-width: $breakpoint-small) {
font-size: 3rem;
}
}
.landing__subtitle {
margin-top: 1.5rem;
font-size: 1.5rem;
font-weight: 300;
@media (min-width: $breakpoint-small) {
font-size: 1.5rem;
}
}
.landing__standout {
margin-top: 1.5rem;
font-weight: bolder;
display: inline-block;
background-color: white;
color: black;
font-weight: 900;
padding: 0.75rem;
margin-top: 2rem;
font-size: 1.4rem;
padding: 1.5rem;
transform: skew(-10deg);
span {
transform: skew(10deg);
}
@media (min-width: $breakpoint-small) {
font-size: 1.5rem;
}
}
.content {
padding: 2rem;
background-color: #ffffff;
color: #000000;
h2 {
font-size: 2rem;
font-weight: 900;
&:not(:first-of-type) {
margin-top: 4rem;
}
}
@media (min-width: $breakpoint-small) {
padding-top: 5rem;
width: 900px;
margin: auto;
&:not(:first-of-type) {
padding-top: 2rem;
}
h2 {
font-size: 4rem;
}
}
}
.content__subtitle {
margin-top: 1rem;
margin-bottom: 2rem;
font-size: 1.3rem;
font-weight: 300;
color: #797979;
@media (min-width: $breakpoint-small) {
font-size: 1.5rem;
}
}
.video {
margin-top: 2.5rem;
position: relative;
padding-bottom: 56.25%;
background-color: black;
border-radius: 20px;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 20px;
}
}
.email {
width: 100%;
max-width: 35rem;
margin: auto;
font-size: 2rem;
margin-top: 4rem;
padding: 1rem;
background-color: #fcd34d;
h2 {
font-size: 2rem;
}
label {
font-size: 1rem;
font-weight: 700;
}
@media (min-width: $breakpoint-small) {
padding: 5rem;
h2 {
font-size: 3rem;
}
}
}
.email__group {
height: 3rem;
display: flex;
align-items: center;
border-radius: 10px;
input {
flex: 1;
font-size: 0.8rem;
margin: 0;
padding: 0;
background-color: #ffffff;
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
&:focus {
outline: none;
}
@media (min-width: $breakpoint-small) {
font-size: 1rem;
}
}
button {
border-top-right-radius: $border-radius;
border-bottom-right-radius: $border-radius;
background-color: black;
color: white;
font-weight: 700;
}
input,
button {
padding: 1rem;
height: 3rem;
}
}
.email__subtitle {
font-size: 1.5rem;
margin: 1rem 0;
@media (min-width: $breakpoint-small) {
font-size: 2rem;
margin: 2rem 0;
}
}
.email__success,
.email__error {
font-size: 1rem;
margin-top: 0.5rem;
}
.twitter {
margin-top: 2.5rem;
margin-bottom: 1.5rem;
width: 100vw;
overflow: hidden;
}
.twitter__error-link {
color: red;
font-weight: 900;
border-bottom: 1px solid red;
}
.tweets {
display: flex;
align-items: flex-start;
margin-left: 100px;
animation: slide 240s linear;
animation-fill-mode: forwards;
}
.tweets--static {
animation: none;
@media (min-width: $breakpoint-small) {
margin-left: -50px;
}
@media (max-width: $breakpoint-small) {
:not(:first-child) {
display: none;
}
}
}
@keyframes slide {
0% {
margin-left: 100px;
}
100% {
margin-left: -5000px;
}
}
.tweet {
width: 50rem;
display: flex;
padding: 1rem;
padding-bottom: 1.5rem;
font-size: 20px;
border: 1px solid lightgray;
border-radius: 10px;
margin-right: 2rem;
}
.tweet--placeholder {
@extend .tweet;
height: 15rem;
width: 80vw;
background-color: #eeeeee;
border-radius: 10px;
@media (min-width: $breakpoint-small) {
width: 50rem;
}
}
.tweet__content {
min-width: 15rem;
margin-left: 1rem;
}
.tweet__author {
display: flex;
}
.tweet__username {
font-weight: bold;
}
.tweet__handle {
color: #888;
font-size: 1rem;
margin-top: 0.25rem;
}
.tweet_img {
height: 50px;
width: 50px;
border-radius: 25px;
}
.tweet__text {
margin-top: 1rem;
font-size: 1rem;
}