lbry-sec/styles/globals.scss

284 lines
4.1 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
}
a {
color: inherit;
text-decoration: none;
}
header {
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;
}
@media (min-width: $breakpoint-small) {
padding: 0 1rem;
}
}
.title {
font-weight: bolder;
font-size: 1.5rem;
@media (min-width: $breakpoint-small) {
font-size: 2rem;
}
}
.landing__img {
2021-03-27 19:31:06 +01:00
z-index: -1;
2021-03-27 18:41:37 +01:00
position: relative;
height: 10rem;
2021-03-27 19:31:06 +01:00
background-color: #111111;
color: #ffffff;
// background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
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-27 19:31:06 +01:00
margin-top: -6rem;
margin-bottom: 3rem;
2021-03-27 18:41:37 +01:00
margin-left: $spacing-small;
margin-right: $spacing-small;
2021-03-27 19:31:06 +01:00
background-color: #fcd34d;
color: black;
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-27 19:31:06 +01:00
font-size: 3rem;
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 00:33:47 +01:00
font-size: 1.8rem;
2021-03-27 19:31:06 +01:00
}
}
2021-03-28 00:33:47 +01:00
.landing__action {
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-27 20:52:23 +01:00
background-color: #5726ab;
color: white;
padding: 0.75rem;
margin-top: 2rem;
2021-03-28 00:33:47 +01:00
font-weight: 700;
font-size: 1.5rem;
padding: 1.5rem;
border-radius: 10px;
2021-03-27 20:52:23 +01:00
2021-03-28 00:33:47 +01:00
&:hover {
opacity: 0.9;
2021-03-27 18:41:37 +01:00
}
}
.content {
padding: $spacing-small;
2021-03-27 19:31:06 +01:00
background-color: #ffffff;
color: #000000;
2021-03-27 18:41:37 +01:00
2021-03-27 20:52:23 +01:00
h2 {
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
h2 {
font-size: 4rem;
}
2021-03-27 18:41:37 +01:00
}
}
2021-03-27 20:52:23 +01:00
.content__subtitle {
margin: 1rem 0;
font-size: 1.75rem;
color: #8f8f8f;
}
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;
margin-top: 4rem;
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;
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;
margin-bottom: -0.5rem;
}
2021-03-27 20:52:23 +01:00
.petition {
height: 30rem;
padding: 5rem;
background-color: black;
color: white;
margin-top: 2rem;
2021-03-27 18:41:37 +01:00
}