zulip/web/styles/portico/billing.css

419 lines
9.5 KiB
CSS

:root {
--color-background-modal: hsl(0deg 0% 98%);
}
.billing-upgrade-page {
font-family: "Source Sans 3 VF", sans-serif;
background-color: hsl(0deg 0% 98%);
height: 100vh;
.hero {
background-color: hsl(153deg 32% 55%);
color: hsl(153deg 32% 55%);
position: absolute;
top: 0;
width: 100%;
}
.page-content {
padding: 100px 0 30px;
}
.small-hero {
padding: 120px 50px 0;
}
.main {
width: 800px;
max-width: 90%;
margin: 0 auto;
}
& h1 {
margin: 30px 0;
font-weight: bold;
}
.nav {
margin-bottom: 0;
}
.nav-tabs {
border-bottom: 0;
font-size: 1.2em;
& a {
font-weight: bold;
}
}
.tab-content {
border: 1px solid hsl(0deg 0% 87%);
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 20px;
background-color: hsl(0deg 0% 100%);
font-size: 1.1em;
}
.support-link {
margin: 10px 20px;
& a,
a:hover,
a:visited {
color: hsl(170deg 47% 33%);
font-weight: 400;
}
}
.license-management,
.payment-schedule {
& label {
display: inline-block;
}
& input[type="radio"] {
display: none;
&:checked {
+ .box {
background-color: hsl(153deg 32% 55%);
color: hsl(0deg 0% 100%);
border-color: hsl(152deg 33% 39%);
}
}
}
.box {
width: 120px;
height: 70px;
background-color: hsl(0deg 0% 94%);
transition: all 0.2s ease;
display: inline-block;
text-align: center;
cursor: pointer;
position: relative;
border: 1px solid hsl(0deg 0% 91%);
border-radius: 8px;
margin: 0 10px 5px 0;
padding: 30px 20px;
vertical-align: top;
&:hover {
background-color: hsl(0deg 0% 91%);
border-color: hsl(0deg 0% 80%);
}
.schedule-time {
font-weight: bold;
font-size: 1.2em;
margin-top: 10px;
}
.schedule-amount {
margin-top: 5px;
font-size: 1.1em;
height: 50px;
}
.schedule-amount-2 {
font-size: 0.9em;
}
.management-type {
font-weight: bold;
font-size: 1.2em;
margin-top: 10px;
}
.management-type-text {
font-size: 1.1em;
margin-top: 5px;
}
}
}
.stripe-button-el {
padding: 11px 25px;
font-weight: 400;
color: hsl(0deg 0% 100%);
background: linear-gradient(
145deg,
hsl(191deg 56% 55%),
hsl(169deg 65% 42%)
);
box-shadow: 0 3px 10px hsl(0deg 0% 0% / 20%);
border: 0;
height: 40px;
margin: 5px 0 0;
& span {
background: 0;
box-shadow: none;
font-family: "Source Sans 3 VF", sans-serif;
line-height: 20px;
}
}
.stripe-button-el:hover {
background-color: hsl(169deg 65% 42%);
box-shadow: 0 3px 10px hsl(0deg 0% 0% / 30%);
}
.stripe-button-el:active,
.stripe-button-el:enabled:active {
background-color: hsl(169deg 70% 32%);
& span {
background: 0;
box-shadow: none;
}
}
.stripe-button-el:disabled {
& span {
background: none;
}
}
.stripe-button-el:hover:disabled {
box-shadow: none;
background-color: hsl(0deg 0% 78%);
pointer-events: none;
}
.invoice-button {
font-size: 19px;
&:disabled {
opacity: 0.5;
cursor: not-allowed;
&:hover {
pointer-events: all;
}
}
}
.upgrade-button-container {
display: inline-block;
}
#manual_license_count,
#invoiced_licenses {
width: 50px;
}
#licenses_at_next_renewal_input,
#new_licenses_input {
width: 206px;
}
#error-message-box {
margin-top: 10px;
font-weight: 600;
display: none;
}
#restartsession-loading,
#webhook-loading,
#sponsorship-loading,
#planchange-loading,
#licensechange-loading,
#cardchange-loading,
#invoice-loading,
#autopay-loading {
display: none;
min-height: 55px;
text-align: center;
}
#restartsession-success,
#webhook-success,
#sponsorship-success,
#planchange-success,
#licensechange-success,
#cardchange-success,
#invoice-success,
#autopay-success {
text-align: center;
display: none;
}
#restartsession-error,
#webhook-error,
#sponsorship-error,
#planchange-error,
#licensechange-error,
#cardchange-error,
#invoice-error,
#autopay-error {
text-align: center;
display: none;
}
.zulip-loading-logo {
margin: 0 auto;
width: 24px;
height: 24px;
}
.zulip-loading-logo svg circle {
fill: hsl(0deg 0% 27%);
stroke: hsl(0deg 0% 27%);
}
.zulip-loading-logo svg path {
fill: hsl(0deg 0% 100%);
stroke: hsl(0deg 0% 100%);
}
#restartsession_loading_indicator,
#webhook_loading_indicator,
#sponsorship_loading_indicator,
#planchange_loading_indicator,
#licensechange_loading_indicator,
#cardchange_loading_indicator,
#invoice_loading_indicator,
#autopay_loading_indicator {
margin: 10px auto;
}
#restartsession_loading_indicator_box_container,
#webhook_loading_indicator_box_container,
#sponsorship_loading_indicator_box_container,
#planchange_loading_indicator_box_container,
#licensechange_loading_indicator_box_container,
#cardchange_loading_indicator_box_container,
#invoice_loading_indicator_box_container,
#autopay_loading_indicator_box_container {
position: absolute;
left: 50%;
}
#restartsession_loading_indicator_box,
#webhook_loading_indicator_box,
#sponsorship_loading_indicator_box,
#planchange_loading_indicator_box,
#licensechange_loading_indicator_box,
#cardchange_loading_indicator_box,
#invoice_loading_indicator_box,
#autopay_loading_indicator_box {
position: relative;
left: -50%;
top: -41px;
z-index: 10;
border-radius: 6px;
}
#restartsession_loading_indicator .loading_indicator_text,
#webhook_loading_indicator .loading_indicator_text,
#sponsorship_loading_indicator .loading_indicator_text,
#planchange_loading_indicator .loading_indicator_text,
#licensechange_loading_indicator .loading_indicator_text,
#cardchange_loading_indicator .loading_indicator_text,
#invoice_loading_indicator .loading_indicator_text,
#autopay_loading_indicator .loading_indicator_text {
margin-left: -25px;
}
#license-automatic-section,
#license-manual-section {
display: none;
}
& select,
input,
textarea {
font-family: inherit;
}
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
appearance: none;
margin: 0;
}
input[name="licenses"] {
appearance: textfield;
}
#license-manual-section,
#licensechange-input-section,
#sponsorship-form {
& input {
padding: 4px 6px;
border-radius: 4px;
border: 1px solid hsl(0deg 0% 80%);
color: hsl(0deg 0% 33%);
margin-bottom: 10px;
transition: border linear 0.2s, box-shadow linear 0.2s;
box-shadow: inset 0 1px 1px hsla(0deg 0 0 / 7.5%);
&:focus {
border-color: hsl(206deg 80% 62% / 80%);
outline: 0;
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%),
0 0 8px hsl(206.494deg 80% 62% / 60%);
}
}
}
#sponsorship-form {
& input {
box-sizing: border-box;
}
& textarea {
box-sizing: border-box;
color: hsl(0deg 0% 33%);
background-color: hsl(0deg 0% 100%);
border-radius: 4px;
vertical-align: middle;
border: 1px solid hsl(0deg 0% 80%);
padding: 4px 6px;
margin-bottom: 10px;
line-height: 20px;
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%);
transition: border linear 0.2s, box-shadow linear 0.2s;
&:focus {
border-color: hsl(206.5deg 80% 62% / 80%);
outline: 0;
box-shadow: inset 0 1px 1px hsl(0deg 0% 0% / 7.5%),
0 0 8px hsl(206.5deg 80% 62% / 60%);
&:invalid {
border-color: hsl(2deg 81% 55%);
box-shadow: 0 0 6px hsl(2deg 82% 85%);
color: hsl(1deg 45% 50%);
}
}
}
& select {
height: 30px;
width: 100%;
padding: 0 6px;
font-size: 14px;
color: hsl(0deg 0% 33%);
border-radius: 4px;
border: 1px solid hsl(0deg 0% 80%);
margin-bottom: 10px;
cursor: pointer;
background-color: hsl(0deg 0% 100%);
}
& input[name="website"] {
width: 100%;
}
& textarea[name="description"] {
width: 100%;
}
}