lbry-desktop/ui/scss/component/_purchase.scss

135 lines
1.8 KiB
SCSS
Raw Permalink Normal View History

2020-09-02 22:08:37 +02:00
.credit-amount {
font-weight: bold;
2020-09-30 22:54:34 +02:00
color: var(--color-text);
2020-09-02 22:08:37 +02:00
.icon {
margin-bottom: 2px;
2020-09-02 22:08:37 +02:00
}
}
2020-05-21 17:38:28 +02:00
.purchase-stuff {
display: flex;
align-items: center;
> *:first-child {
width: 60%;
2020-06-01 19:03:19 +02:00
padding-right: var(--spacing-s);
2020-05-21 17:38:28 +02:00
}
.file-price,
.file-price__key {
width: 900%;
}
.file-price__key {
background-color: transparent;
border-width: 0;
@media (max-width: $breakpoint-small) {
2020-06-01 19:03:19 +02:00
margin-top: calc(var(--spacing-xl) * 2);
2020-05-21 17:38:28 +02:00
}
}
.filePrice {
.credit-amount {
color: #000;
margin-right: var(--spacing-l);
}
}
2020-05-21 17:38:28 +02:00
}
.purchase-stuff__text--purchased {
font-weight: bold;
font-size: var(--font-title);
color: var(--color-black);
position: absolute;
2020-06-01 19:03:19 +02:00
top: calc(var(--spacing-xl) * 1.6);
left: var(--spacing-l);
2020-05-21 17:38:28 +02:00
bottom: 0;
right: 0;
z-index: 9999999999;
animation: display 1s 1 ease-in;
opacity: 1;
}
.purchase_stuff__subtext--purchased {
color: var(--color-black);
font-size: var(--font-body);
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-m);
2020-05-21 17:38:28 +02:00
}
@keyframes display {
0% {
opacity: 0;
}
20% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes expand {
0% {
left: 50%;
}
50% {
height: 30rem;
}
100% {
height: 30rem;
left: -200%;
}
}
@keyframes moveKey {
0% {
max-height: 3rem;
left: -20rem;
}
20% {
2020-06-01 19:03:19 +02:00
left: calc(var(--spacing-xl) * 1.5);
2020-05-21 17:38:28 +02:00
}
50% {
2020-06-01 19:03:19 +02:00
left: calc(var(--spacing-xl) * 1.5);
2020-05-21 17:38:28 +02:00
}
70% {
2020-06-01 19:03:19 +02:00
left: calc(var(--spacing-xl) * 1.5);
2020-05-21 17:38:28 +02:00
}
100% {
max-height: 10rem;
opacity: 1;
left: 30rem;
}
}
@keyframes turnKey {
0% {
transform: rotate3d(0, 0, 0, 0);
}
50% {
transform: rotate3d(0, 0, 1, 45deg);
}
60% {
transform: rotate3d(1, 0, 1, 45deg);
}
70% {
transform: rotate3d(0, 0, 1, 45deg);
}
100% {
transform: rotate3d(0, 0, 1, 45deg);
}
}