lbry-desktop/ui/scss/component/_splash.scss
mayeaux fb3a73d8a7
Membership subscriptions (#812)
Enter: Odysee Premium.
2022-03-09 13:05:37 -05:00

401 lines
8.8 KiB
SCSS

.splash {
-webkit-app-region: drag;
width: 100vw;
height: 100vh;
align-items: center;
background-color: var(--color-background--splash);
display: flex;
flex-direction: column;
justify-content: center;
overflow: hidden;
}
.splash__details {
position: absolute;
line-height: 1;
font-weight: var(--font-weight-light);
color: #fff;
margin-top: 2rem;
}
.splash__title {
position: absolute;
font-size: 40px;
line-height: 1;
font-weight: var(--font-weight-bold);
color: #fff;
margin-top: -1rem;
}
.splash__animation-toggle {
position: fixed;
top: var(--spacing-l);
right: var(--spacing-l);
padding: var(--spacing-m);
border-color: #fff;
color: #fff;
background-color: rgba(255, 255, 255, 0.205);
font-size: var(--font-small);
&:hover {
background-color: rgba(255, 255, 255, 0.5);
.icon {
stroke: #fff;
}
}
}
.doodle {
position: fixed;
}
// Membership Splash
.membership-splash {
padding-left: 10rem;
padding-right: 10rem;
display: flex;
flex-flow: column wrap;
justify-content: space-around;
transition: padding 0.6s;
::selection {
background-color: black;
color: white;
}
@media (min-width: $breakpoint-xlarge) {
padding-left: 0rem;
padding-right: 0rem;
margin-left: -16rem;
margin-right: -16rem;
}
@media (max-width: $breakpoint-medium) {
padding-left: 4rem;
padding-right: 4rem;
}
@media (max-width: $breakpoint-small) {
padding-left: unset;
padding-right: unset;
}
.membership-splash__banner {
display: flex;
flex-basis: 100%;
flex: auto;
align-items: center;
background: #283263;
margin-bottom: var(--spacing-xxs);
img {
display: flex;
width: 50%;
flex-basis: 50%;
}
@media (max-width: $breakpoint-small) {
flex-flow: column-reverse;
img {
width: 100%;
flex-basis: 100%;
}
}
}
.membership-splash__title {
display: inline-block;
width: 100%;
flex-basis: 50%;
padding: var(--spacing-l);
padding-top: 0;
padding-bottom: 0;
color: #fff;
// font-size: 2.6rem;
font-size: 2.3vw;
line-height: 2.8vw;
font-weight: 100;
b {
font-weight: 900;
}
section {
&:first-of-type {
margin-bottom: 2rem;
img {
width: 96%;
}
}
}
@media (max-width: $breakpoint-small) {
font-size: 2rem;
line-height: 2.1rem;
margin-bottom: 1.6rem;
section {
&:first-of-type {
img {
margin-top: 1.6rem;
}
}
}
}
}
.membership-splash__info-wrapper {
display: flex;
flex-basis: 100%;
.membership-splash__info {
position: relative;
background: #fff;
flex-basis: 33%;
color: #000;
padding-bottom: 4.2rem;
.membership-splash__info-content {
padding-left: var(--spacing-m);
}
}
@media (max-width: $breakpoint-small) {
flex-flow: column;
.membership-splash__info {
flex-basis: 100%;
margin-bottom: var(--spacing-xxs);
}
// "creating a revolutionary platform.." copy
.membership-splash__info:nth-of-type(1) {
line-height: 1.5rem;
}
}
.membership-splash__info:nth-child(1) {
// padding: var(--spacing-l);
padding: 3%;
font-size: 1vw;
@media (min-width: $breakpoint-xlarge) {
font-size: 1vw;
}
@media (max-width: $breakpoint-medium) {
font-size: 1.3vw;
}
@media (max-width: $breakpoint-small) {
font-size: 0.9rem;
}
}
.membership-splash__info:nth-child(2) {
margin-left: var(--spacing-xxs);
margin-right: var(--spacing-xxs);
.membership-splash__info-header {
background-color: #d5cee5;
color: #626092;
}
@media (max-width: $breakpoint-small) {
margin-left: 0;
margin-right: 0;
}
}
.membership-splash__info:nth-child(3) {
.membership-splash__info-header {
background-color: #ffd976;
color: #c95b16;
}
}
}
.membership-splash__info-header {
margin-bottom: 18px;
.membership-splash__info-price {
display: flex;
align-items: center;
font-size: 2.6rem;
font-size: 2.6vw;
font-weight: 900;
img {
display: inline-block;
width: 36%;
//margin-left: 1rem;
margin-left: 7%;
//margin-right: 1.4rem;
margin-right: 7%;
}
section {
display: inline-block;
}
.membership-splash__info-range {
font-size: 1rem;
margin-top: -10px;
}
@media (min-width: $breakpoint-xlarge) {
img {
//margin-left: 2%;
width: 33%;
}
.membership-splash__info-range {
font-size: 1.8rem;
margin-top: -1.6rem;
}
}
@media (max-width: $breakpoint-medium) {
img {
//margin-left: 2%;
width: 30%;
}
}
@media (max-width: $breakpoint-small) {
font-size: 2.2rem;
img {
margin-left: 1.4rem;
margin-right: 1.4rem;
width: 5rem;
}
}
}
}
.membership-splash__info-content {
display: flex;
align-items: center;
font-size: 1vw;
font-weight: 900;
margin-top: 8px;
.icon {
width: 2rem;
margin-right: var(--spacing-xs);
}
@media (max-width: $breakpoint-medium) {
font-size: 1.3vw;
}
@media (max-width: $breakpoint-small) {
font-size: 0.9rem;
}
}
.membership-splash__info-button {
text-align: center;
position: absolute;
width: calc(100% - (var(--spacing-m) * 2));
bottom: 0;
margin-left: var(--spacing-m);
margin-right: var(--spacing-m);
display: inline-block;
margin-bottom: var(--spacing-m);
.button--primary {
display: inline-block;
border: 2px solid #debca0;
border-radius: 20px;
padding: 8px 20px 8px 20px;
background-color: unset !important;
text-align: center;
.button__label {
align-self: center;
display: inline-block;
color: #debca0;
text-transform: uppercase;
font-size: 17px;
line-height: 2rem;
font-weight: var(--font-weight-bold);
}
&:hover {
background-color: unset;
}
@media (min-width: $breakpoint-xlarge) {
padding: 18px 40px 18px 40px;
height: 4.8rem;
border-radius: 2.4rem;
margin-bottom: 3%;
.button__label {
line-height: 4rem;
}
}
@media (max-width: $breakpoint-small) {
padding: 8px 10px 8px 10px;
box-sizing: border-box;
.button__label {
font-size: 1.2rem;
}
}
}
}
}
.modal {
@media (min-width: $breakpoint-small) {
.membership-splash {
padding-left: unset;
padding-right: unset;
.membership-splash__banner {
.membership-splash__title {
padding-left: var(--spacing-m);
padding-right: var(--spacing-m);
font-size: 1.6rem;
line-height: 1.7rem;
section:first-of-type {
margin-bottom: var(--spacing-m);
}
}
}
.membership-splash__info-wrapper {
.membership-splash__info {
.membership-splash__info-header {
.membership-splash__info-price {
img {
margin-left: var(--spacing-s);
margin-right: var(--spacing-s);
}
section {
font-size: 1.6rem;
}
.membership-splash__info-range {
font-size: 0.8rem;
margin-top: -10px;
}
}
}
.membership-splash__info-button {
margin-left: var(--spacing-xs);
.button {
padding: 4px 6px 4px 6px;
.button__content {
.button__label {
font-size: 0.74rem;
}
}
}
}
.membership-splash__info-content {
padding-left: var(--spacing-xxs);
font-size: 0.7rem;
.icon {
width: 1.7rem;
height: 1.7rem;
margin-right: var(--spacing-xxs);
}
}
}
.membership-splash__info:nth-child(1) {
padding: var(--spacing-m);
font-size: 0.7rem;
}
}
}
}
@media (max-width: $breakpoint-small) {
.membership-splash {
.membership-splash__banner {
.membership-splash__title {
img {
margin-top: var(--spacing-l);
}
}
}
}
}
}
.stripe__confirm-remove-membership {
.card__subtitle {
line-height: 39px;
margin-top: 5px;
margin-bottom: -1px;
}
}