feat: add billing period selection
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
ba673ad732
commit
d37affc80f
15 files changed
+1625
No files matched your search
@@ -961,3 +961,301 @@ a {
|
||||
flex-direction: column-reverse;
|
||||
}
|
||||
}
|
||||
|
||||
/* Billing selection */
|
||||
|
||||
.content-section {
|
||||
width: min(100%, 108rem);
|
||||
margin: 0 auto;
|
||||
padding: clamp(2rem, 5vw, 5.5rem) clamp(1.25rem, 4vw, 5rem) 5rem;
|
||||
}
|
||||
|
||||
.content-section h1 {
|
||||
max-width: 15ch;
|
||||
margin: 0 0 1.5rem;
|
||||
font-size: clamp(2.5rem, 5vw, 5.5rem);
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.065em;
|
||||
line-height: 0.9;
|
||||
}
|
||||
|
||||
.content-section > p {
|
||||
max-width: 44rem;
|
||||
margin: 0 0 2rem;
|
||||
color: var(--graphite);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.billing-editorial-list {
|
||||
display: grid;
|
||||
gap: 1.25rem;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.billing-editorial-list li {
|
||||
padding-bottom: 1.25rem;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.billing-editorial-list a {
|
||||
font-size: 1.15rem;
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.billing-editorial-list a:hover {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
|
||||
.billing-editorial-list p {
|
||||
margin: 0.35rem 0 0;
|
||||
color: var(--metadata);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.billing-period-selector {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: end;
|
||||
gap: 1rem;
|
||||
margin-bottom: 2rem;
|
||||
padding-bottom: 1.25rem;
|
||||
border-bottom: 1px solid var(--ink);
|
||||
}
|
||||
|
||||
.billing-period-selector label {
|
||||
display: grid;
|
||||
gap: 0.35rem;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.billing-period-selector select {
|
||||
min-width: 8rem;
|
||||
min-height: 2.8rem;
|
||||
border: 1px solid var(--ink);
|
||||
border-radius: 0;
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
font-size: 0.875rem;
|
||||
padding: 0.4rem 0.6rem;
|
||||
}
|
||||
|
||||
.billing-period-selector button {
|
||||
min-height: 2.8rem;
|
||||
border: 1px solid var(--ink);
|
||||
border-radius: 0;
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
padding-inline: 1rem;
|
||||
}
|
||||
|
||||
.billing-period-selector button:hover {
|
||||
background: var(--graphite);
|
||||
}
|
||||
|
||||
.billing-period-selector a {
|
||||
align-self: center;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 650;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
|
||||
.billing-selection-controls {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.billing-selection-controls button {
|
||||
min-height: 2.6rem;
|
||||
border: 1px solid var(--ink);
|
||||
border-radius: 0;
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
padding-inline: 1rem;
|
||||
}
|
||||
|
||||
.billing-selection-controls button:hover:not(:disabled) {
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
}
|
||||
|
||||
.billing-selection-controls button:disabled {
|
||||
border-color: var(--line);
|
||||
color: var(--metadata);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.billing-nav-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 2.6rem;
|
||||
border: 1px solid var(--ink);
|
||||
border-radius: 0;
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
padding-inline: 1rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.billing-nav-link:hover {
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
}
|
||||
|
||||
.billing-period-label {
|
||||
margin: 0 0 1.5rem;
|
||||
color: var(--metadata);
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.billing-empty {
|
||||
max-width: 38rem;
|
||||
color: var(--graphite);
|
||||
font-size: 1rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.billing-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.billing-caption {
|
||||
margin-bottom: 0.75rem;
|
||||
color: var(--metadata);
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
text-align: left;
|
||||
caption-side: top;
|
||||
}
|
||||
|
||||
.billing-table thead th {
|
||||
padding: 0.6rem 0.5rem;
|
||||
border-bottom: 1px solid var(--ink);
|
||||
color: var(--metadata);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-align: left;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.billing-table tbody td {
|
||||
padding: 0.65rem 0.5rem;
|
||||
border-bottom: 1px solid var(--line);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.billing-table tbody tr.billing-row-billed {
|
||||
background: var(--soft);
|
||||
color: var(--metadata);
|
||||
}
|
||||
|
||||
.billing-row-billed td {
|
||||
color: var(--metadata);
|
||||
}
|
||||
|
||||
.billing-row-billed .billing-status {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.billing-report-ref {
|
||||
display: block;
|
||||
margin-top: 0.15rem;
|
||||
font-size: 0.7rem;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.billing-price {
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.billing-status {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.billing-repeat-section {
|
||||
margin-top: 3rem;
|
||||
padding-top: 1.5rem;
|
||||
border-top: 1px solid var(--ink);
|
||||
}
|
||||
|
||||
.billing-repeat-section h2 {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 1.15rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.billing-table-repeat {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.billing-summary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-top: 2rem;
|
||||
padding: 1rem 0;
|
||||
border-top: 2px solid var(--ink);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.billing-summary p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.billing-summary-total {
|
||||
font-size: 1.1rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.billing-summary strong {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@media (max-width: 48rem) {
|
||||
.billing-table {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.billing-period-selector {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.billing-period-selector a {
|
||||
align-self: flex-start;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user