soapbox/app/styles/donations.scss

114 wiersze
1.5 KiB
SCSS
Czysty Zwykły widok Historia

2020-03-27 20:59:38 +00:00
.sub {
2020-06-07 03:55:00 +00:00
border: 1px solid hsla(var(--primary-text-color_hsl), 0.5);
2020-03-27 20:59:38 +00:00
padding: 20px;
position: relative;
border-radius: 4px;
&__title {
text-transform: uppercase;
font-weight: bold;
font-size: 1.3rem;
margin-bottom: 4px;
}
2020-05-29 00:58:37 +00:00
2020-03-27 20:59:38 +00:00
&__amount {
font-size: 2rem;
line-height: normal;
2020-05-29 00:58:37 +00:00
margin: 4px 0 12px;
2020-03-27 20:59:38 +00:00
}
2020-05-29 00:58:37 +00:00
2020-03-27 20:59:38 +00:00
&__billing {
font-size: 14px;
}
2020-05-29 00:58:37 +00:00
2020-03-27 20:59:38 +00:00
&__button {
margin-top: 20px;
}
/* Status indicator */
&::before {
content: '';
display: block;
position: absolute;
top: 15px;
right: 13px;
border-radius: 100%;
background-color: transparent;
height: 13px;
width: 13px;
}
2020-05-29 00:58:37 +00:00
&--trialing,
&--active {
2020-03-27 20:59:38 +00:00
&::before {
background-color: #0f0;
2020-03-27 20:59:38 +00:00
}
}
2020-05-29 00:58:37 +00:00
2020-03-27 20:59:38 +00:00
&--cancelling::before {
background-color: #ff0;
2020-03-27 20:59:38 +00:00
}
2020-05-29 00:58:37 +00:00
&--incomplete,
&--incomplete_expired,
&--past_due,
&--canceled,
&--unpaid {
2020-03-27 20:59:38 +00:00
&::before {
background-color: #f00;
2020-03-27 20:59:38 +00:00
}
}
}
.subs {
.sub {
border-radius: 0;
2020-05-29 00:58:37 +00:00
2020-03-27 20:59:38 +00:00
& + .sub {
border-top: 0;
}
2020-05-29 00:58:37 +00:00
2020-03-27 20:59:38 +00:00
&:first-child {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
2020-05-29 00:58:37 +00:00
2020-03-27 20:59:38 +00:00
&:last-child {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
}
}
body.admin {
.actions {
margin-top: 40px;
}
}
.funding-panel {
2020-08-09 05:29:28 +00:00
margin-top: 15px;
2020-03-27 20:59:38 +00:00
strong {
font-weight: bold;
}
&__ratio {
font-size: 14px;
margin-bottom: 8px;
}
&__description {
margin-top: 14px;
font-size: 15px;
}
.button {
margin-top: 20px;
}
&__reached {
color: var(--brand-color);
2020-03-27 20:59:38 +00:00
}
}