mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #18862 from overleaf/mf-simplify-non-discounted-text-new-plans-page
[web] Improve the structure of the price elements on the new plans table by using grid display GitOrigin-RevId: 08052aec5037432af7ad4d4c554e529582d4acfc
This commit is contained in:
parent
d80046c757
commit
65592194ec
1 changed files with 48 additions and 38 deletions
|
@ -287,7 +287,7 @@
|
|||
}
|
||||
|
||||
.plans-new-table-group {
|
||||
.plans-new-table-header-price-container {
|
||||
.plans-new-table-header-grid-container {
|
||||
min-height: 85px;
|
||||
}
|
||||
|
||||
|
@ -322,52 +322,62 @@
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.plans-new-table-header-nondiscounted-price {
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
left: 25px;
|
||||
font-size: var(--font-size-04);
|
||||
line-height: var(--line-height-05);
|
||||
color: var(--neutral-40);
|
||||
font-weight: 600;
|
||||
.plans-new-table-header-grid-container {
|
||||
display: grid;
|
||||
grid-column-gap: var(--spacing-04);
|
||||
// priceUnitTotal is an optional row
|
||||
grid-template:
|
||||
'nonDiscountedPrice price .' 2fr
|
||||
'priceUnit priceUnit priceUnit' 1fr
|
||||
'priceUnitTotal priceUnitTotal priceUnitTotal' auto / 1fr 1fr 1fr;
|
||||
|
||||
@media (max-width: @screen-md-max) {
|
||||
left: 0;
|
||||
.plans-new-table-header-price {
|
||||
grid-area: price;
|
||||
justify-self: center;
|
||||
|
||||
font-size: var(--font-size-08);
|
||||
font-weight: 600;
|
||||
line-height: var(--line-height-07);
|
||||
color: var(--neutral-90);
|
||||
}
|
||||
|
||||
@media (max-width: @screen-sm-max) {
|
||||
left: -22px;
|
||||
.plans-new-table-header-price-unit {
|
||||
grid-area: priceUnit;
|
||||
justify-self: center;
|
||||
|
||||
font-size: var(--font-size-02);
|
||||
line-height: var(--line-height-02);
|
||||
}
|
||||
}
|
||||
|
||||
.plans-new-table-header-price-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.plans-new-table-header-price-unit-total {
|
||||
grid-area: priceUnitTotal;
|
||||
justify-self: center;
|
||||
|
||||
.plans-new-table-header-price {
|
||||
font-size: var(--font-size-08);
|
||||
font-weight: 600;
|
||||
line-height: var(--line-height-07);
|
||||
color: var(--neutral-90);
|
||||
}
|
||||
font-size: var(--font-size-01);
|
||||
line-height: var(--line-height-01);
|
||||
}
|
||||
|
||||
.plans-new-table-header-icon {
|
||||
margin-top: @spacing-02;
|
||||
font-size: 56px;
|
||||
align-self: center;
|
||||
color: var(--neutral-90);
|
||||
}
|
||||
.plans-new-table-header-nondiscounted-price {
|
||||
grid-area: nonDiscountedPrice;
|
||||
justify-self: end;
|
||||
align-self: end;
|
||||
|
||||
.plans-new-table-header-price-unit {
|
||||
font-size: var(--font-size-02);
|
||||
line-height: var(--line-height-02);
|
||||
}
|
||||
font-size: var(--font-size-04);
|
||||
line-height: var(--line-height-05);
|
||||
color: var(--neutral-40);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.plans-new-table-header-price-unit-total {
|
||||
font-size: var(--font-size-01);
|
||||
line-height: var(--line-height-01);
|
||||
.plans-new-table-header-icon {
|
||||
// this element should only be placed in the grid
|
||||
// where it's the only element in the grid
|
||||
// the grid-area below will make sure that it covers the whole grid
|
||||
grid-area: ~'span 2 / span 3';
|
||||
justify-self: center;
|
||||
|
||||
font-size: 56px;
|
||||
color: var(--neutral-90);
|
||||
}
|
||||
}
|
||||
|
||||
.plans-new-table-header-desc {
|
||||
|
|
Loading…
Reference in a new issue