lbry-sec/styles/globals.scss

505 lines
7 KiB
SCSS
Raw Normal View History

2021-03-27 18:41:37 +01:00
$breakpoint-small: 900px;
$spacing-small: 1rem;
$spacing-medium: 1.8rem;
2021-03-27 20:52:23 +01:00
$border-radius: 10px;
2021-03-27 18:41:37 +01:00
html,
body {
2021-03-28 00:33:47 +01:00
font-size: 16px;
2021-03-27 18:41:37 +01:00
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 {
2021-03-27 20:52:23 +01:00
font-size: 24px;
line-height: 2rem;
}
input,
button {
border: none;
2021-03-27 18:41:37 +01:00
}
2021-03-29 05:32:35 +02:00
a,
button,
.link {
2021-03-27 18:41:37 +01:00
color: inherit;
text-decoration: none;
2021-03-29 04:10:33 +02:00
&:hover {
cursor: pointer;
}
2021-03-27 18:41:37 +01:00
}
2021-03-29 04:10:33 +02:00
.header {
2021-03-27 18:41:37 +01:00
height: 8vh;
background-color: white;
2021-03-27 19:31:06 +01:00
color: black;
2021-03-27 18:41:37 +01:00
display: flex;
justify-content: space-between;
align-items: center;
2021-03-27 19:31:06 +01:00
padding: 0 0.75rem;
2021-03-27 18:41:37 +01:00
a:not(:last-of-type) {
margin-right: $spacing-small;
}
2021-03-29 05:32:35 +02:00
.link {
font-size: 1.5rem;
}
2021-03-27 18:41:37 +01:00
@media (min-width: $breakpoint-small) {
padding: 0 1rem;
}
}
2021-03-29 04:10:33 +02:00
.header--faq {
border-bottom: 1px solid black;
}
2021-03-28 17:21:03 +02:00
main {
overflow: hidden;
2021-03-29 05:32:35 +02:00
padding-bottom: 5rem;
2021-03-28 17:21:03 +02:00
}
2021-03-27 18:41:37 +01:00
.title {
font-weight: bolder;
font-size: 1.5rem;
@media (min-width: $breakpoint-small) {
font-size: 2rem;
}
}
2021-03-28 18:23:24 +02:00
.link {
2021-03-28 18:36:14 +02:00
color: #e2048e;
2021-03-28 18:23:24 +02:00
font-weight: 900;
2021-03-28 18:36:14 +02:00
border-bottom: 1px solid #e2048e;
2021-03-28 18:23:24 +02:00
}
2021-03-28 17:21:03 +02:00
.landing__img-container {
position: relative;
2021-03-27 19:31:06 +01:00
z-index: -1;
2021-03-28 17:21:03 +02:00
2021-03-27 18:41:37 +01:00
position: relative;
2021-03-28 17:21:03 +02:00
height: auto;
2021-03-27 19:31:06 +01:00
background-color: #111111;
color: #ffffff;
2021-03-28 17:21:03 +02:00
overflow: visible;
img {
width: 110vw;
object-fit: cover;
2021-03-29 04:16:12 +02:00
filter: brightness(50%);
2021-03-28 17:21:03 +02:00
}
2021-03-27 18:41:37 +01:00
@media (min-width: $breakpoint-small) {
2021-03-27 19:31:06 +01:00
height: 70vh;
2021-03-27 18:41:37 +01:00
}
}
.landing__text {
2021-03-28 17:21:03 +02:00
margin-top: -2rem;
2021-03-27 18:41:37 +01:00
margin-left: $spacing-small;
margin-right: $spacing-small;
2021-03-28 18:11:46 +02:00
background-color: #31afa1;
2021-03-28 17:21:03 +02:00
color: white;
2021-03-27 18:41:37 +01:00
padding: $spacing-small;
2021-03-27 19:31:06 +01:00
padding-bottom: 2rem;
2021-03-27 18:41:37 +01:00
@media (min-width: $breakpoint-small) {
position: absolute;
margin: 0 10rem;
2021-03-27 19:31:06 +01:00
top: 20vh;
2021-03-27 18:41:37 +01:00
width: 40rem;
padding: $spacing-medium;
}
}
.landing__title {
2021-03-28 18:06:22 +02:00
font-size: 2.5rem;
2021-03-27 20:52:23 +01:00
font-weight: 900;
2021-03-27 19:31:06 +01:00
2021-03-27 18:41:37 +01:00
@media (min-width: $breakpoint-small) {
font-size: 3rem;
}
}
.landing__subtitle {
2021-03-27 19:31:06 +01:00
margin-top: 1.5rem;
font-size: 1.5rem;
font-weight: 300;
2021-03-27 18:41:37 +01:00
@media (min-width: $breakpoint-small) {
2021-03-28 06:57:49 +02:00
font-size: 1.5rem;
2021-03-27 19:31:06 +01:00
}
}
2021-03-28 06:57:49 +02:00
.landing__standout {
2021-03-27 19:31:06 +01:00
margin-top: 1.5rem;
font-weight: bolder;
2021-03-27 20:52:23 +01:00
display: inline-block;
2021-03-27 19:31:06 +01:00
2021-03-28 17:21:03 +02:00
background-color: white;
color: black;
font-weight: 900;
2021-03-27 20:52:23 +01:00
padding: 0.75rem;
margin-top: 2rem;
2021-03-29 05:32:35 +02:00
font-size: 1.2rem;
2021-03-28 00:33:47 +01:00
padding: 1.5rem;
2021-03-27 20:52:23 +01:00
2021-03-29 05:32:35 +02:00
transform: skew(-5deg);
2021-03-28 06:57:49 +02:00
span {
2021-03-29 05:32:35 +02:00
transform: skew(5deg);
2021-03-28 06:57:49 +02:00
}
@media (min-width: $breakpoint-small) {
font-size: 1.5rem;
2021-03-27 18:41:37 +01:00
}
}
.content {
2021-03-28 17:21:03 +02:00
padding: 2rem;
2021-03-29 05:32:35 +02:00
padding-bottom: 0;
2021-03-27 19:31:06 +01:00
background-color: #ffffff;
color: #000000;
2021-03-27 18:41:37 +01:00
2021-03-29 03:57:22 +02:00
.content__section-title {
2021-03-27 20:52:23 +01:00
font-size: 2rem;
font-weight: 900;
&:not(:first-of-type) {
margin-top: 4rem;
}
}
2021-03-27 18:41:37 +01:00
@media (min-width: $breakpoint-small) {
padding-top: 5rem;
width: 900px;
margin: auto;
2021-03-27 20:52:23 +01:00
2021-03-28 06:57:49 +02:00
&:not(:first-of-type) {
padding-top: 2rem;
}
2021-03-29 03:57:22 +02:00
.content__section-title {
2021-03-27 20:52:23 +01:00
font-size: 4rem;
}
2021-03-27 18:41:37 +01:00
}
}
2021-03-28 18:59:34 +02:00
.content__section {
display: flex;
position: relative;
margin-top: 2rem;
@media (max-width: $breakpoint-small) {
margin-top: 0;
}
p {
width: 80%;
@media (max-width: $breakpoint-small) {
width: 100%;
}
}
2021-03-29 05:32:35 +02:00
}
2021-03-28 18:59:34 +02:00
2021-03-29 12:46:42 +02:00
.content__table {
border-collapse: collapse;
font-size: 1.2rem;
th {
padding-right: 1rem;
text-align: right;
}
}
2021-03-29 05:32:35 +02:00
.content__img {
position: relative;
2021-03-28 18:59:34 +02:00
2021-03-29 05:32:35 +02:00
@media (max-width: $breakpoint-small) {
display: none;
2021-03-28 18:59:34 +02:00
}
2021-03-29 05:32:35 +02:00
}
2021-03-28 18:59:34 +02:00
2021-03-29 05:32:35 +02:00
.content__img--question {
width: 80%;
}
.content__img--megaphone {
width: 80%;
margin: 3rem 0;
2021-03-28 18:59:34 +02:00
}
2021-03-27 20:52:23 +01:00
.content__subtitle {
2021-03-28 06:57:49 +02:00
margin-top: 1rem;
margin-bottom: 2rem;
font-size: 1.3rem;
font-weight: 300;
color: #797979;
@media (min-width: $breakpoint-small) {
font-size: 1.5rem;
}
2021-03-27 20:52:23 +01:00
}
2021-03-27 18:41:37 +01:00
.video {
2021-03-27 20:52:23 +01:00
margin-top: 2.5rem;
2021-03-27 18:41:37 +01:00
position: relative;
2021-03-27 20:52:23 +01:00
padding-bottom: 56.25%;
background-color: black;
border-radius: 20px;
2021-03-27 18:41:37 +01:00
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
2021-03-27 20:52:23 +01:00
border-radius: 20px;
}
}
.email {
width: 100%;
max-width: 35rem;
margin: auto;
font-size: 2rem;
padding: 1rem;
background-color: #fcd34d;
h2 {
font-size: 2rem;
}
label {
font-size: 1rem;
2021-03-28 00:33:47 +01:00
font-weight: 700;
2021-03-27 18:41:37 +01:00
}
2021-03-27 20:52:23 +01:00
@media (min-width: $breakpoint-small) {
padding: 5rem;
2021-03-29 05:32:35 +02:00
margin-top: 4rem;
margin-bottom: 2rem;
2021-03-27 20:52:23 +01:00
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;
}
}
2021-03-28 00:33:47 +01:00
.email__success,
.email__error {
font-size: 1rem;
margin-top: 0.5rem;
}
2021-03-28 06:57:49 +02:00
.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;
2021-03-29 05:32:35 +02:00
animation: slide 360s linear;
2021-03-28 06:57:49 +02:00
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;
2021-03-27 18:41:37 +01:00
}
2021-03-29 05:32:35 +02:00
.md {
h1 {
font-size: 4.5rem;
font-weight: 900;
@media (max-width: $breakpoint-small) {
font-size: 2.5rem;
}
}
h2 {
font-size: 3rem;
font-weight: 900;
margin-bottom: 1rem;
@media (max-width: $breakpoint-small) {
font-size: 2rem;
}
}
h3 {
font-size: 2rem;
@media (max-width: $breakpoint-small) {
font-size: 1.5rem;
}
}
ul {
font-size: 1.5rem;
}
}
.lbry__try {
margin-bottom: 1rem;
}